From b2c6c5a87a148e1730b72aa6d851609d64b5728d Mon Sep 17 00:00:00 2001 From: Pine Wu Date: Mon, 4 Nov 2019 14:38:01 -0500 Subject: [PATCH] Fix microsoft/vscode#3145 --- src/data/browsers.ts | 22462 ++++++++++++------------- src/services/cssCompletion.ts | 37 +- src/test/css/completion.test.ts | 6 +- src/test/scss/scssCompletion.test.ts | 2 +- 4 files changed, 11263 insertions(+), 11244 deletions(-) diff --git a/src/data/browsers.ts b/src/data/browsers.ts index 031c51ab..d0b760a3 100644 --- a/src/data/browsers.ts +++ b/src/data/browsers.ts @@ -10,550 +10,539 @@ export const cssData : CSSDataV1 = { "version": 1.1, "properties": [ { - name: "additive-symbols", - browsers: [ - "FF33" - ], - "syntax": "[ && ]#", - "description": "@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'.", - "restrictions": [ - "integer", - "string", - "image", - "identifier" - ] - }, - { - name: "align-content", + name: "width", values: [ { - name: "center", - "description": "Lines are packed toward the center of the flex container." - }, - { - name: "flex-end", - "description": "Lines are packed toward the end of the flex container." + name: "auto", + "description": "The width depends on the values of other properties." }, { - name: "flex-start", - "description": "Lines are packed toward the start of the flex container." + name: "fit-content", + "description": "Use the fit-content inline size or fit-content block size, as appropriate to the writing mode." }, { - name: "space-around", - "description": "Lines are evenly distributed in the flex container, with half-size spaces on either end." + name: "max-content", + "description": "Use the max-content inline size or max-content block size, as appropriate to the writing mode." }, { - name: "space-between", - "description": "Lines are evenly distributed in the flex container." - }, + name: "min-content", + "description": "Use the min-content inline size or min-content block size, as appropriate to the writing mode." + } + ], + "syntax": "{1,2}", + "references": [ { - name: "stretch", - "description": "Lines stretch to take up the remaining space." + name: "MDN Reference", + "url": "https://developer.mozilla.org/docs/Web/CSS/width" } ], - "syntax": "normal | | | ? ", - "description": "Aligns a flex container’s lines within the flex container when there is extra space in the cross-axis, similar to how 'justify-content' aligns individual items within the main-axis.", + "description": "Specifies the width of the content area, padding area or border area (depending on 'box-sizing') of certain boxes.", "restrictions": [ - "enum" + "length", + "percentage" ] }, { - name: "align-items", + name: "height", values: [ { - name: "baseline", - "description": "If the flex item’s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment." + name: "auto", + "description": "The height depends on the values of other properties." }, { - name: "center", - "description": "The flex item’s margin box is centered in the cross axis within the line." + name: "fit-content", + "description": "Use the fit-content inline size or fit-content block size, as appropriate to the writing mode." }, { - name: "flex-end", - "description": "The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line." + name: "max-content", + "description": "Use the max-content inline size or max-content block size, as appropriate to the writing mode." }, { - name: "flex-start", - "description": "The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line." - }, + name: "min-content", + "description": "Use the min-content inline size or min-content block size, as appropriate to the writing mode." + } + ], + "syntax": "{1,2}", + "references": [ { - name: "stretch", - "description": "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." + name: "MDN Reference", + "url": "https://developer.mozilla.org/docs/Web/CSS/height" } ], - "syntax": "normal | stretch | | [ ? ]", - "description": "Aligns flex items along the cross axis of the current line of the flex container.", + "description": "Specifies the height of the content area, padding area or border area (depending on 'box-sizing') of certain boxes.", "restrictions": [ - "enum" + "length", + "percentage" ] }, { - name: "justify-items", + name: "display", values: [ { - name: "auto" + name: "block", + "description": "The element generates a block-level box" }, { - name: "normal" + name: "contents", + "description": "The element itself does not generate any boxes, but its children and pseudo-elements still generate boxes as normal." }, { - name: "end" + name: "flex", + "description": "The element generates a principal flex container box and establishes a flex formatting context." }, { - name: "start" + name: "flexbox", + "description": "The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'." }, { - name: "flex-end", - "description": "\"Flex items are packed toward the end of the line.\"" + name: "flow-root", + "description": "The element generates a block container box, and lays out its contents using flow layout." }, { - name: "flex-start", - "description": "\"Flex items are packed toward the start of the line.\"" + name: "grid", + "description": "The element generates a principal grid container box, and establishes a grid formatting context." }, { - name: "self-end", - "description": "The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis." + name: "inline", + "description": "The element generates an inline-level box." }, { - name: "self-start", - "description": "The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.." + name: "inline-block", + "description": "A block box, which itself is flowed as a single inline box, similar to a replaced element. The inside of an inline-block is formatted as a block box, and the box itself is formatted as an inline box." }, { - name: "center", - "description": "The items are packed flush to each other toward the center of the of the alignment container." + name: "inline-flex", + "description": "Inline-level flex container." }, { - name: "left" + name: "inline-flexbox", + "description": "Inline-level flex container. Standardized as 'inline-flex'" }, { - name: "right" + name: "inline-table", + "description": "Inline-level table wrapper box containing table box." }, { - name: "baseline" + name: "list-item", + "description": "One or more block boxes and one marker box." }, { - name: "first baseline" + name: "-moz-box", + "description": "The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'." }, { - name: "last baseline" + name: "-moz-deck" }, { - name: "stretch", - "description": "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." + name: "-moz-grid" }, { - name: "save" + name: "-moz-grid-group" }, { - name: "unsave" + name: "-moz-grid-line" }, { - name: "legacy" - } - ], - "syntax": "normal | stretch | | ? [ | left | right ] | legacy | legacy && [ left | right | center ]", - "description": "Defines the default justify-self for all items of the box, giving them the default way of justifying each box along the appropriate axis", - "restrictions": [ - "enum" - ] - }, - { - name: "justify-self", - browsers: [ - "E16", - "FF45", - "S10.1", - "C57", - "O44" - ], - values: [ + name: "-moz-groupbox" + }, { - name: "auto" + name: "-moz-inline-box", + "description": "Inline-level flex container. Standardized as 'inline-flex'" }, { - name: "normal" + name: "-moz-inline-grid" }, { - name: "end" + name: "-moz-inline-stack" }, { - name: "start" + name: "-moz-marker" }, { - name: "flex-end", - "description": "\"Flex items are packed toward the end of the line.\"" + name: "-moz-popup" }, { - name: "flex-start", - "description": "\"Flex items are packed toward the start of the line.\"" + name: "-moz-stack" }, { - name: "self-end", - "description": "The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis." + name: "-ms-flexbox", + "description": "The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'." }, { - name: "self-start", - "description": "The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.." + name: "-ms-grid", + "description": "The element generates a principal grid container box, and establishes a grid formatting context." }, { - name: "center", - "description": "The items are packed flush to each other toward the center of the of the alignment container." + name: "-ms-inline-flexbox", + "description": "Inline-level flex container. Standardized as 'inline-flex'" }, { - name: "left" + name: "-ms-inline-grid", + "description": "Inline-level grid container." }, { - name: "right" + name: "none", + "description": "The element and its descendants generates no boxes." }, { - name: "baseline" + name: "ruby", + "description": "The element generates a principal ruby container box, and establishes a ruby formatting context." }, { - name: "first baseline" + name: "ruby-base" }, { - name: "last baseline" + name: "ruby-base-container" }, { - name: "stretch", - "description": "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." + name: "ruby-text" }, { - name: "save" + name: "ruby-text-container" }, { - name: "unsave" - } - ], - "syntax": "auto | normal | stretch | | ? [ | left | right ]", - "description": "Defines the way of justifying a box inside its container along the appropriate axis.", - "restrictions": [ - "enum" - ] - }, - { - name: "align-self", - values: [ + name: "run-in", + "description": "The element generates a run-in box. Run-in elements act like inlines or blocks, depending on the surrounding elements." + }, { - name: "auto", - "description": "Computes to the value of 'align-items' on the element’s parent, or 'stretch' if the element has no parent. On absolutely positioned elements, it computes to itself." + name: "table", + "description": "The element generates a principal table wrapper box containing an additionally-generated table box, and establishes a table formatting context." }, { - name: "baseline", - "description": "If the flex item’s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment." + name: "table-caption" }, { - name: "center", - "description": "The flex item’s margin box is centered in the cross axis within the line." + name: "table-cell" }, { - name: "flex-end", - "description": "The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line." + name: "table-column" }, { - name: "flex-start", - "description": "The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line." + name: "table-column-group" }, { - name: "stretch", - "description": "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 | | ? ", - "description": "Allows the default alignment along the cross axis to be overridden for individual flex items.", - "restrictions": [ - "enum" - ] - }, - { - name: "all", - browsers: [ - "FF27", - "S9.1", - "C37", - "O24" - ], - values: [], - "syntax": "initial | inherit | unset | revert", - "references": [ - { - name: "MDN Reference", - "url": "https://developer.mozilla.org/docs/Web/CSS/all" - } - ], - "description": "Shorthand that resets all properties except 'direction' and 'unicode-bidi'.", - "restrictions": [ - "enum" - ] - }, - { - name: "alt", - browsers: [ - "S9" - ], - values: [], - "references": [ - { - name: "MDN Reference", - "url": "https://developer.mozilla.org/docs/Web/CSS/alt" - } - ], - "description": "Provides alternative text for assistive technology to replace the generated content of a ::before or ::after element.", - "restrictions": [ - "string", - "enum" - ] - }, - { - name: "animation", - values: [ - { - name: "alternate", - "description": "The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction." - }, - { - name: "alternate-reverse", - "description": "The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction." + name: "table-footer-group" }, { - name: "backwards", - "description": "The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'." + name: "table-header-group" }, { - name: "both", - "description": "Both forwards and backwards fill modes are applied." + name: "table-row" }, { - name: "forwards", - "description": "The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes." + name: "table-row-group" }, { - name: "infinite", - "description": "Causes the animation to repeat forever." + name: "-webkit-box", + "description": "The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'." }, { - name: "none", - "description": "No animation is performed" + name: "-webkit-flex", + "description": "The element lays out its contents using flow layout (block-and-inline layout)." }, { - name: "normal", - "description": "Normal playback." + name: "-webkit-inline-box", + "description": "Inline-level flex container. Standardized as 'inline-flex'" }, { - name: "reverse", - "description": "All iterations of the animation are played in the reverse direction from the way they were specified." + name: "-webkit-inline-flex", + "description": "Inline-level flex container." } ], - "syntax": "#", + "syntax": "[ || ] | | | | ", "references": [ { name: "MDN Reference", - "url": "https://developer.mozilla.org/docs/Web/CSS/animation" + "url": "https://developer.mozilla.org/docs/Web/CSS/display" } ], - "description": "Shorthand property combines six of the animation properties into a single property.", + "description": "In combination with 'float' and 'position', determines the type of box or boxes that are generated for an element.", "restrictions": [ - "time", - "timing-function", - "enum", - "identifier", - "number" + "enum" ] }, { - name: "animation-delay", - "syntax": "