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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/css3/flexbox/change-flexitem-into-abspos.html
diff --git a/third_party/WebKit/LayoutTests/css3/flexbox/change-flexitem-into-abspos.html b/third_party/WebKit/LayoutTests/css3/flexbox/change-flexitem-into-abspos.html
new file mode 100644
index 0000000000000000000000000000000000000000..34bd74247fc7ea27be9f29a2d165b9e1760b529a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/css3/flexbox/change-flexitem-into-abspos.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+
+<style>
+#flex {
+ display: flex;
+ position: relative;
+ background: red;
+ width: 500px;
+ height: 200px;
+}
+
+#item {
+ background: green;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+}
+</style>
+
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../../resources/check-layout-th.js"></script>
+
+<script>
+function update() {
+ var item = document.getElementById("item");
+ item.offsetHeight;
+ item.style.position = "absolute";
+ item.offsetHeight;
+ checkLayout("#flex");
+}
+</script>
+
+<body onload="update();">
+
+<div id="flex">
+ <div id="item" data-expected-width="500"></div>
+</div>
« 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