- From: Karl Dubost via GitHub <noreply@w3.org>
- Date: Fri, 22 Aug 2025 01:38:03 +0000
- To: public-svg-issues@w3.org
For context, [Interface SVGStyleElement](https://svgwg.org/svg2-draft/styling.html#InterfaceSVGStyleElement) and [6.2. Inline style sheets: the ‘style’ element](https://svgwg.org/svg2-draft/styling.html#StyleElement). For [type](https://svgwg.org/svg2-draft/styling.html#StyleElementTypeAttribute) it says: > This attribute specifies the style sheet language of the element's contents, as a [media type](http://www.ietf.org/rfc/rfc2046.txt). [[rfc2046](https://svgwg.org/svg2-draft/refs.html#ref-rfc2046)]. **If the attribute is not specified, then the style sheet language is assumed to be CSS.** and then > The semantics and processing of a ‘[style](https://svgwg.org/svg2-draft/styling.html#StyleElement)’ and its attributes must be the same as is defined for the HTML ‘style’ element. > > The style sheet's text content is never directly rendered; the [display](https://svgwg.org/svg2-draft/render.html#VisibilityControl) value for the ‘[style](https://svgwg.org/svg2-draft/styling.html#StyleElement)’ element must always be set to none by the [user agent style sheet](https://svgwg.org/svg2-draft/styling.html#UAStyleSheet), and this declaration must have importance over any other CSS rule or presentation attribute. with ``` [Exposed=Window] interface SVGStyleElement : SVGElement { attribute DOMString type; attribute DOMString media; attribute DOMString title; }; SVGStyleElement includes LinkStyle; ``` I wonder where the [deprecated mention comes from on MDN](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement/type) -- GitHub Notification of comment by karlcow Please view or discuss this issue at https://github.com/w3c/svgwg/issues/996#issuecomment-3212706431 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 22 August 2025 01:38:04 UTC