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

Re: [will-change] Should will-change trigger stacking context when the property does not apply to an element?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 18 Aug 2015 10:17:02 -0700
Message-ID: <CAAWBYDAtJGpa33daneXNVaJwT-wpYr5xPnOUngqTrubWvvQSUQ@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 12:17 PM, Simon Fraser <smfr@me.com> wrote:
> Consider:
>
> <span style=“will-change: transform;”>...<span>
>
> The span, as a non-atomic inline, does not support the transform property. Should will-change trigger stacking context in this example?

Yes, it absolutely should.  The span *does* supports transforms *if*
certain other properties are set, or if the parent blockifies it, etc.
Making it not create an SC means having to do weird combinatorial
checking, and means that you'll get page flicker if you *do* set those
other properties and then start animating.

We shouldn't second-guess authors, nor should we impose expensive
checks on impls without strong reasons.

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

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