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

Unified Diff: LayoutTests/fast/css/style-and-stylesheet-important.html

Issue 1322753006: Add inline style in the element's scope. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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/style-and-stylesheet-important.html
diff --git a/LayoutTests/fast/css/style-and-stylesheet-important.html b/LayoutTests/fast/css/style-and-stylesheet-important.html
new file mode 100644
index 0000000000000000000000000000000000000000..57396e3e60aee14010cf1827519ad3a44752f5a5
--- /dev/null
+++ b/LayoutTests/fast/css/style-and-stylesheet-important.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<style>
+ #p { color: red !important; }
+</style>
+<p id="p" style="color: green !important;">This text should be green.</p>
+<script>
+description("Style attribute !important wins over stylesheet !important");
+
+shouldBeEqualToString("getComputedStyle(p).color", "rgb(0, 128, 0)");
+</script>
« no previous file with comments | « LayoutTests/fast/css/deep-cascade-order-expected.txt ('k') | LayoutTests/fast/css/style-and-stylesheet-important-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698