Open Bug 1301634 Opened 9 years ago Updated 3 years ago

Gradient on <body> repeated if height is smaller than the viewport

Categories

(Core :: Graphics, defect, P3)

defect

Tracking

()

People

(Reporter: darktrojan, Unassigned)

Details

(Whiteboard: gfx-noted)

Attachments

(1 file)

Attached file gradient.html
When viewing the test case I've attached, there should be one white circle in the middle of the page, but instead Firefox draws white circles repeating down the screen.
Can you attach your about:support please?
Flags: needinfo?(geoff)
Whiteboard: gfx-noted
(In reply to Geoff Lankow (:darktrojan) from comment #0) > Created attachment 8789704 [details] > gradient.html > > When viewing the test case I've attached, there should be one white circle > in the middle of the page, but instead Firefox draws white circles repeating > down the screen. Why do you think there should only be one white circle?
Edge also has multiple circles.
I think the issue is how the <body>'s height is calculated for the background (when it is smaller than the viewport); it also affects images with background-size: contain. Chrome just uses the height of the viewport. Firefox and Edge use the height of the body plus its margins. I guess this isn't explicitly stated in a spec somewhere?
Clearing the ni? because I don't think this is specific to my install.
Flags: needinfo?(geoff)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: