Presentational <font size> inside a heading is dropped, so the heading renders at its full heading size
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
Direzione di ricerca
The payload names no source files, so start by finding where the converter handles inline elements, and compare it with the align fix referenced in #2889. Reproduce with a neutral fixture of an h2 containing em and font size="3", and check the converted output for the font-size. Done means that fixture converts to 16px, with color and face covered by tests.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Observed
A hosted-builder page marks its form intro as a heading whose text is wrapped in a presentational <font> element:
<h2 class="wsite-content-title"><em><font size="3">We'd appreciate hearing from you! …</font></em></h2>
Browsers render <font size="3"> at 16px, so on the source the intro is small 16px italic text. After conversion (php-transformer v0.43.7), the <font> element and its size are gone. The core/heading renders at the h2 size: 36px at 1440 and 29.25px at 768, against 16px on the source. The text block grows from 62px to 130px tall at 1440, and from 54px to 140px at 768. The retained capture matches the source, so the loss happens during conversion.
This is the same family as #2889 (the presentational align attribute is dropped). Legacy presentational attributes on inline carriers (font[size|color|face]) carry authored typography that has no stylesheet rule to fall back on.
Expected
<font size|color|face> survive as equivalent inline typography on the rich-text run, e.g. a styled mark or carrier with font-size from the HTML size scale (1→10px … 3→16px … 7→48px) and the color and font-family. That lets the heading render at the authored size.
Acceptance
- A neutral fixture of a heading containing
<font size="3">converts with a computed font-size of 16px (not the heading default). colorandfaceare covered too.
AI disclosure: Pi coding agent (Anthropic model via Roadie) measured this with Playwright and drafted the comment under Chris Huber's direction.
- Lingua principale
- PHP
- Stelle
- 25
- Fork
- 3
- Merge medio
- 3h 25m
- PR unite (30g)
- 935
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Automattic/blocks-engine
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Automattic/blocks-engine#4621 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Automattic/blocks-engine#775 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 74/100
Automattic/blocks-engine#4638 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
Automattic/blocks-engine#4637 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
Automattic/blocks-engine#4630 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Automattic/blocks-engine
Issue simili
-
Administration: required plugin configuration field stays invalid after restoring its saved valueApertaneeds-triage Platform(Default)
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
good first issue priority:low type:docs
Difficoltà 1/5 1-3 ore Idoneità per principianti 95/100
crazy-goat/rabbit-stream#969 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
opensourcepos/opensourcepos#4801 ·
I maintainer di solito rispondono entro 1 giorno
-
backend docs
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
Open-Locker/Open-Locker#368 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement priority Sales
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
novalo-dev/Prestashop-MCP-Server#190 ·
I maintainer di solito rispondono entro 1 giorno