W3C home > Mailing lists > Public > www-style@w3.org > February 2011

Re: CSS Variables Draft Proposal

From: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Date: Wed, 16 Feb 2011 13:24:50 +0100
Message-ID: <4D5BC212.8010001@disruptive-innovations.com>
To: David Singer <singer@apple.com>
CC: Christoph Päper <christoph.paeper@crissov.de>, www-style list <www-style@w3.org>
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; }

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.

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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:43 UTC