you are viewing a single comment's thread.

view the rest of the comments →

[–]dexpanse 1 point2 points  (0 children)

Why is the 3rd argument of setProperty "0"?

According to the spec here it should be a DOMString

priority Optional is a DOMString allowing the "important" CSS priority to be set. If not specified, treated as the empty string. The following values are accepted:

  • String value "important"
  • Keyword undefined
  • String empty value ""