Closed Bug 1786050 Opened 2 years ago Closed 2 years ago

Support denormalized color-lines in COLRv1 radial gradients

Categories

(Core :: Layout: Text and Fonts, defect)

defect

Tracking

()

RESOLVED FIXED
106 Branch
Tracking Status
firefox106 --- fixed

People

(Reporter: jfkthame, Assigned: jfkthame)

References

Details

Attachments

(2 files)

The implementation of radial gradients landed in bug 1740530 does not account for cases when the color line used to define the gradient has a range other than [0..1]. We do handle such color lines for linear and sweep gradients; we should do the same for radial gradients.

(I'm currently discussing this with Dominik at Google, who is working on the same issue for Chrome, to ensure that we converge on an interoperable result.)

Posting a WIP patch, but not flagging for review yet (pending discussion with Dominik of the expected rendering).

Severity: -- → S3
Assignee: nobody → jfkthame
Attachment #9290661 - Attachment description: WIP: Bug 1786050 - Normalize color-line if endpoints are not [0.0, 1.0] when creating radial gradient. → Bug 1786050 - Normalize color-line if endpoints are not [0.0, 1.0] when creating radial gradient. r=#gfx-reviewers
Status: NEW → ASSIGNED

The glyphs "b" and "c" here have radial gradients with non-[0..1] color stop ranges,
and are compared against versions with equivalent normalized gradients.

Pushed by jkew@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bddde4931caa
Normalize color-line if endpoints are not [0.0, 1.0] when creating radial gradient. r=gfx-reviewers,lsalzman
https://hg.mozilla.org/integration/autoland/rev/7b0739cd3f8f
Add a reftest. r=gfx-reviewers,lsalzman
Flags: needinfo?(jfkthame)
Backout by csabou@mozilla.com:
https://hg.mozilla.org/mozilla-central/rev/2895842928e9
Backed out 4 changesets (bug 1786050, bug 1786796) for causing reftest failures. CLOSED TREE

Ah, the new test depends on a variation font, which isn't supported on Win7. Adding a skip-if annotation.

Flags: needinfo?(jfkthame)
Pushed by jkew@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/16d1b659b291
Normalize color-line if endpoints are not [0.0, 1.0] when creating radial gradient. r=gfx-reviewers,lsalzman
https://hg.mozilla.org/integration/autoland/rev/23314917bc22
Add a reftest. r=gfx-reviewers,lsalzman

Re-landing with the spuriously-failing tests annotated, per bug 1786796 comment 9.

Flags: needinfo?(jfkthame)
Pushed by jkew@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5548555aec8e
Normalize color-line if endpoints are not [0.0, 1.0] when creating radial gradient. r=gfx-reviewers,lsalzman
https://hg.mozilla.org/integration/autoland/rev/8369aba15231
Add a reftest. r=gfx-reviewers,lsalzman
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: