W3C home > Mailing lists > Public > www-style@w3.org > August 2015

Re: [will-change] Should will-change on non-animatable properties create stacking context?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 18 Aug 2015 10:23:43 -0700
Message-ID: <CAAWBYDDM3Wnn1UAyq3E06GxXXKurjSBHt+aZCPiyhF4g6Axw9Q@mail.gmail.com>
To: Simon Fraser <smfr@me.com>
Cc: "www-style@w3.org list" <www-style@w3.org>
On Sun, Aug 16, 2015 at 2:10 PM, Simon Fraser <smfr@me.com> wrote:
> "will-change” is obviously geared towards hints regarding properties that can be animated.
>
> However, the stacking context-creation side-effects of will-change aren’t restricted to
> animatable properties. According to the spec, "will-change: position” and
> "will-change: transform-style” both create SC.
>
> Is this desired behavior? I’m not sure I see any benefit of having will-change create
> SC for non-animatable properties.
>
> Simon
>
> [1] https://drafts.csswg.org/css-will-change/

Yes, it's desired.  All properties are animatable, and the point of
the SC creation in will-change is to reduce layout flicker when
animating properties.  That includes things like switching 'position'.
It also just makes the rule simpler.

~TJ
Received on Tuesday, 18 August 2015 17:24:31 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 18 August 2015 17:24:31 UTC