Key & lookup CSS custom property registrations / values by atom instead of string?
Categories
(Core :: Layout, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox51 | --- | affected |
People
(Reporter: jyc, Unassigned)
References
(Blocks 1 open bug)
Details
Reporter | ||
Comment 1•8 years ago
|
||
Updated•8 years ago
|
Updated•2 years ago
|
Comment 2•1 year ago
|
||
This bug is referring to the initial implementation of 1273706 from 7 years ago. Is it still valid or can we close it?
AFAIK, in Servo (including animation code) we use crate::custom_properties::Name as keys which are Atoms:
https://searchfox.org/mozilla-central/rev/7d77ff808f8407a3e4fc0911779da446c050f9ee/servo/components/style/custom_properties.rs#158
Comment 3•1 year ago
|
||
Changing dependency order since bug 1273706 is used as a meta bug.
Comment 4•1 year ago
|
||
A decent amount of the animation code is still in C++. I think bug 1298517 is still valid (though much less work) because dom::KeyframeEffect
still gets property values by strings:
https://searchfox.org/mozilla-central/rev/7d77ff808f/dom/animation/KeyframeEffect.cpp#1154
Comment 5•1 year ago
|
||
The code linked in comment 4 above is only to expose property names to script (so that needs actual strings). There's a more general issue of web animations not dealing well with custom properties. When that code is taught about custom props, we should use atoms. But this bug as it exists I think can be closed.
Description
•