Closed Bug 1823251 Opened 2 years ago Closed 2 years ago

NaN min/max expressions should simplify to NaN

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

RESOLVED INVALID
Tracking Status
firefox113 --- affected

People

(Reporter: canadahonk, Unassigned)

References

(Blocks 1 open bug)

Details

We currently serialize some calc expressions like max(NaN * 1px, 15px) incorrectly deserialize to max(NaN * 1px, 15px), instead of just calc(NaN * 1px). They should be simplified to just NaN (with unit calc).

WPT tests: https://github.com/web-platform-tests/wpt/blob/master/css/css-values/calc-infinity-nan-serialize-length.html#L39-L40

Summary: Some NaN min/max expressions serialize incorrectly → NaN min/max expressions should simplify to NaN

Disregard, mistake in patch for Bug 1820412.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.