Re: :target [via CSS Selectors as Fragment Identifiers Community Group]

On Mar 3, 2012, at 13:43 , Chris Lilley wrote:
> I fid myself wondering how :target would be handled, in a selectors fragment
> identifier. Well, I guess it always matches :)

I don't think that it can always match. Obviously, css(:target) always matches but doesn't do anything useful, but css(:target > p) for instance can essentially never match I guess.

I think the simplest would be to just forbid :target as it doesn't make sense. It won't be the only one, for instance I'm not sure what :scope would do, or :hover for that matter.

-- 
Robin Berjon - http://berjon.com/ - @robinberjon

Coming up soon: I'm teaching a W3C online course on Mobile Web Apps
http://www.w3devcampus.com/writing-great-web-applications-for-mobile/

Received on Saturday, 3 March 2012 14:02:30 UTC