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

Side by Side Diff: LayoutTests/fast/block/float/block-formatting-context-crash.html

Issue 268833003: Refactor avoidsFloats() to reflect CSS2.1 spec more clearly (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 6 years, 1 month 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
« no previous file with comments | « no previous file | LayoutTests/fast/block/float/block-formatting-context-crash-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <script>
2 if (window.testRunner) {
3 testRunner.waitUntilDone();
4 testRunner.dumpAsText();
5 }
6 </script>
7 <style>
8 .fixed:nth-last-child(even) { display: table-column; position: fixed; }
9 .float { float: left; border-style: ridge; }
10 </style>
11 <script>
12 function crash(caption, thead) {
13 caption.appendChild(thead);
14 if (window.testRunner)
15 testRunner.notifyDone();
16 }
17
18 function boom() {
19 var section = document.createElement('section');
20 section.setAttribute('class', 'fixed');
21 document.documentElement.appendChild(section);
22 var input = document.createElement('input');
23 document.documentElement.appendChild(input);
24 var input2 = document.createElement('input');
25 document.documentElement.appendChild(input2);
26 var table = document.createElement('table');
27 document.documentElement.appendChild(table);
28 var tbody = document.createElement('tbody');
29 document.documentElement.appendChild(tbody);
30 var thead = document.createElement('thead');
31 thead.setAttribute('class', 'float');
32 var ul = document.createElement('ul');
33 document.documentElement.appendChild(ul);
34 var caption = document.createElement('caption');
35 document.documentElement.appendChild(caption);
36 setTimeout(function() { ul.appendChild(table); }, 50);
37 section.appendChild(thead);
38 setTimeout(crash(caption, thead), 60);
39 }
40 window.onload = boom;
41 </script>
42 <p> The test should not crash.</p>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/block/float/block-formatting-context-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698