First of all thanks for your reply, Nico
Nicolas Lesbats wrote:
In this later case, applying cascade rules, if we had same properties the last will override. Well, this is not the case, but the philosophy of the problem I think would be the same in case of equal than in case of different propierties.
and the two properties will be applied. Your selector will modify the
first property applied to H1, but since it doesn't notify the second,
docprop2 will be applied without changes.
suppose the default is:
and your new cascading with that is:
You did'n noticed of the first one and there is the disaster: All In Black
But if you use class as selector it is suppossed that you know that may be conflict for that element, then you well asume that there may be another let's say parent selector that influences in propierties not declared. Well.So in a case that you have your new cascading sheet as:
....you're assuming the consecuences (If not why did you used selector instead of directly body?)
So the only thing I'm saying is modify the Cascading Order only in one thing:
6.4.1 Cascading Order:
1 Find all declarations that apply to the element and propierty in question.
spec CSS rules
- Find all declarations that apply to the element only and with exactly the same specificity.
- Override ALL propierties for that element using weight, origin and order.