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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?