| 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 figure element.'); | 8 description('Various tests for the figure element.'); |
| 9 | 9 |
| 10 function getStyleValue(id, propertyName) { | 10 function getStyleValue(id, propertyName) { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 debug('Residual style:'); | 44 debug('Residual style:'); |
| 45 testParent.innerHTML = '<b><figure id="figure4">This text should be bold.</figur
e> <span id="span1">This is also bold.</span></b>'; | 45 testParent.innerHTML = '<b><figure id="figure4">This text should be bold.</figur
e> <span id="span1">This is also bold.</span></b>'; |
| 46 shouldBe('getStyleValue("figure4","font-weight")', '"bold"'); | 46 shouldBe('getStyleValue("figure4","font-weight")', '"bold"'); |
| 47 shouldBe('getStyleValue("span1","font-weight")', '"bold"'); | 47 shouldBe('getStyleValue("span1","font-weight")', '"bold"'); |
| 48 document.body.removeChild(testParent); | 48 document.body.removeChild(testParent); |
| 49 | 49 |
| 50 </script> | 50 </script> |
| 51 </body> | 51 </body> |
| 52 </html> | 52 </html> |
| OLD | NEW |