Sorry for not following up on this earlier, Ehsan, somehow this slipped
through my inbox.
On 4/6/18 1:26 AM, Ehsan Akhgari wrote:
> ::-moz-selection seems like a fairly popular feature. PublicWWW claims
> it's seen on a million sites:
>
https://publicwww.com/websites/%22%3A%3A-moz-selection%22/
>
> After this change, is it feasible to detect the usage of the prefixed
> pseudo-element so that existing code that uses ::-moz-selection would emit
> a helpful console warning? It would be nice to have a way to communicate
> to web developers that they can now remove the Gecko specific rules.
It is feasible, but it's not clear to me how worth it is to land this
now. In particular, we're going to keep parsing ::-moz-selection for now
as an alias, since as you mentioned it's a fairly popular feature, and
people won't be able to remove it for a while if they want to support
ESR and similar.
If we decide to remove the prefixed version, developers would get a in
the console automatically if they have the CSS error filter enabled that
would look like:
Unknown pseudo-class or pseudo-element ‘-moz-selection’. Ruleset
ignored due to bad selector.
Which should be enough to hint them that they can remove it.
-- Emilio