Skip to content

Commit 5b67528

Browse files
committed
Handle fallbacks for font properties
1 parent d18c223 commit 5b67528

File tree

7 files changed

+819
-184
lines changed

7 files changed

+819
-184
lines changed

scripts/build-prefixes.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ let cssFeatures = [
189189
'css-not-sel-list',
190190
'css-has',
191191
'font-family-system-ui',
192+
'extended-system-fonts',
192193
'calc'
193194
];
194195

@@ -289,6 +290,14 @@ let mdnFeatures = {
289290
absFunction: mdn.css.types.abs.__compat.support,
290291
signFunction: mdn.css.types.sign.__compat.support,
291292
hypotFunction: mdn.css.types.hypot.__compat.support,
293+
gradientInterpolationHints: mdn.css.types.image.gradient['linear-gradient'].interpolation_hints.__compat.support,
294+
borderImageRepeatRound: mdn.css.properties['border-image-repeat'].round.__compat.support,
295+
borderImageRepeatSpace: mdn.css.properties['border-image-repeat'].space.__compat.support,
296+
fontSizeRem: mdn.css.properties['font-size'].rem_values.__compat.support,
297+
fontSizeXXXLarge: mdn.css.properties['font-size']['xxx-large'].__compat.support,
298+
fontStyleObliqueAngle: mdn.css.properties['font-style']['oblique-angle'].__compat.support,
299+
fontWeightNumber: mdn.css.properties['font-weight'].number.__compat.support,
300+
fontStretchPercentage: mdn.css.properties['font-stretch'].percentage.__compat.support,
292301
};
293302

294303
for (let key in mdn.css.types.length) {
@@ -312,10 +321,6 @@ for (let key in mdn.css.types.image.gradient) {
312321
mdnFeatures[feat] = mdn.css.types.image.gradient[key].__compat.support;
313322
}
314323

315-
mdnFeatures.gradientInterpolationHints = mdn.css.types.image.gradient['linear-gradient'].interpolation_hints.__compat.support;
316-
mdnFeatures.borderImageRepeatRound = mdn.css.properties['border-image-repeat'].round.__compat.support;
317-
mdnFeatures.borderImageRepeatSpace = mdn.css.properties['border-image-repeat'].space.__compat.support;
318-
319324
const nonStandardListStyleType = new Set([
320325
// https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type#non-standard_extensions
321326
'ethiopic-halehame',

0 commit comments

Comments
 (0)