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-flexbox/svg-root-as-flex-item-006.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-flexbox/svg-root-as-flex-item-006.html')
-rw-r--r-- | testing/web-platform/tests/css/css-flexbox/svg-root-as-flex-item-006.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-flexbox/svg-root-as-flex-item-006.html b/testing/web-platform/tests/css/css-flexbox/svg-root-as-flex-item-006.html new file mode 100644 index 0000000000..2f7ef5c99e --- /dev/null +++ b/testing/web-platform/tests/css/css-flexbox/svg-root-as-flex-item-006.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> +<title>SVG root as flex item</title> +<link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org"> +<link rel="help" href="https://drafts.csswg.org/css-flexbox/#algo-main-item" title="Part E"> +<link rel="help" href="https://crbug.com/965672"> +<meta name="assert" + content="When SVG has aspect ratio and no intrinsic height its flex-basis is available width * ratio, not 150px, when in a column flexbox." /> + +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script src="/resources/check-layout-th.js"></script> + +The test passes if you see a 600x300 blue rectangle. + +<div style="display: flex; flex-direction: column; width: 600px;"> + <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 100" data-expected-bounding-client-rect-width=600 + data-expected-bounding-client-rect-height=300> + <rect x="0" y="0" width="200" height="100" fill="blue" /> + </svg> +</div> + +<script> + checkLayout('svg'); +</script> |