W3C home > Mailing lists > Public > www-style@w3.org > August 2012

Re: [selectors4] Requested selectors

From: Alan Gresley <alan@css-class.com>
Date: Fri, 31 Aug 2012 10:44:42 +1000
Message-ID: <504008FA.50708@css-class.com>
To: "Belov, Charles" <Charles.Belov@sfmta.com>
CC: "www-style@w3.org" <www-style@w3.org>
On 31/08/2012 10:23 AM, Alan Gresley wrote:
> On 31/08/2012 10:02 AM, Belov, Charles wrote:
>> I respectfully suggest the following selectors (and apologize if
>> they've already been suggested and rejected):
>>
>> E:foreign-link(0)     an E element being the source anchor of a
>> hyperlink of which the target is not within the current domain     The
>> foreign link pseudo-class     4
>>
>> Question as to distinguishing between same (a) domain, different
>> subdomain and (b) different domain.
>>
>
> Can this not be done with attribute selectors?
>
> a[href*="domain"] /* style */
>
> a[href*="sub-domain.domain"] /* style */


Oh foreign domains..... This can be a with attribute selectors (like 
below with :not()) and :foreign-link (not sure of the support) as Tab 
has just mentioned.


a:not([href*="domain"]) /* style */

a:not([href*="sub-domain.domain"]) /* style */


Alan


-- 
Alan Gresley
http://css-3d.org/
http://css-class.com/
Received on Friday, 31 August 2012 00:45:08 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:59 GMT