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

Side by Side Diff: LayoutTests/fast/images/style-access-during-imageChanged-style-freeze.html

Issue 130193003: Make the second argument to Element.setAttribute non-optional (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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
OLDNEW
1 <style> 1 <style>
2 #target[foo] { color: green; } 2 #target[foo] { color: green; }
3 </style> 3 </style>
4 <div id="container"> 4 <div id="container">
5 <div> 5 <div>
6 <img src="x-invalid:" alt="Some wide text"> 6 <img src="x-invalid:" alt="Some wide text">
7 <div id="target"> 7 <div id="target">
8 This should be green, with a wide broken image above. 8 This should be green, with a wide broken image above.
9 </div> 9 </div>
10 </div> 10 </div>
11 </div> 11 </div>
12 <div id="result"></div> 12 <div id="result"></div>
13 <script> 13 <script>
14 onload = function() { 14 onload = function() {
15 if (window.testRunner) 15 if (window.testRunner)
16 testRunner.dumpAsText(); 16 testRunner.dumpAsText();
17 17
18 document.body.offsetTop; 18 document.body.offsetTop;
19 var container = document.getElementById("container"); 19 var container = document.getElementById("container");
20 container.style.display = "none"; 20 container.style.display = "none";
21 document.body.offsetTop; 21 document.body.offsetTop;
22 container.style.removeProperty("display"); 22 container.style.removeProperty("display");
23 document.body.offsetTop; 23 document.body.offsetTop;
24 var target = document.getElementById("target"); 24 var target = document.getElementById("target");
25 target.setAttribute("foo"); 25 target.setAttribute("foo", "");
26 document.body.offsetTop; 26 document.body.offsetTop;
27 var result = document.getElementById("result"); 27 var result = document.getElementById("result");
28 result.innerText = getComputedStyle(target).color === "rgb(0, 128, 0)" ? "PASS" : "FAIL"; 28 result.innerText = getComputedStyle(target).color === "rgb(0, 128, 0)" ? "PASS" : "FAIL";
29 } 29 }
30 </script> 30 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698