CSSProcessorConfig
reexport
interface CSSProcessorConfig {Â Â absoluteBorderWidthsPixelMap: Record<CSSHardcodedBorderWidth, number>;Â Â absoluteFontSizesPixelMap: Record<CSSAbsoluteHardcodedFontSize, number>;Â Â absoluteLengthUnitsMultiplicators: CSSAbsoluteLengthUnitsMultiplicators;Â Â inlinePropertiesBlacklist: CSSPropertyNameList;Â Â inlinePropertiesWhitelist: null | CSSPropertyNameList;Â Â relativeFontSizesCoefficientMap: Record<CSSRelativeHarcodedFontSize, number>;Â Â rootFontSize: number;Â Â isFontSupported: (fontName: string) => string | boolean;}Defined in
@native-html/css-processorFields#
absoluteBorderWidthsPixelMap#
required
absoluteFontSizesPixelMap#
required
absoluteLengthUnitsMultiplicators#
required
inlinePropertiesBlacklist#
required
Ignore those properties when compiling inline styles. The names should be camelCased.
Remarks
As of this version, inline styles are considered 100% safe and predictable, thus this property is generally not advised.
inlinePropertiesWhitelist#
required
Allow those properties when compiling inline styles. The names should be camelCased.
Remarks
When present, inlinePropertiesBlacklist will be ignored.
relativeFontSizesCoefficientMap#
required
rootFontSize#
required
rootFontSize: number;Font size used to compute REM.
Methods#
isFontSupported#
required
isFontSupported: (fontName: string) => string | boolean;Determine is the provided font is supported on running platform.
Parameters#
fontNameThe name of the font to validate. Any quotes have been removed.