Re: [svgwg] What should SVGStyleElement.type return when type attribute is missing? (#996)

[style element for HTML](https://html.spec.whatwg.org/#the-style-element).

The [update style block algorithm](https://html.spec.whatwg.org/#update-a-style-block) says on step 4.

> 4. If element's [type](https://html.spec.whatwg.org/#attr-style-type) attribute is present and its value is neither the empty string nor an [ASCII case-insensitive](https://infra.spec.whatwg.org/#ascii-case-insensitive) match for "[text/css](https://html.spec.whatwg.org/#text/css)", then return.

and in step 6

> 6. [Create a CSS style sheet](https://drafts.csswg.org/cssom/#create-a-css-style-sheet) with the following properties:
> 
> [type](https://drafts.csswg.org/cssom/#concept-css-style-sheet-type)
> [`text/css`](https://html.spec.whatwg.org/#text/css)

-- 
GitHub Notification of comment by karlcow
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/996#issuecomment-3212774849 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 02:04:25 UTC