diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
commit | 0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch) | |
tree | a31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /testing/web-platform/tests/css/css-align/baseline-of-scrollable-1b.html | |
parent | Initial commit. (diff) | |
download | firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.tar.xz firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.zip |
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-align/baseline-of-scrollable-1b.html')
-rw-r--r-- | testing/web-platform/tests/css/css-align/baseline-of-scrollable-1b.html | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-align/baseline-of-scrollable-1b.html b/testing/web-platform/tests/css/css-align/baseline-of-scrollable-1b.html new file mode 100644 index 0000000000..79db8a8543 --- /dev/null +++ b/testing/web-platform/tests/css/css-align/baseline-of-scrollable-1b.html @@ -0,0 +1,67 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="UTF-8"> + <title> + CSS Test: baseline of scrollable element (for use by a parent inline-block) + should be taken from its contents. (Except if the scrollable element is a + block, which gets baseline from its margin-box.) + </title> + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> + <link rel="author" title="Mozilla" href="https://www.mozilla.org"> + <link rel="help" href="https://drafts.csswg.org/css-align/#baseline-export"> + <link rel="match" href="reference/baseline-of-scrollable-1-ref.html"> + <style> + .container { + overflow: hidden; + height: 50px; + width: 100px; + border-style: solid; + border-width: 2px 3px 4px 5px; + padding: 4px 5px 7px 8px; + margin: 1px 2px 3px 4px; + } + .inline-block { + display: inline-block; + } + .block { + display: block; + } + .flex { + display: flex; + } + .grid { + display: grid; + } +</style> +</head> +<body> + Test passes if the a/b text aligns with the bottom margin-edge of the "block" + rect and baseline-aligns with the "flex" and "grid" text. + <br><br> + + <!-- Note: for this first "inline-block" case, the element's baseline is + synthesized from its margin box. For the other cases, the element's + baseline is taken from its contents, i.e. the text inside of it. --> + a + <div class="inline-block"> + <div class="container block">block</div> + </div> + b + <br> + + a + <div class="inline-block"> + <div class="container flex">flex</div> + </div> + b + <br> + + a + <div class="inline-block"> + <div class="container grid">grid</div> + </div> + b + +</body> +</html> |