Skip to content

Commit

Permalink
[css-syntax-3] Slightly rewrite the definition of 'declaration' to en…
Browse files Browse the repository at this point in the history
…compass its conceptual definition as well as its syntax dfn. Probably needs more work.
  • Loading branch information
tabatkins committed Jan 13, 2021
1 parent 6cfad9b commit be5e75b
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions css-syntax-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1671,13 +1671,18 @@ Parsing</h2>

<dt><dfn id="declaration">declaration</dfn>
<dd>
A declaration has a name,
Conceptually, declarations are a particular instance of
associating a property or descriptor name with a value.
Syntactically, a declaration has a name,
a value consisting of a list of component values,
and an <var>important</var> flag which is initially unset.

Declarations are further categorized as "properties" or "descriptors",
with the former typically appearing in <a>qualified rules</a>
and the latter appearing in <a>at-rules</a>.
Declarations are further categorized
as <dfn>property declarations</dfn> or <dfn>descriptor declarations</dfn>,

This comment has been minimized.

Copy link
@svgeesus

svgeesus Jan 14, 2021

Contributor

shouldn't those two terms be exported, so other specs can refer to them?

This comment has been minimized.

Copy link
@fantasai

fantasai Dec 17, 2021

Collaborator

The entire DL is exported, so I think that exports all DFNs in it.

with the former setting CSS [=properties=]
and appearing most often in <a>qualified rules</a>
and the latter setting CSS [=descriptors=],
which appear only in <a>at-rules</a>.
(This categorization does not occur at the Syntax level;
instead, it is a product of where the declaration appears,
and is defined by the respective specifications defining the given rule.)
Expand Down

0 comments on commit be5e75b

Please sign in to comment.