mirror of
https://github.com/servo/servo.git
synced 2025-08-17 19:35:33 +01:00
style: Skip system font variant for ToCss in font subproperties.
System font keywords are not a valid value for those properties. The newly-added #[css(skip)] would be reused by deriving algorithm of SpecifiedValueInfo to skip them as well. Bug: 1434130 Reviewed-by: emilio MozReview-Commit-ID: EmnhkaA9RR5
This commit is contained in:
parent
6e3fa68f46
commit
3b9c40dd14
4 changed files with 23 additions and 0 deletions
|
@ -274,6 +274,11 @@ ${helpers.predefined_type("-x-text-zoom",
|
|||
//! detects that a value has a system font, it will resolve it, and
|
||||
//! cache it on the ComputedValues. After this, it can be just fetched
|
||||
//! whenever a font longhand on the same element needs the system font.
|
||||
//!
|
||||
//! When a longhand property is holding a SystemFont, it's serialized
|
||||
//! to an empty string as if its value comes from a shorthand with
|
||||
//! variable reference. We may want to improve this behavior at some
|
||||
//! point. See also https://github.com/w3c/csswg-drafts/issues/1586.
|
||||
|
||||
use app_units::Au;
|
||||
use cssparser::{Parser, ToCss};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue