getComputedStyle() uses the CSS parser for pseudo-elements
diff --git a/css/cssom/getComputedStyle-pseudo.html b/css/cssom/getComputedStyle-pseudo.html
index 59c7db9..40d35cc 100644
--- a/css/cssom/getComputedStyle-pseudo.html
+++ b/css/cssom/getComputedStyle-pseudo.html
@@ -79,6 +79,12 @@
});
}, "Resolution of width is correct for ::before and ::after pseudo-elements");
test(function() {
+ const div = document.getElementById('test');
+ [":bef\\oRE", "::\\000041fter"].forEach(pseudo => {
+ assert_equals(getComputedStyle(div, pseudo).width, "50px");
+ });
+}, "Pseudo-elements can use the full range of CSS syntax");
+test(function() {
var contents = document.getElementById('contents');
[":before", ":after"].forEach(function(pseudo) {
assert_equals(getComputedStyle(contents, pseudo).width, "50px");