summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-tables/fractional-percent-width.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/css/css-tables/fractional-percent-width.html
parentInitial commit. (diff)
downloadfirefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz
firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-tables/fractional-percent-width.html')
-rw-r--r--testing/web-platform/tests/css/css-tables/fractional-percent-width.html58
1 files changed, 58 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-tables/fractional-percent-width.html b/testing/web-platform/tests/css/css-tables/fractional-percent-width.html
new file mode 100644
index 0000000000..cd032ebcc1
--- /dev/null
+++ b/testing/web-platform/tests/css/css-tables/fractional-percent-width.html
@@ -0,0 +1,58 @@
+<!DOCTYPE html>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/resources/check-layout-th.js"></script>
+<link rel="author" title="Jihwan Marc Kim" href="mailto:bluewhale.marc@gmail.com" />
+<link rel="help" href="https://crbug.com/1283025" />
+<meta name="flags" content="" />
+<meta name="assert" content="percent lengths of fractional td width should rendered correctly" />
+<style>
+ main div {
+ position: relative;
+ border: 1px solid black;
+ width: 400px;
+ }
+ .cell {
+ background-color: skyblue;
+ height: 20px;
+ }
+</style>
+<p>
+ Tests that percent lengths of fractional td width should rendered correctly
+ even it is smaller than 1.
+</p>
+
+<hr />
+<output id="log"></output>
+<main>
+ <div>
+ <table width="100%">
+ <tbody>
+ <tr>
+ <td class="cell" width="0.5%" data-expected-client-width="2"></td>
+ <td>0.5%</td>
+ </tr>
+ </tbody>
+ </table>
+ <table width="100%">
+ <tbody>
+ <tr>
+ <td class="cell" width="1%" data-expected-client-width="4"></td>
+ <td>1%</td>
+ </tr>
+ </tbody>
+ </table>
+ <table width="100%">
+ <tbody>
+ <tr>
+ <td class="cell" width="5%" data-expected-client-width="20"></td>
+ <td>5%</td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+</main>
+<script>
+ checkLayout(".cell");
+</script>
+