OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 description('Various tests for the mark element.'); | 8 description('Various tests for the mark element.'); |
9 | 9 |
10 var testParent = document.createElement('div'); | 10 var testParent = document.createElement('div'); |
(...skipping 13 matching lines...) Expand all Loading... |
24 testParent.innerHTML = '<b><mark id="mark2">This text should be bold.</mark> <sp
an id="span1">This is also bold.</span></b>'; | 24 testParent.innerHTML = '<b><mark id="mark2">This text should be bold.</mark> <sp
an id="span1">This is also bold.</span></b>'; |
25 function getWeight(id) { | 25 function getWeight(id) { |
26 return document.defaultView.getComputedStyle(document.getElementById(id), nu
ll).getPropertyValue('font-weight'); | 26 return document.defaultView.getComputedStyle(document.getElementById(id), nu
ll).getPropertyValue('font-weight'); |
27 } | 27 } |
28 shouldBe('getWeight("mark2")', '"bold"'); | 28 shouldBe('getWeight("mark2")', '"bold"'); |
29 shouldBe('getWeight("span1")', '"bold"'); | 29 shouldBe('getWeight("span1")', '"bold"'); |
30 document.body.removeChild(testParent); | 30 document.body.removeChild(testParent); |
31 </script> | 31 </script> |
32 </body> | 32 </body> |
33 </html> | 33 </html> |
OLD | NEW |