@namespace — namespaces in selectors
The @namespace rule binds a selector prefix to a namespace URI or establishes the default namespace for type selectors.
CKTIS / Knowledge base
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
The @namespace rule binds a selector prefix to a namespace URI or establishes the default namespace for type selectors.
The @page rule controls the size, orientation, margins, and margin boxes of pages produced by a paged-media formatter.
The @position-try rule defines a fallback position for an anchored box, selected when the preferred option causes overflow.
The @property rule registers a custom property with a value type, inheritance behavior, and an initial value.
@right-bottom defines the right / bottom page margin box in paged media; it is generated inside @page rather than matching an element.
@right-middle defines the right / middle page margin box in paged media; it is generated inside @page rather than matching an element.
@right-top defines the right / top page margin box in paged media; it is generated inside @page rather than matching an element.
The @scope rule restricts nested style-rule matching to a subtree or fragment defined by roots and optional lower limits.
The @starting-style rule supplies a before-change style for an element that had no previously rendered style.
The @supports rule activates nested styles only when the engine satisfies the stated support condition.
@top-center defines the top / center page margin box in paged media; it is generated inside @page rather than matching an element.
@top-left defines the top / left page margin box in paged media; it is generated inside @page rather than matching an element.
@top-left-corner defines the top-left / corner page margin box in paged media; it is generated inside @page rather than matching an element.
@top-right defines the top / right page margin box in paged media; it is generated inside @page rather than matching an element.
@top-right-corner defines the top-right / corner page margin box in paged media; it is generated inside @page rather than matching an element.
@view-transition enables visual transitions for eligible navigations between same-origin documents.
Accessibility in CSS means designing presentation that preserves visible focus and accommodates user needs. It is a practice spanning multiple modules, not a property named accessibility.
CSS evolves as a set of modules rather than one specification with a shared version number. An audit connects the definition index, defining module, pinned compatibility data, and a concrete example test without equating specification inclusion with browser support.
The box model describes the content area and its surrounding padding, border, and margin. Learn how box-sizing affects dimensions and why the margins of adjacent blocks do not always add together.
The cascade chooses a declaration for a particular property on an element. Specificity is only one criterion: origins, !important, and layers can settle a conflict before selector specificity is compared.
Values of type <color> specify colors for text, backgrounds, and borders. An alpha channel controls a color’s transparency, while blend modes describe how its components combine with a backdrop. These are different mechanisms that can work together.
Custom properties store values consumed by var(). The cascade and inheritance let you share design tokens and override them locally, for example to create a dark theme.
Flexbox arranges items along one axis, distributes available space, and controls alignment. Learn about its container, layout axes, wrapping, and the flex shorthand.
CSS defines the presentation of form controls and responds to their state through pseudo-classes. Preserve HTML semantics and visible focus; native control rendering can differ between browsers and operating systems.