# HG changeset patch # User Emilio Cobos Alvarez # Date 1520549664 -3600 # Node ID d1a36af94ccd8800d7538a9f9510c39dbcc090f5 # Parent 82964d9246cb2e6aca76dcd6a81f099f0033a74e Bug 1434692: Add a WPT test for calc font-variation-settings. r=dholbert Summary: Along with other internal tests. Tests for font-feature-settings exist, they're not synced yet. Reviewers: dholbert Reviewed By: dholbert Bug #: 1434692 Differential Revision: https://phabricator.services.mozilla.com/D544 MozReview-Commit-ID: BfGSZMh9Hss diff --git a/layout/style/test/property_database.js b/layout/style/test/property_database.js --- a/layout/style/test/property_database.js +++ b/layout/style/test/property_database.js @@ -6349,16 +6349,24 @@ if (IsCSSPropertyPrefEnabled("layout.css applies_to_first_letter: true, applies_to_first_line: true, applies_to_placeholder: true, initial_values: [ "auto" ], other_values: [ "none" ], invalid_values: [ "on" ] }; gCSSProperties["font"].subproperties.push("font-optical-sizing"); + if (SpecialPowers.DOMWindowUtils.isStyledByServo) { + gCSSProperties["font-variation-settings"].other_values + .push("'vert' calc(2.5)"); + } +} + +if (SpecialPowers.DOMWindowUtils.isStyledByServo) { + gCSSProperties["font-feature-settings"].other_values.push("'vert' calc(2)"); } if (IsCSSPropertyPrefEnabled("layout.css.frames-timing.enabled")) { gCSSProperties["animation-timing-function"].other_values.push( "frames(2)", "frames(1000)", "frames( 2 )"); gCSSProperties["animation-timing-function"].invalid_values.push( "frames(1)", "frames(-2)", "frames", "frames()", "frames(,)", "frames(a)", "frames(2.0)", "frames(2.5)", "frames(2 3)");