[META] Implement CSS Houdini Typed OM Level 1 specification
Categories
(Core :: CSS Parsing and Computation, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox50 | --- | affected |
People
(Reporter: jyc, Unassigned)
References
(Depends on 5 open bugs, Blocks 10 open bugs, )
Details
(4 keywords, Whiteboard: webcompat:risk-high )
Updated•9 years ago
|
Updated•8 years ago
|
Updated•8 years ago
|
Updated•7 years ago
|
Comment 1•7 years ago
|
||
Updated•6 years ago
|
Updated•2 years ago
|
Where is this in the priority list?
I really need it for https://lume.io: Custom Elements for 3D graphics (CSS and WebGL), where the CSS transforms are currently sent in via style attributes, but sending in numbers to the Typed OM will be way better.
Hello 👋🏼 — I'm Tai, an engineer at Webflow. Within this context, I'm a developer building a visual abstraction for HTML/CSS using the underlying browser APIs (like getComputedStyle). We would love to be able to leverage computedStyleMap
to build some really cool stuff for our users, and are basically blocked until there is Firefox support for CSS Typed OM.
I also came here because we recently had some bugs due to changes to how getComputedStyle
is apparently evolving, and was recommended by Lea Verou to use computedStyleMap
for the "fix" (we had to find another way). Here is the github issue:
https://github.com/w3c/csswg-drafts/issues/8398#issuecomment-1570264185
Thank you!
Tai
Updated•11 months ago
|
Has anybody tried to work on this?
I assume anybody can pick this up right?
Or is there some blocker people should know about?
like is the CSSOM specification weird or what?
Comment 9•5 months ago
|
||
I am not working for Mozilla, so take this with a grain of salt.
(In reply to Jason Ho from comment #8)
Has anybody tried to work on this?
Or is there some blocker people should know about?
like is the CSSOM specification weird or what?
At least Mozilla is positive about it, see https://mozilla.github.io/standards-positions/#css-typed-om. So there is probably only a priority/time constraint.
I assume anybody can pick this up right?
I guess so. Though the specification is also quite complex. So that's rather something for someone experienced in coding for Gecko.
Sebastian
Comment 10•5 months ago
|
||
There's no blocker (other than time and resources). Anybody can pick this up, I'd be happy to mentor / review patches / etc. We can sort out the complex bits as we get to them :)
Updated•2 months ago
|
Comment 11•14 days ago
|
||
There's an issue here on performance:
https://github.com/w3c/csswg-drafts/issues/11567
Basically in Chrome and Safari there's no incentive to switch projects over to CSS Typed OM, when animating CSS styles of an element, because the performance is the same as modifying style attributes using style strings.
Maybe it is that Chrome and Safari browsers are incurring the cost of the number-to-style-string conversion, which is heavy. I believe that one of the main purposes of the CSS Typed OM API is performance: let us modify CSS state using numbers, for performant animation.
Theoretically a browser can optimize this if they wish (avoiding a number-to-style conversion until the user reads the style), and optimize sending numbers directly to the rendering implementation. Could the spec be updated to enforce this?
Description
•