diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
commit | 43a97878ce14b72f0981164f87f2e35e14151312 (patch) | |
tree | 620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/css/CSS2/positioning/abspos-inline-007.xht | |
parent | Initial commit. (diff) | |
download | firefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip |
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/CSS2/positioning/abspos-inline-007.xht')
-rw-r--r-- | testing/web-platform/tests/css/CSS2/positioning/abspos-inline-007.xht | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/CSS2/positioning/abspos-inline-007.xht b/testing/web-platform/tests/css/CSS2/positioning/abspos-inline-007.xht new file mode 100644 index 0000000000..35fd245dd1 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/positioning/abspos-inline-007.xht @@ -0,0 +1,75 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html lang="en" xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Absolutely positioned descendants in inlines</title> + <link rel="author" title="Aleks Totic" href="mailto:atotic@chromium.org"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#comp-abspos" /> + <link rel="match" href="abspos-inline-007-ref.xht" /> + <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> + <style type="text/css"> + .block-container { + position: relative; + font: 20px Ahem; + } + .inline-container { + position: relative; + border: 1px solid black; + } + .parent-block { + display: inline-block; + width: 30px; + height: 10px; + } + .abspos { + position: absolute; + width: 10px; + height: 10px; + background-color: green; + } + .br { + right: 0; + bottom: 0; + } + .tl { + top: 0; + left: 0; + } + .filler { + display: inline-block; + width: 30px; + height: 10px; + } + + </style> + </head> + <body> + <div class="block-container"> + x + <span class="inline-container"> + tl + <div class="parent-block"> + <div class="abspos tl"></div> + </div> + <div class="filler"></div> + </span> + x + <span class="inline-container"> + br + <div class="parent-block"> + <div class="abspos br"></div> + </div> + <div class="filler"></div> + </span> + x + <span class="inline-container"> + static + <div class="parent-block"> + <div class="abspos"></div> + </div> + <div class="filler"></div> + </span> + </div> +<p>Tests abspos positioning of an Element that 1) has an inline containing +block, and 2) is not a child of the inline containing block, but a descendant.</p> + </body> +</html> |