Meziantou.Framework.WebPlatform.Css.Om namespace

Classes

NameDescription
ContainerQueryListA list of container conditions evaluated for an element, whose state can be observed, created by Element.MatchContainer. The API is proposed in https://github.com/w3c/csswg-drafts/pull/13551 and is modeled on MediaQueryList.
ContentVisibilityAutoStateChangeEventThe event fired at an element with content-visibility: auto when it starts or stops skipping its contents (https://drafts.csswg.org/css-contain-2/#content-visibility-auto-state-change).
ContentVisibilityAutoStateChangeEventInithttps://drafts.csswg.org/css-contain-2/#dictdef-contentvisibilityautostatechangeeventinit
Csshttps://drafts.csswg.org/cssom/#namespacedef-css
CssApplyBlockRulehttps://drafts.csswg.org/css-mixins-1/#cssapplyblockrule: an @apply rule with a contents block, whose rules are the child rules.
CssApplyStatementRulehttps://drafts.csswg.org/css-mixins-1/#cssapplystatementrule: an @apply rule without a contents block.
CssColorProfileRuleThe @color-profile rule (https://drafts.csswg.org/css-color-5/#at-profile): the ICC profile of a custom color space, whose colors are written color(--name ...).
CssConditionRulehttps://drafts.csswg.org/css-conditional-3/#the-cssconditionrule-interface
CssContainerConditionhttps://drafts.csswg.org/css-conditional-5/#dictdef-csscontainercondition
CssContainerRulehttps://drafts.csswg.org/css-conditional-5/#the-csscontainerrule-interface
CssContentsBlockRulehttps://drafts.csswg.org/css-mixins-1/#csscontentsblockrule: a @contents rule with a fallback block, whose rules are the child rules.
CssContentsStatementRulehttps://drafts.csswg.org/css-mixins-1/#csscontentsstatementrule: a @contents rule without a fallback block.
CssCounterStyleRulehttps://drafts.csswg.org/css-counter-styles/#the-csscounterstylerule-interface
CssCustomMediaRulehttps://drafts.csswg.org/mediaqueries-5/#csscustommediarule: a custom media query (@custom-media --name query;). The references to the custom media queries ((--name)) in the media queries of the style sheets of the document (@media, @import...) evaluate to the query of the last rule with that name; they are false when there is no such rule, in a cycle, and in the other media queries (e.g. matchMedia()).
CssFontFaceDescriptorshttps://drafts.csswg.org/css-fonts-5/#cssfontfacedescriptors
CssFontFaceRulehttps://drafts.csswg.org/css-fonts/#cssfontfacerule
CssFontFeatureValuesMaphttps://drafts.csswg.org/css-fonts-4/#cssfontfeaturevaluesmap: the feature values of a feature value block of a @font-feature-values rule, by name, in insertion order.
CssFontFeatureValuesRulehttps://drafts.csswg.org/css-fonts-4/#font-feature-values: the names of the feature values of the font-variant-alternates functions of the families of the rule. The feature value blocks of the same type are merged (the last declaration of a name wins). The feature values are not used: the fonts are not rendered.
CssFontPaletteValuesRulehttps://drafts.csswg.org/css-fonts-4/#om-fontpalettevalues
CssFunctionDeclarationshttps://drafts.csswg.org/css-mixins-1/#cssfunctiondeclarations: a run of consecutive declarations of a @function rule.
CssFunctionDescriptorshttps://drafts.csswg.org/css-mixins-1/#cssfunctiondescriptors: the local variables (custom properties) and the result descriptor of a @function rule.
CssFunctionParameterhttps://drafts.csswg.org/css-mixins-1/#dictdef-functionparameter
CssFunctionRulehttps://drafts.csswg.org/css-mixins-1/#the-function-rule: a custom function. Its child rules are the runs of declarations of its body (CssFunctionDeclarations) and its conditional group rules.
CssGroupingRulehttps://drafts.csswg.org/cssom/#the-cssgroupingrule-interface
CssImportRulehttps://drafts.csswg.org/cssom/#the-cssimportrule-interface
CssKeyframeRulehttps://drafts.csswg.org/css-animations/#interface-csskeyframerule
CssKeyframesRulehttps://drafts.csswg.org/css-animations/#interface-csskeyframesrule
CssLayerBlockRulehttps://drafts.csswg.org/css-cascade-5/#csslayerblockrule
CssLayerStatementRulehttps://drafts.csswg.org/css-cascade-5/#csslayerstatementrule
CssMarginRulehttps://drafts.csswg.org/cssom/#the-cssmarginrule-interface
CssMediaRulehttps://drafts.csswg.org/css-conditional-3/#the-cssmediarule-interface
CssMixinResultRuleThe @result rule of a mixin body, as implemented by the browsers and used by the web-platform-tests: its declarations and its rules replace the @apply rules that apply the mixin. It accepts the contents of a style rule, plus the @contents rules.
CssMixinRulehttps://drafts.csswg.org/css-mixins-1/#mixin-rule: a mixin. Its body contains the local variables of the mixin (the custom properties, written as CssNestedDeclarations rules), the @result rules, whose contents replace the @apply rules that apply the mixin, and the conditional group rules (@media, @supports, @container) that contain them.
CssNamespaceRulehttps://drafts.csswg.org/cssom/#the-cssnamespacerule-interface
CssNestedDeclarationshttps://drafts.csswg.org/css-nesting/#the-cssnestrule
CssPageDescriptorshttps://drafts.csswg.org/cssom/#csspagedescriptors
CssPageRulehttps://drafts.csswg.org/cssom/#the-csspagerule-interface
CssPositionTryDescriptorshttps://drafts.csswg.org/css-anchor-position-1/#csspositiontrydescriptors: the declarations of a @position-try rule.
CssPositionTryRulehttps://drafts.csswg.org/css-anchor-position-1/#om-position-try: a @position-try rule, which defines a position option (https://drafts.csswg.org/css-anchor-position-1/#fallback-rule) with a name, applied to the absolutely positioned boxes that list it in position-try-fallbacks.
CssPrivateRulehttps://drafts.csswg.org/css-mixins-1/#private: @private { <declaration-rule-list> } defines the private properties of the style rule that contains it: <custom-property-name> <css-type>? : <declaration-value>. The private properties are not applied by the cascade.
CssPropertyRulehttps://drafts.css-houdini.org/css-properties-values-api/#the-css-property-rule-interface
CssPseudoElementA pseudo-element of an element (https://drafts.csswg.org/css-pseudo-4/#CSSPseudoElement-interface), returned by Element.Pseudo: a tree-abiding pseudo-element that is not element-backed (::before, ::after, ::marker, ::backdrop, the scroll navigation controls, the view transition pseudo-elements...). The object exists whether or not the pseudo-element is generated, and the same object represents the same pseudo-element of the same originating element.
CssRulehttps://drafts.csswg.org/cssom/#the-cssrule-interface
CssRuleListhttps://drafts.csswg.org/cssom/#the-cssrulelist-interface
CssScopeRulehttps://drafts.csswg.org/css-cascade-6/#cssscoperule
CssStartingStyleRulehttps://drafts.csswg.org/css-transitions-2/#the-cssstartingstylerule-interface
CssStyleDeclarationhttps://drafts.csswg.org/cssom/#the-cssstyledeclaration-interface
CssStylePropertieshttps://drafts.csswg.org/cssom/#cssstyleproperties
CssStyleRulehttps://drafts.csswg.org/cssom/#the-cssstylerule-interface
CssStyleSheethttps://drafts.csswg.org/cssom/#the-cssstylesheet-interface
CssStyleSheetInithttps://drafts.csswg.org/cssom/#dictdef-cssstylesheetinit
CssSupportsRulehttps://drafts.csswg.org/css-conditional-3/#the-csssupportsrule-interface
CssViewTransitionRulehttps://drafts.csswg.org/css-view-transitions-2/#cssviewtransitionrule: the @view-transition rule, which opts the document in to the cross-document view transitions (https://drafts.csswg.org/css-view-transitions-2/#view-transition-rule).
FontFaceA font face (https://drafts.csswg.org/css-font-loading/#fontface-interface), created by a script or by an @font-face rule of a style sheet of the document (a CSS-connected font face, whose attributes reflect the descriptors of the rule).
FontFaceDescriptorsThe descriptors of a FontFace (https://drafts.csswg.org/css-font-loading/#dictdef-fontfacedescriptors).
FontFaceFeaturesThe features of a font face (https://drafts.csswg.org/css-font-loading/#fontfacefeatures): it has no member yet.
FontFacePaletteA color palette of a font face (https://drafts.csswg.org/css-font-loading/#fontfacepalette): its colors.
FontFacePalettesThe color palettes of a font face (https://drafts.csswg.org/css-font-loading/#fontfacepalettes). The CPAL table of the fonts is not exposed: the list is empty.
FontFaceSetThe font faces of a document (https://drafts.csswg.org/css-font-loading/#fontfaceset): the CSS-connected font faces of the @font-face rules of the style sheets of the document, in document order, followed by the font faces added by FontFaceSet.Add, in insertion order. The set of a worker (WorkerGlobalScope.Fonts) only has the font faces added by FontFaceSet.Add: it is never pending on the environment, and its tasks run on the event loop of the worker.
FontFaceSetLoadEventThe event fired when a FontFaceSet starts or finishes loading fonts (https://drafts.csswg.org/css-font-loading/#fontfacesetloadevent).
FontFaceSetLoadEventInithttps://drafts.csswg.org/css-font-loading/#dictdef-fontfacesetloadeventinit
FontFaceVariationAxisA variation axis of a font face (https://drafts.csswg.org/css-font-loading/#fontfacevariationaxis).
FontFaceVariationsThe variation axes of a font face (https://drafts.csswg.org/css-font-loading/#fontfacevariations), a readonly setlike<FontFaceVariationAxis>: the axes of the fvar table of the font once it is loaded, empty before.
HighlightA custom highlight (https://drafts.csswg.org/css-highlight-api-1/#highlight): a set of ranges, styled by the ::highlight(name) pseudo-element once the highlight is registered in a HighlightRegistry under that name. It is a setlike<AbstractRange>: the ranges are enumerated in insertion order, and, as for a JavaScript Set, an enumeration sees the changes made while it is in progress.
HighlightHitResultA highlight hit at a point and its ranges that contain the point (https://drafts.csswg.org/css-highlight-api-1/#dictdef-highlighthitresult).
HighlightRegistryThe custom highlights registered for a document (https://drafts.csswg.org/css-highlight-api-1/#highlight-registry), returned by CSS.highlights and Document.Highlights. It is a maplike<DOMString, Highlight>: the entries are enumerated in insertion order (replacing the highlight of a name keeps its position), and, as for a JavaScript Map, an enumeration sees the changes made while it is in progress.
HighlightsFromPointOptionsThe options of HighlightRegistry.HighlightsFromPoint (https://drafts.csswg.org/css-highlight-api-1/#dictdef-highlightsfrompointoptions).
MediaListhttps://drafts.csswg.org/cssom/#the-medialist-interface
MediaQueryListA media query list whose state can be observed (https://drafts.csswg.org/cssom-view/#the-mediaquerylist-interface), created by Window.MatchMedia.
MediaQueryListEventThe event fired when the state of a MediaQueryList changes (https://drafts.csswg.org/cssom-view/#mediaquerylistevent).
MediaQueryListEventInithttps://drafts.csswg.org/cssom-view/#dictdef-mediaquerylisteventinit
PropertyDefinitionThe definition of a custom property registered by Css.RegisterProperty (https://drafts.css-houdini.org/css-properties-values-api/#dictdef-propertydefinition).
SnapEventThe event fired at a scroll snap container (or at the document for the viewport) when the snap targets it snaps to change (scrollsnapchanging, when a scroll operation starts) or changed (scrollsnapchange, when a scroll operation is completed or after a layout change) (https://drafts.csswg.org/css-scroll-snap-2/#snap-events).
SnapEventInithttps://drafts.csswg.org/css-scroll-snap-2/#dictdef-snapeventinit
StyleSheethttps://drafts.csswg.org/cssom/#the-stylesheet-interface
StyleSheetListhttps://drafts.csswg.org/cssom/#the-stylesheetlist-interface

Structs

NameDescription
ElementOrCssPseudoElementThe (Element or CSSPseudoElement) union: the originating element or pseudo-element of a pseudo-element.
MediaListOrBooleanThe (MediaList or boolean) union (https://drafts.csswg.org/mediaqueries-5/#typedefdef-custommediaquery).
MediaListOrStringThe (MediaList or DOMString) union.

Enums

NameDescription
FontFaceLoadStatusThe status of a FontFace (https://drafts.csswg.org/css-font-loading/#enumdef-fontfaceloadstatus).
FontFaceSetLoadStatusThe status of a FontFaceSet (https://drafts.csswg.org/css-font-loading/#enumdef-fontfacesetloadstatus).
HighlightTypeThe type of a HighlightType.Highlight (https://drafts.csswg.org/css-highlight-api-1/#enumdef-highlighttype).