| 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 figcaption element.'); | 8 description('Various tests for the figcaption element.'); |
| 9 | 9 |
| 10 function getStyleValue(id, propertyName) { | 10 function getStyleValue(id, propertyName) { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 debug('Residual style:'); | 40 debug('Residual style:'); |
| 41 testParent.innerHTML = '<b><figcaption id="figcaption4">This text should be bold
.</figcaption> <span id="span1">This is also bold.</span></b>'; | 41 testParent.innerHTML = '<b><figcaption id="figcaption4">This text should be bold
.</figcaption> <span id="span1">This is also bold.</span></b>'; |
| 42 shouldBe('getStyleValue("figcaption4","font-weight")', '"bold"'); | 42 shouldBe('getStyleValue("figcaption4","font-weight")', '"bold"'); |
| 43 shouldBe('getStyleValue("span1","font-weight")', '"bold"'); | 43 shouldBe('getStyleValue("span1","font-weight")', '"bold"'); |
| 44 document.body.removeChild(testParent); | 44 document.body.removeChild(testParent); |
| 45 | 45 |
| 46 </script> | 46 </script> |
| 47 </body> | 47 </body> |
| 48 </html> | 48 </html> |
| OLD | NEW |