Commit 7bcb656
committed
fix: warn when static styles used with light DOM (silently ignored before)
static styles + static shadow = false is a mistake — adoptedStyleSheets
requires a shadow root. Now logs a clear warning telling the developer
to use global CSS or <style> in render() instead.1 parent d74daa8 commit 7bcb656
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
366 | 371 | | |
367 | 372 | | |
368 | 373 | | |
| |||
0 commit comments