OLD | NEW |
---|---|
(Empty) | |
1 <html> | |
Julien - ping for review
2013/05/07 18:43:20
DOCTYPE per favor!
| |
2 <body style="display: -webkit-flex;"> | |
3 <i> | |
4 <div> </div><row> | |
5 <source id=test style="float: right; -webkit-padding-before: 238px;">A</source> | |
Julien - ping for review
2013/05/07 18:43:20
s/-webkit-padding-before/padding-top/ (just remove
| |
6 </i> | |
7 <div style="-webkit-logical-height: 188;"></div> | |
Julien - ping for review
2013/05/07 18:43:20
s/-webkit-logical-height/height/
| |
8 <style> | |
9 .class1 { | |
10 -webkit-logical-width: 51667px; | |
Julien - ping for review
2013/05/07 18:43:20
s/-webkit-logical-width/width/
| |
11 } | |
12 </style> | |
13 <script> | |
14 if (window.testRunner) | |
15 testRunner.dumpAsText(); | |
16 | |
17 function reference(domNode) { | |
18 this.domNode = domNode; | |
19 } | |
Julien - ping for review
2013/05/07 18:43:20
This wrapper is useless and should be removed.
| |
20 | |
21 function walk(a, currentPrefix, index, domNode) { | |
Julien - ping for review
2013/05/07 18:43:20
walk() is overly complicated for no good reason. C
| |
22 if (domNode == null) | |
23 return; | |
24 newPrefix = currentPrefix + "_" + index; | |
25 walk(a, currentPrefix, index + 1, domNode.nextSibling); | |
26 walk(a, newPrefix, 0, domNode.firstChild); | |
27 a[newPrefix] = new reference(domNode); | |
28 } | |
29 | |
30 function clear() { | |
31 var a = new Array(); | |
32 walk(a, "", 0, document.documentElement); | |
33 for(key in a) { | |
34 a[key].domNode.parentNode.removeChild(a[key].domNode); | |
35 if (document.documentElement) | |
36 document.documentElement.offsetTop; | |
37 } | |
38 } | |
39 | |
40 document.documentElement.offsetTop; | |
41 test.setAttribute("class", "class1"); | |
42 document.documentElement.offsetTop; | |
43 clear(); | |
44 alert("PASS. WebKit didn't crash."); | |
45 </script> | |
46 </body> | |
47 </html> | |
OLD | NEW |