CSS namespacing, somebody tell me what I'm doing wrong.

, posted: 9-Nov-2009 19:40

I've spent an hour trying to get this trivial test case working, can somebody tell me what I'm doing wrong, the first paragraph should be blue, the second one should be red and the third should be green, I must be missing something obvious here but the code below doesn't do this in the browser's I've tried (Firefox, Opera and Konqueror).

Can't paste here, this link instead... http://sirius.gogo.co.nz/test.html



Other related posts:
Xero vs. Quickbooks, from a Quickbooks User
Vodafone Website Failure Fails
Concurrent PHP Sessions - Cunning Trickery








Comment by freitasm, on 9-Nov-2009 20:04

I think this would be more appropriate on a forum post?


Comment by chiefie, on 9-Nov-2009 20:50

Interestingly, when reading up about CSS3 namespace (http://www.w3.org/TR/css3-namespace/) it seems correct, however I've tried in Safari 4 on Windows and Firefox 3.5.4 (both do support draft CSS3 to some level).

It is either the browsers are yet fully implement this, or they use vendor-specific method for CSS3 implementation?

What browser you tested on? Is there anymore write regarding if this draft selector actually been implemented or just a suggestion to CSS3 namespace?


Comment by chiefie, on 9-Nov-2009 20:54

Found something interesting. This is working/viewable in Firefox 3.5.4 - http://www.aaronsw.com/2002/HTMLnamespaces


Author's note by sleemanj, on 9-Nov-2009 21:13

@freitasm - the people of importance read the blog RSS feed.
@chiefie - I've tried in Firefox 3.5.4, Opera 9.62 and Konqueror 4.3.2.  The link you gave shows in all those browsers green, green, red, which indicates that it just doesn't look at namespaces (properly) at all, so I guess that's the problem.  I had thought this was supposed to be already implemented in browsers actualy, weird.


Comment by chiefie, on 9-Nov-2009 21:50

Nah, CSS3 is currently in candidate draft, which mean it is no where near finalised (draft is the closest any of the CSS3 be made to in the near future.) CSS2.1 was in draft for a long time.

Not all CSS3 that been suggested may make it through to final, which mean when it is at that stage, the browser vendors will implement them into next browser, and we count on Microsoft to adopt CSS3 in partial or in most basic form when it is finalised... (and probably when it is IE9 or 10).


Add a comment

Please note: comments that are inappropriate or promotional in nature will be deleted. E-mail addresses are not displayed, but you must enter a valid e-mail address to confirm your comments.

Are you a registered Geekzone user? Login to have the fields below automatically filled in for you and to enable links in comments. If you have (or qualify to have) a Geekzone Blog then your comment will be automatically confirmed and placed in the moderation queue for the blog owner's approval.

Your name:

Your e-mail:

Your webpage:

sleemanj's profile

James Sleeman
Christchurch
New Zealand


PHP Programmer Extraordinaire

All views expressed are held by the poster, not necessarily any person or organisation associated therewith.