- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Tue, 18 Aug 2015 10:23:43 -0700
- 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