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

Side by Side Diff: sky/tests/lowlevel/style-specificity.sky

Issue 942553002: Make element.style["color"] work in Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Add back removeProperty Created 5 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 unified diff | Download patch
« no previous file with comments | « sky/tests/lowlevel/style-basic.sky ('k') | sky/tests/styles/border-parsing.sky » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <style> 2 <style>
3 #sandbox { color: red; } 3 #sandbox { color: red; }
4 .blue { color: blue; } 4 .blue { color: blue; }
5 </style> 5 </style>
6 <body> 6 <body>
7 <div id="sandbox" class="blue">This should be blue.</div> 7 <div id="sandbox" class="blue">This should be blue.</div>
8 <script> 8 <script>
9 import "../resources/third_party/unittest/unittest.dart"; 9 import "../resources/third_party/unittest/unittest.dart";
10 import "../resources/unit.dart"; 10 import "../resources/unit.dart";
11 11
12 import "dart:sky"; 12 import "dart:sky";
13 13
14 main() { 14 main() {
15 initUnit(); 15 initUnit();
16 16
17 test('should not exist', () { 17 test('should not exist', () {
18 var sandbox = document.getElementById("sandbox"); 18 var sandbox = document.getElementById("sandbox");
19 expect(window.getComputedStyle(sandbox).getPropertyValue("color"), 19 expect(window.getComputedStyle(sandbox)["color"],
20 equals("rgb(0, 0, 255)")); 20 equals("rgb(0, 0, 255)"));
21 }); 21 });
22 } 22 }
23 </script> 23 </script>
24 </body> 24 </body>
25 </html> 25 </html>
OLDNEW
« no previous file with comments | « sky/tests/lowlevel/style-basic.sky ('k') | sky/tests/styles/border-parsing.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698