diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-flexbox/layout-algorithm_algo-cross-line-002.html')
-rw-r--r-- | testing/web-platform/tests/css/css-flexbox/layout-algorithm_algo-cross-line-002.html | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-flexbox/layout-algorithm_algo-cross-line-002.html b/testing/web-platform/tests/css/css-flexbox/layout-algorithm_algo-cross-line-002.html new file mode 100644 index 0000000000..1d860b4400 --- /dev/null +++ b/testing/web-platform/tests/css/css-flexbox/layout-algorithm_algo-cross-line-002.html @@ -0,0 +1,33 @@ +<!DOCTYPE html> +<html> + <head> + <title>CSS Grid Layout Test: cross size determination with overflow:scroll</title> + <link rel="author" title="Tomek Wytrebowicz" href="mailto:tomalecpub+github@gmail.com"> + <link rel="help" href="https://www.w3.org/TR/css-flexbox-1/#algo-cross-line" title="9.4. Cross Size Determination" /> + <link rel="match" href="reference/layout-algorithm_algo-cross-line-002-ref.html" /> + <meta name="assert" content="This test checks that correct width is applied if overflow: scroll is set" /> + <style type="text/css"> + .flex { + width: 200px; + height: 200px; + display: flex; + background: red; + flex-direction: column; + } + + .flex>* { + background: green; + width: 200px; + height: 100px; + overflow: scroll; + } + </style> + </head> + <body> + <p>Test passes if there is a filled green square with scrollbars and <strong>no red</strong>.</p> + + <div class="flex"> + <div></div><div></div> + </div> + </body> +</html> |