Closed Bug 1748375 Opened 3 years ago Closed 3 years ago

Background images larger than some threshold (4096 in one dimension) break opacity rules

Categories

(Core :: Graphics: WebRender, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1723469

People

(Reporter: alexical, Unassigned)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

667 bytes, application/x-zip-compressed
Details
Attached file demo.zip

This is a bit weird. I'm attaching a page to repro this, but here's the gist of it, explained in comments in the code:

<html>
<body>
  <style type="text/css">
    div {
      height: 500px;
      width: 500px;
      /* First weird thing: despite having an opacity of 0.01, this will show a
         solid red square, provided red.png exceeds 4096 pixels in one
         dimension. If red.png is less than 4096 pixels in both dimensions,
         this will correctly produce a very faint red square. */
      opacity: 0.01;
      background-image: url("red.png");
    }
  </style>

  <div>
    <!-- Second weird thing: add any text here and the problem will go away -->
  </div>
</body>
</html>
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: