aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOriol Brufau <obrufau@igalia.com>2025-01-24 07:44:26 -0800
committerGitHub <noreply@github.com>2025-01-24 15:44:26 +0000
commit56d55d48d94deebd3967df33d689cdd3481ec433 (patch)
tree68138d827900377d93e78120e29241b2fe43569d
parent8976f2420c45e2d4c0bc8840bddd59dcd61277e1 (diff)
downloadservo-56d55d48d94deebd3967df33d689cdd3481ec433.tar.gz
servo-56d55d48d94deebd3967df33d689cdd3481ec433.zip
wpt: Fix `/css/CSS2/tables/anonymous-table-box-width-001.xht` (#35162)
This test was failing on all browsers because before the paragraph "Test passes if there is a filled green square and *no red*" was getting styled with some unnecessary CSS which is not present in the reference. Removing this CSS which is irrelevant to the actual table being tested fixes the problem. Signed-off-by: Oriol Brufau <obrufau@igalia.com>
-rw-r--r--tests/wpt/meta/MANIFEST.json2
-rw-r--r--tests/wpt/meta/css/CSS2/tables/anonymous-table-box-width-001.xht.ini2
-rw-r--r--tests/wpt/tests/css/CSS2/tables/anonymous-table-box-width-001.xht36
3 files changed, 10 insertions, 30 deletions
diff --git a/tests/wpt/meta/MANIFEST.json b/tests/wpt/meta/MANIFEST.json
index 44ffe0105ec..a49a3b9fa3a 100644
--- a/tests/wpt/meta/MANIFEST.json
+++ b/tests/wpt/meta/MANIFEST.json
@@ -105310,7 +105310,7 @@
},
"tables": {
"anonymous-table-box-width-001.xht": [
- "15bd4893650b36f953d2f84e2c42c5a280dcd625",
+ "7865f86d72142c2b9e6b9b82c50542714288d3b0",
[
null,
[
diff --git a/tests/wpt/meta/css/CSS2/tables/anonymous-table-box-width-001.xht.ini b/tests/wpt/meta/css/CSS2/tables/anonymous-table-box-width-001.xht.ini
deleted file mode 100644
index 28346b3de29..00000000000
--- a/tests/wpt/meta/css/CSS2/tables/anonymous-table-box-width-001.xht.ini
+++ /dev/null
@@ -1,2 +0,0 @@
-[anonymous-table-box-width-001.xht]
- expected: FAIL
diff --git a/tests/wpt/tests/css/CSS2/tables/anonymous-table-box-width-001.xht b/tests/wpt/tests/css/CSS2/tables/anonymous-table-box-width-001.xht
index 15bd4893650..7865f86d721 100644
--- a/tests/wpt/tests/css/CSS2/tables/anonymous-table-box-width-001.xht
+++ b/tests/wpt/tests/css/CSS2/tables/anonymous-table-box-width-001.xht
@@ -15,35 +15,17 @@
<meta content="Anonymous table box should be as wide as max(table-width, table-caption-min-intrinsic-width)." name="assert" />
<style type="text/css"><![CDATA[
- p
- {
- font: 1em/1.25 serif;
- margin: 1em 0;
+ div#overlapped-red {
+ background-color: red;
+ height: 100px;
+ position: absolute;
+ width: 100px;
+ z-index: -1;
}
- strong {vertical-align: bottom;}
-
- div#overlapped-red
- {
- background-color: red;
- height: 100px;
- position: absolute;
- top: 3.25em;
- /*
- 16px : max(8px, 16px): maximum of body's margin-top and p's margin-top
- + 20px : p's line-height
- + 16px : p's margin-bottom
- ---------
- 52px == 3.25em
- */
- width: 100px;
- z-index: -1;
- }
-
- table#overlapping-green
- {
- border-bottom: green solid 100px;
- border-spacing: 0;
+ table#overlapping-green {
+ border-bottom: green solid 100px;
+ border-spacing: 0;
}
caption {width: 100px;}