This commit is contained in:
Martin Aeschlimann 2024-01-22 20:59:54 +01:00 коммит произвёл GitHub
Родитель c644f815fb
Коммит 2fba2c2402
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
7 изменённых файлов: 2252 добавлений и 1938 удалений

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -10,7 +10,7 @@ const bcd = require('@mdn/browser-compat-data')
function addBrowserCompatDataToProperties(atdirectives, pseudoclasses, pseudoelements, properties) {
atdirectives.forEach(item => {
if (bcd.css['at-rules'][item.name.slice(1)]) {
const matchingBCDItem = bcd.css['at-rules'][item.name.slice(1)]
const matchingBCDItem = bcd.css['at-rules'][item.name.slice(1)]
addBCDToBrowsers(item, matchingBCDItem)
}
})
@ -52,11 +52,11 @@ function addMDNReferences(atdirectives, pseudoclasses, pseudoelements, propertie
atdirectives.forEach(item => {
if (bcd.css['at-rules'][item.name.slice(1)]) {
const matchingBCDItem = bcd.css['at-rules'][item.name.slice(1)]
const matchingBCDItem = bcd.css['at-rules'][item.name.slice(1)]
addReference(item, matchingBCDItem);
}
})
pseudoclasses.forEach(item => {
if (bcd.css.selectors[item.name.slice(1)]) {
const matchingBCDItem = bcd.css.selectors[item.name.slice(1)]
@ -146,7 +146,7 @@ function toCompatString(bcdProperty) {
/**
* https://github.com/mdn/browser-compat-data/blob/master/schemas/compat-data-schema.md
*
*
* Convert a support statement to a short compat string.
* For example:
* { "ie": { "version_added": "6.0" } } => "IE6.0"
@ -174,11 +174,13 @@ function supportToShortCompatString(support, browserAbbrev) {
}
if (version_added) {
if (typeof(version_added) === 'boolean') {
return browserAbbrev
} else {
if (typeof(version_added) === 'string') {
if (version_added.startsWith('≤')) {
version_added = version_added.substring(1);
}
return `${browserAbbrev}${version_added}`
}
return browserAbbrev
}
return null

Просмотреть файл

@ -272,6 +272,9 @@ module.exports = {
'base-palette': `The base-palette CSS descriptor is used to specify the name or index of a pre-defined palette to be used for creating a new palette. If the specified base-palette does not exist, then the palette defined at index 0 will be used.`,
'override-colors': `The override-colors CSS descriptor is used to override colors in the chosen base-palette for a color font.`,
'page-orientation': `The page-orientation CSS descriptor for the @page at-rule controls the rotation of a printed page. It handles the flow of content across pages when the orientation of a page is changed. This behavior differs from the size descriptor in that a user can define the direction in which to rotate the page.`,
'font-synthesis-position': `The font-synthesis-position CSS property lets you specify whether or not a browser may synthesize the subscript and superscript "position" typefaces when they are missing in a font family, while using font-variant-position to set the positions.`,
'overlay': `The overlay CSS property specifies whether an element appearing in the top layer (for example, a shown popover or modal {{htmlelement("dialog")}} element) is actually rendered in the top layer. This property is only relevant within a list of transition-property values, and only if allow-discrete is set as the transition-behavior.`,
'transition-behavior': `The transition-behavior CSS property specifies whether transitions will be started for properties whose animation behavior is discrete.`,
},
pseudoSelectorDescriptions: {
':defined': 'The :defined CSS pseudo-class represents any element that has been defined. This includes any standard element built in to the browser, and custom elements that have been successfully defined (i.e. with the CustomElementRegistry.define() method).',

Разница между файлами не показана из-за своего большого размера Загрузить разницу

29
web-data/package-lock.json сгенерированный Normal file
Просмотреть файл

@ -0,0 +1,29 @@
{
"name": "@vscode/web-custom-data",
"version": "0.4.9",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@vscode/web-custom-data",
"version": "0.4.9",
"license": "MIT",
"devDependencies": {
"@mdn/browser-compat-data": "^5.5.7",
"mdn-data": "^2.3.5"
}
},
"node_modules/@mdn/browser-compat-data": {
"version": "5.5.7",
"resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-5.5.7.tgz",
"integrity": "sha512-DoHTZ/TjtNfUu9eiqJd+x3IcCQrhS+yOYU436TKUnlE36jZwNbK535D1CmTsSYdi/UcdCWNm5KRQZ9g1tlZCPw==",
"dev": true
},
"node_modules/mdn-data": {
"version": "2.3.5",
"resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.3.5.tgz",
"integrity": "sha512-12iIqP19xIEVqy50kpenAaxJReFuLDmVWfOMaRxGr0cRrfcarrgw7FzSCvJpD+wnOlvmbFzHzTarghAau1ZUjg==",
"dev": true
}
}
}

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "@vscode/web-custom-data",
"version": "0.4.8",
"version": "0.4.9",
"license": "MIT",
"author": "Visual Studio Code Team",
"repository": {
@ -11,14 +11,14 @@
"url": "https://github.com/microsoft/vscode-custom-data/issues"
},
"scripts": {
"update-sources": "yarn add -D mdn-data @mdn/browser-compat-data && node ./css/chromestatus/updateRelevance.js",
"update-sources": "npm i -D mdn-data @mdn/browser-compat-data && node ./css/chromestatus/updateRelevance.js",
"generate-data": "node html/generateData.js && node css/generateData.js"
},
"files": [
"data/*"
],
"devDependencies": {
"@mdn/browser-compat-data": "^5.3.14",
"mdn-data": "^2.1.0"
"@mdn/browser-compat-data": "^5.5.7",
"mdn-data": "^2.3.5"
}
}

Просмотреть файл

@ -1,13 +0,0 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
"@mdn/browser-compat-data@^5.3.14":
version "5.3.14"
resolved "https://registry.yarnpkg.com/@mdn/browser-compat-data/-/browser-compat-data-5.3.14.tgz#ab35599e6fe350005c04c9c5fb7fd4ab70a892b9"
integrity sha512-Y9XQrphVcE6u9xMm+gIqN86opbU/5s2W1pdPyKRyFV5B7+2jWM2gLI5JpfhZncaoDKvhy6FYwK04aCz5UM/bTQ==
mdn-data@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-2.1.0.tgz#e0ab1f7bbc23bbc5e2e398e8d7d04bfd8eaab0a6"
integrity sha512-dbAWH6A+2NGuVJlQFrTKHJc07Vqn5frnhyTOGz+7BsK7V2hHdoBcwoiyV3QVhLHYpM/zqe2OSUn5ZWbVXLBB8A==