| OLD | NEW |
| 1 description("Test that page-break-inside property is not inherited"); | 1 description("Test that page-break-inside property is not inherited"); |
| 2 | 2 |
| 3 var parent = document.createElement("div"); | 3 var parent = document.createElement("div"); |
| 4 parent.setAttribute("style", "page-break-inside: avoid"); | 4 parent.setAttribute("style", "page-break-inside: avoid"); |
| 5 | 5 |
| 6 var child = document.createElement("div"); | 6 var child = document.createElement("div"); |
| 7 parent.appendChild(child); | 7 parent.appendChild(child); |
| 8 document.body.appendChild(parent); | 8 document.body.appendChild(parent); |
| 9 | 9 |
| 10 shouldBe("window.getComputedStyle(parent).getPropertyCSSValue('page-break-inside
').getStringValue()", '"avoid"'); | 10 shouldBe("window.getComputedStyle(parent).pageBreakInside", '"avoid"'); |
| 11 shouldBe("window.getComputedStyle(child).getPropertyCSSValue('page-break-inside'
).getStringValue()", '"auto"'); | 11 shouldBe("window.getComputedStyle(child).pageBreakInside", '"auto"'); |
| 12 | 12 |
| 13 document.body.removeChild(parent); | 13 document.body.removeChild(parent); |
| OLD | NEW |