Re: [csswg-drafts] [css-transitions] 'display' influencing transition of other properties (#1064)

In #8174 we got a `@starting-style` rule which obviously covers the described use case.

In that issue it was claimed that `display: none` does not create a [before-change style](https://drafts.csswg.org/css-transitions/#before-change-style).

Currently, the related spec. text reads like this:

>  If an element is not in the document during that style change event or was not in the document during the previous style change event, then transitions are not started for that element in that style change event.

The phrasing "not in the document" seems at least vague, though, and doesn't reference what it means by "document". CSS Display 3 rather refers to ["boxes"](https://drafts.csswg.org/css-display-3/#box) and the ["box tree"](https://drafts.csswg.org/css-display-3/#box-tree) and says that `none` doesn't generate any boxes.

So I believe both should refer to the same terminology if `display: none` is meant to _not_ start transitions in style change events.

Though, of course, it would be even better if transitions of other properties were _not_ affected by the value of `display`.

Sebastian

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


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

Received on Tuesday, 27 June 2023 19:18:54 UTC