ArthurHub / ArthurHub/HTML-Renderer

Line Height not calculated correctly inside a div

Aperta
#153 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug CSS
Lingua principale
C#
Stelle
1.4k
Fork
550
Merge medio
14g 9h
PR unite (30g)
1

Descrizione

When creating a div with the follow class:
`.divClass{
height: 40px;
line-height: 40px;
}`
The text inside the div should appear to be centered vertically. Currently in HTML-Renderer it renders the text at the very top and only applies the line-height to the next line.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start by reproducing the supplied div and CSS in HTML-Renderer, then trace how the renderer handles line-height and the first line of text. Done means the text is vertically centered inside a 40px-high div with a 40px line-height, rather than applying the height only to the next line.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp
Ambito
frontend
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.