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] Does string-set accept <content-list>? #1829

Open
Loirooriol opened this issue Sep 23, 2017 · 0 comments
Open

[css-content] Does string-set accept <content-list>? #1829

Loirooriol opened this issue Sep 23, 2017 · 0 comments

Comments

@Loirooriol
Copy link
Contributor

The syntax of the string-set property is defined as follows:

none | [ <custom-ident> <string>+ ]#

However, lots of the examples in the spec seem to use a different syntax:

  • Example 16: head > title { string-set: title contents; }
  • Example 17: H1 { string-set: chapter contents; }
  • Example 18: h2 { string-set: heading content() }
  • Example 19: h1 { string-set: header content(before) ':' content(text); }

The problem seems that before dc01554, the syntax was

[[ <custom-ident> <content-list>] [, <custom-ident> <content-list>]* ] | none

In Named strings, the spec still says

The string-set property accepts values similar to the content property, including the extraction of the current value of counters.

But unlike attr(), defined in CSS Values, I don't think <content-list> is allowed wherever a <string> is expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants