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

Unified Diff: third_party/WebKit/LayoutTests/css3/flexbox/bug633212.html

Issue 2224833002: [css-flexbox] Have to use forceChildLayout to force layout (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 4 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/LayoutFlexibleBox.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/bug633212.html
diff --git a/third_party/WebKit/LayoutTests/css3/flexbox/bug633212.html b/third_party/WebKit/LayoutTests/css3/flexbox/bug633212.html
new file mode 100644
index 0000000000000000000000000000000000000000..f16d3e23763ef8427100a37ff0151eb762e0ff73
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/css3/flexbox/bug633212.html
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<style>
+html, body {
+ margin: 0;
+}
+
+#flexbox {
+ display: flex;
+ flex-direction: column;
+}
+
+#flexitem {
+ outline: 1px solid black;
+ width: 100%;
+ height: 166px;
+ position: relative;
+ background: green;
+}
+
+#abspos {
+ position: absolute;
+}
+
+#container {
+ background: red;
+}
+</style>
+
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+
+<script>
+function runTest() {
+ test(function() {
+ assert_equals(document.getElementById('flexbox').offsetWidth,
+ document.getElementById('flexitem').offsetWidth);
+ }, "sizes");
+}
+</script>
+
+<body onload="runTest()">
+<div id="container">
+ <div id="flexbox">
+ <div id="flexitem">
+ <div id="abspos">
+ <svg></svg>
+ </div>
+ </div>
+ </div>
+</div>
+
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698