Class CssPositioning

java.lang.Object
org.patternfly.overlay.CssPositioning

public class CssPositioning extends Object
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:

See Also:
  • Constructor Details

    • CssPositioning

      public CssPositioning()
  • Method Details

    • anchorNameSupported

      public static boolean anchorNameSupported()
      Returns true if the browser supports CSS anchor positioning.
    • containerTypeAnchoredSupported

      public static boolean containerTypeAnchoredSupported()
      Returns true if the browser supports CSS anchor positioning and anchored container queries (container-type: anchored).