mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
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:
parent
8976f2420c
commit
56d55d48d9
3 changed files with 10 additions and 30 deletions
2
tests/wpt/meta/MANIFEST.json
vendored
2
tests/wpt/meta/MANIFEST.json
vendored
|
@ -105310,7 +105310,7 @@
|
||||||
},
|
},
|
||||||
"tables": {
|
"tables": {
|
||||||
"anonymous-table-box-width-001.xht": [
|
"anonymous-table-box-width-001.xht": [
|
||||||
"15bd4893650b36f953d2f84e2c42c5a280dcd625",
|
"7865f86d72142c2b9e6b9b82c50542714288d3b0",
|
||||||
[
|
[
|
||||||
null,
|
null,
|
||||||
[
|
[
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
[anonymous-table-box-width-001.xht]
|
|
||||||
expected: FAIL
|
|
|
@ -15,35 +15,17 @@
|
||||||
<meta content="Anonymous table box should be as wide as max(table-width, table-caption-min-intrinsic-width)." name="assert" />
|
<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[
|
<style type="text/css"><![CDATA[
|
||||||
p
|
div#overlapped-red {
|
||||||
{
|
background-color: red;
|
||||||
font: 1em/1.25 serif;
|
height: 100px;
|
||||||
margin: 1em 0;
|
position: absolute;
|
||||||
|
width: 100px;
|
||||||
|
z-index: -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
strong {vertical-align: bottom;}
|
table#overlapping-green {
|
||||||
|
border-bottom: green solid 100px;
|
||||||
div#overlapped-red
|
border-spacing: 0;
|
||||||
{
|
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
caption {width: 100px;}
|
caption {width: 100px;}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue