github / github/include-fragment-element

host style requires CSP with style-src 'unsafe-inline'

Abierto
#109 0 comentarios 0 reacciones 0 asignados Ver en GitHub
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

Abrir la 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

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.