Open Bug 1869248 Opened 1 year ago Updated 8 months ago

repeating-linear-gradient breaks when used with large color stops

Categories

(Core :: Graphics: WebRender, defect)

Firefox 120
defect

Tracking

()

UNCONFIRMED

People

(Reporter: csprle, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached image firefox.png

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

Steps to reproduce:

background: repeating-linear-gradient(
0deg,
green 0px 1px,
transparent 1px 300px
);

This does not render a 1px green line.

https://codepen.io/csprle-the-bashful/pen/ExrJPvq

Actual results:

When applying a repeating-linear gradient with color stops at 1px and one greater than ~190px the 1px line is either bigger than 1px or is not being shown.

Expected results:

There should be a line 1px height shown, independent from the second color stop height. This is the case in other browsers I tested.

Component: Untriaged → Graphics: WebRender
Product: Firefox → Core

The severity field is not set for this bug.
:gw, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(gwatson)

Nical, any ideas what would cause this?

Severity: -- → S3
Flags: needinfo?(gwatson) → needinfo?(nical.bugzilla)

I'm keeping the needinfo, but I won't have time to investigate for a while.

Blocks: 1889073
No longer blocks: wr-gradients
Flags: needinfo?(nical.bugzilla)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: