-
Notifications
You must be signed in to change notification settings - Fork 669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css-values-5] Should interpolate-size
be a new value to animation/transition-behavior?
#10576
Comments
(I'm aware we don't have |
This is the current spec for interpolate-size: https://drafts.csswg.org/css-values-5/#interpolate-size |
The reason I didn't want to do it this way is described in #10294 (comment) and in #10294 (comment) |
Hmm, ok. How about |
There is the open issue of how we set color interpolation space, perhaps we could combine these? E.g. |
@nt1m @LeaVerou I don't want to combine it with something that people actually want to change, because this is designed to be a compatibility opt-in for something that we'd prefer to make the default but can't because of compatibility. It's something you should be able to set once on the root to opt in to the "correct" behavior and then never touch again. If we combine it with something else then people need to remember to re-state that opt-in at each use. See the minutes in #10294 (comment) (and some of the prior comments) for some discussion of this. |
To re-iterate the feedback we gave in this feature’s TAG review, given that the result of the change is a slight glitch that doesn’t break actual readability, I think we should reconsider simply making the change rather than introducing these awkward opt-ins, or at least digging more into the data to get a fuller picture of the compat implications. We should not be introducing warts into the language simply to avoid examining the compat implications fully or just to be conservative, but when the impact of the wart on authors is genuinely smaller than the impact of the compat implications. Or perhaps we can introduce certain restrictions that serve use cases while minimizing breakage. E.g. I wonder if it would be more web-compatible to only transition between these values when a |
I just responded about the I think as far as browser engine developers go, I think I lean towards being willing to try to make changes that might cause small amounts of broken content. However, I think this is way past where I'm willing to go in terms of breaking content, because given the number of problems I saw on top site homepages I suspect there's going to be a large number of sites broken in various ways through the long tail of web content. I think the CSS WG has had extended discussions of compatibility problems whose effects were at least a hundred times smaller than this. I also think parts of a page moving around that the author didn't intend to animate can substantively affect usability and accessibility, and is more significant than "doesn't break actual readability". |
@dbaron Just one suggestion: can Something like The reason I suggest this, is because I could see more switches being added (choosing the color space for instance, or cross fading images for instance) and it would be nice to have it all in one property.
|
See my reply to Lea in #10576 (comment) |
We have
transition-behavior: allow-discrete
, sointerpolate-size
felt a bit inconsistent to me.Should it be
transition-behavior: allow-keyword-sizes
or such?cc @dbaron @tabatkins @fantasai for thoughts
The text was updated successfully, but these errors were encountered: