Closed Bug 1691275 Opened 4 years ago Closed 4 years ago

CSS image-set() requests a wrong image resource

Categories

(Core :: CSS Parsing and Computation, defect)

Firefox 87
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: nayinain, Unassigned)

References

Details

Attachments

(2 files)

Attached file testcase.html (deleted) —

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0

Steps to reproduce:

  1. Set layout.css.devPixelsPerPx to 1.15 in the about:config.
  2. Open the testcase.html.
  3. Open the Network Monitor (Ctrl+shift+E).
  4. Reload the page.

Actual results:

"logo@2x.png" was requested.

Expected results:

"logo.png" should be requested.

Attached image Screenshots.png (deleted) —
Blocks: image-set

That's the expected behavior with 1.15dppx. It's the same behavior as:

<!doctype html>
<img srcset="https://pannss.bdstatic.com/m-static/disk-header/header/img/logo.png 1x, https://pannss.bdstatic.com/m-static/disk-header/header/img/logo@2x.png 2x">

So unless I'm misunderstanding something this is invalid. But please feel free to reopen if that's wrong somehow.

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: