Inline span padding inside a link is dropped (quote-mark padding-right: 0.15em)

Abierto
#6,979 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
68/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
php, wordpress
Área
backend, content

Línea de trabajo

Start by tracing how HTML inside RichText is converted, using the provided anchor, span, and CSS example as the reproduction case. Check the existing conversion tests for inline typography and color to find where box properties are handled. Done means the span’s em-relative padding, and any margin, survive conversion while the existing inline formatting remains intact.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Found importing https://javisantana.com/ with Blocks Engine trunk (v0.51.7 plus #6963, #6964 and #6968). After those fixes, this is the only remaining pixel difference the fidelity compare reports on the homepage, at 390, 768 and 1440.

Problem

An inline span's horizontal padding inside a link is dropped:

<a class="t" href="…"><span class="qm">“</span><i>Learn to cook</i></a>
.post-list .row.q .qm { font-style: normal; border: 0; padding-right: 0.15em; }

At 15px the source puts the <i> at x = 482.89; WordPress puts it at x = 480.64. The 2.25px is exactly the span's padding-right: 0.15em. Colour, font, width and underline all match, so this padding is the only difference. Every quote row on the homepage list (.row.q) is affected.

Expected

Box properties (padding, and margin if present) of an inline element that is kept inside RichText survive conversion, the way inline typography and colour do, and stay em-relative.

🤖 Generated with Claude Code

Lenguaje dominante
PHP
Estrellas
29
Forks
6
Merge medio
3 h 40 min
PR fusionados (30 d)
813

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Automattic/blocks-engine

Todos los issues de Automattic/blocks-engine

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.