Open nt1m opened 1 month ago
cc @tuankiet65
Aside from the DOM APIs, should the use of invalid names in the types
descriptor of @view-transition
make the declaration invalid?
(I personally think it should, for clarity)
See this resolution
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.
Apparently there are invalid types (see #9534):
I would suggest throwing a TypeError or a SyntaxError when these are used in DOM APIs (notably the setters).
cc @noamr @khushalsagar @vmpstr @bokand