github / github/include-fragment-element
host style requires CSP with style-src 'unsafe-inline'
- Lingua principale
- JavaScript
- Stelle
- 568
- Fork
- 43
- Merge medio
- 1g 6h
- PR unite (30g)
- 5
Descrizione
Is there another way to style the host as block without an inline style? Or could there be a mechanism for the host page to control the insertion of this style?
https://github.com/github/include-fragment-element/blob/75ac8d9978339004ec7fe4e73c121d64ccea6c3b/src/include-fragment-element.ts#L96-L98
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Read src/include-fragment-element.ts at lines 96-98 to understand how the host styling is inserted. Reproduce the behavior under a CSP that disallows inline styles, then define and verify a change that avoids the requirement or lets the host page control the style insertion.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- frontend, web-dev
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 30/100