Open Ampflower opened 1 week ago
I think this is the relevant code:
CSS variables (technical term "custom properties") will return nothing from property_id_from_string()
so it's not doing anything.
A rough idea of what needs changing:
Optional<FlyString> custom_property_name
to the other set_property()
method.PropertyOwningCSSStyleDeclaration::set_a_css_declaration()
also needs to take the custom property name, and store it in m_custom_properties
instead of m_properties
.
Relevant section of code:
https://github.com/Ampflower/ampflower.gay/blob/951fbd1e764a14e767070c9903ea7e017d1a3de4/src/assets/js/hibiscus.js#L63-L66
It is notable that inspect element can override it and preserve it perfectly fine, telling me this is likely a JS API problem and not a CSS or DOM problem.