Open Bug 1107646 (image-set) Opened 6 years ago Updated 4 months ago

Implement image-set().

Categories

(Core :: CSS Parsing and Computation, enhancement, P2)

enhancement

Tracking

()

People

(Reporter: marcosc, Unassigned)

References

(Blocks 4 open bugs, )

Details

(Keywords: dev-doc-needed, Whiteboard: [tw-dom][layout:backlog])

Implement image-set from CSS Image Values and Replaced Content Module Level 3 to enable a complete responsive images solution.
Alias: image-set
Up to now, only Firefox and IE (Edge) does not support image-set.

http://caniuse.com/#feat=css-image-set
Whiteboard: [tw-dom]
https://github.com/w3c/csswg-drafts/issues/1148 suggests to move this feature to css-images-4 due to a lack of implementations.

Sebastian
Can you please implement image-set() ? When devicePixelRatio is more than 1, and I use the custom cursor (PNG image), Firefox scales up the cursor according to devicePixelRatio (so it is blurry). W3C suggests to solve it with image-set() (which already works in Chrome for several years).
I want to do some cleanup of style images in bug 1440305 once I'm back from vacation. I'll do it with implementing this into account, so that implementing this is trivial-ish after that.
Depends on: 1440305
Summary: Implement image-set from CSS Image Values and Replaced Content Module Level 3 → Implement image-set().
Blocks: 1532331
Type: defect → enhancement
Blocks: css-images-4
No longer blocks: css-images-3
Whiteboard: [tw-dom] → [tw-dom][layout:backlog]

Webkit nightly now supports most of the standard syntax:
https://trac.webkit.org/changeset/255228/webkit
https://trac.webkit.org/changeset/254861/webkit
https://trac.webkit.org/changeset/254406/webkit

It's been unprefixed in webkit for a long time.

New PR for WPT with comprehensive web platform tests:
https://github.com/web-platform-tests/wpt/pull/21539

Chromium bug to unprefix:
https://bugs.chromium.org/p/chromium/issues/detail?id=630597&q=image-set&can=2

Now that we triage by severity, setting this bug's priority to P2 to represent near-term backlog status. See https://wiki.mozilla.org/Platform/Layout#Backlog_Tracking_in_Bugzilla

You need to log in before you can comment on or make changes to this bug.