Re: [csswg-drafts] [css-view-transitions-2] How are invalid types validated? (#10706)

See [this resolution](https://github.com/w3c/csswg-drafts/issues/10114#issuecomment-2023217450)

We specifically allowed invalid types in the `setlike` setters, to be consistent with `CustomStateSet` where the set can include and reflect invalid values, but they're not selectable in JS.

I think this validation should be in `@view-transition { types }` and in `:active-view-transition-type()`, not sure it needs to be in CSSOM.

I think it's important that it would make the whole at rule invalid, otherwise an at rule with invalid types would trigger a transition as if it has no types.


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


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

Received on Wednesday, 7 August 2024 06:57:32 UTC