Skip to content

Commit 789eb4b

Browse files
author
JoelCDL
committed
Reduce anchor positioning support to anchor scope
1 parent ee2ee4a commit 789eb4b

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/js/anchor-positioning.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,9 @@
77
const anchorPositioningPolyfill = async () => {
88
const { default: polyfill } = await import('@oddbird/css-anchor-positioning/dist/css-anchor-positioning-fn.js')
99

10-
polyfill({
11-
elements: undefined,
12-
excludeInlineStyles: false,
13-
useAnimationFrame: false
14-
})
10+
polyfill()
1511
}
1612

17-
if (!('anchorName' in document.documentElement.style)) {
13+
if (!('anchorScope' in document.documentElement.style)) {
1814
anchorPositioningPolyfill()
1915
}

0 commit comments

Comments
 (0)