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

Unified Diff: LayoutTests/fast/css/bfc-percentage-margin.html

Issue 185723005: Use correct container width as base for percentage margins. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added requested table test. Created 6 years, 9 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 | LayoutTests/fast/css/bfc-percentage-margin-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/bfc-percentage-margin.html
diff --git a/LayoutTests/fast/css/bfc-percentage-margin.html b/LayoutTests/fast/css/bfc-percentage-margin.html
new file mode 100644
index 0000000000000000000000000000000000000000..d8c788345b3d28bdb7ce6803b78dc815725df906
--- /dev/null
+++ b/LayoutTests/fast/css/bfc-percentage-margin.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<style>
+#container {
+ width: 400px;
+}
+
+.square {
+ width: 100px;
+ height: 100px;
+ background-color: blue;
+}
+
+#float {
+ float: left;
+}
+
+#bfc {
+ margin-left: 30%;
+ overflow: hidden;
+}
+</style>
+<p>You should see two blue squares below.</p>
+<div id="container">
+ <div id="float" class="square"></div>
+ <div id="bfc" class="square"></div>
+</div>
« no previous file with comments | « no previous file | LayoutTests/fast/css/bfc-percentage-margin-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698