Closed Bug 49922 Opened 24 years ago Closed 24 years ago

[CBX]elect element does not repaint when losing focus

Categories

(Core :: Layout: Form Controls, defect, P3)

x86
Windows 2000
defect

Tracking

()

RESOLVED INVALID
Future

People

(Reporter: ian, Assigned: rods)

Details

(Keywords: polish)

There is the following rule in html.css:

   /* temporary rule to make repaint happen on loss of focus */
   select:focus, select[size="1"]:focus {
     background-color: #FEFEFE;
   }

The problem is that without this rule, the magic focus rectangle that the
select element aquires during, ah, focus, doesn't dissapear when you remove
the focus from the select element.

This is blocking bug 1021, which is part of my work on html.css. To fix that
bug, I am setting the background-color of select elements to 'Window'. Since
I don't know what that is, I cannot then set the background-color of 
select:focus to a similar color, the way that at the moment we set the focused
color to a very slightly shaded version of white.

Of course, if there is some other hacky way of forcing a repaint, that doesn't
involve changing colours, I'm listening...
Blocks: 1021
Severity: normal → blocker
Keywords: 4xp, nsbeta3, polish, ui
I guess there is no CSS color for focus, is there?
Status: NEW → ASSIGNED
Good idea. Ok, I've worked around this by making the combobox frame get the
Highlight and HighlightText colours. This actually seems to be what happens
with native Windows widgets anyway! Woohoo!
No longer blocks: 1021
Severity: blocker → minor
Keywords: nsbeta3
Target Milestone: --- → Future
Updating QA contact.
QA Contact: ckritzer → bsharma
Summary: select element does not repaint when losing focus → [CBX]elect element does not repaint when losing focus
This is now invlaid because of how we have changed the way the focus rect works 
(I think)
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.