Skip to content

Commit

Permalink
Update compat data
Browse files Browse the repository at this point in the history
Fixes #593
  • Loading branch information
devongovett committed Nov 7, 2023
1 parent 0fffce7 commit e255210
Show file tree
Hide file tree
Showing 6 changed files with 559 additions and 202 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
"@codemirror/lang-javascript": "^6.1.2",
"@codemirror/lint": "^6.1.0",
"@codemirror/theme-one-dark": "^6.1.0",
"@mdn/browser-compat-data": "^5.2.49",
"@mdn/browser-compat-data": "^5.3.29",
"@napi-rs/cli": "^2.14.0",
"autoprefixer": "^10.4.14",
"autoprefixer": "^10.4.16",
"codemirror": "^6.0.1",
"cssnano": "^5.0.8",
"esbuild": "^0.13.10",
Expand Down
6 changes: 6 additions & 0 deletions scripts/build-prefixes.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,12 @@ for (let key in mdn.css.properties['width']) {
mdnFeatures[feat] = mdn.css.properties['width'][key].__compat.support;
}

mdnFeatures.FillSize = Object.fromEntries(
Object.entries(mdn.css.properties.width.stretch.__compat.support)
.filter(([, v]) => v.alternative_name)
.map(([k, v]) => [k, {version_added: v.version_added}])
);

for (let feature in mdnFeatures) {
let browserMap = {};
for (let name in mdnFeatures[feature]) {
Expand Down

0 comments on commit e255210

Please sign in to comment.