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

Re: CSSStyleDeclaration: Setting only a value or a priority

From: Simon Pieters <simonp@opera.com>
Date: Mon, 19 Aug 2013 21:10:07 +0200
To: "Peter Sloetjes" <pjs.nl@live.com>, "Simon Sapin" <simon.sapin@exyr.org>
Cc: "www-style@w3.org" <www-style@w3.org>
Message-ID: <op.w12vi5j3idj3kv@simons-macbook-pro.local>
On Mon, 19 Aug 2013 18:46:42 +0200, Simon Sapin <simon.sapin@exyr.org>  
wrote:

> 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 )

Indeed.

-- 
Simon Pieters
Opera Software
Received on Monday, 19 August 2013 19:04:50 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:31 UTC