Skip to content

Commit

Permalink
Bug 1629304 [wpt PR 22877] - [cssom] Test that CSSStyleDeclaration.cs…
Browse files Browse the repository at this point in the history
…sText returns the empty string for computed style., a=testonly

Automatic update from web-platform-tests
[cssom] Test that CSSStyleDeclaration.cssText returns the empty string for computed style.

Test for w3c/csswg-drafts#1033 / w3c/csswg-drafts#4945.

--

wpt-commits: 3b7c757d4483ff89cce443b29a68b68c3defcd96
wpt-pr: 22877
  • Loading branch information
emilio authored and moz-wptsync-bot committed Apr 16, 2020
1 parent 2758d33 commit 7f73b4c
Showing 1 changed file with 12 additions and 0 deletions.
Expand Up @@ -97,6 +97,18 @@

}, 'invalid property does not appear');

// https://github.com/w3c/csswg-drafts/issues/1033
test(function() {
var elm = newElm();
var style = elm.style;

style.color = 'red';
style.unknown = 'unknown';
style.fontSize = '10pt';

assert_not_equals(getComputedStyle(elm).length, 0, "Should have a style");
assert_equals(getComputedStyle(elm).cssText, "", "cssText is empty");
}, 'cssText on computed style declaration returns the empty string');
</script>
</body>
</html>

0 comments on commit 7f73b4c

Please sign in to comment.