Closed Bug 636192 Opened 13 years ago Closed 5 months ago

CSS transform will cause black surfaces behind scrollbars

Categories

(Core :: Graphics, defect)

x86_64
Linux
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: dysinscr, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:2.0b11) Gecko/20100101 Firefox/4.0b11
Build Identifier: 

If you set e.g -moz-transform:rotate(5deg) or any other transformation that is not equivalent to matrix(1, 0, 0, 1, X, Y) on an element that has scrollbars, black areas seem to be displayed. Others browsers don't seem to be affected at all.

Reproducible: Always

Steps to Reproduce:
1. create a div
2. with a content that overflows
3. -moz-transform:rotate(5deg)
Actual Results:  
black areas

Expected Results:  
no black areas
Attached file testcase of the issue
Works for me on Mac.  Sounds like a Linux-specific issue?
Component: Layout: View Rendering → Graphics
QA Contact: layout.view-rendering → thebes
WFM: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b12pre) Gecko/20110222 Firefox/4.0b12pre
WFM too on Windows. Let's see what Karl says.
Could be a bad RepeatNone implementation.
I'm not reproducing here with radeon or framebuffer drivers.

dysinscr, what video driver (and version) is your X server using?
Could you attach a screenshot, please?
What GTK theme are you using?
I'm using nouveau on ubuntu natty (can't test with nvidia proprietary drivers for the moment).

I can't reproduce it on my laptop with the radeon driver. Could be related to nouveau...

- version of nouveau : 1:0.0.16+git20110107+b795ca6e-0ubuntu4
- libgl1-mesa-dri-experimental installed
- Xorg : xserver-xorg version 1:7.6~3ubuntu7

Maybe someone could test it on ubuntu natty with the proprietary drivers ?

My laptop is 32 bit and I'm using ubuntu natty with the clearlooks theme on both computers.
Hmm.  I thought nouveau used to leave that operation to pixman.
'Option "NoAccel" "on"' should force pixman.
Same problem with nvidia proprietary drivers (I finally could installing them without breaking my system today). I have a nvidia 8500 GT card.
Thanks.  kinetik sees the same issue with nvidia proprietary drivers on his system.

There's essentially a black xy-aligned rectangle around/behind the scrollbar backgrounds.  It's what you'd expect if the driver were using GL primitives (and a rectangular clip around the extents) instead of an appropriate RENDER RepeatNone operator.

We should probably use RepeatPad with a clip (or mask) anyway.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: normal → S3

Test case in comment 1 looks good on Windows and Linux (tested two different laptops).

Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.