summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-content/content-none-table.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:47:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:47:29 +0000
commit0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch)
treea31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /testing/web-platform/tests/css/css-content/content-none-table.html
parentInitial commit. (diff)
downloadfirefox-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-content/content-none-table.html')
-rw-r--r--testing/web-platform/tests/css/css-content/content-none-table.html54
1 files changed, 54 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-content/content-none-table.html b/testing/web-platform/tests/css/css-content/content-none-table.html
new file mode 100644
index 0000000000..723e2e4146
--- /dev/null
+++ b/testing/web-platform/tests/css/css-content/content-none-table.html
@@ -0,0 +1,54 @@
+<!doctype html>
+<!--
+ Any copyright is dedicated to the Public Domain.
+ http://creativecommons.org/publicdomain/zero/1.0/
+-->
+<html><head>
+ <meta charset="utf-8">
+ <title>CSS Content: content:none on various table boxes</title>
+ <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1699964">
+ <link rel="help" href="https://drafts.csswg.org/css-content/#valdef-content-none">
+ <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1699964">
+ <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
+ <meta name="flags" content="ahem">
+ <meta name="assert" content="content:none should inhibit table children from having boxes. Its pseudos should not be affected though.">
+ <link rel="match" href="content-none-table-ref.html">
+ <style>
+html,body {
+ color:black; background-color:white; font:10px/1 Ahem; padding:0; margin:0;
+}
+body { margin-left: 3ch; }
+body * {
+ border:3px solid;
+}
+.after::after { content: 'A'; }
+.before::before { content: 'B'; }
+.c { content:none; }
+x-table { display:table }
+x-thead { display:table-row-group }
+x-tr { display:table-row }
+x-td { display:table-cell }
+ </style>
+</head>
+<body>
+
+<table><thead><tr><td class="c">FAIL<x>FAIL</x></td></tr></thead></table>
+<table><thead><tr class="c"><td>FAIL<x>FAIL</x></td></tr></thead></table>
+<table><thead class="c"><tr><td>FAIL<x>FAIL</x></td></tr></thead></table>
+<table class="c"><thead><tr><td>FAIL<x>FAIL</x></td></tr></thead></table>
+
+<table><thead><tr><td class="c">FAIL<x>FAIL</x></td><td>PASS</td></tr></thead></table>
+<table><thead><tr class="c"><td>FAIL<x>FAIL</x></td></tr><tr><td>PASS</td></tr></thead></table>
+<table><thead class="c"><tr><td>FAIL<x>FAIL</x></td></tr></thead><thead><tr><td>PASS</td></tr></thead></table>
+
+<x-table><x-thead><x-tr><x-td class="c">FAIL<x>FAIL</x></x-td></x-tr></x-thead></x-table>
+<x-table><x-thead><x-tr class="c"><x-td>FAIL<x>FAIL</x></x-td></x-tr></x-thead></x-table>
+<x-table><x-thead class="c"><x-tr><x-td>FAIL<x>FAIL</x></x-td></x-tr></x-thead></x-table>
+<x-table class="c"><x-thead><x-tr><x-td>FAIL<x>FAIL</x></x-td></x-tr></x-thead></x-table>
+
+<x-table><x-thead><x-tr><x-td class="c">FAIL<x>FAIL</x></x-td><x-td>PASS</x-td></x-tr></x-thead></x-table>
+<x-table><x-thead><x-tr class="c"><x-td>FAIL<x>FAIL</x></x-td></x-tr><x-tr><x-td>PASS</x-td></x-tr></x-thead></x-table>
+<x-table><x-thead class="c"><x-tr><x-td>FAIL<x>FAIL</x></x-td></x-tr></x-thead><x-thead><x-tr><x-td>PASS</x-td></x-tr></x-thead></x-table>
+
+</body>
+</html>