Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Side by Side Diff: LayoutTests/fast/css/getComputedStyle/script-tests/computed-style-page-break-inside.js

Issue 703323002: Continue removing testing of getPropertyCSSValue (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698