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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/block/positioning/positioned-child-inside-relative-positioned-anonymous-block.html

Issue 1406953003: Compute positioned elements width correctly when it has anonymous ancestors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated Created 5 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 #square {
4 width: 50px;
5 height: 20px;
6 background-color: green;
7 display: inline-block;
8 }
9 #inline-container {
10 display: inline;
11 position: relative;
12 }
13 #abspos {
14 position: absolute;
15 background-color: green;
16 }
17 </style>
18 <p> crbug.com/548017: A positioned element inside a relatively positioned inline should use the width of the inline, rather than the anonymous block created to accomodate block-flow parents, when determining its own width. There should be a green square below</p>
19 <div id="inline-container">
20 <div>
21 <div id="abspos" data-expected-width=50><div id="square"></div><div id=" square"></div></div>
22 </div>
23 </div>
24 <script src="../../../resources/check-layout.js"></script>
25 <script type="text/javascript">
26 window.checkLayout("#abspos");
27 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/block/positioning/positioned-child-inside-relative-positioned-anonymous-block-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698