OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 | |
3 <style> | |
4 div>div,div>table{border:1px black solid;width:50px;height:20px} | |
5 </style> | |
6 | |
7 <script src="../../resources/js-test.js"></script> | |
8 | |
9 <div align="right"> | |
10 <table dir="rtl" border="1" id="rtl_table_in_ltr"><tr><td></td><td></td></tr>< /table> | |
11 <div dir="rtl" id="rtl_div_in_ltr"></div> | |
12 <table dir="ltr" border="1" id="ltr_table_in_ltr"><tr><td></td><td></td></tr>< /table> | |
13 <div dir="ltr" id="ltr_div_in_ltr"></div> | |
14 </div> | |
15 | |
16 <div dir="rtl" align="left"> | |
17 <table dir="rtl" border="1" id="rtl_table_in_rtl"><tr><td></td><td></td></tr>< /table> | |
18 <div dir="rtl" id="rtl_div_in_rtl"></div> | |
19 <table dir="ltr" border="1" id="ltr_table_in_rtl"><tr><td></td><td></td></tr>< /table> | |
20 <div dir="ltr" id="ltr_div_in_rtl"></div> | |
21 </div> | |
22 | |
23 <script> | |
24 rtl_table_in_ltr = document.getElementById("rtl_table_in_ltr"); | |
25 rtl_div_in_ltr = document.getElementById("rtl_div_in_ltr"); | |
26 ltr_table_in_ltr = document.getElementById("ltr_table_in_ltr"); | |
27 ltr_div_in_ltr = document.getElementById("ltr_div_in_ltr"); | |
28 shouldBe("rtl_table_in_ltr.getBoundingClientRect().right","792"); | |
mstensho (USE GERRIT)
2014/12/08 10:01:21
Could you set a width on BODY or something, so tha
Kyungtae Kim
2014/12/09 04:53:08
Done. Set a width on BODY.
mstensho (USE GERRIT)
2014/12/09 09:54:41
Acknowledged.
| |
29 shouldBe("rtl_div_in_ltr.getBoundingClientRect().right","792"); | |
30 shouldBe("ltr_table_in_ltr.getBoundingClientRect().right","792"); | |
31 shouldBe("ltr_div_in_ltr.getBoundingClientRect().right","792"); | |
32 | |
33 rtl_table_in_rtl = document.getElementById("rtl_table_in_rtl"); | |
34 rtl_div_in_rtl = document.getElementById("rtl_div_in_rtl"); | |
35 ltr_table_in_rtl = document.getElementById("ltr_table_in_rtl"); | |
36 ltr_div_in_rtl = document.getElementById("ltr_div_in_rtl"); | |
37 shouldBe("rtl_table_in_rtl.getBoundingClientRect().left","8"); | |
38 shouldBe("rtl_div_in_rtl.getBoundingClientRect().left","8"); | |
39 shouldBe("ltr_table_in_rtl.getBoundingClientRect().left","8"); | |
40 shouldBe("ltr_div_in_rtl.getBoundingClientRect().left","8"); | |
41 </script> | |
OLD | NEW |