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

Unified Diff: LayoutTests/fast/css/vertical-lr-table-percent-margins-beside-float.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
Index: LayoutTests/fast/css/vertical-lr-table-percent-margins-beside-float.html
diff --git a/LayoutTests/fast/css/vertical-lr-table-percent-margins-beside-float.html b/LayoutTests/fast/css/vertical-lr-table-percent-margins-beside-float.html
new file mode 100644
index 0000000000000000000000000000000000000000..5559dd14bbf5e22e32699e0fef29641cad237f6c
--- /dev/null
+++ b/LayoutTests/fast/css/vertical-lr-table-percent-margins-beside-float.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<style>
+#container {
+ width: 200px; height: 50px;
+ background-color: orange;
+}
+
+#float {
+ float: left;
+ width: 50px; height: 50px; background: blue;
+}
+
+#verticalTable {
+ display: table;
+ width: 50px; height: 50px;
+ -webkit-writing-mode: vertical-rl;
+ overflow: hidden;
+ margin-left: 50%;
+ background: blue;
+}
+</style>
+<p>You should see four equally sized squares below. Two blue, and two orange.</p>
+<div id="container">
+ <div id="float"></div>
+ <div id="verticalTable"></div>
+</div>

Powered by Google App Engine
This is Rietveld 408576698