mirror of
https://github.com/servo/servo.git
synced 2025-07-03 05:23:38 +01:00
style: Don't insert into the seen
set before ignoring document colors.
Otherwise we may stop honoring other colors in other cascade levels. Fixes: #19370
This commit is contained in:
parent
6158a4bf91
commit
4c02ad00ef
1 changed files with 2 additions and 1 deletions
|
@ -3330,7 +3330,6 @@ where
|
||||||
if seen.contains(physical_longhand_id) {
|
if seen.contains(physical_longhand_id) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
seen.insert(physical_longhand_id);
|
|
||||||
|
|
||||||
let mut declaration = match *declaration {
|
let mut declaration = match *declaration {
|
||||||
PropertyDeclaration::WithVariables(id, ref unparsed) => {
|
PropertyDeclaration::WithVariables(id, ref unparsed) => {
|
||||||
|
@ -3376,6 +3375,8 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
seen.insert(physical_longhand_id);
|
||||||
|
|
||||||
% if category_to_cascade_now == "early":
|
% if category_to_cascade_now == "early":
|
||||||
if LonghandId::FontSize == longhand_id {
|
if LonghandId::FontSize == longhand_id {
|
||||||
font_size = Some(declaration.clone());
|
font_size = Some(declaration.clone());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue