fune/testing/web-platform/tests/css/css-flexbox/parsing/flex-valid.html
Eric Willigers 46a10404db Bug 1472224 [wpt PR 11730] - [css-flexbox] Flexible Box property parsing tests, a=testonly
Automatic update from web-platform-tests[css-flexbox] Flexible Box property parsing tests (#11730)

[css-flexbox] Flexible Box property parsing tests

Test parsing of the properties defined by CSS Flexible Box layout
https://drafts.csswg.org/css-flexbox/#property-index

The properties align-content, align-items, align-self and
justify-content will be tested in CSS Box Alignment
parsing tests.

--

wpt-commits: 1aaada4bbc936024441fe7995b77c21a2c554da1
wpt-pr: 11730
2018-09-20 12:09:14 +00:00

26 lines
1,002 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Flexible Box Layout Module Level 1: parsing flex with valid values</title>
<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#propdef-flex">
<meta name="assert" content="flex supports the full grammar 'none | [ <flex-grow> <flex-shrink>? || <flex-basis> ]'.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
</head>
<body>
<script>
test_valid_value("flex", "none", "0 0 auto");
test_valid_value("flex", "1", "1 1 0%");
test_valid_value("flex", "2 3", "2 3 0%");
test_valid_value("flex", "4 5 6px");
test_valid_value("flex", "7% 8", "8 1 7%");
test_valid_value("flex", "8 auto", "8 1 auto");
// The following is not yet supported by browsers:
// test_valid_value("flex", "content");
</script>
</body>
</html>