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

Side by Side Diff: LayoutTests/fast/block/strip-anonymous-blocks-when-block-child-becomes-float.html

Issue 253313005: Strip anonymous blocks when change in style removes need for them (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 6 years, 7 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
esprehn 2014/05/20 19:42:46 We usually leave off <html>, <head> and <body>
4 <style>
5 body {
6 margin: 0;
7 padding: 0;
8 }
9 #container {
10 position: relative;
11 background: #ccc;
12 font: 20px Ahem;
13 }
14 #floater {
15 float: none;
16 }
17 </style>
18 <script src="../../resources/check-layout.js"></script>
19 </head>
20 <body onload="checkLayout('#container')">
esprehn 2014/05/20 19:42:46 I'd just do onload = function() { ... } in the scr
21 <p> When a block element becomes a float we should strip any anonymous b locks wrapping its inline siblings.</p>
22 <div id="container">
23 <span id="content">
24 Some<br />
25 content<br />
26 here.
27 </span>
28 <div id="floater" data-offset-y=40>
29 Should appear inside grey box.
30 </div>
31 </div>
32 <script>
33 document.body.offsetTop;
34 document.getElementById('floater').style.float = 'right';
35 </script>
36 </body>
37 </html>
38
39
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698