Selection styles

Found out by accident that it's possible to style the text selected by the user in Mozilla and Safari.

This is the blog of Peter-Paul Koch, mobile platform strategist, consultant, and trainer. You can also follow him on Twitter.
Atom RSS

I’m around at the following conferences:

(Data from Lanyrd)

Categories:

Monthlies:

Comments

Comments are closed.

1 Posted by Justin Wood (Callek) on 10 January 2005 | Permalink

Notes In Mozilla as of Today

::-moz-selection {} removes all selection highlighting (Bug to be fixed by me hopefully soon).

And ::-moz-selection { cursor: foo; } does not work for any element/object as of yet. I wish I can figure out how to solve that problem sooner than later as well.

Just a heads up for anyone wishing to use those specifications of ::-moz-selection

2 Posted by Pascal on 16 April 2005 | Permalink

This seems not to be working:
::-moz-selection, ::selection {...}
Mozilla ignores that rule if there are other Selectors, thats a bug, hm?

3 Posted by Paul D on 18 May 2005 | Permalink

I find as well in Camino that if you group the Mozilla selector with the regular one, Camino ignores it. Definitely a bug.

4 Posted by sebastian sauer on 22 October 2005 | Permalink

Konqueror supports this too.

tested with:


$ konqueror -v
Qt: 3.3.4
KDE: 3.4.2-1.2.fc3.kde
Konqueror: 3.4.2-1.5.fc3.kde