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

IDL generation in CSSOM for supported properties #5412

Open
gsnedders opened this issue Aug 9, 2020 · 6 comments
Open

IDL generation in CSSOM for supported properties #5412

gsnedders opened this issue Aug 9, 2020 · 6 comments
Labels

Comments

@gsnedders
Copy link
Contributor

gsnedders commented Aug 9, 2020

CSSOM generates a variety of partial IDL fragments for each supported property, where:

The term supported CSS property refers to a CSS property that the user agent implements, including any vendor-prefixed properties, but excluding custom properties. A supported CSS property must be in its lowercase form for the purpose of comparisons in this specification.

A property name in CSS is a (CSS) ident token.

WebIDL attributes must be a (WebIDL) identifier.

Note that the CSS ident token is a superset of the WebIDL identifier.

What is the intended behaviour when there is a supported CSS property where the property name is an invalid WebIDL identifier?

(cc/ @tabatkins who may have opinions from the Syntax side)

@emilio
Copy link
Collaborator

emilio commented Aug 9, 2020

Note that the WebIDL attributes aren't for the ident, but for the camel-cased version. This is supposed to create valid WebIDL attribute names, is there a case where it does not?

@gsnedders
Copy link
Contributor Author

U+1000 is a valid CSS ident but not a valid WebIDL attribute name, for example.

@emilio
Copy link
Collaborator

emilio commented Aug 10, 2020

Do we define any property with a non-ascii name? I don't think so, but ICBW.

@tabatkins
Copy link
Member

We don't, and we have a CSSWG resolution to never use non-ASCII in language-defined constructs.

@gsnedders
Copy link
Contributor Author

Should we add a specification conformance criteria to CSS Syntax forbidding non-ASCII?

@tabatkins
Copy link
Member

I'm not opposed. ^_^

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

No branches or pull requests

3 participants