diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/css/css-align/baseline-of-scrollable-2.html | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-align/baseline-of-scrollable-2.html')
-rw-r--r-- | testing/web-platform/tests/css/css-align/baseline-of-scrollable-2.html | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-align/baseline-of-scrollable-2.html b/testing/web-platform/tests/css/css-align/baseline-of-scrollable-2.html new file mode 100644 index 0000000000..5511d6d68a --- /dev/null +++ b/testing/web-platform/tests/css/css-align/baseline-of-scrollable-2.html @@ -0,0 +1,70 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="UTF-8"> + <title> + CSS Test: baseline of scrollable "details" element should be derived + 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-2-ref.html"> + <style> + .overflow-ib { + overflow: hidden; + display: inline-block; + } + + details { + height: 40px; + width: 100px; + /* Transparent text & "details-arrow", so that it's easier to make + a simple reference case: */ + color: transparent; + border-color: gray; + border-style: solid; + border-width: 2px 3px 4px 5px; + padding: 4px 5px 7px 8px; + margin: 1px 2px 3px 4px; + } +</style> +</head> +<body> + Test passes if the a/b text aligns with the bottom margin-edge of the + gray rects. + <br><br> + + a + <details class="overflow-ib"> + c<br>d<br>e<br>f<br>g + </details> + b + <br> + + a + <details class="overflow-ib" open> + c<br>d<br>e<br>f<br>g + </details> + b + <br> + + a + <div class="overflow-ib"> + <details> + c<br>d<br>e<br>f<br>g + </details> + </div> + b + <br> + + a + <div class="overflow-ib"> + <details open> + c<br>d<br>e<br>f<br>g + </details> + </div> + b + +</body> +</html> |