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

https://codepen.io/webcompat/pen/LEpmzeG

```
<style>
  rect {fill: red;}
  code {font-weight: bold;}
</style>


<svg>
  <style>
    rect {fill: gold; }
  </style>
  <rect width="50px" height="50px"></rect>
</svg>

<div>SVGElementStyle.type value with missing type attribute: <code class="log"></code></div>

<script>const log = document.querySelector(".log");
const svgstyle = document.querySelector("svg style");
log.textContent = svgstyle.type;</script>
```

* Safari Technology Preview 226: `text/css`
* Firefox Nightly 143.0a1 (2025-08-17): ``
* Chrome Canary 141.0.7370.0: `text/css`



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