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

Side by Side Diff: LayoutTests/fast/css/style-sharing-type-and-readonly.html

Issue 27033011: Fix readonly and type attribute selector incorrect style sharing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix for svg Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/css/style-sharing-type-and-readonly-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2
3 <script src="../js/resources/js-test-pre.js"></script>
4
5 <style>
6 div[readonly="red"] {
7 color: red;
8 }
9 div[type="blue"] {
10 color: blue;
11 }
12 </style>
13
14 <div black>Black</div>
15 <div readonly="red">Red</div>
16 <div type="blue">Blue</div>
17
18 <script>
19 description("Make sure special case style sharing for readonly and type attribut es works");
20
21 shouldBe('getComputedStyle(document.querySelector("[black]")).color','"rgb(0, 0, 0)"');
22 shouldBe('getComputedStyle(document.querySelector("[readonly]")).color','"rgb(25 5, 0, 0)"');
23 shouldBe('getComputedStyle(document.querySelector("[type]")).color','"rgb(0, 0, 255)"');
24 </script>
25
26 <script src="../js/resources/js-test-post.js"></script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/style-sharing-type-and-readonly-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698