mozilla

Revision 296434 of Value definition syntax

  • Revision slug: CSS/Value_definition_syntax
  • Revision title: Value definition syntax
  • Revision id: 296434
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment

Revision Content

{{ Draft() }}

To define the set of valid values that a CSS property or function can take, a formal grammar is used, the CSS value definition syntax. Besides the syntaxic aspect, the set of valid values can be further restricted by semantic constraints (like, for a number, to be strictly positive).

The definition syntax describes which components are allowed and how they interact between them. A component can be a keyword, one or several characters, or a value of a given CSS data type or property..

Component value types

 

Component value combinators

 

Revision Source

<p>{{ Draft() }}</p>
<p>To define the set of valid values that a CSS property or function can take, a formal grammar is used, the <em>CSS value definition syntax</em>. Besides the syntaxic aspect, the set of valid values can be further restricted by semantic constraints (like, for a number, to be strictly positive).</p>
<p>The definition syntax describes which <em>components</em> are allowed and how they interact between them. A component can be a <em>keyword</em>, one or several <em>characters</em>, or a value of a given CSS data type or property..</p>
<h2>Component value types</h2>
<p>&nbsp;</p>
<h2>Component value combinators</h2>
<h2>&nbsp;</h2>
Revert to this revision