diff options
author | Yuri Kobets <yuri.kobets@gmail.com> | 2023-12-25 01:16:42 +0300 |
---|---|---|
committer | Yuri Kobets <yuri.kobets@gmail.com> | 2023-12-25 01:16:42 +0300 |
commit | 85da5869cb5f7a297809ab9ef1557eb6319e24e6 (patch) | |
tree | e1d26e2523233d82bc08a26e573218f195d6c23f /test/render/flex/--flexbox-min-height-auto-003.htm | |
parent | 6922a8497dc8a8fceaff70a71cca487863d27354 (diff) |
Added tests for Flexible Box Layout
All tests are copied from:
http://test.csswg.org/suites/css-flexbox-1_dev/nightly-unstable/html/toc.htm
Prefixes:
"-" - test is using features that litehtml doesn't support yet
"--" - all featured should be supported but test failed because of flex
rendering implementation issues
Diffstat (limited to 'test/render/flex/--flexbox-min-height-auto-003.htm')
-rw-r--r-- | test/render/flex/--flexbox-min-height-auto-003.htm | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/test/render/flex/--flexbox-min-height-auto-003.htm b/test/render/flex/--flexbox-min-height-auto-003.htm new file mode 100644 index 00000000..fe03ffff --- /dev/null +++ b/test/render/flex/--flexbox-min-height-auto-003.htm @@ -0,0 +1,60 @@ +<!DOCTYPE html> +<!-- + Any copyright is dedicated to the Public Domain. + http://creativecommons.org/publicdomain/zero/1.0/ +--><html> +<!-- Mirrored from test.csswg.org/suites/css-flexbox-1_dev/nightly-unstable/html/flexbox-min-height-auto-003.htm by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 23 Dec 2023 16:15:11 GMT --> +<head> + <meta charset="utf-8"> + <title>CSS Test: Testing min-height:auto & 'overflow' interaction</title> + <link href="mailto:dholbert@mozilla.com" rel="author" title="Daniel Holbert"> + <link href="http://www.w3.org/TR/css-flexbox-1/#min-size-auto" rel="help"> + <link href="http://test.csswg.org/suites/css-flexbox-1_dev/nightly-unstable/html/reference/flexbox-min-height-auto-003-ref.htm" rel="match"> +<!-- + This testcase checks how "overflow-y" impacts the sizing behavior of flex + items with "min-height:auto" (the new initial value for "min-height"). + + In particular, the flex-item-specific "min-height:auto" behavior is + supposed to be disabled (e.g. we end up with min-height:0) when + "overflow-y" is non-"visible". +--> + <style> + .flexbox { + display: flex; + flex-direction: column; + height: 30px; /* Shrink flex items below min-height */ + margin-right: 2px; /* (Just for spacing things out, visually) */ + float: left; + } + + .flexbox > * { + /* Flex items have purple border: */ + border: 2px dotted purple; + } + + .flexbox > * > * { + /* Flex items' contents are gray & fixed-size: */ + background: gray; + width: 40px; + height: 80px; + } + + .yvisible { overflow-y: visible; } + .yhidden { overflow-y: hidden; } + .yscroll { overflow-y: scroll; } + .yauto { overflow-y: auto; } + </style> + </head> + <body> + <!-- min-height:auto should prevent shrinking below intrinsic height when + the flex item has "overflow-y: visible", but not for any other + overflow-y values. --> + <div class="flexbox"><div class="yvisible"><div></div></div></div> + <div class="flexbox"><div class="yhidden"><div></div></div></div> + <div class="flexbox"><div class="yscroll"><div></div></div></div> + <div class="flexbox"><div class="yauto"><div></div></div></div> + + +</body> +<!-- Mirrored from test.csswg.org/suites/css-flexbox-1_dev/nightly-unstable/html/flexbox-min-height-auto-003.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 |