Skip to content

Commit

Permalink
Update browser compat data
Browse files Browse the repository at this point in the history
  • Loading branch information
devongovett committed Dec 21, 2024
1 parent 43707c3 commit cdbf0d4
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@
"@codemirror/lang-javascript": "^6.1.2",
"@codemirror/lint": "^6.1.0",
"@codemirror/theme-one-dark": "^6.1.0",
"@mdn/browser-compat-data": "~5.6.18",
"@mdn/browser-compat-data": "~5.6.26",
"@napi-rs/cli": "^2.14.0",
"autoprefixer": "^10.4.20",
"caniuse-lite": "^1.0.30001684",
"caniuse-lite": "^1.0.30001690",
"codemirror": "^6.0.1",
"cssnano": "^5.0.8",
"esbuild": "^0.19.8",
Expand Down
8 changes: 4 additions & 4 deletions scripts/build-prefixes.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ for (let feature of cssFeatures) {
addValue(compat, {}, 'custom-media-queries');

let mdnFeatures = {
doublePositionGradients: mdn.css.types.image.gradient['radial-gradient'].doubleposition.__compat.support,
doublePositionGradients: mdn.css.types.gradient['radial-gradient'].doubleposition.__compat.support,
clampFunction: mdn.css.types.clamp.__compat.support,
placeSelf: mdn.css.properties['place-self'].__compat.support,
placeContent: mdn.css.properties['place-content'].__compat.support,
Expand Down Expand Up @@ -320,7 +320,7 @@ let mdnFeatures = {
absFunction: mdn.css.types.abs.__compat.support,
signFunction: mdn.css.types.sign.__compat.support,
hypotFunction: mdn.css.types.hypot.__compat.support,
gradientInterpolationHints: mdn.css.types.image.gradient['linear-gradient'].interpolation_hints.__compat.support,
gradientInterpolationHints: mdn.css.types.gradient['linear-gradient'].interpolation_hints.__compat.support,
borderImageRepeatRound: mdn.css.properties['border-image-repeat'].round.__compat.support,
borderImageRepeatSpace: mdn.css.properties['border-image-repeat'].space.__compat.support,
fontSizeRem: mdn.css.properties['font-size'].rem_values.__compat.support,
Expand All @@ -345,13 +345,13 @@ for (let key in mdn.css.types.length) {
mdnFeatures[feat] = mdn.css.types.length[key].__compat.support;
}

for (let key in mdn.css.types.image.gradient) {
for (let key in mdn.css.types.gradient) {
if (key === '__compat') {
continue;
}

let feat = key.replace(/-([a-z])/g, (_, l) => l.toUpperCase());
mdnFeatures[feat] = mdn.css.types.image.gradient[key].__compat.support;
mdnFeatures[feat] = mdn.css.types.gradient[key].__compat.support;
}

const nonStandardListStyleType = new Set([
Expand Down
14 changes: 7 additions & 7 deletions src/prefixes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ impl Feature {
}
Feature::Element => {
if let Some(version) = browsers.firefox {
if version >= 131072 {
if version >= 131072 && version <= 8847360 {
prefixes |= VendorPrefix::Moz;
}
}
Expand Down Expand Up @@ -1225,7 +1225,7 @@ impl Feature {
}
}
if let Some(version) = browsers.samsung {
if version >= 262144 {
if version >= 262144 && version <= 1703936 {
prefixes |= VendorPrefix::WebKit;
}
}
Expand Down Expand Up @@ -1274,7 +1274,7 @@ impl Feature {
}
}
if let Some(version) = browsers.firefox {
if version >= 196608 {
if version >= 196608 && version <= 8847360 {
prefixes |= VendorPrefix::Moz;
}
}
Expand Down Expand Up @@ -1304,7 +1304,7 @@ impl Feature {
}
}
if let Some(version) = browsers.samsung {
if version >= 327680 {
if version >= 327680 && version <= 1703936 {
prefixes |= VendorPrefix::WebKit;
}
}
Expand Down Expand Up @@ -1549,7 +1549,7 @@ impl Feature {
}
}
if let Some(version) = browsers.samsung {
if version >= 262144 {
if version >= 262144 && version <= 1703936 {
prefixes |= VendorPrefix::WebKit;
}
}
Expand Down Expand Up @@ -1951,7 +1951,7 @@ impl Feature {
}
}
if let Some(version) = browsers.samsung {
if version >= 262144 {
if version >= 262144 && version <= 1703936 {
prefixes |= VendorPrefix::WebKit;
}
}
Expand Down Expand Up @@ -2191,7 +2191,7 @@ impl Feature {
}
}
if let Some(version) = browsers.samsung {
if version >= 262144 {
if version >= 262144 && version <= 1703936 {
prefixes |= VendorPrefix::WebKit;
}
}
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -454,10 +454,10 @@
resolved "https://registry.yarnpkg.com/@lmdb/lmdb-win32-x64/-/lmdb-win32-x64-2.5.2.tgz#28f643fbc0bec30b07fbe95b137879b6b4d1c9c5"
integrity sha512-zrBczSbXKxEyK2ijtbRdICDygRqWSRPpZMN5dD1T8VMEW5RIhIbwFWw2phDRXuBQdVDpSjalCIUMWMV2h3JaZA==

"@mdn/browser-compat-data@~5.6.18":
version "5.6.18"
resolved "https://registry.yarnpkg.com/@mdn/browser-compat-data/-/browser-compat-data-5.6.18.tgz#62bfd9f7a646e54e68b3739cb34bcf508e699410"
integrity sha512-WCQcQGyydquw7NXPL2NopMCgmUvIQDG7KM/IGR4PMJSDH5SHZKXUDEF6rdpGWj0MtcjQseOCl/hjzYzj0fMMeA==
"@mdn/browser-compat-data@~5.6.26":
version "5.6.26"
resolved "https://registry.yarnpkg.com/@mdn/browser-compat-data/-/browser-compat-data-5.6.26.tgz#0d1a64cf0a04a29f4283bbc1f5a313f355f9c73d"
integrity sha512-7NdgdOR7lkzrN70zGSULmrcvKyi/aJjpTJRCbuy8IZuHiLkPTvsr10jW0MJgWzK2l2wTmhdQvegTw6yNU5AVNQ==

"@mischnic/json-sourcemap@^0.1.0":
version "0.1.0"
Expand Down Expand Up @@ -1352,10 +1352,10 @@ caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001646, caniuse-lite@^1.0.30001677:
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001677.tgz#27c2e2c637e007cfa864a16f7dfe7cde66b38b5f"
integrity sha512-fmfjsOlJUpMWu+mAAtZZZHz7UEwsUxIIvu1TJfO1HqFQvB/B+ii0xr9B5HpbZY/mC4XZ8SvjHJqtAY6pDPQEog==

caniuse-lite@^1.0.30001684:
version "1.0.30001684"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001684.tgz#0eca437bab7d5f03452ff0ef9de8299be6b08e16"
integrity sha512-G1LRwLIQjBQoyq0ZJGqGIJUXzJ8irpbjHLpVRXDvBEScFJ9b17sgK6vlx0GAJFE21okD7zXl08rRRUfq6HdoEQ==
caniuse-lite@^1.0.30001690:
version "1.0.30001690"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001690.tgz#f2d15e3aaf8e18f76b2b8c1481abde063b8104c8"
integrity sha512-5ExiE3qQN6oF8Clf8ifIDcMRCRE/dMGcETG/XGMD8/XiXm6HXQgQTh1yZYLXXpSOsEUlJm1Xr7kGULZTuGtP/w==

chalk@^2.0.0:
version "2.4.2"
Expand Down

0 comments on commit cdbf0d4

Please sign in to comment.