Closed Bug 541311 Opened 15 years ago Closed 13 years ago

::-moz-selection reverts to default colours when window loses focus

Categories

(Core :: DOM: Selection, defect)

x86
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 706209

People

(Reporter: seddon.ryan, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729) Using the ::-moz-selection pseudo-element will revert background-color & text color to browser default when the window loses focus, tested in Firefox 1.5+ other browser that support ::selection don't have this issue. Reproducible: Always Steps to Reproduce: 1. Open website that has ::-moz-selection implemented (thecssninja.com) 2. Select some text, should have green background with white text 3. Click on another window in your OS. Actual Results: Custom selection styles will revert to browser default styling. Expected Results: Kept custom styles and not reverted to browser default. Here's a screen grab showing text highlight when window has focus and when it's lost focus http://twitpic.com/z5oqm
Bug 176170 (with Hixies testcases exposing focus issues too) related?
You can confirm this easily with this jsFiddle: http://jsfiddle.net/paleozogt/yVjfu/
Dupping forward to bug with a lot more information.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.