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

Unified Diff: LayoutTests/fast/dom/rtl-in-right-aligned-div.html

Issue 766223004: Blocks should be aligned by style of parents (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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/dom/rtl-in-right-aligned-div.html
diff --git a/LayoutTests/fast/dom/rtl-in-right-aligned-div.html b/LayoutTests/fast/dom/rtl-in-right-aligned-div.html
new file mode 100644
index 0000000000000000000000000000000000000000..666b7625f37f3973548c07fd00054678b293343a
--- /dev/null
+++ b/LayoutTests/fast/dom/rtl-in-right-aligned-div.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<div align="right">
+ <table dir="rtl" border="1" id="rtl_table">
+ <tr><td></td><td></td><td></td></tr>
+ </table>
+ <table border="1" id="ltr_table">
+ <tr><td></td><td></td><td></td></tr>
+ </table>
+ <div dir="rtl" style="border:1px black solid;width:50px;height:50px" id="rtl_div"></div>
+ <div style="border:1px black solid;width:50px;height:50px" id="ltr_div"></div>
+</div>
+<script>
+ rtl_table_in_right_aligned_div = document.getElementById("rtl_table");
mstensho (USE GERRIT) 2014/12/04 12:18:29 Might as well use the short name in the variable n
Kyungtae Kim 2014/12/08 07:00:13 Done.
+ ltr_table_in_right_aligned_div = document.getElementById("ltr_table");
+ rtl_div_in_right_aligned_div = document.getElementById("rtl_div");
+ ltr_div_in_right_aligned_div = document.getElementById("ltr_div");
+ shouldBe("rtl_table_in_right_aligned_div.getBoundingClientRect().right","792");
+ shouldBe("ltr_table_in_right_aligned_div.getBoundingClientRect().right","792");
+ shouldBe("rtl_div_in_right_aligned_div.getBoundingClientRect().right","792");
+ shouldBe("ltr_div_in_right_aligned_div.getBoundingClientRect().right","792");
+</script>
+
« no previous file with comments | « no previous file | LayoutTests/fast/dom/rtl-in-right-aligned-div-expected.txt » ('j') | Source/core/rendering/RenderBox.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698