<@U10EJRH2L> does "order specified" in item #4 mea...
# tornadofx
c
@Ruckus does "order specified" in item #4 mean specified in the class="" definition or the position within the stylesheet? https://www.w3.org/TR/CSS22/cascade.html#cascading-order
r
No, it means the last thing found in the CSS definition. Basically if you have
Copy code
<elem class="red green"/>
and
Copy code
elem.red {
    color: #ff0000;
}
elem.green {
    color: #00ff00;
}
`elem`'s
color
would be
#00ff00
But if you had
Copy code
elem.green {
    color: #00ff00;
}
elem.red {
    color: #ff0000;
}
`elem`'s
color
would be
#ff0000
c
got it
r
(inline styles are always considered defined after included stylesheets, so they always take precedence)
I actually tend to think of it as all of them get applied, so later equivalent definitions just overwrite earlier ones (even though that's not actually how it works)