Provides an adjunct store to track an associated TJSPosition state that affects the validity of container query types that perform size queries. When width or height is auto or inherit the size query containers may be invalid. CQPositionValidate.validate also checks if the browser supports container queries.

Implements

Constructors

Methods

  • Manually destroy and cleanup associations to any subscribers and TJSPosition instance.

    Returns void

  • Set a new TJSPosition instance to monitor.

    Parameters

    • position: TJSPosition

      New TJSPosition instance to associate.

    Returns void

  • Returns the serialized state tracking supported container types.

    Returns { inlineSize: boolean; normal: boolean; size: boolean }

  • Parameters

    • cqType: string

      The container query type to validate against current associated TJSPosition state.

    Returns boolean

    Whether the browser and associated TJSPosition current state supports the requested container query type.