Re: CSS Variables Draft Proposal

Le 16/02/11 08:26, David Singer a écrit :

> Is it harmful to have variables textually local to the document in which they occur?

Assuming your "document" above means "stylesheet", my answer is yes.


   <link rel="stylesheet" type="text/css" href="corporate.css"/>
   <style type="text/css">
     .logo { content: $logoUrl; }
   </style>

The above - a real test case real users have been asking for more than a
decade - is possible only because variables cross stylesheet boundaries.
If the logoUrl is changed by the corporate stylesheet, the web page is
visually updated w/o any action from the page author.

</Daniel>

Received on Wednesday, 16 February 2011 12:25:24 UTC