W3C home > Mailing lists > Public > www-style@w3.org > August 2013

Re: CSSStyleDeclaration: Setting only a value or a priority

From: Simon Sapin <simon.sapin@exyr.org>
Date: Mon, 19 Aug 2013 17:46:42 +0100
Message-ID: <52124BF2.3060209@exyr.org>
To: Peter Sloetjes <pjs.nl@live.com>
CC: Simon Pieters <simonp@opera.com>, "www-style@w3.org" <www-style@w3.org>
Le 19/08/2013 15:27, Peter Sloetjes a écrit :
> For the "[property] = value" syntax, one could require an extra space
> character " " at the end to indicate that the property priority should
> be changed to "", while leaving it unchanged when no space is added.
> After all, an extra space is required for setting "!important" as well.
> Not setting priorities leads to much less side effects and is perhaps
> what most users want to do most of the time.

Whitespace has never been significant in CSS. I am very much against 
changing that.

(Also, whitespace is not necessary when specifying !important :
data:text/html,<style>body{background:green!important )

-- 
Simon Sapin
Received on Monday, 19 August 2013 16:47:08 UTC

This archive was generated by hypermail 2.3.1 : Monday, 19 August 2013 16:47:09 UTC