Re: [csswg-drafts] [cssom] Overlapping step 5 and 6 in insert a CSS rule (#8654)

I am sorry, `InvalidStateError` would be thrown in the following case:

```js
const sheet = new CSSStyleSheet()
sheet.insertRule('style {}')
sheet.insertRule('@namespace ns "http://ns.org";') // InvalidStateError
```

I guess I miss an hour of sleep...

-- 
GitHub Notification of comment by cdoublev
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8654#issuecomment-1487452448 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 28 March 2023 19:00:49 UTC