- From: Zack Weinberg <zackw@panix.com>
- Date: Mon, 8 Sep 2014 11:10:25 -0400
- To: Simon Pieters <simonp@opera.com>
- Cc: www-style list <www-style@w3.org>, Mike Sherov <mike.sherov@gmail.com>, "L. David Baron" <dbaron@dbaron.org>
On Mon, Sep 8, 2014 at 3:32 AM, Simon Pieters <simonp@opera.com> wrote:
> On Mon, 08 Sep 2014 05:19:12 +0200, Mike Sherov <mike.sherov@gmail.com>
> wrote:
>>
>> It seems that in order to change from "color: red !important;" to "color:
>> black;", one should be able to say "elem.style.color = 'black';" or at the
>> very least "elem.style.setProperty('color', 'black', '');"
...
>
> https://www.w3.org/Bugs/Public/show_bug.cgi?id=23066
>
> The idea is that your mental model should be that setProperty('color',
> 'black', '') is equivalent to appending a color:black; declaration to the
> style rule, which doesn't win over the !important one.
FWIW I still believe quite vehemently that this is wrong, and that
setProperty should behave as Sherov expected. I only dropped the
argument (was that a year ago now? sheesh) because I didn't have time
to pursue it.
zw
Received on Monday, 8 September 2014 15:10:53 UTC