Skip to content

[css-color] "full numbers, not just integers"? #376

Closed
@impressivewebs

Description

@impressivewebs

Re: https://drafts.csswg.org/css-color/#rgb-functions

In the description of the rgb functions it says, in part:

the CSS syntax allows full <number>s, not just <integer>s, for authoring convenience

This seems to imply that the numbers can be decimals (e.g. rgb(3.4, 34.6, 144.7). The number type description, which the above quote links to, explains that a <number> can be fractional. But I don't see this working in an rgb function. Can this section clarify a little better what exactly is meant by "full numbers, not just integers"?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions