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 | 14 |
15 <div id="test" dir="auto" class="testDiv">Test test test</div> | 15 <div id="test" dir="auto" class="testDiv">Test test test</div> |
16 <script> | 16 <script> |
17 | 17 |
18 description('Test that directionality is re-evaluated when an element with dir=a
uto set, has the text of its first child changed.'); | 18 description('Test that directionality is re-evaluated when an element with dir=a
uto set, has the text of its first child changed.'); |
19 | 19 |
20 var el = document.getElementById("test"); | 20 var el = document.getElementById("test"); |
21 shouldBe("document.defaultView.getComputedStyle(el, null).getPropertyValue('bord
er-right-color')", "'rgb(255, 0, 0)'"); | 21 shouldBe("document.defaultView.getComputedStyle(el, null).getPropertyValue('bord
er-right-color')", "'rgb(255, 0, 0)'"); |
22 el.innerHTML = "מקור השם עברית"; | 22 el.innerHTML = "מקור השם עברית"; |
23 shouldBe("document.defaultView.getComputedStyle(el, null).getPropertyValue('bord
er-right-color')", "'rgb(0, 128, 0)'"); | 23 shouldBe("document.defaultView.getComputedStyle(el, null).getPropertyValue('bord
er-right-color')", "'rgb(0, 128, 0)'"); |
24 el.style.display = "none"; | 24 el.style.display = "none"; |
25 </script> | 25 </script> |
26 <script src="../../js/resources/js-test-post.js"></script> | |
27 </body> | 26 </body> |
28 </html> | 27 </html> |
OLD | NEW |