ArthurHub / ArthurHub/HTML-Renderer
Line Height not calculated correctly inside a div
- Langage dominant
- C#
- Étoiles
- 1.4k
- Forks
- 550
- Merge moyen
- 14 j 9 h
- PR mergées (30 j)
- 1
Description
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.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- csharp
- Domaine
- frontend
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100