W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2020

[csswg-drafts] Define "descriptor" and "property" somewhere (#5633)

From: Sam Sneddon via GitHub <sysbot+gh@w3.org>
Date: Mon, 19 Oct 2020 17:19:17 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-724813346-1603127955-sysbot+gh@w3.org>
gsnedders has just created a new issue for https://github.com/w3c/csswg-drafts:

== Define "descriptor" and "property" somewhere ==
As far as I can tell, we don't actually `<dfn>` "descriptor" or "property" anywhere. We touch on this in Syntax, ยง 5 Parsing, defining [declaration](https://drafts.csswg.org/css-syntax-3/#declaration):

> Declarations are further categorized as "properties" or "descriptors", with the former typically appearing in qualified rules and the latter appearing in at-rules. (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.)

It's come to my attention that some people who've been around for browsers for a long time don't understand the difference here, and we don't really ever make this super clear.

Looking at CSS Fonts for example: the only explicit clue between https://drafts.csswg.org/css-fonts/#font-family-prop and https://drafts.csswg.org/css-fonts/#font-family-desc is the titles of each section. We say the latter is "For: `@font-face`", but that's about it, and what exactly "For" means isn't totally clear.

This ends up relevant in places like CSSOM where we talk about "supported CSS properties" but it doesn't cross-reference anything for what a property is!

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5633 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 19 October 2020 17:19:19 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:20 UTC