- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 20 Mar 2024 15:39:52 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed ``[css-anchor-position-1] Define interaction with the cascade in `@position-try` ``, and agreed to the following: * `RESOLVED: fallback styles live in a new "Position Fallback Origin". They revert like Animation styles (back to User origin)` <details><summary>The full IRC log of that discussion</summary> <chrishtr> TabAtkins: we resolved earlier that rules from position fallbacks interact with the cascade in some way<br> <chrishtr> TabAtkins: now we want to define that<br> <chrishtr> TabAtkins: propose that rules applied by a posoition-try have a new origin after author origin and before animation origin<br> <chrishtr> TabAtkins: this lets such rules win over all author rules but lose to animation, important etc<br> <chrishtr> TabAtkins: revert keyword would also revert to user origin, just like animations<br> <emilio> q+<br> <Rossen_> ack emilio<br> <chrishtr> emilio: can can rules in this origin change position?<br> <chrishtr> TabAtkins: yes<br> <chrishtr> emilio: s/position/transition/<br> <chrishtr> TabAtkins: only once all of the cascade has finished is there a transition to start<br> <chrishtr> emilio: details of that seem fiddly. Seems the right behavior but needs edge case testing and spec text to make sure it's clear<br> <chrishtr> TabAtkins: current spec says to go through them in sequence and only declare the element's real style once all have done<br> <chrishtr> emilio: these things used to not be done until after layout?<br> <chrishtr> TabAtkins: these are inputs to layout and so are used styles<br> <chrishtr> emilio: but how does that cause transitions?<br> <chrishtr> TabAtkins: uses the same mechanism we discussed before<br> <TabAtkins> > These modified styles are applied to the element via interleaving, so they affect computed values (and can trigger transitions/etc) even tho they depend on layout and used values.<br> <chrishtr> emilio: that causes interleaving then?<br> <chrishtr> emilio: performance may be an issue, but if that's what we want ok<br> <chrishtr> futhark: it's quite similar to container queries - might need to repeat style multiple times due to interleaved style and layout across containers<br> <dbaron> futhark: ... before starting transitions<br> <chrishtr> chrishtr: emilio was asking about performance concerns also?<br> <chrishtr> emilio: my question was about remembering rules from before and how are we supposed to do that?<br> <chrishtr> futhark: in Chromium that is part of the cascade implementation generally<br> <chrishtr> futhark: we need to handle that regardless for regular animations<br> <chrishtr> futhark: I forget the exact way that important overriddes animations?<br> <chrishtr> emilio: animations override important. but if we're just reusing the regular cascade then it's fine<br> <chrishtr> futhark: what we do is to insert these trys into the cascade as appropriate and re-run it<br> <chrishtr> emilio: still a bit concerned about performance, but it's fine<br> <chrishtr> futhark: some optimizations can be applied since the try blocks are more scoped<br> <chrishtr> emilio: haven't read the exact spec text but seems fine to me<br> <chrishtr> fantasai: wanted to say that this is the most reasonable place in the cascade to put these rules, other than possibly somehow inlining them somewhere, not sure<br> <astearns> let’s try to get as much of these fiddly details into a spec as we can<br> <chrishtr> fantasai: but that possible alternative sounds complicated<br> <chrishtr> fantasai: we should minimize what goes into these try blocks and put other features elsewhere<br> <chrishtr> fantasai: this way we can maximize the % of styles that end up in their regular place in the cascade<br> <chrishtr> fantasai: for inset and margin it's reasonable to put them in position-try, but for more stylistic items they should go in the cascade proper outside of a position-try rule whenever possible<br> <fantasai> s/somewhere/where the position-try declaration that sources them lives/<br> <fantasai> s/other features/other declarations/<br> <TabAtkins> proposed reoslution: fallback styles live in a new "Position Fallback Origin"<br> <TabAtkins> proposed resoultion: They revert like Animation styles (back to User origin)<br> <chrishtr> RESOLVED: fallback styles live in a new "Position Fallback Origin". They revert like Animation styles (back to User origin)<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9149#issuecomment-2009875182 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 20 March 2024 15:39:53 UTC