github / github/include-fragment-element
host style requires CSP with style-src 'unsafe-inline'
Abierto
- Lenguaje dominante
- JavaScript
- Estrellas
- 568
- Forks
- 43
- Merge medio
- 1 d 6 h
- PR fusionados (30 d)
- 5
Descripción
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
Guía de contribución
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript
- Área
- frontend, web-dev
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 30/100