mirror of https://github.com/sveltejs/svelte
fix: provide a workaround for `unsafe-inline` CSP that also works in Safari (#7800)
This changes the inserted style element for transitions to initially include the string '/* empty */'. This allows you to work around requiring unsafe-inline CSP discussed in #6662 by adding a hash to your CSP: 'sha256-9OlNO0DNEeaVzHL4RZwCLsBHA8WBQ8toBp/4F5XV2nc=' --------- Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>pull/8566/head
parent
c0363966d3
commit
afd38494b4
@ -1,13 +1,13 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"code": "css-unused-selector",
|
"code": "css-unused-selector",
|
||||||
"message": "Unused CSS selector \"h1 ~ p\"",
|
"message": "Unused CSS selector \"h1 ~ slot > p\"",
|
||||||
"start": {
|
"start": {
|
||||||
"column": 1,
|
"column": 1,
|
||||||
"line": 12
|
"line": 12
|
||||||
},
|
},
|
||||||
"end": {
|
"end": {
|
||||||
"column": 7,
|
"column": 14,
|
||||||
"line": 12
|
"line": 12
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue