Re: [csswg-drafts] [css-display] Why is display listed as not animatable instead of animation type: discrete? (#6429)

@flackr A few questions that you may have already thought about:
- What about introducing a new value that's similar to none, except the boxes are skipped during layout/painting/a11y, but not actually destroyed? Then in animations you could have 'display: none' (and 'content: none' on pseudos) behave as that value.
- Alternatively, since the main use case seems to be animating to/from 'display: none', introducing a new property that flips between 'display me' and 'don't display me' and having *that* be animatable as discrete. (There's been requests for such a property in the past, to avoid messing with the "which box type" aspect of 'display'.)

Rebuilding layout trees is not fast, I'm surprised you want to enable it during an animation.

-- 
GitHub Notification of comment by fantasai
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6429#issuecomment-1462399688 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 9 March 2023 16:48:50 UTC