Open
Bug 681224
Opened 15 years ago
Updated 4 years ago
Text rendering error when textarea is transparent
Categories
(Firefox :: General, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: bitcores, Unassigned)
Details
(Whiteboard: [HW accel])
Attachments
(6 files, 1 obsolete file)
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0a1) Gecko/20110822 Firefox/9.0a1
Build ID: 20110822111311
Steps to reproduce:
Using the CSS abilities of stylish I added an opacity to a div containing a textarea, in this case I used opacity: 0.8
The background color is white with an image taking up part of the background, for testing the background color was set to black, part of the image is white, which can be seen in the attached image.
Hardware acceleration is on and my Anti-Aliasing Tuner settings are also in the attached image if they are relevant.
Actual results:
Sometimes, generally when the textarea scrolls due to a carriage return or scrolling the text box, the text will become fully transparent except for a bit of edging. It will return to full opacity after a few moments or after some input or more scrolling.
Expected results:
The text should stay fully opaque, or partially transparent, but not switch between opacity and transparency.
I have uploaded a page with the css that causes the problem for me. The easiest way to test it would be to just copy a block of text into the textarea field and then scroll it using either arrow keys, arrow buttons or slowly with the mouse wheel or scroll bar.
On your screenshot the text is green. Is that the problem? In my testing it is always black, which seems correct.
Attachment #555562 -
Attachment is obsolete: true
Attachment #555073 -
Attachment description: nightly textarea opacity image background bug.png → screenshot - nightly textarea opacity image background bug
(In reply to aceman from comment #3)
> On your screenshot the text is green. Is that the problem? In my testing it
> is always black, which seems correct.
The monitor I usually have Nightly on is overly bright, and I am also color blind, but I can see what you mean. I'll attach another screenshot, using your updated testcase which has a grey background under part of the textarea. The text over top of the grey background is grey also, which suggests the the text is becoming transparent.
Also, I found that I could not replicate the bug on my laptop so I restarted Nightly in safe mode, just the default safe mode, and the bug didn't occur. After then checking all the addons, without finding one that caused it, I tried turning off 'Use hardware acceleration when available' and the bug stopped occurring.
If it is perhaps linked to the type of graphics card I have, I am running an Nvidia GTX275 on the 275.33 driver.
I gave grey background because you had it in the first screenshot. And it nicely shows the difference between the background and the image behind the textarea. It is very well possible it is dependent on working HW acceleration and your card.
I can not reproduce it on Win XP, no acceleration, Intel card. Can you verify it also on other machines and Windows versions? I see the textarea is transparent, the text is too, but it is shades of very similar grey (depending whether it covers the grey background or the image). See screenshot.
The computer that I experience the bug on:
Windows 7 Ultimate 64bit
Nvidia GTX275
Two computers I tested it on but did not experience the bug:
Laptop
Windows 7 Pro 32bit
Intel GL960 chipset
Desktop
Windows XP Home 32bit
Nvidia Geforce 6100 w/ 178 driver
Use hardware acceleration when available was on in all tests, but I was unsure if the laptop and XP desktop were actually using hardware acceleration. I ran the Mozilla hardware acceleration stress test on them and both had high CPU usage when running it, so can I assume they could not utilize hardware acceleration?
I have no other machines to test it on.
Forgot to add this to the previous comment:
The attached screenshot is another example, I thought that I might have been giving the impression that all the text visible in the box would become transparent, this shows otherwise.
It is also quite consistent, if I were to scroll back to the top and start scrolling through the textarea again the same lines usually go transparent.
Comment 10•15 years ago
|
||
I see in the screenshot that the last line of text in the textarea is almost invisible (it is a very light green on white background, where you maybe can't see the difference). The other 4 lines above it are OK. I assume you scrolled 1 line down and the line that appeared is broken (invisible).
Can you check which of those machines have HW acceleration really active? Yes, you may have set it in preferences, but it depends on FF it it really uses it. You can check the real state in about:support.
I think Nvidia 6100 is blacklisted and XP doesn't have HW acceleration in Direct2D or DirectWrite (and you also have ancient driver, version 257 is needed). On Intel GL960 Direct2D is disabled in FF6, but should be enabled in never versions (and you have FF9). But maybe you have an old driver. You can see the rules of blocking here: https://wiki.mozilla.org/Blocklisting/Blocked_Graphics_Drivers
| Reporter | ||
Comment 11•15 years ago
|
||
The laptop, more correctly, has a GM965 graphics chip with the 8.15.10.1930 driver, about:support states:
Direct2D Enabled: Blocked for your graphics driver version.
DirectWrite Enabled: false (6.1.7600.16763)
GPU Accelerated Windows: 0/1
I updated the graphics driver on the XP desktop to the latest (280) and also picked up correct information on the chip, it is a 6150SE/nforce430, and in the about:support page it just states that GPU acceleration is blocked due to unresolved driver issues.
Comment 12•15 years ago
|
||
OK, so we see those 2 machines without the problem do not really have HW acceleration. That is what we needed to find out. The bug is dependent on HW acceleration therefore I can't see it. I do not have such machine.
Could you also post the HW accel part of about:support from the machine where you see the bug?
Whiteboard: [HW accel]
| Reporter | ||
Comment 13•15 years ago
|
||
Adapter Description NVIDIA GeForce GTX 275
Vendor ID 10de
Device ID 05e6
Adapter RAM 896
Adapter Drivers nvd3dumx,nvwgf2umx,nvwgf2umx nvd3dum,nvwgf2um,nvwgf2um
Driver Version 8.17.12.7533
Driver Date 5-20-2011
Direct2D Enabled true
DirectWrite Enabled true (6.1.7601.17563)
ClearType Parameters ClearType parameters not found
WebGL Renderer false
GPU Accelerated Windows 2/2 Direct3D 10
I had manually disabled webgl, but that shouldn't be linked to the issue at hand should it? I tried re-enabling it and testing again but it seemed to have no affect.
Comment 14•15 years ago
|
||
Thanks, it seems you HW acceleration is working on that machine. WebGL shouln't be relevant here.
Comment 15•14 years ago
|
||
The same bug happens not only with textareas, but also with divs.
If I remove the div opacity, when I scroll the div doesn't get messed up.
If the opacity is anything less than 1.0, when I scroll, the div's contents get all messed up.
Comment 16•14 years ago
|
||
This is WFM with Firefox 10 on Windows XP (Intel video card).
Updated•4 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•