Re: [csswg-drafts] [selectors-4] Add pseudo-class to establish before-change style for css-transitions on new elements. (#8174)

> What does `:initial { display: none }` do? When an element would start generating a box, it applies, preventing the box, then stops applying, so the element is going to try to generate a box again, so `:initial` applies again, and so on? Just want to make sure there is no infinite loop.

:initial is only used as the before-change style of a transition. So `display: none` would return to the status quo of the before-change style not existing during the initial layout and thus not starting transitions.

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


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

Received on Wednesday, 11 January 2023 17:44:36 UTC