Closed Bug 113327 Opened 23 years ago Closed 22 years ago

opacity and overflow 'auto' destroy scrollbar

Categories

(Core Graveyard :: GFX, defect, P4)

Tracking

(Not tracked)

RESOLVED WORKSFORME
Future

People

(Reporter: edward.shroyer, Assigned: dcone)

Details

(Keywords: perf, testcase)

Attachments

(2 files, 1 obsolete file)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.6) Gecko/20011120 BuildID: 2001112009 The scrollbar is not useable when an overflow generates it in a script generated div and the opacity is not set to 100%. See example below. Reproducible: Always Steps to Reproduce: HTML and script included produces two identical elements except for opacity. 1. Load the page. 2. Use the scrollbar with 100% opacity. 3. Use the scrollbar with 99% opacity. Actual Results: Scrollbar had badly degraded functionality. Expected Results: Scrollbar should act like a scrollbar. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Demo opacity bug</title> <script type="text/javascript"> function create_console(opacity) { var ConsoleElement = document.createElement("DIV"); with (ConsoleElement.style){ MozOpacity=opacity + "%"; width = "200px"; height = "200px"; border="solid black"; overflow="auto"; } document.body.appendChild(ConsoleElement); ConsoleElement.appendChild(document.createTextNode("")); for (var i = 0, LineNumber = 0; i < 30; i++, LineNumber++){ var NewLine = document.createElement("DIV"); NewLine.appendChild(document.createTextNode(LineNumber + ": " + 'Opacity: ' + opacity)); ConsoleElement.appendChild(NewLine); } } </script> </head> <body onload="create_console(100);create_console(99)"></body> </html>
Attached file The testcase (obsolete) —
Not a dom bug. Over to compositor.
Assignee: jst → kmcclusk
Status: UNCONFIRMED → NEW
Component: DOM Style → Compositor
Ever confirmed: true
OS: Windows 2000 → All
QA Contact: ian → petersen
Hardware: PC → All
Target Milestone: --- → mozilla1.0.1
Bulk moving Mozilla1.01 bugs to future-P1. I will pull from the future-P1 list to schedule bugs for post Mozilla1.0 milestones
Priority: -- → P1
Target Milestone: mozilla1.0.1 → Future
Looks like a perf problem when alpha compositing. ->dcone
Assignee: kmcclusk → dcone
Keywords: perf
Priority: P1 → P4
Keywords: testcase
Attached file Updated Testcase
Updated testcase since Mozilla no longer supports % values for opacity. WFM 2003042412 Windows 2000. Though I noticed another bug, when you select one line (on the div using opacity) and move the mouse cursor down without releasing button to select the rest, the scrollbar stops working after that. But thats another bug.
Attachment #60256 - Attachment is obsolete: true
Using trunk build 2003042508 I discovered the same. Concerning your finding: "Though I noticed another bug, when you select one line (on the div using opacity) and move the mouse cursor down without releasing button to select the rest, the scrollbar stops working after that. But thats another bug." I see that after that nothing at all is any longer selectable and both scrollbars stop to work.
So marking WFM Jose will file a new bug about the problem described.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → WORKSFORME
FYI, filed bug 203910, not sure if I selected the correct component though.
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: