OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 progress { | 5 progress { |
6 -webkit-appearance: none; | 6 -webkit-appearance: none; |
7 } | 7 } |
8 </style> | 8 </style> |
9 <script type="text/javascript"> | 9 <script type="text/javascript"> |
10 function runTest() { | 10 function runTest() { |
11 bad = document.createElement("progress"); | 11 bad = document.createElement("progress"); |
12 bad.id="bad"; | 12 bad.id="bad"; |
13 bad.max=100; | 13 bad.max=100; |
14 bad.setAttribute("value",10); | 14 bad.setAttribute("value",10); |
15 bad.setAttribute("style", "border:solid red"); | 15 bad.setAttribute("style", "border:solid red"); |
16 document.getElementsByTagName('body')[0].appendChild(bad); | 16 document.getElementsByTagName('body')[0].appendChild(bad); |
17 document.body.offsetLeft; | 17 document.body.offsetLeft; |
18 document.getElementById('bad').value = 50; | 18 document.getElementById('bad').value = 50; |
19 } | 19 } |
20 </script> | 20 </script> |
21 </head> | 21 </head> |
22 <body onload="runTest();"> | 22 <body onload="runTest();"> |
23 <!-- [bug 100507] https://bugs.webkit.org/show_bug.cgi?id=100507 --> | 23 <!-- [bug 100507] https://bugs.webkit.org/show_bug.cgi?id=100507 --> |
24 <!-- Progress bar shadow tree sometimes is not relayouted. --> | 24 <!-- Progress bar shadow tree sometimes is not relayouted. --> |
25 </body> | 25 </body> |
26 </html> | 26 </html> |
OLD | NEW |