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

Five new proposals about CSS

From: David Latapie <david@empyree.org>
Date: Sat, 15 Oct 2005 17:24:28 +0200
Message-Id: <5F9F2B17-551E-4419-A424-1011F5C12B09@empyree.org>
To: www-style@w3.org

Good day,

Below are some suggestions I gathered about how to improve CSS. Any  
feedback would be appreciated. I also published this on my blog  

Relative colours

== Proposed in a different way in 2000 ==

+#001100, for instance would make the element “greener”. This is  
especially useful for “graphical chart” consistency. Other  
possibility: rgba(+20,+150,-30,-0.1) (but only WebCore will recognize  
the alpha value). Note: rgba(0,0,0,-0.1) is not the same as rgba(+0, 
Some uses:

- pseudoclasses: to make :hover lighter and :visited darker  
than :link. Example: <http://www.espezon.org/>
- status-dependant: anchor, internal (same site), external (other  
site)… Example: <http://www.espezon.org/>
- thematic colouring. For instance a blue theme for my computing  
pages, a green theme for my hicking pages… Example <http:// 

Of course, what can be done for link pseudoclasses should be allowed  
for background-color (and others) too.

Gradient colours
== Proposed in a different way in 1998 ==

A lot of “layout pictures” are simply gradients. In the way it is  
now possible to produce real CSS tabs, colour-processing (Internet  
Explorer had already implemented some proprietary filters, such as  
blur) would alleviate the amount a pictures in a page. Internet  
Explorer has the proprietary blur extension, text-shadow and rgba are  
supported by WebCore.
Gradients should be easy to implement. Variations includes concave/ 
convex (see Apple website)


In order to avoid adding a lot of style type, this one allow you to  
choose any character (arrows and check marks would be popular). It  
only makes sense for unordered lists, though. This will be especially  
valuable with Unicode (✔,✘,☺,☹,→,➡).

Updating selector support for XML
== A broader use of what is proposed here <http://www.w3.org/TR/css3- 
lists/#list-content"> ==

A picture is worth a thousands words :

     span[lang=fr]    {font-style:italic}
     <span lang=fr>Bonjour !</span>
     That will work (on an otherwise valid document)
     span[xml:lang="fr"]    {font-style:italic}
     <span xml:lang="fr">Bonjour !</span>
     That won’t (on an otherwise valid document)

Problem is I don’t know if it comes from the browser (Safari and  
Firefox) or from the specifications.

[(X)HTML] Removing i and b elements
They can be replaced by:

     em and strong when it comes to semantics (an important text)
     font-style:italic font-weight:bolder when it comes to  
presentation (a different way to show it)

Received on Sunday, 16 October 2005 03:52:00 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:21 UTC