mirror of
https://github.com/servo/servo.git
synced 2025-08-18 03:45:33 +01:00
Move first_child_pseudo_a.html to wpt reftests.
This commit is contained in:
parent
cee4879dd1
commit
83439dc1df
4 changed files with 25 additions and 1 deletions
|
@ -887,6 +887,18 @@
|
|||
"url": "/_mozilla/css/filter_sepia_a.html"
|
||||
}
|
||||
],
|
||||
"css/first_child_pseudo_a.html": [
|
||||
{
|
||||
"path": "css/first_child_pseudo_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/first_child_pseudo_b.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/first_child_pseudo_a.html"
|
||||
}
|
||||
],
|
||||
"css/first_of_type_pseudo_a.html": [
|
||||
{
|
||||
"path": "css/first_of_type_pseudo_a.html",
|
||||
|
@ -5172,6 +5184,18 @@
|
|||
"url": "/_mozilla/css/filter_sepia_a.html"
|
||||
}
|
||||
],
|
||||
"css/first_child_pseudo_a.html": [
|
||||
{
|
||||
"path": "css/first_child_pseudo_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/first_child_pseudo_b.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/first_child_pseudo_a.html"
|
||||
}
|
||||
],
|
||||
"css/first_of_type_pseudo_a.html": [
|
||||
{
|
||||
"path": "css/first_of_type_pseudo_a.html",
|
||||
|
|
26
tests/wpt/mozilla/tests/css/first_child_pseudo_a.html
Normal file
26
tests/wpt/mozilla/tests/css/first_child_pseudo_a.html
Normal file
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='first_child_pseudo_b.html'>
|
||||
<title>:first-child test</title>
|
||||
<style type="text/css">
|
||||
html { background: red;}
|
||||
html:first-child { background: yellow; }
|
||||
|
||||
p { width: 20px; height: 20px; background: orange; float: left; margin-left: 10px; }
|
||||
div { clear: both; }
|
||||
#p1, #p2, #p3 { background: red; }
|
||||
#d1 > *:first-child { background: green }
|
||||
#d2 > *:first-child { background: green }
|
||||
#d3 > *:first-child { background: green }
|
||||
#p4 { background: green; }
|
||||
#d4 > *:first-child { background: red }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="d1"><p id="p1"> </p><p> </p></div>
|
||||
<div id="d2"> <p id="p2"> </p><p> </p></div>
|
||||
<div id="d3"><!-- comment --><p id="p3"> </p><p> </p></div>
|
||||
<div id="d4"><span> </span><p id="p4"> </p><p> </p></div>
|
||||
</body>
|
||||
</html>
|
22
tests/wpt/mozilla/tests/css/first_child_pseudo_b.html
Normal file
22
tests/wpt/mozilla/tests/css/first_child_pseudo_b.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>:first-child test</title>
|
||||
<style type="text/css">
|
||||
html { background: yellow;}
|
||||
|
||||
p { width: 20px; height: 20px; background: orange; float: left; margin-left: 10px; }
|
||||
div { clear: both; }
|
||||
#p1 { background: green; }
|
||||
#p2 { background: green; }
|
||||
#p3 { background: green; }
|
||||
#p4 { background: green; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="d1"><p id="p1"> </p><p> </p></div>
|
||||
<div id="d2"> <p id="p2"> </p><p> </p></div>
|
||||
<div id="d3"><!-- comment --><p id="p3"> </p><p> </p></div>
|
||||
<div id="d4"><span> </span><p id="p4"> </p><p> </p></div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue