Closed
Bug 271752
Opened 21 years ago
Closed 21 years ago
if a select element's option's list is currently displayed and its "visibility" style is set to "hidden" the window doesn't repaint the tainted region and a gray box appears
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 206000
People
(Reporter: arthur.branham, Unassigned)
Details
(Keywords: testcase)
Attachments
(1 file)
305 bytes,
text/html
|
Details |
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
A gray box appears on screen if a select element's options list is currently
displayed and its "visibility" style is set to "hidden". The screen doesn't
seem to repaint until the another event forces it to (i.e. the window is
moved, or a click is received elsewhere on the screen). I originally found
this problem with a DHTML tooltip script which hides any windowed elements
such as "select","iframe",and "applet" if their bounding rectangles intersect
with the tooltip element to prevent the windowed elements from "burning"
through the tooltip. If a user clicks a select box and then simply moves the
mouse over the trigger element, the tooltip will appear and hide the select
box, but a gray remnant of where the list used to lie will still burn through
the tooltip and override the z-index of the tooltip element. This will happen
until an event forces the window to repaint any tainted areas.
Reproducible: Always
Steps to Reproduce:
1. Create a simple select box with 10 options (just to make it overly visible)
2. Add an onclick event with the following code:
this.style.visibility='hidden';
3. Load the page and click the select box
Actual Results:
A gray box will appear on the screen as the remains of the drop down list
until a click or focus event is received elsewhere on the screen.
Expected Results:
The screen should have repainted that area as soon as the visibility style was
changed.
<html>
<head>
<title>Select Box Repaint Bug</title>
</head>
<body>
<select id="selectElement"
onclick="this.style.visibility='hidden';">
<option>A</option>
<option>B</option>
<option>C</option>
<option>D</option>
<option>E</option>
</select>
</body>
</html>
Updated•21 years ago
|
Assignee: firefox → nobody
Component: General → Layout: Form Controls
Keywords: testcase
Product: Firefox → Core
QA Contact: firefox.general → core.layout.form-controls
Version: unspecified → Trunk
Comment 1•21 years ago
|
||
Confirmed with 1.8a5 Win XP.
Comment 2•21 years ago
|
||
*** This bug has been marked as a duplicate of 206000 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•