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

Side by Side 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, 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <style>
4 #p { color: red !important; }
5 </style>
6 <p id="p" style="color: green !important;">This text should be green.</p>
7 <script>
8 description("Style attribute !important wins over stylesheet !important");
9
10 shouldBeEqualToString("getComputedStyle(p).color", "rgb(0, 128, 0)");
11 </script>
OLDNEW
« 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