Closed Bug 1742411 Opened 2 years ago Closed 2 years ago

Make <img style="content: url"> prefer content to image src.

Categories

(Core :: Layout, task)

task

Tracking

()

RESOLVED FIXED
96 Branch
Tracking Status
firefox96 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(1 file)

Given the CSSWG issue is still unresolved, this should fix compat issues from the blocked bug.

Summary: Make <img style="content: url"> work when the image lacks another usable image source. → Make <img style="content: url"> prefer content to image src.

Given the compat reports in bug 1484928, I don't think it's worth
keeping the current behavior.

Our behavior should match other browsers now. Rather than making
content: url() work everywhere even for otherwise-replaced elements,
just special-case this since that's what other browsers seem to do.

Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f9582e5a1d29
Prefer content property to img src on image elements. r=dholbert
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/31718 for changes under testing/web-platform/tests
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: