diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
commit | 36d22d82aa202bb199967e9512281e9a53db42c9 (patch) | |
tree | 105e8c98ddea1c1e4784a60a5a6410fa416be2de /testing/web-platform/tests/css/CSS2/visuren/clear-applies-to-016.xht | |
parent | Initial commit. (diff) | |
download | firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/CSS2/visuren/clear-applies-to-016.xht')
-rw-r--r-- | testing/web-platform/tests/css/CSS2/visuren/clear-applies-to-016.xht | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/CSS2/visuren/clear-applies-to-016.xht b/testing/web-platform/tests/css/CSS2/visuren/clear-applies-to-016.xht new file mode 100644 index 0000000000..a72b5d2924 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/visuren/clear-applies-to-016.xht @@ -0,0 +1,86 @@ +<!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: 'clear' applied to the table wrapper box (has 1 caption at top)</title> + + <link rel="author" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <!-- + "(...) list of properties that are used on the table wrapper box and not + the table box. (...) this is the case for 'clear' as well: + If 'clear' is to have an effect, the table and its captions (if any) + should stay together and not be separated by clearance. + Re: [CSS21] The 'clear' property on table wrappers. + http://lists.w3.org/Archives/Public/www-style/2012Jun/0072.html + --> + + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#flow-control" /> + <link rel="match" href="../floats-clear/clear-applies-to-009-ref.xht" /> + + <meta name="assert" content="The 'clear' property apply to elements with a display of 'table' and is applied to the table wrapper box and not on the table box. In this test, the table wrapper box has a table caption placed before the table box." /> + + <style type="text/css"><![CDATA[ + body {margin: 8px;} + + p + { + float: left; + line-height: 1.25; + margin: 1em 0; + width: 320px; + } + + div#table + { + background-color: blue; + clear: both; + display: table; + table-layout: fixed; + width: 1in; + } + + div#caption + { + background-color: blue; + caption-side: top; + color: blue; + display: table-caption; + height: 0.5in; + width: 1in; + } + + div.row {display: table-row;} + + div.cell + { + color: blue; + display: table-cell; + height: 0.25in; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a filled blue square <strong>below this text</strong>.</p> + + <div id="table"> + + <div id="caption">cap</div> + + <div class="row"> + <div class="cell">a</div><div class="cell">b</div> + </div> + + <div class="row"> + <div class="cell">c</div><div class="cell">d</div> + </div> + + </div> + + </body> +</html> |