Skip to content

[css-values-4] Consider changing the specified behavior of <ratio>: 0 / 0 #5084

Closed
@emilio

Description

@emilio

https://drafts.csswg.org/css-values-4/#ratios says:

The computed value of a is the pair of numbers provided, unless both numbers are zero, in which case the computed value is the pair (1, 0) (same as 1 / 0).

Is there a strong reason this is a computed value change rather than just a "behaves as"?

There isn't really a problem with this, but it feels odd to make it serialize to something else for no good reason, and it seems weird to serialize to 0 / 0 in specified values and 1 / 0 in computed values.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions