Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature for Display property: Seperation of visibility and layout behaviour #5022

Closed
sir-script opened this issue Apr 29, 2020 · 3 comments
Closed

Comments

@sir-script
Copy link

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

@faceless2
Copy link

This idea has come up before - see #343 (and #4897).

@sir-script
Copy link
Author

@faceless2 nice :), thanks for the really quick processing. I understand... To find a good name is always a challenge. It will be a great feature :)

@tabatkins
Copy link
Member

Yup, since this is already tracked (and I still strongly hope we can get it done!), I'll close this as a dupe, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants