W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2018

Re: [csswg-drafts] [css-position] 'front' & 'back' keywords for z-index

From: Sebastian Zartner via GitHub <sysbot+gh@w3.org>
Date: Mon, 02 Jul 2018 21:35:43 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-401944944-1530567342-sysbot+gh@w3.org>
> Why not introduce explicitly named layers with their own at-rule then?
> 
>     foo {z-index: bar;}
> 
>     @layer bar {…}

Sounds like a good idea, though what is the at-rule expected to contain?

The idea of having `front` and `back` keywords is also something I thought about previously, though as Tab already pointed out, there may be cases where you'd then like to put something even more in the front.

Those keywords can easily be abused, e.g. by ads you integrate into your site and then you're not able to put anything else in front of them.

Also, how to handle multiple elements having set those values?

Sebastian

-- 
GitHub Notification of comment by SebastianZ
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2444#issuecomment-401944944 using your GitHub account
Received on Monday, 2 July 2018 21:35:51 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:53 UTC