Spec: https://drafts.csswg.org/cssom/#dom-elementcssinlinestyle-style
With implementing this, we should be able to fix #26032.
Tried to implement style for SVGElement, I found it doesn't fix #26032 and we still can't get style for the create svg circle element :/
const x = document.createElementNS("http://www.w3.org/2000/svg", "circle");
console.log(x.style);
In Gecko, this will log an empty CSS2Properties but it will log undefined in Servo even SVGElement includes ElementCSSInlineStyle.
I have a suspicion that the element returned from createElementNS is a generic Element, rather than an SVGElement. It's worth checking if that is the case.
Cool! Yes! It currently returns a generic Element.
Before implementing other svg elements, should we return a generic SVGElement here instead?
Yes, that should help.
Most helpful comment
Yes, that should help.