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>
This commit is contained in:
Oriol Brufau 2025-01-24 07:44:26 -08:00 committed by GitHub
parent 8976f2420c
commit 56d55d48d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 30 deletions

View file

@ -105310,7 +105310,7 @@
},
"tables": {
"anonymous-table-box-width-001.xht": [
"15bd4893650b36f953d2f84e2c42c5a280dcd625",
"7865f86d72142c2b9e6b9b82c50542714288d3b0",
[
null,
[

View file

@ -1,2 +0,0 @@
[anonymous-table-box-width-001.xht]
expected: FAIL

View file

@ -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;}