Skip to content

[css-typed-om] introduction to CSSNumericValue should be clearer that list is interfaces inheriting from it #573

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

Closed
dbaron opened this issue Jan 28, 2018 · 0 comments

Comments

@dbaron
Copy link
Member

dbaron commented Jan 28, 2018

The opening of the section on CSSNumericValue says:

CSSNumericValue objects represent CSS values that are numeric in nature (<number>s, <percentage>s, <dimension>s).

  • CSSUnitValue objects represent values that contain a single unit type (for example "42px").

  • CSSMathValue objects represent math expressions, which can contain more than one value/unit (for example "calc(56em + 10%)").

This reads in a slightly confusing way, until I realized that the bulleted list was two interfaces that inherit from CSSNumericValue. It would probably be a good bit clearer why this is structured the way it is (with three parallel sentences, but only the latter two in a list), by introducing the list with a sentence, such as "Two interfaces inherit from CSSNumericValue:"

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