Skip to content

Commit 97bffa0

Browse files
committed
Handle simple shorthands
1 parent 04fc5bf commit 97bffa0

File tree

8 files changed

+798
-48
lines changed

8 files changed

+798
-48
lines changed

scripts/build-prefixes.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,29 @@ mdnFeatures.gradientInterpolationHints = mdn.css.types.image.gradient['linear-gr
316316
mdnFeatures.borderImageRepeatRound = mdn.css.properties['border-image-repeat'].round.__compat.support;
317317
mdnFeatures.borderImageRepeatSpace = mdn.css.properties['border-image-repeat'].space.__compat.support;
318318

319+
const nonStandardListStyleType = new Set([
320+
// https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type#non-standard_extensions
321+
'ethiopic-halehame',
322+
'ethiopic-halehame-am',
323+
'ethiopic-halehame-ti-er',
324+
'ethiopic-halehame-ti-et',
325+
'hangul',
326+
'hangul-consonant',
327+
'urdu',
328+
'cjk-ideographic',
329+
// https://github.com/w3c/csswg-drafts/issues/135
330+
'upper-greek'
331+
]);
332+
333+
for (let key in mdn.css.properties['list-style-type']) {
334+
if (key === '__compat' || nonStandardListStyleType.has(key) || mdn.css.properties['list-style-type'][key].__compat.support.chrome.version_removed) {
335+
continue;
336+
}
337+
338+
let feat = key[0].toUpperCase() + key.slice(1).replace(/-([a-z])/g, (_, l) => l.toUpperCase()) + 'ListStyleType';
339+
mdnFeatures[feat] = mdn.css.properties['list-style-type'][key].__compat.support;
340+
}
341+
319342
for (let feature in mdnFeatures) {
320343
let browserMap = {};
321344
for (let name in mdnFeatures[feature]) {

0 commit comments

Comments
 (0)