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

Side by Side Diff: LayoutTests/fast/css-generated-content/normalize-with-first-letter-and-before-content-crash.html

Issue 23757029: Merge 157392 "Avoid collapsing anonymous block children already ..." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/1599/
Patch Set: Created 7 years, 3 months 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/css-generated-content/normalize-with-first-letter-and-before-content-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
1 <!doctype html> 1 <!doctype html>
2 <style> 2 <style>
3 .absolutePosition { position: fixed; } 3 .absolutePosition { position: fixed; }
4 .float:before { float: right; content: ''; } 4 .float:before { float: right; content: ''; }
5 .float:first-letter { float: right; } 5 .float:first-letter { float: right; }
6 .inline::first-letter { content: ''; } 6 .inline::first-letter { content: ''; }
7 </style> 7 </style>
8 <script> 8 <script>
9 function crash() { 9 function crash() {
10 document.body.offsetTop; 10 document.body.offsetTop;
11 parent = document.getElementById('parent'); 11 parent = document.getElementById('parent');
12 child.setAttribute('class', 'inline'); 12 child.setAttribute('class', 'inline');
13 document.body.offsetTop; 13 document.body.offsetTop;
14 parent.removeChild(child); 14 parent.removeChild(child);
15 parent.normalize(); 15 parent.normalize();
16 } 16 }
17 window.onload = crash; 17 window.onload = crash;
18 if (window.testRunner) 18 if (window.testRunner)
19 testRunner.dumpAsText(); 19 testRunner.dumpAsText();
20 </script> 20 </script>
21 <div class="float" id="parent"> 21 <div class="float" id="parent">
22 <div class="absolutePosition" id="child"></div> 22 <div class="absolutePosition" id="child"></div>
23 Test passes if no crash. 23 Test passes if no crash.
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css-generated-content/normalize-with-first-letter-and-before-content-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698