ArthurHub / ArthurHub/HTML-Renderer
Line Height not calculated correctly inside a div
未關閉
bug
CSS
- 主要語言
- C#
- 星號
- 1.4k
- 分支
- 550
- 平均合併
- 14 天 9 小時
- 30 天內合併 PR
- 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.
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
首先在 HTML-Renderer 中重現提供的 div 和 CSS,然後追蹤 renderer 如何處理 line-height 和文字的第一行。完成的標準是:文字在一個高度為 40px 且 line-height 為 40px 的 div 內垂直置中,而不是只將高度套用到下一行。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- csharp
- 領域
- frontend
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100