[csswg-drafts] [cssom] `CSSStyleSheetInit` can't default a `DOMString` to null (#12078)

Loirooriol has just created a new issue for https://github.com/w3c/csswg-drafts:

== [cssom] `CSSStyleSheetInit` can't default a `DOMString` to null ==
https://drafts.csswg.org/cssom/#dictdef-cssstylesheetinit

```
dictionary CSSStyleSheetInit {
  DOMString baseURL = null;
  (MediaList or DOMString) media = "";
  boolean disabled = false;
};
```

But from https://webidl.spec.whatwg.org/#idl-DOMString

> **null** is not a value of type [`DOMString`](https://webidl.spec.whatwg.org/#idl-DOMString). To allow **null**, a [nullable](https://webidl.spec.whatwg.org/#dfn-nullable-type) [`DOMString`](https://webidl.spec.whatwg.org/#idl-DOMString), written as `DOMString?` in IDL, needs to be used.

So the `= null` doesn't make sense.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12078 using your GitHub account


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

Received on Monday, 14 April 2025 19:02:35 UTC