2 <html class=
"reftest-wait">
4 Opacity transition winning over !important rule creates a stacking context
15 width:
100px; height:
100px;
18 * On the compositor we use a previous vsync time stamp rather than the
19 * current time stamp, as a result sometimes transition may be still in
20 * before phase after waiting a frame. To compose the same opacity value
21 * regardless of whether the transition is in before or active phase, we use
24 transition: opacity
100s steps(
1, end);
25 opacity:
1 ! important;
31 window
.addEventListener("load", () => {
32 var target
= document
.getElementById("test");
33 getComputedStyle(target
).opacity
;
35 target
.style
.setProperty("opacity", "0", "important");
36 getComputedStyle(target
).opacity
;
38 document
.documentElement
.classList
.remove("reftest-wait");