Class CssPositioning
java.lang.Object
org.patternfly.overlay.CssPositioning
Detects whether the browser supports CSS anchor positioning features, which enable native CSS-based overlay placement instead
of JavaScript-based positioning.
Two levels of support are detected:
anchorNameSupported()— basic CSS anchor positioning (anchor-name)containerTypeAnchoredSupported()— anchored container queries (container-type: anchored), required by tooltip and popover for arrow positioning
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanReturnstrueif the browser supports CSS anchor positioning.static booleanReturnstrueif the browser supports CSS anchor positioning and anchored container queries (container-type: anchored).
-
Constructor Details
-
CssPositioning
public CssPositioning()
-
-
Method Details
-
anchorNameSupported
public static boolean anchorNameSupported()Returnstrueif the browser supports CSS anchor positioning. -
containerTypeAnchoredSupported
public static boolean containerTypeAnchoredSupported()Returnstrueif the browser supports CSS anchor positioning and anchored container queries (container-type: anchored).
-