Skip to content

Commit

Permalink
Merge pull request #1407 from vivliostyle/fix/issue1406
Browse files Browse the repository at this point in the history
fix: Broken text layout at page/column break caused by inline SVG
  • Loading branch information
MurakamiShinyu authored Oct 28, 2024
2 parents ed02eae + ecb01ef commit 8edd653
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/vivliostyle/vgen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2647,7 +2647,7 @@ export class ViewFactory
const checkForcedLineBreakElem = (elem1: Element): boolean | null => {
const { display, position, float } =
this.viewport.window.getComputedStyle(elem1);
if (elem1.localName === "ruby") {
if (elem1.localName === "ruby" || Base.mediaTags[elem1.localName]) {
return false;
}
if (elem1.localName === "br") {
Expand Down

0 comments on commit 8edd653

Please sign in to comment.