Re: [csswg-drafts] [css-view-transitions-2] Decide on naming for navigation-triggered view-transition rule (#9383)

The CSS Working Group just discussed `[css-view-transitions-2] Decide on naming for navigation-triggered view-transition rule`, and agreed to the following:

* `RESOLVED: take the descriptors in the at-rule block`

<details><summary>The full IRC log of that discussion</summary>
&lt;bramus> noamr: continuation of TPAC convo about opt-in for VT on navigation<br>
&lt;bramus> … we need to name it, and be clear how to extend int he future<br>
&lt;bramus> … also worked with dbaron on this (thanks!)<br>
&lt;bramus> … see the original post for code<br>
&lt;bramus> … VT on navigation can be extended to a few diffferent parts<br>
&lt;bramus> … 1 is name of the feature<br>
&lt;bramus> … i call it “navigation-view-transition”<br>
&lt;bramus> … other one is, if there any nav-performed VT, the way it can be extended is which navs does it supply to?<br>
&lt;bramus> … from article to home?<br>
&lt;bramus> … also type o fnavigation (reload, back, etc)<br>
&lt;bramus> … so that is the first 2 things<br>
&lt;bramus> … other one is “is this nav going to trigger a VT or not?” which is sort of a boolean you could say<br>
&lt;bramus> … we might want to say it is, and then override with MQ (see example)<br>
&lt;bramus> … from article to home it is one, but with a back navigation is off<br>
&lt;bramus> …last thing is to extend for types. you can set a few idents to that classify  the transition type and then use that in selectors<br>
&lt;bramus> … elika proposed to also have the conditionals for navigation inside the rule<br>
&lt;bramus> … which is also an option<br>
&lt;bramus> … i think the conditional should b e outside (cfr. media query) but it is debatable<br>
&lt;Rossen_> ack fantasai<br>
&lt;bramus> fantasai: I tweaked the examples in the issue, so reload<br>
&lt;bramus> … given conditioanals can be failry complicated: type, whereto, … – trying to cram that in the at-rule prelude is gnarly<br>
&lt;bramus> … font is kinda a different concept: it is declaring a bunch of props that go together to define a conceptual font<br>
&lt;bramus> … might make sense to take that mental model here<br>
&lt;bramus> … define a transition with type+condition+etc as one package<br>
&lt;bramus> … you end up with a pile of these, and take the last one that matches<br>
&lt;bramus> … in terms of checking for navigation type (fwd, back, etc) is one thing, then there is also a URL-pattern scenario which can be a long list<br>
&lt;emilio> q+<br>
&lt;bramus> … shoving all that in the prelude is going to be a mess I think<br>
&lt;khush> q+<br>
&lt;bramus> astearns: OK, I see the problem you are outlining<br>
&lt;bramus> noamr: proposal is to have a VT but no boolean but to say which navs trigger it and have a from-to and perhaps a list of types<br>
&lt;astearns> s/astearns/Rossen_ /<br>
&lt;bramus> Rossen_: I see<br>
&lt;Rossen_> q?<br>
&lt;bramus> fantasai: that resolves the awkwardness i thiknk<br>
&lt;Rossen_> acm emilio<br>
&lt;bramus> emilio: elika’s proposal sounds elegant. we are fine with not combininig different transition blocks<br>
&lt;bramus> … we need to define an order, but one of them will match<br>
&lt;bramus> fantasai: yeah, they should not cascade into each other<br>
&lt;noamr> q+<br>
&lt;bramus> emilio: if you ahve different types (e.g reload then do this), my understanding was that the types would be added together<br>
&lt;bramus> … with this proposal they would not?<br>
&lt;bramus> fantasai: yeah. if you cascade them together you have a very big complex list.<br>
&lt;bramus> … for navigating from there to here you don’t want to do ???<br>
&lt;bramus> … combining multiple types should be fine (cfr classes); i dont think they should cascade together<br>
&lt;bramus> emilio: sgtm<br>
&lt;Rossen_> ack khush<br>
&lt;Rossen_> ack emilio<br>
&lt;emilio> ack emilio<br>
&lt;bramus> khush: the qualifiers after the at-rule, i wast hinking of them as a pseeudo-class that activates or not and depending on that the at-rule applies<br>
&lt;bramus> … vs things inside the at-rule is what th eauthor is supplying<br>
&lt;bramus> … if from and to are descriptors in the at-rule, is the mental model still the same?<br>
&lt;bramus> … ???<br>
&lt;bramus> fantasai: from grouping at-rules, the conditioanls are on the outside yes<br>
&lt;bramus> … other at-rules less strict, e.g. font-face<br>
&lt;bramus> … the pile of properties that define the thing go in the block<br>
&lt;bramus> … for VT this is something similary: navigation-vt has a bunch of info: url patterns, type of navigation, etc<br>
&lt;bramus> … the UA should figure out which one that matches<br>
&lt;bramus> … from the bottom up (i.e. last one wins)<br>
&lt;emilio> q+<br>
&lt;bramus> khush: sounds like ??? which one matches latst value and apply that. we are thinking the same on this. if i try to read these values in JS, what from value would I read?<br>
&lt;bramus> fantasai: might be nicer to read here: vtRule.from or vtRule.navigation or … i think this is easier as they are individual declarations<br>
&lt;bramus> … they have accessors to each<br>
&lt;bramus> Rossen_: let’s go over qeuue now<br>
&lt;Rossen_> ack noamr<br>
&lt;bramus> noamr: I like the idea, aligning with font-face is probably better than aligning with at-page<br>
&lt;fantasai> s/grouping at-rules/grouping at-rules, which contain style rules inside them,/<br>
&lt;bramus> … i don’t know what the off-value would be. maybe `navigation: none`?<br>
&lt;bramus> … i can see how this would work<br>
&lt;Rossen_> ack dbaron<br>
&lt;bramus> dbaron: im ok with it but want to call out one thing about analogy to font-face<br>
&lt;bramus> … f-f rules are building up a dictionary or library that is then examinded by the font matching algo<br>
&lt;bramus> … (explains)<br>
&lt;bramus> … i am still ok with something that looks like it<br>
&lt;Rossen_> ack emilio<br>
&lt;bramus> emilio: if we go with condition in prelude or inside, we need to decide how complex it would be<br>
&lt;bramus> … for simple conditions the prelude looks simpler, but many conditions seems easier in the block<br>
&lt;bramus> … there could be 4 or 5 conditions<br>
&lt;bramus> q+<br>
&lt;TabAtkins> +1 to emilio. Putting a name, or *one* type of check (a selector, a MQ, etc), in the prelude makes sense. More than that, keep things in the body for better syntax.<br>
&lt;bramus> … i think i prefer fantasai’s proposal<br>
&lt;Rossen_> ack fantasai<br>
&lt;bramus> fantasai: to respond to dbaron: it is a good analogy. most ??? are conditional. the content you are pulling in is the src descriptor. font-style  and font-weight are just conditionals. basically doing the same here.<br>
&lt;TabAtkins> (I think @font-face *should* have put its family name in the prelude, but oh well, it was one of our first at-rules and we didn't have a consistent design yet.)<br>
&lt;TabAtkins> s/???/declarations in the block/<br>
&lt;TabAtkins> scribe+<br>
&lt;fantasai> (Yeah, agreed, I'd have put font-family in the prelude also. But anyway...)<br>
&lt;TabAtkins> bramus: If you put it in the prelude, you can most likely nest the various at-rules, which isnt' possible with a big block<br>
&lt;Rossen_> ack bramus<br>
&lt;TabAtkins> bramus: So if you want to change one param you have to duplicate everything and change one value<br>
&lt;bramus> Rossen_: sounds like most ppl are agreeing …<br>
&lt;khush> q+<br>
&lt;bramus> … should we take resolution?<br>
&lt;Rossen_> ack khush<br>
&lt;bramus> khush: fine with going the suggestion by fantasai. would be nice to take 2 separate resolutions: 1/ descriptors in at-rule block, 2/ names of things<br>
&lt;bramus> PROPOSED RESOLUTION: take the descriptors in the at-rule block<br>
&lt;bramus> RESOLVED: take the descriptors in the at-rule block<br>
&lt;bramus> Rossen_: names should be bikeshed?<br>
&lt;bramus> noamr: maybe resolve on current names? navigation: auto | none and the type<br>
&lt;khush> q+<br>
&lt;Rossen_> ack khush<br>
&lt;bramus> khush: `navigation-name` for the nav type? dont thikn we need that righ tnow<br>
&lt;bramus> noamr: idea is we dont have all of them. right now would be a boolean (auto or none) which can be extended in the future<br>
&lt;bramus> khush: rathe rnot name that navigation<br>
&lt;bramus> … (missed)<br>
&lt;bramus> Rossen_: let’s take back to the issue<br>
&lt;bramus> noamr: OK<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9383#issuecomment-1779644377 using your GitHub account


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

Received on Wednesday, 25 October 2023 16:28:40 UTC