Closed Bug 1791274 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 35941 - Fix CSS `log()` and CSS `exp()` calculation

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
107 Branch
Tracking Status
firefox107 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 35941 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/35941
Details from upstream follow.

Rami Yushuvaev <r_a_m_i@hotmail.com> wrote:

Fix CSS log() and CSS exp() calculation

We have two simple test:

test_math_used('log(1)', '0', {type:'number'});
test_math_used('exp(0)', '1', {type:'number'});

The first test log(1) return 0. The second test exp(0) return 1.

Next, we have a calculations that sums those functions log(1) + exp(0):

test_math_used('calc(log(1) + exp(0))', '2'), {type:'number', approx:0.1};

According to the test should it should return 2, but according to the two separate tests above it should return 1.

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c26d927c6e80
[wpt PR 35941] - Fix CSS `log()` and CSS `exp()` calculation, a=testonly
https://hg.mozilla.org/integration/autoland/rev/5978ba82cdcc
[wpt PR 35941] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 107 Branch
You need to log in before you can comment on or make changes to this bug.