Closed Bug 1609737 Opened 5 years ago Closed 5 years ago

Forbid accessing the length and percentage parts of a LengthPercentage separately.

Categories

(Core :: CSS Parsing and Computation, task)

task
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla74
Tracking Status
firefox74 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(2 files)

No description provided.

This is just not a thing you can do if you have min() / max() / etc, as the min
/ max value may depend on the percentage basis.

This simplifies a bit the code, and guarantees that all calc()s have percentages
and lengths.

I also wanted to remove unclamped_length() / specified_percentage() (for the
same reason as the above patch), but they're needed for animations for now. When
I implement min() / max() for <length-percentage> they'll be fixed.

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/51f3f1a1efb8 Forbid accessing the length and percentage parts of a LengthPercentage separately. r=boris
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d12980bbc425 Simplify calc expressions earlier. r=boris
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6c6d488d79fa Forbid accessing the length and percentage parts of a LengthPercentage separately. r=boris https://hg.mozilla.org/integration/autoland/rev/9e5eb3e65f05 Simplify calc expressions earlier. r=boris
Flags: needinfo?(emilio)
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla74
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: