Commit bb766bb
committed
AG-39295 Fix 'inject-css-in-shadow-dom' — scriptlet does not work if adoptedStyleSheets is overridden. #477
Squashed commit of the following:
commit bcd2159
Author: Adam Wróblewski <[email protected]>
Date: Thu Apr 10 09:17:55 2025 +0200
Check cssInjectionMethod eariler
commit 0ee035b
Merge: 39cc223 938bbe3
Author: Adam Wróblewski <[email protected]>
Date: Wed Apr 9 10:08:06 2025 +0200
Merge branch 'master' into fix/AG-39295
commit 39cc223
Author: Adam Wróblewski <[email protected]>
Date: Tue Apr 8 20:53:16 2025 +0200
Add try...catch to injectStyleTag
Add JSDoc for injectAdoptedStyleSheets
Check cssInjectionMethod earlier
commit d66a9a6
Author: Slava Leleka <[email protected]>
Date: Tue Apr 8 21:23:16 2025 +0300
Update documentation
commit e7416d7
Author: Adam Wróblewski <[email protected]>
Date: Tue Apr 8 13:30:26 2025 +0200
Add ability to choose CSS injection method in `inject-css-in-shadow-dom` scriptlet1 parent 938bbe3 commit bb766bb
File tree
3 files changed
+74
-8
lines changed- src/scriptlets
- tests/scriptlets
3 files changed
+74
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
| |||
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
35 | 45 | | |
36 | 46 | | |
37 | 47 | | |
38 | 48 | | |
39 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
40 | 55 | | |
41 | 56 | | |
42 | 57 | | |
43 | 58 | | |
44 | 59 | | |
45 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
46 | 66 | | |
47 | 67 | | |
48 | 68 | | |
49 | 69 | | |
50 | 70 | | |
51 | 71 | | |
52 | | - | |
| 72 | + | |
53 | 73 | | |
54 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
55 | 97 | | |
56 | 98 | | |
57 | 99 | | |
| |||
62 | 104 | | |
63 | 105 | | |
64 | 106 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
69 | 111 | | |
| 112 | + | |
70 | 113 | | |
71 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
72 | 120 | | |
73 | 121 | | |
74 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
211 | 227 | | |
0 commit comments