Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Unified Diff: LayoutTests/fast/css/shorthand-priority.html

Issue 141243006: Make element.style.setProperty override earlier property values (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Set correct parser mode Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/css/shorthand-priority.html
diff --git a/LayoutTests/fast/css/shorthand-priority.html b/LayoutTests/fast/css/shorthand-priority.html
index 71920d1e4e6c309d643b093bae357d2c40ae3f1a..a7a0d115982e034ed4023cb2c9bbe1d6c90b3732 100644
--- a/LayoutTests/fast/css/shorthand-priority.html
+++ b/LayoutTests/fast/css/shorthand-priority.html
@@ -18,6 +18,9 @@ e = document.getElementById('test');
// Sanity check.
e.style.setProperty("border-bottom-style", "solid", "!important");
+shouldBeNull("e.style.getPropertyValue('border-bottom-style')");
+shouldBe("e.style.getPropertyPriority('border-bottom-style')", "''");
+e.style.setProperty("border-bottom-style", "solid", "important");
shouldBe("e.style.getPropertyValue('border-bottom-style')", "'solid'");
shouldBe("e.style.getPropertyPriority('border-bottom-style')", "'important'");
@@ -27,7 +30,7 @@ shouldBe("e.style.getPropertyValue('border')", "'20px solid green'");
shouldBe("e.style.getPropertyPriority('border')", "''");
e.style.border = "";
-e.style.setProperty("border", "20px solid green", "!important");
+e.style.setProperty("border", "20px solid green", "imporTANT");
shouldBe("e.style.getPropertyValue('border')", "'20px solid green'");
shouldBe("e.style.getPropertyPriority('border')", "'important'");

Powered by Google App Engine
This is Rietveld 408576698