Open bokand opened 10 months ago
cc @noamr
I'm assuming "that descriptor" is navigation?
err, reading how the value is used it seems to be looking for the value of the type
descriptor
OK so cascade in the layer sense. +1 for this. AFAIC we can get.a WG resolution or simply add it to the spec.
This seems to just be standard behavior for CSS rules and I saw in the notes lots of agreement that it should work like @font-face
- I've confirmed @font-face does cascade in this way: https://viewtransition.glitch.me/fontface.html
So I think we're probably good to just add it to the spec?
+1 to @bokand's comment. That was the intent of the resolution so we can just update the spec.
Apparently there is no spec language to say that a rule/descriptor cascades in this way... this is implicit in the cascading soec. So I'm not sure if this issue is actionable. The implied behavior should be as described: the last rule is selected after cascading is applied.
This is defined in Cascade 5 here:
Name-defining at-rules such as @keyframes or @font-face that are defined inside cascade layers also use the layer order when resolving name collisions.
Probably the wording needs to be tweaked a bit to account for @view-transition
and @page
, which don't technically define names. :)
This is defined in Cascade 5 here:
Name-defining at-rules such as @keyframes or @font-face that are defined inside cascade layers also use the layer order when resolving name collisions.
Probably the wording needs to be tweaked a bit to account for
@view-transition
and@page
, which don't technically define names. :)
Thanks for the pointer, on it!
The @view-transition resolution algorithm is currently specifies:
But I think it needs to account for the CSS cascade. Take this example:
I would expect the
foo
transition to be resolved, despite the fact that thebar
transition is "last".I think the way to do this will be to keep a map of all encountered
@view-transition
rules, keyed by their matcher descriptors (currently justnavigation
but later includingfrom
,to
, etc. with succeeding levels of the cascade overriding a entries where the matchers are equal.While we're here:
I'm assuming "that descriptor" is
navigation
?