Closed Bug 1837342 Opened 1 years ago Closed 1 year ago

Firefox fails WPT css/css-values/hypot-pow-sqrt-computed.html

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1815448

People

(Reporter: dholbert, Unassigned)

References

(Blocks 1 open bug)

Details

Firefox fails one subtest in this interop-2023 relevant test:
https://wpt.fyi/results/css/css-values/hypot-pow-sqrt-computed.html

Live test link:
http://wpt.live/css/css-values/hypot-pow-sqrt-computed.html

Specifically, we fail the subtest:

calc(-2 * hypot(3px, 4px)) should be used-value-equivalent to -10px

Reduced testcase:

data:text/html,<body style="margin-left: calc(-2*hypot(3px, 4px))">I should be a bit offscreen

devtools confirms that hypot(3px,4px) yields positive 5px, and calc(2*...) as well as calc(-2*...) yield positive 10px. That doesn't make sense. It seems like we're internally performing a hypot-related abs() operation too late, under the hood, or something along those lines.

Status: NEW → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1815448
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.