Support ImageRendering on list-style-image property

RESOLVED FIXED in Firefox 64

Status

()

defect
RESOLVED FIXED
8 months ago
7 months ago

People

(Reporter: h.winnemoeller, Assigned: h.winnemoeller)

Tracking

Trunk
mozilla64
Points:
---

Firefox Tracking Flags

(firefox63 disabled, firefox64 fixed)

Details

Attachments

(2 attachments, 2 obsolete attachments)

(Assignee)

Description

8 months ago
STR:
1. Be on a new profile and set gfx.webrender.all to true.
2. Use the example code on https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-image.
3. Set the ul style to image-rendering: -moz-crisp-edges
4. Zoom the Page.

JSFiddle for example: https://jsfiddle.net/nf4krsqh/4/ or see attachment "Firefox list-style-image moz crisp.html"

Expected Results:
Image is pixelated and has sharp edges.

Actual Results:
Image is blurry.

---

During the creation of the WR command for the BulletRenderer, the ImageRendering argument is always set to "Auto", see https://searchfox.org/mozilla-central/rev/5a18fb5aeeec99f1ca1c36a697082c221189a3b9/layout/generic/nsBulletFrame.cpp#500. Bug 1488555 requires the CreateImageKey call at https://searchfox.org/mozilla-central/rev/5a18fb5aeeec99f1ca1c36a697082c221189a3b9/layout/generic/nsBulletFrame.cpp#489 to provide the actual ImageRendering property. Therefore, this variable can also be used at the PushImage call.

I will attach a patch that applies the needed changes.
(Assignee)

Updated

8 months ago
Depends on: 1488555
(Assignee)

Updated

8 months ago
Assignee: nobody → h.winnemoeller
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #9006393 - Flags: review?(nical.bugzilla) → review+
(Assignee)

Comment 3

8 months ago
Has to be checked in once Bug 1488555 has landed.
Keywords: checkin-needed
(Assignee)

Updated

8 months ago
Keywords: checkin-needed
(Assignee)

Comment 5

7 months ago
Should only be checked in >after< Bug 1488555 has landed.
(Assignee)

Updated

7 months ago
Keywords: checkin-needed

Comment 6

7 months ago
Pushed by apavel@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/a79ed7cdda37
Use ImageRendering property to provide proper filtering for list-style-image on WR. r=nical
Keywords: checkin-needed

Comment 7

7 months ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/a79ed7cdda37
Status: ASSIGNED → RESOLVED
Last Resolved: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in before you can comment on or make changes to this bug.