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-contain/contain-layout-suppress-baseline-001.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-contain/contain-layout-suppress-baseline-001.html')
-rw-r--r-- | testing/web-platform/tests/css/css-contain/contain-layout-suppress-baseline-001.html | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-contain/contain-layout-suppress-baseline-001.html b/testing/web-platform/tests/css/css-contain/contain-layout-suppress-baseline-001.html new file mode 100644 index 0000000000..b023cfdf96 --- /dev/null +++ b/testing/web-platform/tests/css/css-contain/contain-layout-suppress-baseline-001.html @@ -0,0 +1,57 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="utf-8"> + <title>CSS Test: 'contain: layout' should make elements behave as if they have no baseline</title> + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> + <link rel="help" href="https://drafts.csswg.org/css-contain/#containment-layout"> + <link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#valdef-align-items-baseline"> + <link rel="match" href="contain-layout-suppress-baseline-001-ref.html"> + <style> + .flexBaselineCheck { + display: flex; + border: 1px solid black; + height: 100px; + } + .flexBaselineCheck > * { + contain: layout; + border: 2px solid teal; + align-self: baseline; + } + canvas { + background: purple; + width: 20px; + height: 80px; + box-sizing: border-box; + } + .flex { + display: flex; + } + .grid { + display: grid; + } + .multicol { + column-count: 2; + } + </style> +</head> +<body> + <div class="flexBaselineCheck"> + <!-- This canvas just exists to establish a precise, far-down baseline + alignment position: --> + <canvas></canvas> + <!-- "contain:layout" should force all the elements below to behave as if + they have no baseline. That means they all should *synthesize* a + baseline from their border-box edge, in order to participate in flex + item baseline alignment (to honor the outer flex container's + "align-items:baseline"). So, the expectation here is that all of these + elements' border-bottom edges should be aligned. --> + <div>block</div> + <fieldset><legend>leg</legend>fieldset</fieldset> + <div class="flex">flex</div> + <div class="grid">grid</div> + <div class="multicol">multi<br>col</div> + <details open><summary>summary</summary>details</details> + </div> +</body> +</html> |