From 0e2b0db4d75f8fca6871da14f59f859fcf2f89ca Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Tue, 11 Feb 2020 23:59:53 +0100 Subject: [CSS] Add stub for font-variation-settings This stub is added because websites insist on considering this very hardware-dependent and O.S.-variable low-level font-control as a "critical feature" which it isn't as there is 0 guarantee that font variation settings are supported or honored by any operating system used by the client. On top this is a WD status feature that sites shouldn't be using, and the feature itself is strongly discouraged for use in favor of standard CSS font manipulation keywords like `font-weight`. --- layout/style/nsComputedDOMStyle.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'layout/style/nsComputedDOMStyle.cpp') diff --git a/layout/style/nsComputedDOMStyle.cpp b/layout/style/nsComputedDOMStyle.cpp index 647f7f6dc..c717d59c8 100644 --- a/layout/style/nsComputedDOMStyle.cpp +++ b/layout/style/nsComputedDOMStyle.cpp @@ -1619,6 +1619,16 @@ nsComputedDOMStyle::DoGetFontFeatureSettings() return val.forget(); } +already_AddRefed +nsComputedDOMStyle::DoGetFontVariationSettings() +{ + // TODO: This is still a stub, always returning "normal" + RefPtr val = new nsROCSSPrimitiveValue; + + val->SetIdent(eCSSKeyword_normal); + return val.forget(); +} + already_AddRefed nsComputedDOMStyle::DoGetFontKerning() { -- cgit v1.2.3