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/table-with-percent-intrinsic-width.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/table-with-percent-intrinsic-width.html')
-rw-r--r-- | testing/web-platform/tests/css/css-flexbox/table-with-percent-intrinsic-width.html | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-flexbox/table-with-percent-intrinsic-width.html b/testing/web-platform/tests/css/css-flexbox/table-with-percent-intrinsic-width.html new file mode 100644 index 0000000000..e0cd66dd84 --- /dev/null +++ b/testing/web-platform/tests/css/css-flexbox/table-with-percent-intrinsic-width.html @@ -0,0 +1,67 @@ +<!DOCTYPE html> +<html> +<head> +<title>CSS Flexbox: table descendants</title> +<link rel="help" href="https://drafts.csswg.org/css-flexbox/#flex-containers"> +<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1123100"> +<meta name="assert" content="Percentage sized flex table does not use percent for intrinsic, or layout size."> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script src="/resources/check-layout-th.js"></script> +<style> + .container { + display:flex; + width: 200px; + } + .left { + width:200px; + background:yellow; + } + main table { + border-spacing: 0; + background: red; + } + .spacer { + display:inline-block; + width: 10px; + height: 10px; + background: green; + } + main td { + padding: 0; + } +</style> +</head> +<body> +<main> +<div class="container"> + <div class="left"> + </div> + <table style="width:100%" data-expected-width=100> + <td data-expected-width=20><div class="spacer"></div><div class="spacer"></div></td> + <td data-expected-width=20><div class="spacer"></div><div class="spacer"></div></td> + <td data-expected-width=20><div class="spacer"></div><div class="spacer"></div></td> + <td data-expected-width=20><div class="spacer"></div><div class="spacer"></div></td> + <td data-expected-width=20><div class="spacer"></div><div class="spacer"></div></td> + </table> +</div> + +<div class="container"> + <div class="left"> + </div> + <table style="width:70%; flex-basis: 200px" data-expected-width=100> + <td data-expected-width=20><div class="spacer"></div><div class="spacer"></div></td> + <td data-expected-width=20><div class="spacer"></div><div class="spacer"></div></td> + <td data-expected-width=20><div class="spacer"></div><div class="spacer"></div></td> + <td data-expected-width=20><div class="spacer"></div><div class="spacer"></div></td> + <td data-expected-width=20><div class="spacer"></div><div class="spacer"></div></td> + </table> +</div> +</main> +<div id=log></div> + +<script> + checkLayout("table"); +</script> +</body> +</html> |