Movatterモバイル変換


[0]ホーム

URL:


  1. Glossary
  2. Canonical order

Canonical order

In CSS,canonical order is used to refer to the order in which separate values need to be specified (orparsed) or are to beserialized as part of a CSS property value. It is defined by the formalsyntax of the property and normally refers to the order in which longhand values should be specified as part of a single shorthand value.

For example,background shorthand property values are made up of severalbackground-* longhand properties. The canonical order of those longhand values is defined as

  1. background-image
  2. background-position
  3. background-size
  4. background-repeat
  5. background-attachment
  6. background-origin
  7. background-clip
  8. background-color

Furthermore, its syntax defines, that if a value for thebackground-size is given, itmust be specifiedafter the value for thebackground-position, separated by a slash. Other values may appear in any order.

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp