W3C home > Mailing lists > Public > www-style@w3.org > April 2005

Re: Targeting CSS3 only (evil?), either with pseudoclass or an extra syntax for properties.

From: Kornel Lesinski <kornel@ldreams.net>
Date: Thu, 07 Apr 2005 19:59:09 +0000
Message-Id: <200504072158.53795.kornel@ldreams.net>
To: www-style@w3.org





There is (IMHO) excellent proposal on this subject:

http://blog.ben-ward.co.uk/archive/2004/12/21/css3_required_properties

For example that solves text-shadow problem mentioned in css specs:

#eclipse
{
   color: black;
   background: white;
}

@group  /* hide from browsers that don't understand !required */
{
  #eclipse
  {
    color: white;
    text-shadow: black 0 0 4px !required;
  }
}


This also may solve "stand-in" problem:

#foo
{
   background: red;
}
#foo
{
   background-color: transparent;
   background-image: url("foo.png") !required;
}

Browser may decide that not loaded image doesn't satisfy the required
background-image properity and fall back to solid color.

--
regards, Kornel Lesinski
Received on Thursday, 7 April 2005 21:29:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:36 GMT