mirror of
https://github.com/servo/servo.git
synced 2025-08-28 16:48:22 +01:00
Update web-platform-tests to revision be5419e845d39089ba6dc338c1bd0fa279108317
This commit is contained in:
parent
aa199307c8
commit
2b6f573eb5
3440 changed files with 109438 additions and 41750 deletions
|
@ -38,12 +38,19 @@
|
|||
#flex-no-pseudo {
|
||||
display: flex;
|
||||
}
|
||||
#contents-pseudos::before,
|
||||
#contents-pseudos::after {
|
||||
display: contents;
|
||||
content: "foo";
|
||||
position: absolute;
|
||||
}
|
||||
</style>
|
||||
<div id="test">
|
||||
<div id="contents"></div>
|
||||
<div id="none"></div>
|
||||
<div id="flex"></div>
|
||||
<div id="flex-no-pseudo"></div>
|
||||
<div id="contents-pseudos"></div>
|
||||
</div>
|
||||
<script>
|
||||
test(function() {
|
||||
|
@ -91,4 +98,15 @@ test(function() {
|
|||
"Pseudo-styles of display: flex elements should get blockified");
|
||||
});
|
||||
}, "Item-based blockification of nonexistent pseudo-elements");
|
||||
test(function() {
|
||||
var contentsPseudos = document.getElementById('contents-pseudos');
|
||||
[":before", ":after"].forEach(function(pseudo) {
|
||||
assert_equals(getComputedStyle(contentsPseudos, pseudo).display, "contents",
|
||||
"display: contents in " + pseudo + " should get reflected on CSSOM");
|
||||
assert_equals(getComputedStyle(contentsPseudos, pseudo).width, "auto",
|
||||
pseudo + " with display: contents should have no box");
|
||||
assert_equals(getComputedStyle(contentsPseudos, pseudo).position, "absolute",
|
||||
"display: contents in " + pseudo + " should reflect other non-inherited properties in CSSOM");
|
||||
});
|
||||
}, "display: contents on pseudo-elements");
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue