Spec-Zone.ru › CSS

CSS at-rules

At-rules are CSS statements that instruct CSS how to behave. They are used to group and structure style rules and other at-rules, declare style information not directly associated with selected content, and manage syntactic constructs such as imports and namespaces keyword mappings. They begin with an at-sign, @ (U+0040 COMMERCIAL AT), followed by an identifier.

Index of at-rules and at-rule descriptors

  • @charset
  • @color-profile
  • @container
  • @counter-style
    • additive-symbols
    • fallback
    • negative
    • pad
    • prefix
    • range
    • speak-as
    • suffix
    • symbols
    • system
  • @custom-media
  • @document Non-standard Deprecated
  • @font-face
    • ascent-override
    • descent-override
    • font-display
    • font-family
    • font-feature-settings
    • font-stretch
    • font-style
    • font-variation-settings
    • font-weight
    • line-gap-override
    • size-adjust
    • src
    • unicode-range
  • @font-feature-values
    • font-display
  • @font-palette-values
    • base-palette
    • font-family
    • override-colors
  • @function Experimental
  • @import
  • @keyframes
  • @layer
  • @media (see list of media features in the next section)
  • @namespace
  • @page
    • page-orientation
    • size
  • @position-try
  • @property
    • inherits
    • initial-value
    • syntax
  • @scope
  • @starting-style
  • @supports
  • @view-transition

Index of media features

  • -moz-device-pixel-ratio
  • -webkit-animation
  • -webkit-device-pixel-ratio
  • -webkit-transform-2d
  • -webkit-transform-3d
  • -webkit-transition
  • any-hover
  • any-pointer
  • aspect-ratio
  • color
  • color-gamut
  • color-index
  • device-aspect-ratio
  • device-height
  • display-mode
  • dynamic-range
  • forced-colors
  • grid
  • height
  • horizontal-viewport-segments
  • hover
  • inverted-colors
  • monochrome
  • orientation
  • overflow-block
  • overflow-inline
  • pointer
  • prefers-color-scheme
  • prefers-contrast
  • prefers-reduced-data
  • prefers-reduced-motion
  • prefers-reduced-transparency
  • resolution
  • scan
  • scripting
  • shape
  • update
  • vertical-viewport-segments
  • video-dynamic-range
  • width

Specifications

Specification
CSS Syntax Module Level 3

See also

  • CSS at-rule functions
  • Nesting at-rules
  • CSS syntax module
  • CSS conditional rules module

© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API