- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 08 May 2024 16:57:41 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-transitions] Transition to height (or width) "auto"`, and agreed to the following: * `RESOLVED: Animation to/from keyword sizes requires an opt-in, so by default only get transition ifa t least one side gets calc-size()` <details><summary>The full IRC log of that discussion</summary> <khush> > if that returns pseudo-element animations?<br> <khush> flackr can confirm. I think it's supposed to.<br> <fantasai> -> https://github.com/w3c/csswg-drafts/issues/626#issuecomment-2071016522<br> <fantasai> dbaron: We discussed calc-size() proposal. One question was whether we could, instead of or in addition to calc-size(), write what people want to write<br> <fantasai> dbaron: concern was compat, but did we check<br> <fantasai> dbaron: one thing I followed up with, since I had implemented, I could implement the natural behavior where you could just transition '0x' to 'auto'<br> <fantasai> dbaron: I could figure out what could break<br> <fantasai> dbaron: There's more details in the comment in the issue, but basically what I did was a very conservative study<br> <fantasai> dbaron: ran through loading top 1000 sites with a special build<br> <fantasai> dbaron: Even with that limit, I found multiple pages that would break with this change<br> <fantasai> dbaron: [gives some examples]<br> <fantasai> dbaron: Several pages animating widths and heights from zero that was not expected<br> <fantasai> dbaron: at the same time, there was a page on ups.com with an animation that got better<br> <fantasai> dbaron: but conclusion was, given this very small and conservative sample shows multiple pages that are broken<br> <flackr> q+<br> <fantasai> dbaron: we know it's not web-compatible<br> <fantasai> dbaron: so we know we can't just support CSS tranistion from 0px to auto and equivalents<br> <fantasai> dbaron: given that, what I want to get out of this is to restate more firmly that we want to move forward with calc-size()<br> <fantasai> dbaron: given alternative, which would have better developer ergonomics, is not compatible<br> <astearns> ack flackr<br> <fantasai> flackr: agree we can't just do it automatically<br> <fantasai> flackr: what about having a more generic opt-in for authors?<br> <fantasai> flackr: calc-size() require for each item to change the styling<br> <fantasai> flackr: whereas a switch could opt in your whole page<br> <fantasai> dbaron: we could consider something like that<br> <fantasai> dbaron: maybe use transition-behavior, which is designed to do that<br> <fantasai> dbaron: it's reset by the transition shorthand<br> <fantasai> flackr: it's also about transitions only, not animation<br> <fantasai> dbaron: I think we can do both<br> <fantasai> dbaron: current behavior with calc-size(), to get the animation you have to wrap at least one endpoint in calc-size()<br> <fantasai> dbaron: I also do worry about global overrides<br> <fantasai> dbaron: because pages are built from smaller components<br> <astearns> ack fantasai<br> <fantasai> fantasai: Agree with flackr<br> <TabAtkins> I'm completely fine with a value that can turn on the transition behavior for general values, fwiw, so long as the default behavior requires using calc-size() on at least one side.<br> <fantasai> fantasai: I think putting in transition-behavior is good, not global, easy to incorporate into transitions and gets reset whenever you do a different ransition<br> <fantasai> fantasai: for animations, could consider something in the @keyframes rule, so that it gets associated with the keyframes and used wherever the keyframes get used<br> <fantasai> astearns: but agree that doesn't preclude using calc-size()<br> <fantasai> fantasai: yes<br> <fantasai> TabAtkins: Proposed resolution, by default, only get transition if at least one side gets calc-size()<br> <fantasai> RESOLVED: Animation to/from keyword sizes requires an opt-in, so by default only get transition ifa t least one side gets calc-size()<br> <fantasai> s/ifa t/if at/<br> <fantasai> dbaron: At this point it's prototyped in Chromium, but it's getting more stable and closer to matching spec at this point<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/626#issuecomment-2101014632 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 8 May 2024 16:57:41 UTC