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

Side by Side Diff: third_party/WebKit/LayoutTests/css3/flexbox/change-flexitem-into-abspos.html

Issue 2684073004: [css-flexbox] Clear override sizes when we're no longer a flex item (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('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 <!DOCTYPE html>
2
3 <style>
4 #flex {
5 display: flex;
6 position: relative;
7 background: red;
8 width: 500px;
9 height: 200px;
10 }
11
12 #item {
13 background: green;
14 left: 0;
15 right: 0;
16 top: 0;
17 bottom: 0;
18 }
19 </style>
20
21 <script src="../../resources/testharness.js"></script>
22 <script src="../../resources/testharnessreport.js"></script>
23 <script src="../../resources/check-layout-th.js"></script>
24
25 <script>
26 function update() {
27 var item = document.getElementById("item");
28 item.offsetHeight;
29 item.style.position = "absolute";
30 item.offsetHeight;
31 checkLayout("#flex");
32 }
33 </script>
34
35 <body onload="update();">
36
37 <div id="flex">
38 <div id="item" data-expected-width="500"></div>
39 </div>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698