fix: Restore first-line paragraph indentation (#2320)

This commit is contained in:
Uri Tauber
2026-06-12 11:55:00 -04:00
committed by GitHub
parent 21caebd6e4
commit 8634cb8ad3
4 changed files with 19 additions and 46 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ struct BlockStyle {
blockStyle.paddingRight = std::min(cssStyle.paddingRight.toPixelsInt16(emSize, vw), maxHorizontalInsetPx);
// For textIndent: if it's a percentage we can't resolve (no viewport width),
// leave textIndentDefined=false so the EmSpace fallback in applyParagraphIndent() is used
// leave textIndentDefined=false so the space-width fallback in resolveFirstLineIndent() is used
if (cssStyle.hasTextIndent() && cssStyle.textIndent.isResolvable(vw)) {
blockStyle.textIndent = cssStyle.textIndent.toPixelsInt16(emSize, vw);
blockStyle.textIndentDefined = true;