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/regions/changing-writing-mode.html

Issue 18374008: Propagate writing-mode from the first region to the flow thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Code review Created 7 years, 5 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/regions/changing-writing-mode.html
diff --git a/LayoutTests/fast/regions/changing-writing-mode.html b/LayoutTests/fast/regions/changing-writing-mode.html
new file mode 100644
index 0000000000000000000000000000000000000000..f424b42c84b2c35ff288109ec8f044a8e9e31f0b
--- /dev/null
+++ b/LayoutTests/fast/regions/changing-writing-mode.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Changing writing mode on the first region</title>
+ </head>
+ <body style="color:black; background:white;">
+ <p>Below you should see the word 'PASS' on a lime background.</p>
+ <div id="container" style="width:20em; height:20em; line-height:2em;">
+ <div style="-webkit-flow-into:thread;">
+ <br>
+ <div style="-webkit-region-break-after:always;"></div>
+ <div style="-webkit-writing-mode:horizontal-tb;">PASS</div>
+ </div>
+ <div style="-webkit-flow-from:thread; background:black;"></div>
+ <div style="-webkit-flow-from:thread; background:lime;"></div>
+ </div>
+ <script>
+ container.offsetLeft; // Make sure we have laid out.
esprehn 2013/08/08 03:10:39 Please don't access vars like this: var container
mstensho (USE GERRIT) 2013/08/08 06:51:50 I did "document.getElementById('container').offset
+ container.style.WebkitWritingMode = 'vertical-rl';
+ </script>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698