FezVrasta/popper.js

View on GitHub
packages/dom/src/utils/isStaticPositioned.ts

Summary

Maintainability
A
0 mins
Test Coverage
import {getComputedStyle} from '@floating-ui/utils/dom';

export function isStaticPositioned(element: Element): boolean {
  return getComputedStyle(element).position === 'static';
}