Skip to content

Commit

Permalink
fixes FremyCompany#58: do not cut off content before the region's fir…
Browse files Browse the repository at this point in the history
…st element
  • Loading branch information
RonaldTreur committed Dec 7, 2020
1 parent d40c91b commit 088ed50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/css-regions/polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ module.exports = (function(window, document) { "use strict";

// now, let's try to find a break-before/break-after element before the splitting point
var current = r.endContainer; if(current.hasChildNodes()) { if(r.endOffset>0) { current=current.childNodes[r.endOffset-1] } };
var first = r.endContainer.firstChild;
var first = region.firstElementChild;
do {
if(current.style) {

Expand Down

0 comments on commit 088ed50

Please sign in to comment.