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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/block/strip-anonymous-blocks-when-block-child-becomes-float.html
diff --git a/LayoutTests/fast/block/strip-anonymous-blocks-when-block-child-becomes-float.html b/LayoutTests/fast/block/strip-anonymous-blocks-when-block-child-becomes-float.html
new file mode 100644
index 0000000000000000000000000000000000000000..09d4f1c8b9b53eecee240f10ac5abd7fbbcce6e2
--- /dev/null
+++ b/LayoutTests/fast/block/strip-anonymous-blocks-when-block-child-becomes-float.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<html>
+ <head>
esprehn 2014/05/20 19:42:46 We usually leave off <html>, <head> and <body>
+ <style>
+ body {
+ margin: 0;
+ padding: 0;
+ }
+ #container {
+ position: relative;
+ background: #ccc;
+ font: 20px Ahem;
+ }
+ #floater {
+ float: none;
+ }
+ </style>
+ <script src="../../resources/check-layout.js"></script>
+ </head>
+ <body onload="checkLayout('#container')">
esprehn 2014/05/20 19:42:46 I'd just do onload = function() { ... } in the scr
+ <p> When a block element becomes a float we should strip any anonymous blocks wrapping its inline siblings.</p>
+ <div id="container">
+ <span id="content">
+ Some<br />
+ content<br />
+ here.
+ </span>
+ <div id="floater" data-offset-y=40>
+ Should appear inside grey box.
+ </div>
+ </div>
+ <script>
+ document.body.offsetTop;
+ document.getElementById('floater').style.float = 'right';
+ </script>
+ </body>
+</html>
+
+

Powered by Google App Engine
This is Rietveld 408576698