W3C home > Mailing lists > Public > www-style@w3.org > May 2010

Re: Selectors, vendor prefixes (again...) and IE9

From: timeless <timeless@gmail.com>
Date: Fri, 14 May 2010 12:49:46 +0300
Message-ID: <AANLkTimQTGWqBmXE73UcWVyBYOUHn6bxcUSihkmqWvzp@mail.gmail.com>
To: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Cc: "www-style@w3.org" <www-style@w3.org>
On Fri, May 14, 2010 at 12:26 PM, Daniel Glazman
<daniel.glazman@disruptive-innovations.com> wrote:
> That means that at this time, ::selection is NOT standard,
> that the Microsoft spec behind ::selection is definitely an interesting
> contribution to the future standardization debate but it's also
> potentially NOT the final specification for that feature. In other
> terms, that ::selection should really be a ::-ms-selection until the
> CSS Working Group reaches consensus on that. On a side note, and unless
> I missed a message, the spec for that implementation by Microsoft of
> ::selection was not submitted to the CSS Working Group for discussion.

> This is equivalent to how other [1] browsers support this selector.

> Observant readers may notice that the selector pseudo-element
> is not included in the most current version of the CSS3 Selectors draft.
> We implemented ::selection in support of our goal to allow developers
> to write same markup because we see it in [2] use [3] on the web and
> supported in other browsers.

> Summary
> The ::-moz-selection (::selection) pseudo-element applies to the
> portion of a document that has been highlighted (e.g. selected
> with the mouse) by the user.

My initial read of this "paragraph" indicated that ::selection was the
same and would be supported by Mozilla. I don't read MDC articles
about CSS often, so I consider myself a typical web dev when I started
reading this: I went to that page looking for specific information and
thought I got it.

> Notes
> Gecko/Firefox supports ::-moz-selection, use also
> ::selection for some other browsers.

"Firefox supports ..." is missing 'only' -- as written, I don't see any
reason to think that it doesn't support ::selection.

"use also" should be "also use", but it doesn't help your case.

> Browser compatibility
> Browser 	Lowest Version 	Support of
> Opera 	9.5 	::selection
> Safari (WebKit) 	1.1 (100) 	::selection

I really don't like the way the MDC article is written, I had to read
all the way to the bottom to discover that ::selection isn't supported.

[1] https://developer.mozilla.org/En/CSS/::selection
[2] http://www.zeldman.com/
[3] http://dribbble.com/
Received on Friday, 14 May 2010 09:50:20 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:46 UTC