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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/form-radio-img-node-list.html

Issue 2560733002: SELECT element: Fix a bug that intrinsic width is too narrow in less-than-100% zoom level. (Closed)
Patch Set: PartScrollbarVerticalTrack -> PartScrollbarDownArrow to fix Android crash Created 4 years 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
1 <!doctype html> 1 <!doctype html>
2 <script src="../../resources/js-test.js"></script> 2 <script src="../../resources/js-test.js"></script>
3 <div id="container">
3 <img name=outside1></img> 4 <img name=outside1></img>
4 <form id="f1"> 5 <form id="f1">
5 <button id=n1></button> 6 <button id=n1></button>
6 <keygen id=n1></keygen> 7 <keygen id=n1></keygen>
7 <output id=n1></output> 8 <output id=n1></output>
8 <object name=n1></object> 9 <object name=n1></object>
9 <select name=n1><option id=n1></option></select> 10 <select name=n1><option id=n1></option></select>
10 <input name=n1 type=hidden> 11 <input name=n1 type=hidden>
11 <input name=n1 type=image> 12 <input name=n1 type=image>
12 <input name=n1 type=text> 13 <input name=n1 type=text>
13 <input name=n2 type=image> 14 <input name=n2 type=image>
14 <img name=n2></img> 15 <img name=n2></img>
15 <img id=n2></img> 16 <img id=n2></img>
16 <img id=n3></img> 17 <img id=n3></img>
17 </form> 18 </form>
18 <!-- The img element isn't 'reassociatable'; add @form to verify it is so. --> 19 <!-- The img element isn't 'reassociatable'; add @form to verify it is so. -->
19 <img name=n2 form=f1></img> 20 <img name=n2 form=f1></img>
21 </div>
20 <script> 22 <script>
21 description("Test RadioNodeLists returned by the HTMLFormElement named-getter.") ; 23 description("Test RadioNodeLists returned by the HTMLFormElement named-getter.") ;
22 24
23 var radioNodeList; 25 var radioNodeList;
24 26
25 function shouldBeImgElement(n) { 27 function shouldBeImgElement(n) {
26 shouldBeTrue("radioNodeList[" + n + "] instanceof HTMLImageElement"); 28 shouldBeTrue("radioNodeList[" + n + "] instanceof HTMLImageElement");
27 } 29 }
28 30
29 function verifyLength(n) { 31 function verifyLength(n) {
(...skipping 10 matching lines...) Expand all
40 42
41 var button = document.createElement("button"); 43 var button = document.createElement("button");
42 button.name = "n2"; 44 button.name = "n2";
43 form.appendChild(button); 45 form.appendChild(button);
44 verifyLength(2); 46 verifyLength(2);
45 47
46 var img = document.createElement("img"); 48 var img = document.createElement("img");
47 img.name = "n2"; 49 img.name = "n2";
48 form.appendChild(img); 50 form.appendChild(img);
49 verifyLength(3); 51 verifyLength(3);
52
53 document.querySelector("#container").remove();
50 </script> 54 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698