diff options
author | Yuri Kobets <[email protected]> | 2024-01-31 03:48:44 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2024-01-31 03:48:44 +0300 |
commit | 6ca1ab0419e770e6d35a1ef690238773a1dafcee (patch) | |
tree | 16df635edd594dc1d1b9d0044993e2ae4d0e0200 /test/render/flex/flexbox-flex-wrap-default.htm | |
parent | 8c320007878795fe629de7fe1eaef9328ac9c719 (diff) | |
parent | d85ebec101e77825e5708e58df0e2508ec4fd389 (diff) |
Flex layout
Diffstat (limited to 'test/render/flex/flexbox-flex-wrap-default.htm')
-rw-r--r-- | test/render/flex/flexbox-flex-wrap-default.htm | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/test/render/flex/flexbox-flex-wrap-default.htm b/test/render/flex/flexbox-flex-wrap-default.htm new file mode 100644 index 00000000..5741eb5e --- /dev/null +++ b/test/render/flex/flexbox-flex-wrap-default.htm @@ -0,0 +1,43 @@ +<!DOCTYPE html> +<html> +<!-- Mirrored from test.csswg.org/suites/css-flexbox-1_dev/nightly-unstable/html/flexbox-flex-wrap-default.htm by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 23 Dec 2023 16:15:11 GMT --> +<head> + <title>CSS Flexbox Test: Flex-wrap defaults to nowrap</title> + <link href="mailto:[email protected]" rel="author" title="Gavin Elster"> + <link href="http://fantasai.inkedblade.net/contact" rel="reviewer" title="Elika J. Etemad"> + <link href="http://www.w3.org/TR/css-flexbox-1/#flex-wrap-property" rel="help"> + <link href="http://test.csswg.org/suites/css-flexbox-1_dev/nightly-unstable/html/reference/flexbox-flex-wrap-nowrap-ref.htm" rel="match"> + <meta content="" name="flags"> + <meta content="Test checks that flex elements default to flex-wrap: nowrap if flex-wrap is not set. With wrapping disabled, the .green flex item should extend outside the bounds of its container, as it is set to flex:none." name="assert"> + <style> + .flex-wrapper { + display: flex; + + background: green; + border-right: 60px solid red; + + width: 60px; + height: 120px; + } + + .flex-wrapper div{ + width: 60px; + flex: none; + } + + .green { + background: green; + } + </style> + </head> + <body> + <p>The test passes if there is a green square and no red.</p> + <div class="flex-wrapper"> + <div></div> + <div class="green"></div> + </div> + + +</body> +<!-- Mirrored from test.csswg.org/suites/css-flexbox-1_dev/nightly-unstable/html/flexbox-flex-wrap-default.htm by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 23 Dec 2023 16:15:11 GMT --> +</html>
\ No newline at end of file |