Skip to content

Commit 7869bb7

Browse files
[CSS Modules] Fix typo in example where a URL was used to import a declarative script #1139
This is the typo we just noticed in the call with Domenic. Simple replacement of the full URL with a non-URL specifier to match the surrounding markup.
1 parent 70a1845 commit 7869bb7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ShadowDOM/explainer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ The shadow root will be created with its `adoptedStyleSheets` array containing t
229229

230230
An inline CSS module script could also be imported in a JavaScript module in the usual way:
231231
```html
232-
import styles from '/foo.css' with { type: 'css' };
232+
import styles from 'foo' with { type: 'css' };
233233
```
234234
Another advantage of this proposal is that it can allow multiple module specifiers in the `shadowrootadoptedstylesheets` property:
235235
```html

0 commit comments

Comments
 (0)