Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <style> | |
| 2 .c2 + .c9 { position: fixed; height: 1px; } | |
|
leviw_travelin_and_unemployed
2014/08/11 23:03:13
Can we remove c2 altogether and just leave the c9
Xianzhu
2014/08/12 17:32:40
Done.
| |
| 3 .c5 { position: fixed; padding-bottom: 1px; padding-left: 100%; -webkit-column-s pan: all; } | |
| 4 .c16 { display: -webkit-box; } | |
|
leviw_travelin_and_unemployed
2014/08/11 23:03:13
How about giving these classes descriptive names?
Xianzhu
2014/08/12 17:32:40
Now using tag names in the selectors.
| |
| 5 </style> | |
| 6 <script> | |
| 7 if (window.testRunner) | |
| 8 testRunner.dumpAsText(); | |
| 9 | |
| 10 window.onload = function() { | |
| 11 var sup = document.createElement('sup'); | |
| 12 var hgroup = document.createElement('hgroup'); | |
| 13 var samp = document.createElement('samp'); | |
| 14 var figcaption = document.createElement('figcaption'); | |
| 15 var legend = document.createElement('legend'); | |
|
leviw_travelin_and_unemployed
2014/08/11 23:03:13
Are these odd types necessary?
Xianzhu
2014/08/12 17:32:40
Tried to remove any of them and the crash couldn't
| |
| 16 legend.setAttribute('class', 'c2'); | |
| 17 document.documentElement.appendChild(legend); | |
| 18 var p = document.createElement('p'); | |
| 19 p.setAttribute('class', 'c9'); | |
| 20 document.documentElement.appendChild(p); | |
| 21 document.execCommand('SelectAll', ''); | |
| 22 p.appendChild(hgroup); | |
| 23 sup.setAttribute('class', 'c16'); | |
| 24 p.appendChild(samp); | |
| 25 hgroup.setAttribute('class', 'c5'); | |
| 26 samp.appendChild(sup); | |
| 27 document.body.offsetHeight; | |
| 28 figcaption.appendChild(sup); | |
| 29 }; | |
| 30 </script> | |
| 31 This is modified from a cluster-fuzz test case. Passes if no crash. | |
| OLD | NEW |