mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 02:31:59 +00:00
Bug 1275142 - Ensure display style change is painted. r=birtles
MozReview-Commit-ID: 5CylqPdRFhE
This commit is contained in:
parent
286c4461e3
commit
cf0599e349
@ -89,11 +89,15 @@ add_task(function* smil_is_in_display_none_subtree() {
|
||||
|
||||
div.style.display = "none";
|
||||
getComputedStyle(div).display;
|
||||
yield waitForPaintFlushed();
|
||||
|
||||
var displayNoneMarkers = yield observeStyling(5);
|
||||
is(displayNoneMarkers.length, 0, "should never restyle if display:none");
|
||||
|
||||
div.style.display = "";
|
||||
getComputedStyle(div).display;
|
||||
yield waitForPaintFlushed();
|
||||
|
||||
var displayAgainMarkers = yield observeStyling(5);
|
||||
is(displayAgainMarkers.length, 5, "should restyle again");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user