W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2020

Re: [csswg-drafts] [css-display] Add a new property to replace `display: none` declaration (#4897)

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Tue, 24 Mar 2020 14:06:43 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-603259344-1585058802-sysbot+gh@w3.org>
This was called [`box-suppress`](https://www.w3.org/TR/2015/WD-css-display-3-20151015/#box-suppress):

> The `display: none` value was historically used as a "toggle" to switch between showing and hiding an element. Making this reversible requires either setting up the CSS cascade carefully, or remembering what the `display` value was before it was set to `none`. To make this common use-case easier, this module introduces the separate `box-suppress` property to do the same thing, so that toggling whether or not an element appears in the formatting tree can now be done without affecting its display type when it *is* displayed.

But was deferred to level 4, [Changes Prior to CR Status](https://drafts.csswg.org/css-display-3/#changes-wd):

> Deferred the `box-suppress/display-or-not` property to the next level of Display, in order to provide time for further discussion of use cases. 

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4897#issuecomment-603259344 using your GitHub account
Received on Tuesday, 24 March 2020 14:06:46 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:02 UTC