Update web-platform-tests to revision be5419e845d39089ba6dc338c1bd0fa279108317

This commit is contained in:
Josh Matthews 2018-01-04 13:44:24 -05:00
parent aa199307c8
commit 2b6f573eb5
3440 changed files with 109438 additions and 41750 deletions

View file

@ -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>