| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 5 <script src="../../js/resources/js-test-pre.js"></script> | 5 <script src="../../js/resources/js-test-pre.js"></script> |
| 6 <style> | 6 <style> |
| 7 .testDiv {-webkit-border-start: 5px solid green; -webkit-border-end: 5px solid r
ed; } | 7 .testDiv {-webkit-border-start: 5px solid green; -webkit-border-end: 5px solid r
ed; } |
| 8 </style> | 8 </style> |
| 9 </head> | 9 </head> |
| 10 <body> | 10 <body> |
| 11 <p id="description"></p> | 11 <p id="description"></p> |
| 12 <div id="console"></div> | 12 <div id="console"></div> |
| 13 <div id="result"></div> | 13 <div id="result"></div> |
| 14 <div id="parentDiv"> | 14 <div id="parentDiv"> |
| 15 <div id="has-dir-auto" dir="auto" class="testDiv"> | 15 <div id="has-dir-auto" dir="auto" class="testDiv"> |
| 16 <div id="has-dir-rtl" dir="rtl" class="testDiv">מקור השם עברית</div> | 16 <div id="has-dir-rtl" dir="rtl" class="testDiv">מקור השם עברית</div> |
| 17 Test test test</div> | 17 Test test test</div> |
| 18 | 18 |
| 19 <script> | 19 <script> |
| 20 | 20 |
| 21 description('Test that directionality of an element with dir=auto is not affecte
d by children that also have the dir attribute.'); | 21 description('Test that directionality of an element with dir=auto is not affecte
d by children that also have the dir attribute.'); |
| 22 | 22 |
| 23 var el = document.getElementById("has-dir-auto"); | 23 var el = document.getElementById("has-dir-auto"); |
| 24 shouldBe("document.defaultView.getComputedStyle(el, null).getPropertyValue('bord
er-right-color')", "'rgb(255, 0, 0)'"); | 24 shouldBe("document.defaultView.getComputedStyle(el, null).getPropertyValue('bord
er-right-color')", "'rgb(255, 0, 0)'"); |
| 25 el = document.getElementById("has-dir-rtl"); | 25 el = document.getElementById("has-dir-rtl"); |
| 26 shouldBe("document.defaultView.getComputedStyle(el, null).getPropertyValue('bord
er-right-color')", "'rgb(0, 128, 0)'"); | 26 shouldBe("document.defaultView.getComputedStyle(el, null).getPropertyValue('bord
er-right-color')", "'rgb(0, 128, 0)'"); |
| 27 document.getElementById("parentDiv").style.display = "none"; | 27 document.getElementById("parentDiv").style.display = "none"; |
| 28 </script> | 28 </script> |
| 29 <script src="../../js/resources/js-test-post.js"></script> | |
| 30 </body> | 29 </body> |
| 31 </html> | 30 </html> |
| OLD | NEW |