Alexander Kiel - 2008-01-18

Hi,

if I have the following CSS rule:

h1 {
background-color: red;
background-color: blue;
}

it is correctly parsed into the DOM, but if I call CSSStyleDeclaration#getPropertyCSSValue("background-color").getCssText() I get "red" instead of "blue".

As I understand it right, the last declaration should win.

And if I have:

h1 {
background-color: red !important;
background-color: blue;
}

"red" should win.

So what to do?