Skip to content

Commit

Permalink
fix: wrong hyphen appears at page break with line-break:anywhere
Browse files Browse the repository at this point in the history
- fix #1162
  • Loading branch information
MurakamiShinyu committed Apr 11, 2023
1 parent f5c0a6c commit a5e1356
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/core/src/vivliostyle/vgen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1033,11 +1033,14 @@ export class ViewFactory
const wordBreak = computedStyle["word-break"];
const lineBreak = computedStyle["line-break"];
const overflowWrap = computedStyle["overflow-wrap"];
this.nodeContext.breakWord =
if (
wordBreak === Css.ident.break_all ||
lineBreak === Css.ident.anywhere ||
overflowWrap === Css.ident.break_word ||
overflowWrap === Css.ident.anywhere;
overflowWrap === Css.ident.anywhere
) {
this.nodeContext.breakWord = true;
}

// Resolve formatting context
this.resolveFormattingContext(
Expand Down

0 comments on commit a5e1356

Please sign in to comment.