Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
97fd66a
commit 3f44193
Showing
7 changed files
with
132 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>:last-child test</title> | ||
<style type="text/css"> | ||
html:last-child { background: red; } | ||
html { background: yellow;} | ||
|
||
p { width: 20px; height: 20px; background: orange; float: left; margin-left: 10px; } | ||
div { clear: both; } | ||
#p1, #p2, #p3 { background: red; } | ||
#d1 > *:last-child { background: green } | ||
#d2 > *:last-child { background: green } | ||
#d3 > *:last-child { background: green } | ||
#p4 { background: green; } | ||
#d4 > *:last-child { background: red } | ||
</style> | ||
</head> | ||
<body> | ||
<div id="d1"><p> </p><p id="p1"> </p></div> | ||
<div id="d2"><p> </p><p id="p2"> </p> </div> | ||
<div id="d3"><p> </p><p id="p3"> </p><!-- comment --></div> | ||
<div id="d4"><p> </p><p id="p4"> </p><span> </span></div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>:last-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> </p><p id="p1"> </p></div> | ||
<div id="d2"><p> </p><p id="p2"> </p> </div> | ||
<div id="d3"><p> </p><p id="p3"> </p><!-- comment --></div> | ||
<div id="d4"><p> </p><p id="p4"> </p><span> </span></div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>:only-child test</title> | ||
<style type="text/css"> | ||
html:only-child { background: red; } | ||
html { background: yellow;} | ||
|
||
p { width: 20px; height: 20px; background: orange; float: left; margin-left: 10px; } | ||
div { clear: both; } | ||
#d1 > p, #d2 > p, #d3 > p, #d4 > p { background: red; } | ||
#d1 > *:only-child { background: green } | ||
#d2 > *:only-child { background: green } | ||
#d3 > *:only-child { background: green } | ||
#d4 > *:only-child { background: green } | ||
#p5, #p6 { background: green; } | ||
#d5 > *:only-child { background: red } | ||
#d6 > *:only-child { background: red } | ||
</style> | ||
</head> | ||
<body> | ||
<div id="d1"><p> </p></div> | ||
<div id="d2"> <p> </p></div> | ||
<div id="d3"><p> </p><!-- comment --></div> | ||
<div id="d4"><!-- comment --><p> </p></div> | ||
<div id="d5"><p id="p5"> </p><span> </span></div> | ||
<div id="d6"><span> </span><p id="p6"> </p></div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>:only-child test</title> | ||
<style type="text/css"> | ||
html:only-child { background: red; } | ||
html { background: yellow;} | ||
|
||
p { width: 20px; height: 20px; background: orange; float: left; margin-left: 10px; } | ||
div { clear: both; } | ||
#d1 > p, #d2 > p, #d3 > p, #d4 > p { background: green; } | ||
#p5, #p6 { background: green; } | ||
</style> | ||
</head> | ||
<body> | ||
<div id="d1"><p> </p></div> | ||
<div id="d2"> <p> </p></div> | ||
<div id="d3"><p> </p><!-- comment --></div> | ||
<div id="d4"><!-- comment --><p> </p></div> | ||
<div id="d5"><p id="p5"> </p><span> </span></div> | ||
<div id="d6"><span> </span><p id="p6"> </p></div> | ||
</body> | ||
</html> |
3f44193
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from SimonSapin
at SimonSapin@3f44193
3f44193
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging SimonSapin/servo/last-child = 3f44193 into auto
3f44193
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SimonSapin/servo/last-child = 3f44193 merged ok, testing candidate = df7ec26
3f44193
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://servo-buildbot.pub.build.mozilla.org/builders/linux/builds/654
success: http://servo-buildbot.pub.build.mozilla.org/builders/mac/builds/609
3f44193
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = df7ec26