Comments (9)
Decided that this was reasonable, incorporated.
from css-houdini-drafts.
Hi there!
I discovered by chance that as part of the big post-F2F rewrite, this feature had been removed.
According to the F2F notes, this is based on feedback from Apple that a list of things would be somewhat easier for them to implement than to reuse what native properties already support. I guess that every browser will find it easier or harder to support either of which, though, and not necessarily the same one.
shane: To go back... want to ask one question about issue #99
shane: Specifically, dino and smfr, which is better for you?
Better to have a list of things or to reference property
names?
smfr: I prefer explicit list; referencing properties is harder for
us.
I didn't spot that discussion during last f2f, but the outcome makes me a bit sad. If people still feel this is the way forward for a faster L1 (ping @smfr), I guess I can live with that, but could we agree on this being a desired L2 feature, at the very least? This would enable every single thing expressible in css to be also expressible and animatable for custom properties (shapes, clip rects, background-position, etc...) which is something I'm really looking forward to.
Any opinion?
from css-houdini-drafts.
Problem is that that locks our parsing down. People will depend on a particular property's parsing rules for things that don't necessarily track with what we intend with a property in the future, particularly if this allows them to express things that they can't express manually in a grammar.
from css-houdini-drafts.
I don't believe this will be a very frequent concern, but this remains a valid argument.
How about this would act like * for parsing purposes, but would animate/transition as the property would? If the value is not a valid value of the property, then it just acts like a normal pair of non-interpolable values. If you really care about parsing, you can always nest inside at-supports statements.
My use case is mainly to have transitions and animations to work.
I have multiple use cases but one we already aim to support is similar to how 'translate/rotate/scale' make it possible to have different transitions functions/timing for different subsections of the 'transform' property; I would want to mimick this for 'background' lists, by animating --background-list-1
and --background-list-2
independently (and merging with unanimated background: var(--...1) var(--...2)
).
from css-houdini-drafts.
That's probably fine. It'll fail in a friendly way.
from css-houdini-drafts.
To avoid confusion, we could probably add this as another optional parameter (interpolateAs). This is more self-explaining. After all, some properties might animate differently the same two pairs of values, so the type isn't the only think influencing interpolation (thinking about visibility and other exceptions, here)
from css-houdini-drafts.
To clarify the problem: someone might use <box-shadow> because they want a couple of lengths and a color for a different purpose. Then the CSSWG finds it harder to change the grammar of box-shadow :(
from css-houdini-drafts.
Right. After some discussion, even supporting this for animation is gonna be a little janky. I'd prefer deferring this to level 2, when our "apply hook" can manually produce a value suitable for interpolating, regardless of what the specified grammar is. Level 1 is intentionally a little feature-weak to keep it reasonable to review and implement.
from css-houdini-drafts.
I'm fine putting this on Level2 backlog.
from css-houdini-drafts.
Related Issues (20)
- [css-typed-om] "Add two types" algorithm seems overly complicated? HOT 2
- [css-properties-values-api] Rule validity doesn't match implementations HOT 9
- [css-properties-values-api] JS API should use CSSOMString
- [css-typed-om] structuredClone for typed-om objects
- [css-properties-values-api] Add <string> as a supported syntax name HOT 3
- [css-properties-values-api] Clarify whether lengths using viewport units are "computationally independent"
- [css-typed-om] Add missing font units to CSSNumericFactory HOT 1
- [css-properties-values-api] Providing a way for @property to be opinionated about its usage
- [css-properties-values-api] Make `initial-value` descriptor optional
- [css-properties-values-api] `<transform-function>` interpolation between different function types
- [css-properties-values-api] Clarify parsing of duplicate descriptor declarations
- [css-properties-values-api-1] Multiple custom `@property` with the same name
- [css-properties-values-api-1] `CSSPropertyRule.initialValue` should not be nullable HOT 1
- [css-typed-om-1] Combining a number and the division of two dimensions of the same type HOT 2
- [scroll-customization-api] is there still interest/ongoing discussions for scroll customization? HOT 5
- [css-properties-values-api] `initial-value` for `*` with arbitrary substitution values HOT 1
- [css-typed-om-1] Broken references in CSS Typed OM Level 1 HOT 1
- [css-animation-worklet-1] how to enable CSS.animationWorklet
- [css-typed-om-1] Republish WD HOT 4
- [css-typed-om-1] `currentColor` is not the only non-absolute color HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from css-houdini-drafts.