W3C home > Mailing lists > Public > www-style@w3.org > November 2003

Re: Cookies and Styles

From: Henri Sivonen <hsivonen@iki.fi>
Date: Fri, 21 Nov 2003 19:50:58 +0200
Message-Id: <4383D4EA-1C4B-11D8-AA44-003065B8CF0E@iki.fi>
Cc: www-style@w3.org
To: Dris <dris86@cox.net>

On Nov 20, 2003, at 01:41, Dris wrote:

> This may be falling to far into the realm of scripting, but what if we 
> could specify different styles according to a cookie set on the client 
> side?  Something like...
> p::ifCookie('bigText') {
> 	font-size: 15px;
> }
> Currently, scripting would still need to be applied for setting the 
> cookies...  Since the cookies can't be controlled through CSS alone, 
> I'm not sure that this would be appropriate.  But it would definitely 
> open up some possibilities.  Thoughts?

What use cases would you like to address that aren't better addressed by
  * alternate style sheets with client-side support
    (including selection persistence)
  * not defining small font sizes in the first place

(BTW, from my point of view, 15px isn't big text. My pref is 18px.)

Henri Sivonen
Received on Friday, 21 November 2003 12:51:08 UTC

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