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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/setting-style-attribute-update-inline-style.html

Issue 1384973004: Forward assigning to style on HTMLElement, SVGElement and CSSStyleRule to style.cssText (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add expectation files Created 5 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
OLDNEW
(Empty)
1 <script src="../../resources/testharness.js"></script>
2
3 <div style="background-color: red">Test</div>
4 <div style="background-color: red">Test</div>
5 <div style="background-color: red">Test</div>
6
7 <script>
8 var elements = document.querySelectorAll('div');
9 elements[0].style = '';
10 elements[1].style.backgroundColor = '';
11 elements[2].style = 'color:green';
12
13 assert_equals(elements[0].style.backgroundColor, "");
14 assert_equals(elements[1].style.backgroundColor, "");
15 assert_equals(elements[2].style.backgroundColor, "");
16 assert_equals(elements[2].style.color, "green");
17 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698