ArthurHub / ArthurHub/HTML-Renderer

Line Height not calculated correctly inside a div

オープン
#153 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug CSS
主要言語
C#
スター
1.4k
フォーク
550
平均マージ
14日 9時間
マージ済み PR(30日)
1

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp
領域
frontend
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。