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:
Emilio Cobos Álvarez 2017-11-25 02:06:36 +01:00
parent 6158a4bf91
commit 4c02ad00ef
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -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());