Update web-platform-tests to revision ea3cae9746c39e8192b91181044144c60d9388e8

This commit is contained in:
WPT Sync Bot 2019-03-12 21:33:06 -04:00
parent 9513544e91
commit b3f94b4330
194 changed files with 22476 additions and 15435 deletions

View file

@ -48,6 +48,7 @@
declaration.setProperty("margin-left", "15px");
declaration.setProperty("padding-left", "15px");
assert_equals(declaration.length, 2);
assert_equals(declaration.item(0), "margin-left");
assert_equals(declaration.item(1), "padding-left");
@ -57,7 +58,14 @@
var computedStyle = window.getComputedStyle(document.getElementById("test"));
assert_equals(computedStyle.getPropertyValue("margin-left"), "15px");
assert_equals(computedStyle.getPropertyValue("padding-left"), "15px");
}, "Calling CSSStyleDeclaration#setProperty");
test(function() {
declaration.setProperty("background-color", "red", "ImPoRtAnt");
assert_equals(declaration.getPropertyPriority("background-color"), "important");
}, "setProperty priority should be case-insensitive");
</script>
</body>
</html>