Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-content-3] Add missing <content-list> sub-productions #9318

Merged
merged 1 commit into from
Nov 20, 2023

Conversation

cdoublev
Copy link
Collaborator

@cdoublev cdoublev commented Sep 7, 2023

Fixes #7368.

<content-list> currently expands to <string> | contents | <image> | <counter> | <quote> | <target> | <leader()>.

But according to the table of contents, it is missing <string()> and <content()> (annotations added, starting with ->):

  1. <content-list> Values and Functions
    1. String -> <string>
    2. <image>
    3. Element Content -> contents
    4. Quotes -> <quote>
    5. Leaders -> <leader()>
    6. Cross references and the target-* functions -> <target>
    7. Named strings -> <string()>, <content()>

The proposed syntax includes <string()> and <content()>, and have its sub-productions sorted according to the table of contents (which makes it easier to go back and forth between the definitions of <content-list> and its sub-productions).

Please correct me if I am wrong, @faceless2: this syntax allows to remove the paragraphs related to <content-list> in CSS GCPM 3, below the string-set property definition table, and to reference <content-list> from CSS Content 3 instead, noting that <attr()>, as defined in CSS Values 5, can be used in any property declaration value.

content-list expands to one or more of the following values, in any order.

content-list = [ <string> | <counter()> | <counters()> | <content()> | attr(<identifier>) ]+

<string>: A string, as defined in [CSS21]
<counter()>: A counter() function, as described in [CSS21].
<counters()>: A counters() function, as described in [CSS21].
content(): The content() function, described below.
attr(<identifier>): Returns the string value of the attribute <identifier>, as defined in [CSS-VALUES-3]

@w3cbot
Copy link

w3cbot commented Sep 7, 2023

svgeesus marked as non substantive for IPR from ash-nazg.

@fantasai fantasai merged commit 1e4328c into w3c:main Nov 20, 2023
1 check passed
@cdoublev cdoublev deleted the pr-9318 branch November 21, 2023 04:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[css-content-3] Missing <content()> in the value definition of <content-list>
3 participants