Closed Bug 1355014 Opened 7 years ago Closed 7 years ago

stylo: Negative number in calc() should be accepted even if the location requires non-negative number

Categories

(Core :: CSS Parsing and Computation, enhancement, P1)

53 Branch
enhancement

Tracking

()

RESOLVED FIXED

People

(Reporter: xidorn, Assigned: nox)

References

Details

The spec says out-of-range values should not be rejected during parsing. Instead, they should be clamped during computing.

Per discussion with emilio, we may want to put the minimum number into struct Number and force properties to call a specific method when computing, so that we remember to clamp them when needed.
This is probably another good one for nox.
Assignee: nobody → nox
Priority: -- → P1
Blocks: 1356087
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Pushed by ecoal95@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/ed31f3ce742d
Update test expectations. r=emilio
You need to log in before you can comment on or make changes to this bug.