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: L. David Baron <dbaron@dbaron.org>
Date: Sun, 16 Aug 2015 22:20:28 +0200
To: Simon Fraser <smfr@me.com>
Cc: "www-style@w3.org list" <www-style@w3.org>
Message-ID: <20150816202028.GA10996@pescadero.dbaron.org>
On Sunday 2015-08-16 12:22 -0700, Simon Fraser wrote:
> > On 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?
> A more compelling testcase is:
> <div style=“will-change: z-index;"></div>
> z-index only applies to positioned elements so does “will-change:z-index” alone create stacking context? If no, does this:
> <div style=“will-change: position, z-index;"></div>?

Without having an opinion on whether it *should*, I'll comment that
Gecko currently causes the stacking context behavior when
will-change has any properties in a list of properties that can
cause stacking contexts, without considering whether they currently
apply.  (Our current list is clip-path, filter, isolation, mask,
mix-blend-mode, perspective, position, transform, transform-style,
and z-index; in the code this is the bit


𝄞   L. David Baron                         http://dbaron.org/   𝄂
𝄢   Mozilla                          https://www.mozilla.org/   𝄂
             Before I built a wall I'd ask to know
             What I was walling in or walling out,
             And to whom I was like to give offense.
               - Robert Frost, Mending Wall (1914)

Received on Sunday, 16 August 2015 20:20:58 UTC

This archive was generated by hypermail 2.3.1 : Sunday, 16 August 2015 20:20:58 UTC