diff --git a/build/mdn-data-importer.js b/build/mdn-data-importer.js index 6937a827..59c752fa 100644 --- a/build/mdn-data-importer.js +++ b/build/mdn-data-importer.js @@ -30,7 +30,7 @@ function buildPropertiesWithMDNData(vscProperties) { if (allMDNProperties[p.name]) { propertyMap[p.name] = { ...p, - ...allMDNProperties[p.name] + ...extractMDNProperties(allMDNProperties[p.name]) } } else { propertyMap[p.name] = p @@ -47,7 +47,7 @@ function buildPropertiesWithMDNData(vscProperties) { name: pn, description: '', restriction: 'none', - ...allMDNProperties[pn] + ...extractMDNProperties(allMDNProperties[pn]) } } } @@ -55,6 +55,16 @@ function buildPropertiesWithMDNData(vscProperties) { return Object.values(propertyMap) } +/** + * Extract only the MDN data that we use + */ +function extractMDNProperties(mdnEntry) { + return { + status: mdnEntry.status, + syntax: mdnEntry.syntax + } +} + module.exports = { buildPropertiesWithMDNData } diff --git a/src/data/browsers.ts b/src/data/browsers.ts index e674be56..adc23e70 100644 --- a/src/data/browsers.ts +++ b/src/data/browsers.ts @@ -772,13 +772,8 @@ export const data : any = { desc: "@counter-style descriptor. Specifies the symbols used by the marker-construction algorithm specified by the system descriptor. Needs to be specified if the counter system is 'additive'.", browsers: "FF33", restriction: "integer, string, image, identifier", - "syntax": "[ && ]#", - "media": "all", - "initial": "N/A", - "percentages": "no", - "computed": "asSpecified", - "order": "orderOfAppearance", - "status": "standard" + "status": "standard", + "syntax": "[ && ]#" }, { name: "align-content", @@ -811,19 +806,8 @@ export const data : any = { desc: "Lines stretch to take up the remaining space." } ], - "syntax": "normal | | | ? ", - "media": "visual", - "inherited": false, - "animationType": "discrete", - "percentages": "no", - "groups": [ - "CSS Flexible Box Layout" - ], - "initial": "normal", - "appliesto": "multilineFlexContainers", - "computed": "asSpecified", - "order": "uniqueOrder", - "status": "standard" + "status": "standard", + "syntax": "normal | | | ? " }, { name: "align-items", @@ -852,19 +836,8 @@ export const data : any = { desc: "If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched." } ], - "syntax": "normal | stretch | | [ ? ]", - "media": "visual", - "inherited": false, - "animationType": "discrete", - "percentages": "no", - "groups": [ - "CSS Flexible Box Layout" - ], - "initial": "normal", - "appliesto": "allElements", - "computed": "asSpecified", - "order": "uniqueOrder", - "status": "standard" + "status": "standard", + "syntax": "normal | stretch | | [ ? ]" }, { name: "justify-items", @@ -931,19 +904,8 @@ export const data : any = { name: "legacy" } ], - "syntax": "normal | stretch | | ? [ | left | right ] | legacy | legacy && [ left | right | center ]", - "media": "visual", - "inherited": false, - "animationType": "discrete", - "percentages": "no", - "groups": [ - "CSS Box Alignment" - ], - "initial": "legacy", - "appliesto": "allElements", - "computed": "asSpecified", - "order": "perGrammar", - "status": "standard" + "status": "standard", + "syntax": "normal | stretch | | ? [ | left | right ] | legacy | legacy && [ left | right | center ]" }, { name: "justify-self", @@ -1007,19 +969,8 @@ export const data : any = { name: "unsave" } ], - "syntax": "auto | normal | stretch | | ? [ | left | right ]", - "media": "visual", - "inherited": false, - "animationType": "discrete", - "percentages": "no", - "groups": [ - "CSS Box Alignment" - ], - "initial": "auto", - "appliesto": "blockLevelBoxesAndAbsolutelyPositionedBoxesAndGridItems", - "computed": "asSpecified", - "order": "uniqueOrder", - "status": "standard" + "status": "standard", + "syntax": "auto | normal | stretch | | ? [ | left | right ]" }, { name: "align-self", @@ -1052,19 +1003,8 @@ export const data : any = { desc: "If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched." } ], - "syntax": "auto | normal | stretch | | ? ", - "media": "visual", - "inherited": false, - "animationType": "discrete", - "percentages": "no", - "groups": [ - "CSS Flexible Box Layout" - ], - "initial": "auto", - "appliesto": "flexItemsGridItemsAndAbsolutelyPositionedBoxes", - "computed": "autoOnAbsolutelyPositionedElementsValueOfAlignItemsOnParent", - "order": "uniqueOrder", - "status": "standard" + "status": "standard", + "syntax": "auto | normal | stretch | | ? " }, { name: "all", @@ -1072,19 +1012,8 @@ export const data : any = { browsers: "C37,FF27,O24", restriction: "enum", values: [], - "syntax": "initial | inherit | unset | revert", - "media": "noPracticalMedia", - "inherited": false, - "animationType": "eachOfShorthandPropertiesExceptUnicodeBiDiAndDirection", - "percentages": "no", - "groups": [ - "CSS Miscellaneous" - ], - "initial": "noPracticalInitialValue", - "appliesto": "allElements", - "computed": "asSpecifiedAppliesToEachProperty", - "order": "uniqueOrder", - "status": "standard" + "status": "standard", + "syntax": "initial | inherit | unset | revert" }, { name: "alt", @@ -1132,56 +1061,16 @@ export const data : any = { desc: "All iterations of the animation are played in the reverse direction from the way they were specified." } ], - "syntax": "#", - "media": "visual", - "inherited": false, - "animationType": "discrete", - "percentages": "no", - "groups": [ - "CSS Animations" - ], - "initial": [ - "animation-name", - "animation-duration", - "animation-timing-function", - "animation-delay", - "animation-iteration-count", - "animation-direction", - "animation-fill-mode", - "animation-play-state" - ], - "appliesto": "allElementsAndPseudos", - "computed": [ - "animation-name", - "animation-duration", - "animation-timing-function", - "animation-delay", - "animation-direction", - "animation-iteration-count", - "animation-fill-mode", - "animation-play-state" - ], - "order": "orderOfAppearance", - "status": "standard" + "status": "standard", + "syntax": "#" }, { name: "animation-delay", desc: "Defines when the animation will start.", browsers: "E,C43,FF16,IE10,O12.1,S9", restriction: "time", - "syntax": "