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/visufx/overflow-applies-to-001.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/visufx/overflow-applies-to-001.xht')
-rw-r--r-- | testing/web-platform/tests/css/CSS2/visufx/overflow-applies-to-001.xht | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/CSS2/visufx/overflow-applies-to-001.xht b/testing/web-platform/tests/css/CSS2/visufx/overflow-applies-to-001.xht new file mode 100644 index 0000000000..e63bb0ee0c --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/visufx/overflow-applies-to-001.xht @@ -0,0 +1,72 @@ +<!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: What overflow applies to</title> + + <link rel="help" href="http://www.w3.org/TR/CSS22/visufx.html#overflow" /> + <link rel="help" href="http://www.w3.org/TR/CSS22/changes.html#s.11.1.1a" /> + <link rel="match" href="overflow-applies-to-001-ref.xht" /> + <meta name="assert" content="Name: overflow [...] Applies to: +block containers and boxes that establish a formatting context" /> + <link rel="author" title="Bert Bos" href="mailto:bert@w3.org" /> + + <style type="text/css"> + #container {width: 20em; background: red; text-align: center; + line-height: 1.2em} + + /* The visible overflow of grandchild1 hides the red container background */ + #child1 {width: 10em; overflow: visible} + #grandchild1 {width: 20em; background: green} + + /* The red border on grandchild2 is clipped by child2 */ + #child2 {width: 20em; background: green; overflow: hidden} + #grandchild2 {width: 20em; border-right: solid 1em red} + + /* Overflow (and width) don't apply to child3 and so grandchild3 is visible */ + #child3 {display: inline; width: 10em; overflow: hidden; background: red} + #grandchild3 {width: 20em; height: 1.2em; background: red; + vertical-align: bottom} + + /* Child4 establishes a formatting context and so can clip grandchild4 */ + #child4 {table-layout: fixed; width: 20em; border-collapse: collapse; + background: green; overflow: hidden} + #grandchild4 {width: 20em; background: green; border-right: solid 1em red; + margin-right: -1em} + </style> + </head> + + <body> + + <p>There should be no red.</p> + + <div id="container"> + <div id="child1"> + <div id="grandchild1"> + Block 1 + </div> + </div> + + <div id="child2"> + <div id="grandchild2"> + Block 2 + </div> + </div> + + <div id="child3"> + <img id="grandchild3" src="support/1x1-green.png" alt="Image download support must be enabled" /> + </div> + + <table id="child4"> + <tr> + <td> + <div id="grandchild4"> + Block 4a + </div> + </td> + </tr> + <tr><td>Block 4b</td></tr> + </table> + </div> + </body> +</html> |