Closed Bug 1834361 Opened 1 year ago Closed 1 year ago

scale() does not serialize NaN/infinity numbers correctly

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox115 --- wontfix

People

(Reporter: canadahonk, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(1 obsolete file)

scale(calc(...)) does not serialize NaN/infinity outcomes correctly. This breaks a few NaN/inf WPT subtests (not specific for scale(), just general tests). Needs more investigation.

WPT tests:

The severity field is not set for this bug.
:dholbert, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(dholbert)
Severity: -- → S3
Flags: needinfo?(dholbert)
Depends on: 1834164

Two separate serialisation issues here:

  • scale(calc(NaN), calc(NaN)) instead of scale(calc(NaN))
  • Infinity is limited to a large value instead of using the calc constant

Splitting bug into two tiny bugs (see above).

Depends on: 1841638

Now that inf and NaN values are supported, tan() with a right angle
value should return infinity.

tan(90) = infinity
tan(270) = -infinity

Also fixed a bug when serializing NaN values.

Assignee: nobody → tlouw
Attachment #9345535 - Attachment description: WIP: Bug 1834361 - tan() with right angles should return +/- infinity r=#layout-reviewers → Bug 1834361 - tan() with right angles should return +/- infinity r=#layout-reviewers
Status: NEW → ASSIGNED
Attachment #9345535 - Attachment description: Bug 1834361 - tan() with right angles should return +/- infinity r=#layout-reviewers → WIP: Bug 1834361 - Deal with tan() asymptote angles and number precision for trig function r=#layout-reviewers
Attachment #9345535 - Attachment description: WIP: Bug 1834361 - Deal with tan() asymptote angles and number precision for trig function r=#layout-reviewers → Bug 1834361 - Deal with tan() asymptote angles and number precision for trig function r=#layout-reviewers
Attachment #9345535 - Attachment description: Bug 1834361 - Deal with tan() asymptote angles and number precision for trig function r=#layout-reviewers → WIP: Bug 1834361 - Deal with tan() asymptote angles r=#layout-reviewers
Attachment #9345535 - Attachment description: WIP: Bug 1834361 - Deal with tan() asymptote angles r=#layout-reviewers → Bug 1834361 - Deal with tan() asymptote angles r=#layout-reviewers
Attachment #9345535 - Attachment description: Bug 1834361 - Deal with tan() asymptote angles r=#layout-reviewers → WIP: Bug 1834361 - Deal with tan() asymptote angles r=#layout-reviewers
Attachment #9345535 - Attachment description: WIP: Bug 1834361 - Deal with tan() asymptote angles r=#layout-reviewers → Bug 1834361 - Deal with tan() asymptote angles r=#layout-reviewers

Comment on attachment 9345535 [details]
Bug 1834361 - Deal with tan() asymptote angles r=#layout-reviewers

Revision D184465 was moved to bug 1850555. Setting attachment 9345535 [details] to obsolete.

Attachment #9345535 - Attachment is obsolete: true
Assignee: tlouw → nobody
Status: ASSIGNED → NEW

This seems to have been fixed with another patch at some point recently - we pass all mod rem round serialize WPTs now! :)

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Resolution: FIXED → WORKSFORME
No longer blocks: 1856158
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: