mol_dump_lib 0.0.291 → 0.0.293

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/node.js CHANGED
@@ -4193,8 +4193,7 @@ var $;
4193
4193
  (function ($) {
4194
4194
  let cache = null;
4195
4195
  function $mol_support_css_overflow_anchor() {
4196
- return cache ?? (cache = (!/Gecko\//.test(navigator.userAgent)
4197
- && this.$mol_dom_context.CSS?.supports('overflow-anchor:auto')) ?? false);
4196
+ return cache ?? (cache = this.$mol_dom_context.CSS?.supports('overflow-anchor:auto') ?? false);
4198
4197
  }
4199
4198
  $.$mol_support_css_overflow_anchor = $mol_support_css_overflow_anchor;
4200
4199
  })($ || ($ = {}));
@@ -4321,22 +4320,22 @@ var $;
4321
4320
  }
4322
4321
  let top2 = top;
4323
4322
  let bottom2 = bottom;
4324
- if (anchoring && (top <= limit_top) && (bottom2 < limit_bottom)) {
4325
- min2 = Math.max(0, max - 1);
4323
+ if (anchoring && (top < limit_top) && (bottom < limit_bottom)) {
4324
+ min2 = max;
4326
4325
  top2 = bottom;
4327
4326
  }
4328
- if ((bottom >= limit_bottom) && (top2 >= limit_top)) {
4329
- max2 = Math.min(min + 1, kids.length);
4327
+ if ((bottom > limit_bottom) && (top > limit_top)) {
4328
+ max2 = min;
4330
4329
  bottom2 = top;
4331
4330
  }
4331
+ while (anchoring && ((top2 > limit_top) && (min2 > 0))) {
4332
+ --min2;
4333
+ top2 -= kids[min2].minimal_height();
4334
+ }
4332
4335
  while (bottom2 < limit_bottom && max2 < kids.length) {
4333
4336
  bottom2 += kids[max2].minimal_height();
4334
4337
  ++max2;
4335
4338
  }
4336
- while (anchoring && ((top2 >= limit_top) && (min2 > 0))) {
4337
- --min2;
4338
- top2 -= kids[min2].minimal_height();
4339
- }
4340
4339
  return [min2, max2];
4341
4340
  }
4342
4341
  gap_before() {