author | Emilio Cobos Álvarez <emilio@crisal.io> |
Sat, 24 Jun 2017 07:51:16 +0200 | |
changeset 365940 | ef997eeca061000b9830d8bd31863743be41ccce |
parent 365939 | 461ec96ab235b521478ef2fc6bf88599ee1cdcdc |
child 365941 | 46e569782344795d0c1cdd2df93fe1ce560c5f94 |
push id | 32089 |
push user | cbook@mozilla.com |
push date | Mon, 26 Jun 2017 11:24:06 +0000 |
treeherder | mozilla-central@42593af5ec7e [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | bz |
bugs | 1364880 |
milestone | 56.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
testing/web-platform/tests/cssom/getComputedStyle-pseudo.html | file | annotate | diff | comparison | revisions |
--- a/testing/web-platform/tests/cssom/getComputedStyle-pseudo.html +++ b/testing/web-platform/tests/cssom/getComputedStyle-pseudo.html @@ -35,9 +35,18 @@ test(function() { }); }, "Resolution of width is correct for ::before and ::after pseudo-elements"); test(function() { var contents = document.getElementById('contents'); [":before", ":after"].forEach(function(pseudo) { assert_equals(getComputedStyle(contents, pseudo).width, "50px"); }); }, "Resolution of width is correct for ::before and ::after pseudo-elements of display: contents elements"); +test(function() { + var has_no_pseudos = document.body; + has_no_pseudos.style.position = "relative"; + [":before", ":after"].forEach(function(pseudo) { + assert_equals(getComputedStyle(has_no_pseudos, pseudo).position, "static", + "Nonexistent " + pseudo + " pseudo-element shouldn't claim to have " + + "the same style as the originating element"); + }); +}, "Resolution of nonexistent pseudo-element styles"); </script>