mirror of
https://github.com/servo/servo.git
synced 2025-08-12 17:05:33 +01:00
Update web-platform-tests to revision 4dbc8a0d7b1b1c032aaddc2579ec7239ad565127
This commit is contained in:
parent
40f1e188d0
commit
d1e28c482e
329 changed files with 5366 additions and 1699 deletions
|
@ -7,8 +7,14 @@
|
|||
body { background: white; }
|
||||
div {
|
||||
padding-left: 50px;
|
||||
font-family: Ahem;
|
||||
}
|
||||
span {
|
||||
display: inline-block;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background: green;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div>X</div>
|
||||
<p>Test passes if there is a green square below and no red.
|
||||
<div><span></span></div>
|
||||
|
|
|
@ -9,17 +9,32 @@
|
|||
<meta name="assert" content="Percentages in text-indent refer to width of the element's content box">
|
||||
<style>
|
||||
body { background: white; }
|
||||
section { position: absolute; }
|
||||
section, div {
|
||||
border-right: 10px solid white;
|
||||
margin-right: 10px;
|
||||
padding-right: 10px;
|
||||
font-family: Ahem;
|
||||
}
|
||||
div {
|
||||
box-sizing: border-box;
|
||||
width: 120px;
|
||||
}
|
||||
span {
|
||||
display: inline-block;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background: green;
|
||||
}
|
||||
.ref span {
|
||||
background: red;
|
||||
/* the next two lines are to avoid antialiasing artifacts causing a tiny about of red to be visible */
|
||||
box-sizing: border-box;
|
||||
border: 1px solid white;
|
||||
}
|
||||
.test div { text-indent: 50%; }
|
||||
.ref div { text-indent: 50px; }
|
||||
</style>
|
||||
|
||||
<section class=test><div>X</div></section>
|
||||
<p>Test passes if there is a green square below and no red.
|
||||
<section class=ref><div><span></span></div></section>
|
||||
<section class=test><div><span></span></div></section>
|
||||
|
|
|
@ -9,17 +9,32 @@
|
|||
<meta name="assert" content="Percentages in text-indent refer to width of the element's content box">
|
||||
<style>
|
||||
body { background: white; }
|
||||
section { position: absolute; }
|
||||
section, div {
|
||||
border-right: 10px solid white;
|
||||
margin-right: 10px;
|
||||
padding-right: 10px;
|
||||
font-family: Ahem;
|
||||
}
|
||||
div {
|
||||
box-sizing: border-box;
|
||||
width: 120px;
|
||||
}
|
||||
span {
|
||||
display: inline-block;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background: green;
|
||||
}
|
||||
.ref span {
|
||||
background: red;
|
||||
/* the next two lines are to avoid antialiasing artifacts causing a tiny about of red to be visible */
|
||||
box-sizing: border-box;
|
||||
border: 1px solid white;
|
||||
}
|
||||
.test div { text-indent: 50%; overflow: hidden; } /* overflow:hidden should not make any difference, but it does in some browsers */
|
||||
.ref div { text-indent: 50px; }
|
||||
</style>
|
||||
|
||||
<section class=test><div>X</div></section>
|
||||
<p>Test passes if there is a green square below and no red.
|
||||
<section class=ref><div><span></span></div></section>
|
||||
<section class=test><div><span></span></div></section>
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
<meta name="assert" content="Percentages in text-indent refer to width of the element's content box, when used in a calc expression">
|
||||
<style>
|
||||
body { background: white; }
|
||||
section { position: absolute; }
|
||||
section, div {
|
||||
border-right: 10px solid white;
|
||||
margin-right: 10px;
|
||||
|
@ -19,7 +20,22 @@ div {
|
|||
box-sizing: border-box;
|
||||
width: 120px;
|
||||
}
|
||||
span {
|
||||
display: inline-block;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background: green;
|
||||
}
|
||||
.ref span {
|
||||
background: red;
|
||||
/* the next two lines are to avoid antialiasing artifacts causing a tiny about of red to be visible */
|
||||
box-sizing: border-box;
|
||||
border: 1px solid white;
|
||||
}
|
||||
.test div { text-indent: calc(25px + 25%); }
|
||||
.ref div { text-indent: 50px; }
|
||||
</style>
|
||||
|
||||
<section class=test><div>X</div></section>
|
||||
<p>Test passes if there is a green square below and no red.
|
||||
<section class=ref><div><span></span></div></section>
|
||||
<section class=test><div><span></span></div></section>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue