bunnyquery 1.8.13 → 1.8.15
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/bunnyquery.css +8 -0
- package/bunnyquery.js +718 -104
- package/dist/engine.cjs +606 -52
- package/dist/engine.cjs.map +1 -1
- package/dist/engine.d.mts +544 -212
- package/dist/engine.d.ts +544 -212
- package/dist/engine.mjs +602 -53
- package/dist/engine.mjs.map +1 -1
- package/package.json +3 -2
- package/src/engine/history.ts +64 -0
- package/src/engine/host.ts +14 -0
- package/src/engine/image_preview.ts +0 -0
- package/src/engine/index.ts +17 -0
- package/src/engine/link_markup.ts +9 -1
- package/src/engine/links.ts +31 -3
- package/src/engine/scroll_anchor.ts +684 -0
- package/src/engine/session.ts +313 -61
- package/src/widget.css +8 -0
package/bunnyquery.css
CHANGED
|
@@ -650,6 +650,14 @@
|
|
|
650
650
|
position: relative;
|
|
651
651
|
overflow-y: auto;
|
|
652
652
|
overflow-x: hidden;
|
|
653
|
+
/* Exactly ONE compensator. Blink and Gecko run their own scroll anchoring on
|
|
654
|
+
this scroller, and it fires at the very layout the JS anchor's absorb()
|
|
655
|
+
forces when it reads offsetHeight - so an image growing above the fold was
|
|
656
|
+
corrected by the browser and then paid for a second time in JS. Measured on
|
|
657
|
+
one background re-render: 6224px of jump with both live, 0 with this.
|
|
658
|
+
Deleting absorb() instead is not an option (15000px of drift on WebKit,
|
|
659
|
+
which has no native anchoring at all). See engine/scroll_anchor.ts. */
|
|
660
|
+
overflow-anchor: none;
|
|
653
661
|
flex: 1;
|
|
654
662
|
min-height: 0;
|
|
655
663
|
padding: 0.25rem 1.25rem;
|