[csswg-drafts] Feature for Display property: Seperation of visibility and layout behaviour (#5022)

sir-script has just created a new issue for https://github.com/w3c/csswg-drafts:

== Feature for Display property: Seperation of visibility and layout behaviour ==
Hi guys,

first of all, sorry for my bad english...

During my life as a web developer it comes often to situation, 
where you only need to toggle the "visibility" of some elements.

I use display:none for this situation, 
because the hidden element should not take some kind of extra space.
But you need to know the previous state of the display property,
if you want to show the element again with the exact look and feel.

display: flex -> display:none -> should be display:flex...
display: block -> display: none -> should be display:block...


Would it be possible to seperate the visibility and "layout" behaviour
of the display property in future specs?

Spec: https://www.w3.org/TR/css-display-3/

Cheers and thanks in advance.

Michael

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5022 using your GitHub account

Received on Wednesday, 29 April 2020 08:32:34 UTC