Граф коммитов

3 Коммитов

Автор SHA1 Сообщение Дата
Hiroyuki Ikezoe 3f226f1b33 Bug 1430884 - A reftest that transform animation makes the element as a containing block for fixed-pos descendants even if the element is visibility:hidden and if the animating value is 'transform:none'. r=birtles
As per the CSS Animations spec [1], animations must behave as if 'will-change'
is specified, and as per the Will Change spec [2] the element having
'will-change' property other than 'auto' behaves as a containing block for
fixed-pos descendants.  This reftest tests that behavior.  The reason we also
specified visibility:hidden there is that we are going to optimize transform
animations on/inside visibility:hidden element, so this reftest also tests it.

In this reftest, if the containing block is correctly generated, the fixed-pos
element is rendered inside the parent element, thus the scrollable element
overflows, then the vertial scroll bar appears.


[1] https://drafts.csswg.org/css-animations-1/#animations
 > While an animation is applied but has not finished, or has finished but has
 > an animation-fill-mode of forwards or both, the user agent must act as if
 > the will-change property ([css-will-change-1]) on the element additionally
 > includes all the properties animated by the animation.

[2] https://drafts.csswg.org/css-will-change/#will-change
 > If any non-initial value of a property would cause the element to generate
 > a containing block for fixed positioned elements, specifying that property
 > in will-change must cause the element to generate a containing block for
 > fixed positioned elements.

MozReview-Commit-ID: Kx5Fdx8FJUG

--HG--
extra : rebase_source : 926f10590e90a10876339ccbea331a981f9f4773
2018-06-25 11:51:06 +09:00
Margareta Eliza Balazs e1ea59be60 Backed out 9 changesets (bug 1430884) for frequently failing dom/animation/test/mozilla/test_restyles.html on android-em-4-3-armv7-api16 debug
Backed out changeset 262dbc8daac1 (bug 1430884)
Backed out changeset c3f9f3f66a98 (bug 1430884)
Backed out changeset 39e1c4e3c8c9 (bug 1430884)
Backed out changeset 4505e3f87b2e (bug 1430884)
Backed out changeset e7e8977e0e92 (bug 1430884)
Backed out changeset 6dbae2b8957d (bug 1430884)
Backed out changeset 1e047fbcae2a (bug 1430884)
Backed out changeset 52be07f10eaa (bug 1430884)
Backed out changeset cec68a5b01da (bug 1430884)

--HG--
extra : rebase_source : 9877dce2438d42eca99898b22c95ecc04dbd748f
2018-06-25 12:23:59 +03:00
Hiroyuki Ikezoe 9fc2c2ce39 Bug 1430884 - A reftest that transform animation makes the element as a containing block for fixed-pos descendants even if the element is visibility:hidden and if the animating value is 'transform:none'. r=birtles
As per the CSS Animations spec [1], animations must behave as if 'will-change'
is specified, and as per the Will Change spec [2] the element having
'will-change' property other than 'auto' behaves as a containing block for
fixed-pos descendants.  This reftest tests that behavior.  The reason we also
specified visibility:hidden there is that we are going to optimize transform
animations on/inside visibility:hidden element, so this reftest also tests it.

In this reftest, if the containing block is correctly generated, the fixed-pos
element is rendered inside the parent element, thus the scrollable element
overflows, then the vertial scroll bar appears.


[1] https://drafts.csswg.org/css-animations-1/#animations
 > While an animation is applied but has not finished, or has finished but has
 > an animation-fill-mode of forwards or both, the user agent must act as if
 > the will-change property ([css-will-change-1]) on the element additionally
 > includes all the properties animated by the animation.

[2] https://drafts.csswg.org/css-will-change/#will-change
 > If any non-initial value of a property would cause the element to generate
 > a containing block for fixed positioned elements, specifying that property
 > in will-change must cause the element to generate a containing block for
 > fixed positioned elements.

MozReview-Commit-ID: Kx5Fdx8FJUG

--HG--
extra : rebase_source : 926f10590e90a10876339ccbea331a981f9f4773
2018-06-25 11:51:06 +09:00