mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
Sorting on specificity needs to be stable for correctness of the cascade.
This commit is contained in:
parent
a04e96b7c6
commit
02364d7db7
1 changed files with 1 additions and 0 deletions
|
@ -67,6 +67,7 @@ impl Stylist {
|
|||
append!(important, has_important_declarations);
|
||||
}
|
||||
|
||||
// These sorts need to be stable
|
||||
if has_normal_declarations {
|
||||
tim_sort(rules.normal)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue