- From: Emrah BASKAYA <emrahbaskaya@hesido.com>
- Date: Mon, 04 Apr 2005 02:02:58 +0300
- To: "www-style@w3.org" <www-style@w3.org>
On Sat, 2 Apr 2005 20:23:53 +0100 (BST), David Woolley <david@djwhome.demon.co.uk> wrote: > >> However, as much as some will hate me for this, I'd really like to have >> a >> null pseudo-class that targets css3 capable agents only, e.g. p:css3 {} >> , > > Variations on this come up frequently. The problems are: > > - user agents are not pure CSS 2 or CSS 3 agents (this may have changed, > but > I think there are no CSS 2 agents, only ones with CSS 1 (possibly > partial) and parts of CSS2); > - marketing departments interpret compliance optimistically; > - errors in conformance claims in the implementation are likely to > have a low priority for fixing. > You are entirely correct. However, a dummy css3 pseudo class may give authors an easy transition to getting their things done with new CSS3 features while providing something useable for the old generation and may solve the degrade problems for style sheets using new CSS3 features. One example would be: .sidenote { border: 2px dotted red; padding: 5px; /* no need for a large padding */ border-radius: 15px; /* old agents do not undestand anything, so no problem here */ } .sidenote:css3 { padding: 15px 5px; /* So contents start below the rounded circle border */ } or it could be "padding-css3: 15px" without needing a pseudo class. Css3 browsers would be encouraged to remove the last occurence of -css3 and this could be for all the styling properties. Emrah BASKAYA www.hesido.com -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Received on Sunday, 3 April 2005 23:02:59 UTC