diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
commit | 6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch) | |
tree | a68f146d7fa01f0134297619fbe7e33db084e0aa /testing/web-platform/tests/css/CSS2/visudet/height-applies-to-010a.xht | |
parent | Initial commit. (diff) | |
download | thunderbird-upstream.tar.xz thunderbird-upstream.zip |
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/CSS2/visudet/height-applies-to-010a.xht')
-rw-r--r-- | testing/web-platform/tests/css/CSS2/visudet/height-applies-to-010a.xht | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/CSS2/visudet/height-applies-to-010a.xht b/testing/web-platform/tests/css/CSS2/visudet/height-applies-to-010a.xht new file mode 100644 index 0000000000..8339c008f9 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/visudet/height-applies-to-010a.xht @@ -0,0 +1,65 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Test: height set to 0 to elements with 'display' set to 'list-item'</title> + + <link rel="author" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@MIT.EDU" /> + <link rel="help" title="10.5 Content height: the 'height' property" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="help" title="11.1.1 Overflow: the 'overflow' property" href="http://www.w3.org/TR/CSS21/visufx.html#overflow" /> + <link rel="match" href="height-applies-to-010a-ref.xht" /> + + <meta content="If height of content exceeds the set height of a block-level non-replaced element in normal flow (like a list-item element such as in this test), then the content should overflow according to the 'overflow' property." name="assert" /> + + <style type="text/css"><![CDATA[ + div + { + color: green; + display: list-item; + font: 2em/1 serif; + height: 0px; + margin-left: 1.25em; + overflow: visible; + list-style-type: "\2022"; + } + + ul + { + height: auto; + margin-top: 3em; + overflow: visible; + } + + li + { + color: green; + font: 2em/1 serif; + height: 0px; + overflow: visible; + list-style-type: "\2022"; + } + + ul#heightless {height: 0px;} + ]]></style> + + </head> + + <body> + + <p>Test passes if <strong>3 green "PASS"</strong> are each preceded by a filled disc.</p> + + <div>PASS</div> + + <ul> + <li>PASS</li> + </ul> + + <ul id="heightless"> + <li>PASS</li> + </ul> + + </body> +</html> |