Skip to content

Commit

Permalink
Improve cascade layers feature check
Browse files Browse the repository at this point in the history
  • Loading branch information
Prestaul committed Feb 8, 2024
1 parent 8b90f26 commit 7be6579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/popover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function patchSelectorFn<K extends string>(
}

const nonEscapedPopoverSelector = /(^|[^\\]):popover-open\b/g;
const hasLayerSupport = Boolean(window.CSSLayerBlockRule);
const hasLayerSupport = typeof window.CSSLayerBlockRule === 'function';

// To emulate a UA stylesheet which is the lowest priority in the cascade,
// all selectors must be wrapped in a :where() which has a specificity of zero.
Expand Down

0 comments on commit 7be6579

Please sign in to comment.