[Bug 27589] Unclear how to deal with a parsed value containing !important in setPropertyValue

https://www.w3.org/Bugs/Public/show_bug.cgi?id=27589

--- Comment #1 from Simon Pieters <simonp@opera.com> ---
The note is non-normative so it doesn't mean anything on its own.

The normative part for what happens if you were to include !important is

[[
6. Let component value list be the result of parsing value for property
property."
]]
->
[[
To parse a CSS value value for a given property means to follow these steps:

1. Let list be the value returned by invoking parse a list of component values
from value.

2. Match list against the grammar for the property property in the CSS
specification.

3. If the above step failed, return null.

4. Return list.
]]

Since !important is not part of the grammar for any property, this returns
null.

Back to setProperty:

[[
7. If component value list is null terminate these steps.
]]

Would it be clearer if the note was removed?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Friday, 12 December 2014 06:12:57 UTC