(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/parser/cssScanner',["require", "exports"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    var TokenType;
    (function (TokenType) {
        TokenType[TokenType["Ident"] = 0] = "Ident";
        TokenType[TokenType["AtKeyword"] = 1] = "AtKeyword";
        TokenType[TokenType["String"] = 2] = "String";
        TokenType[TokenType["BadString"] = 3] = "BadString";
        TokenType[TokenType["UnquotedString"] = 4] = "UnquotedString";
        TokenType[TokenType["Hash"] = 5] = "Hash";
        TokenType[TokenType["Num"] = 6] = "Num";
        TokenType[TokenType["Percentage"] = 7] = "Percentage";
        TokenType[TokenType["Dimension"] = 8] = "Dimension";
        TokenType[TokenType["UnicodeRange"] = 9] = "UnicodeRange";
        TokenType[TokenType["CDO"] = 10] = "CDO";
        TokenType[TokenType["CDC"] = 11] = "CDC";
        TokenType[TokenType["Colon"] = 12] = "Colon";
        TokenType[TokenType["SemiColon"] = 13] = "SemiColon";
        TokenType[TokenType["CurlyL"] = 14] = "CurlyL";
        TokenType[TokenType["CurlyR"] = 15] = "CurlyR";
        TokenType[TokenType["ParenthesisL"] = 16] = "ParenthesisL";
        TokenType[TokenType["ParenthesisR"] = 17] = "ParenthesisR";
        TokenType[TokenType["BracketL"] = 18] = "BracketL";
        TokenType[TokenType["BracketR"] = 19] = "BracketR";
        TokenType[TokenType["Whitespace"] = 20] = "Whitespace";
        TokenType[TokenType["Includes"] = 21] = "Includes";
        TokenType[TokenType["Dashmatch"] = 22] = "Dashmatch";
        TokenType[TokenType["SubstringOperator"] = 23] = "SubstringOperator";
        TokenType[TokenType["PrefixOperator"] = 24] = "PrefixOperator";
        TokenType[TokenType["SuffixOperator"] = 25] = "SuffixOperator";
        TokenType[TokenType["Delim"] = 26] = "Delim";
        TokenType[TokenType["EMS"] = 27] = "EMS";
        TokenType[TokenType["EXS"] = 28] = "EXS";
        TokenType[TokenType["Length"] = 29] = "Length";
        TokenType[TokenType["Angle"] = 30] = "Angle";
        TokenType[TokenType["Time"] = 31] = "Time";
        TokenType[TokenType["Freq"] = 32] = "Freq";
        TokenType[TokenType["Exclamation"] = 33] = "Exclamation";
        TokenType[TokenType["Resolution"] = 34] = "Resolution";
        TokenType[TokenType["Comma"] = 35] = "Comma";
        TokenType[TokenType["Charset"] = 36] = "Charset";
        TokenType[TokenType["EscapedJavaScript"] = 37] = "EscapedJavaScript";
        TokenType[TokenType["BadEscapedJavaScript"] = 38] = "BadEscapedJavaScript";
        TokenType[TokenType["Comment"] = 39] = "Comment";
        TokenType[TokenType["SingleLineComment"] = 40] = "SingleLineComment";
        TokenType[TokenType["EOF"] = 41] = "EOF";
        TokenType[TokenType["CustomToken"] = 42] = "CustomToken";
    })(TokenType = exports.TokenType || (exports.TokenType = {}));
    var MultiLineStream = /** @class */ (function () {
        function MultiLineStream(source) {
            this.source = source;
            this.len = source.length;
            this.position = 0;
        }
        MultiLineStream.prototype.substring = function (from, to) {
            if (to === void 0) { to = this.position; }
            return this.source.substring(from, to);
        };
        MultiLineStream.prototype.eos = function () {
            return this.len <= this.position;
        };
        MultiLineStream.prototype.pos = function () {
            return this.position;
        };
        MultiLineStream.prototype.goBackTo = function (pos) {
            this.position = pos;
        };
        MultiLineStream.prototype.goBack = function (n) {
            this.position -= n;
        };
        MultiLineStream.prototype.advance = function (n) {
            this.position += n;
        };
        MultiLineStream.prototype.nextChar = function () {
            return this.source.charCodeAt(this.position++) || 0;
        };
        MultiLineStream.prototype.peekChar = function (n) {
            if (n === void 0) { n = 0; }
            return this.source.charCodeAt(this.position + n) || 0;
        };
        MultiLineStream.prototype.lookbackChar = function (n) {
            if (n === void 0) { n = 0; }
            return this.source.charCodeAt(this.position - n) || 0;
        };
        MultiLineStream.prototype.advanceIfChar = function (ch) {
            if (ch === this.source.charCodeAt(this.position)) {
                this.position++;
                return true;
            }
            return false;
        };
        MultiLineStream.prototype.advanceIfChars = function (ch) {
            if (this.position + ch.length > this.source.length) {
                return false;
            }
            var i = 0;
            for (; i < ch.length; i++) {
                if (this.source.charCodeAt(this.position + i) !== ch[i]) {
                    return false;
                }
            }
            this.advance(i);
            return true;
        };
        MultiLineStream.prototype.advanceWhileChar = function (condition) {
            var posNow = this.position;
            while (this.position < this.len && condition(this.source.charCodeAt(this.position))) {
                this.position++;
            }
            return this.position - posNow;
        };
        return MultiLineStream;
    }());
    exports.MultiLineStream = MultiLineStream;
    var _a = 'a'.charCodeAt(0);
    var _f = 'f'.charCodeAt(0);
    var _z = 'z'.charCodeAt(0);
    var _A = 'A'.charCodeAt(0);
    var _F = 'F'.charCodeAt(0);
    var _Z = 'Z'.charCodeAt(0);
    var _0 = '0'.charCodeAt(0);
    var _9 = '9'.charCodeAt(0);
    var _TLD = '~'.charCodeAt(0);
    var _HAT = '^'.charCodeAt(0);
    var _EQS = '='.charCodeAt(0);
    var _PIP = '|'.charCodeAt(0);
    var _MIN = '-'.charCodeAt(0);
    var _USC = '_'.charCodeAt(0);
    var _PRC = '%'.charCodeAt(0);
    var _MUL = '*'.charCodeAt(0);
    var _LPA = '('.charCodeAt(0);
    var _RPA = ')'.charCodeAt(0);
    var _LAN = '<'.charCodeAt(0);
    var _RAN = '>'.charCodeAt(0);
    var _ATS = '@'.charCodeAt(0);
    var _HSH = '#'.charCodeAt(0);
    var _DLR = '$'.charCodeAt(0);
    var _BSL = '\\'.charCodeAt(0);
    var _FSL = '/'.charCodeAt(0);
    var _NWL = '\n'.charCodeAt(0);
    var _CAR = '\r'.charCodeAt(0);
    var _LFD = '\f'.charCodeAt(0);
    var _DQO = '"'.charCodeAt(0);
    var _SQO = '\''.charCodeAt(0);
    var _WSP = ' '.charCodeAt(0);
    var _TAB = '\t'.charCodeAt(0);
    var _SEM = ';'.charCodeAt(0);
    var _COL = ':'.charCodeAt(0);
    var _CUL = '{'.charCodeAt(0);
    var _CUR = '}'.charCodeAt(0);
    var _BRL = '['.charCodeAt(0);
    var _BRR = ']'.charCodeAt(0);
    var _CMA = ','.charCodeAt(0);
    var _DOT = '.'.charCodeAt(0);
    var _BNG = '!'.charCodeAt(0);
    var staticTokenTable = {};
    staticTokenTable[_SEM] = TokenType.SemiColon;
    staticTokenTable[_COL] = TokenType.Colon;
    staticTokenTable[_CUL] = TokenType.CurlyL;
    staticTokenTable[_CUR] = TokenType.CurlyR;
    staticTokenTable[_BRR] = TokenType.BracketR;
    staticTokenTable[_BRL] = TokenType.BracketL;
    staticTokenTable[_LPA] = TokenType.ParenthesisL;
    staticTokenTable[_RPA] = TokenType.ParenthesisR;
    staticTokenTable[_CMA] = TokenType.Comma;
    var staticUnitTable = {};
    staticUnitTable['em'] = TokenType.EMS;
    staticUnitTable['ex'] = TokenType.EXS;
    staticUnitTable['px'] = TokenType.Length;
    staticUnitTable['cm'] = TokenType.Length;
    staticUnitTable['mm'] = TokenType.Length;
    staticUnitTable['in'] = TokenType.Length;
    staticUnitTable['pt'] = TokenType.Length;
    staticUnitTable['pc'] = TokenType.Length;
    staticUnitTable['deg'] = TokenType.Angle;
    staticUnitTable['rad'] = TokenType.Angle;
    staticUnitTable['grad'] = TokenType.Angle;
    staticUnitTable['ms'] = TokenType.Time;
    staticUnitTable['s'] = TokenType.Time;
    staticUnitTable['hz'] = TokenType.Freq;
    staticUnitTable['khz'] = TokenType.Freq;
    staticUnitTable['%'] = TokenType.Percentage;
    staticUnitTable['fr'] = TokenType.Percentage;
    staticUnitTable['dpi'] = TokenType.Resolution;
    staticUnitTable['dpcm'] = TokenType.Resolution;
    var Scanner = /** @class */ (function () {
        function Scanner() {
            this.stream = new MultiLineStream('');
            this.ignoreComment = true;
            this.ignoreWhitespace = true;
            this.inURL = false;
        }
        Scanner.prototype.setSource = function (input) {
            this.stream = new MultiLineStream(input);
        };
        Scanner.prototype.finishToken = function (offset, type, text) {
            return {
                offset: offset,
                len: this.stream.pos() - offset,
                type: type,
                text: text || this.stream.substring(offset)
            };
        };
        Scanner.prototype.substring = function (offset, len) {
            return this.stream.substring(offset, offset + len);
        };
        Scanner.prototype.pos = function () {
            return this.stream.pos();
        };
        Scanner.prototype.goBackTo = function (pos) {
            this.stream.goBackTo(pos);
        };
        Scanner.prototype.scanUnquotedString = function () {
            var offset = this.stream.pos();
            var content = [];
            if (this._unquotedString(content)) {
                return this.finishToken(offset, TokenType.UnquotedString, content.join(''));
            }
            return null;
        };
        Scanner.prototype.scan = function () {
            // processes all whitespaces and comments
            var triviaToken = this.trivia();
            if (triviaToken !== null) {
                return triviaToken;
            }
            var offset = this.stream.pos();
            // End of file/input
            if (this.stream.eos()) {
                return this.finishToken(offset, TokenType.EOF);
            }
            return this.scanNext(offset);
        };
        Scanner.prototype.scanNext = function (offset) {
            // CDO <!--
            if (this.stream.advanceIfChars([_LAN, _BNG, _MIN, _MIN])) {
                return this.finishToken(offset, TokenType.CDO);
            }
            // CDC -->
            if (this.stream.advanceIfChars([_MIN, _MIN, _RAN])) {
                return this.finishToken(offset, TokenType.CDC);
            }
            var content = [];
            if (this.ident(content)) {
                return this.finishToken(offset, TokenType.Ident, content.join(''));
            }
            // at-keyword
            if (this.stream.advanceIfChar(_ATS)) {
                content = ['@'];
                if (this._name(content)) {
                    var keywordText = content.join('');
                    if (keywordText === '@charset') {
                        return this.finishToken(offset, TokenType.Charset, keywordText);
                    }
                    return this.finishToken(offset, TokenType.AtKeyword, keywordText);
                }
                else {
                    return this.finishToken(offset, TokenType.Delim);
                }
            }
            // hash
            if (this.stream.advanceIfChar(_HSH)) {
                content = ['#'];
                if (this._name(content)) {
                    return this.finishToken(offset, TokenType.Hash, content.join(''));
                }
                else {
                    return this.finishToken(offset, TokenType.Delim);
                }
            }
            // Important
            if (this.stream.advanceIfChar(_BNG)) {
                return this.finishToken(offset, TokenType.Exclamation);
            }
            // Numbers
            if (this._number()) {
                var pos = this.stream.pos();
                content = [this.stream.substring(offset, pos)];
                if (this.stream.advanceIfChar(_PRC)) {
                    // Percentage 43%
                    return this.finishToken(offset, TokenType.Percentage);
                }
                else if (this.ident(content)) {
                    var dim = this.stream.substring(pos).toLowerCase();
                    var tokenType_1 = staticUnitTable[dim];
                    if (typeof tokenType_1 !== 'undefined') {
                        // Known dimension 43px
                        return this.finishToken(offset, tokenType_1, content.join(''));
                    }
                    else {
                        // Unknown dimension 43ft
                        return this.finishToken(offset, TokenType.Dimension, content.join(''));
                    }
                }
                return this.finishToken(offset, TokenType.Num);
            }
            // String, BadString
            content = [];
            var tokenType = this._string(content);
            if (tokenType !== null) {
                return this.finishToken(offset, tokenType, content.join(''));
            }
            // single character tokens
            tokenType = staticTokenTable[this.stream.peekChar()];
            if (typeof tokenType !== 'undefined') {
                this.stream.advance(1);
                return this.finishToken(offset, tokenType);
            }
            // includes ~=
            if (this.stream.peekChar(0) === _TLD && this.stream.peekChar(1) === _EQS) {
                this.stream.advance(2);
                return this.finishToken(offset, TokenType.Includes);
            }
            // DashMatch |=
            if (this.stream.peekChar(0) === _PIP && this.stream.peekChar(1) === _EQS) {
                this.stream.advance(2);
                return this.finishToken(offset, TokenType.Dashmatch);
            }
            // Substring operator *=
            if (this.stream.peekChar(0) === _MUL && this.stream.peekChar(1) === _EQS) {
                this.stream.advance(2);
                return this.finishToken(offset, TokenType.SubstringOperator);
            }
            // Substring operator ^=
            if (this.stream.peekChar(0) === _HAT && this.stream.peekChar(1) === _EQS) {
                this.stream.advance(2);
                return this.finishToken(offset, TokenType.PrefixOperator);
            }
            // Substring operator $=
            if (this.stream.peekChar(0) === _DLR && this.stream.peekChar(1) === _EQS) {
                this.stream.advance(2);
                return this.finishToken(offset, TokenType.SuffixOperator);
            }
            // Delim
            this.stream.nextChar();
            return this.finishToken(offset, TokenType.Delim);
        };
        Scanner.prototype._matchWordAnyCase = function (characters) {
            var index = 0;
            this.stream.advanceWhileChar(function (ch) {
                var result = characters[index] === ch || characters[index + 1] === ch;
                if (result) {
                    index += 2;
                }
                return result;
            });
            if (index === characters.length) {
                return true;
            }
            else {
                this.stream.goBack(index / 2);
                return false;
            }
        };
        Scanner.prototype.trivia = function () {
            while (true) {
                var offset = this.stream.pos();
                if (this._whitespace()) {
                    if (!this.ignoreWhitespace) {
                        return this.finishToken(offset, TokenType.Whitespace);
                    }
                }
                else if (this.comment()) {
                    if (!this.ignoreComment) {
                        return this.finishToken(offset, TokenType.Comment);
                    }
                }
                else {
                    return null;
                }
            }
        };
        Scanner.prototype.comment = function () {
            if (this.stream.advanceIfChars([_FSL, _MUL])) {
                var success_1 = false, hot_1 = false;
                this.stream.advanceWhileChar(function (ch) {
                    if (hot_1 && ch === _FSL) {
                        success_1 = true;
                        return false;
                    }
                    hot_1 = ch === _MUL;
                    return true;
                });
                if (success_1) {
                    this.stream.advance(1);
                }
                return true;
            }
            return false;
        };
        Scanner.prototype._number = function () {
            var npeek = 0, ch;
            if (this.stream.peekChar() === _DOT) {
                npeek = 1;
            }
            ch = this.stream.peekChar(npeek);
            if (ch >= _0 && ch <= _9) {
                this.stream.advance(npeek + 1);
                this.stream.advanceWhileChar(function (ch) {
                    return ch >= _0 && ch <= _9 || npeek === 0 && ch === _DOT;
                });
                return true;
            }
            return false;
        };
        Scanner.prototype._newline = function (result) {
            var ch = this.stream.peekChar();
            switch (ch) {
                case _CAR:
                case _LFD:
                case _NWL:
                    this.stream.advance(1);
                    result.push(String.fromCharCode(ch));
                    if (ch === _CAR && this.stream.advanceIfChar(_NWL)) {
                        result.push('\n');
                    }
                    return true;
            }
            return false;
        };
        Scanner.prototype._escape = function (result, includeNewLines) {
            var ch = this.stream.peekChar();
            if (ch === _BSL) {
                this.stream.advance(1);
                ch = this.stream.peekChar();
                var hexNumCount = 0;
                while (hexNumCount < 6 && (ch >= _0 && ch <= _9 || ch >= _a && ch <= _f || ch >= _A && ch <= _F)) {
                    this.stream.advance(1);
                    ch = this.stream.peekChar();
                    hexNumCount++;
                }
                if (hexNumCount > 0) {
                    try {
                        var hexVal = parseInt(this.stream.substring(this.stream.pos() - hexNumCount), 16);
                        if (hexVal) {
                            result.push(String.fromCharCode(hexVal));
                        }
                    }
                    catch (e) {
                        // ignore
                    }
                    // optional whitespace or new line, not part of result text
                    if (ch === _WSP || ch === _TAB) {
                        this.stream.advance(1);
                    }
                    else {
                        this._newline([]);
                    }
                    return true;
                }
                if (ch !== _CAR && ch !== _LFD && ch !== _NWL) {
                    this.stream.advance(1);
                    result.push(String.fromCharCode(ch));
                    return true;
                }
                else if (includeNewLines) {
                    return this._newline(result);
                }
            }
            return false;
        };
        Scanner.prototype._stringChar = function (closeQuote, result) {
            // not closeQuote, not backslash, not newline
            var ch = this.stream.peekChar();
            if (ch !== 0 && ch !== closeQuote && ch !== _BSL && ch !== _CAR && ch !== _LFD && ch !== _NWL) {
                this.stream.advance(1);
                result.push(String.fromCharCode(ch));
                return true;
            }
            return false;
        };
        Scanner.prototype._string = function (result) {
            if (this.stream.peekChar() === _SQO || this.stream.peekChar() === _DQO) {
                var closeQuote = this.stream.nextChar();
                result.push(String.fromCharCode(closeQuote));
                while (this._stringChar(closeQuote, result) || this._escape(result, true)) {
                    // loop
                }
                if (this.stream.peekChar() === closeQuote) {
                    this.stream.nextChar();
                    result.push(String.fromCharCode(closeQuote));
                    return TokenType.String;
                }
                else {
                    return TokenType.BadString;
                }
            }
            return null;
        };
        Scanner.prototype._unquotedChar = function (result) {
            // not closeQuote, not backslash, not newline
            var ch = this.stream.peekChar();
            if (ch !== 0 && ch !== _BSL && ch !== _SQO && ch !== _DQO && ch !== _LPA && ch !== _RPA && ch !== _WSP && ch !== _TAB && ch !== _NWL && ch !== _LFD && ch !== _CAR) {
                this.stream.advance(1);
                result.push(String.fromCharCode(ch));
                return true;
            }
            return false;
        };
        Scanner.prototype._unquotedString = function (result) {
            var hasContent = false;
            while (this._unquotedChar(result) || this._escape(result)) {
                hasContent = true;
            }
            return hasContent;
        };
        Scanner.prototype._whitespace = function () {
            var n = this.stream.advanceWhileChar(function (ch) {
                return ch === _WSP || ch === _TAB || ch === _NWL || ch === _LFD || ch === _CAR;
            });
            return n > 0;
        };
        Scanner.prototype._name = function (result) {
            var matched = false;
            while (this._identChar(result) || this._escape(result)) {
                matched = true;
            }
            return matched;
        };
        Scanner.prototype.ident = function (result) {
            var pos = this.stream.pos();
            var hasMinus = this._minus(result);
            if (hasMinus && this._minus(result) /* -- */) {
                if (this._identFirstChar(result) || this._escape(result)) {
                    while (this._identChar(result) || this._escape(result)) {
                        // loop
                    }
                    return true;
                }
            }
            else if (this._identFirstChar(result) || this._escape(result)) {
                while (this._identChar(result) || this._escape(result)) {
                    // loop
                }
                return true;
            }
            this.stream.goBackTo(pos);
            return false;
        };
        Scanner.prototype._identFirstChar = function (result) {
            var ch = this.stream.peekChar();
            if (ch === _USC || // _
                ch >= _a && ch <= _z || // a-z
                ch >= _A && ch <= _Z || // A-Z
                ch >= 0x80 && ch <= 0xFFFF) { // nonascii
                this.stream.advance(1);
                result.push(String.fromCharCode(ch));
                return true;
            }
            return false;
        };
        Scanner.prototype._minus = function (result) {
            var ch = this.stream.peekChar();
            if (ch === _MIN) {
                this.stream.advance(1);
                result.push(String.fromCharCode(ch));
                return true;
            }
            return false;
        };
        Scanner.prototype._identChar = function (result) {
            var ch = this.stream.peekChar();
            if (ch === _USC || // _
                ch === _MIN || // -
                ch >= _a && ch <= _z || // a-z
                ch >= _A && ch <= _Z || // A-Z
                ch >= _0 && ch <= _9 || // 0/9
                ch >= 0x80 && ch <= 0xFFFF) { // nonascii
                this.stream.advance(1);
                result.push(String.fromCharCode(ch));
                return true;
            }
            return false;
        };
        return Scanner;
    }());
    exports.Scanner = Scanner;
});

var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/parser/cssNodes',["require", "exports"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    /// <summary>
    /// Nodes for the css 2.1 specification. See for reference:
    /// http://www.w3.org/TR/CSS21/grammar.html#grammar
    /// </summary>
    var NodeType;
    (function (NodeType) {
        NodeType[NodeType["Undefined"] = 0] = "Undefined";
        NodeType[NodeType["Identifier"] = 1] = "Identifier";
        NodeType[NodeType["Stylesheet"] = 2] = "Stylesheet";
        NodeType[NodeType["Ruleset"] = 3] = "Ruleset";
        NodeType[NodeType["Selector"] = 4] = "Selector";
        NodeType[NodeType["SimpleSelector"] = 5] = "SimpleSelector";
        NodeType[NodeType["SelectorInterpolation"] = 6] = "SelectorInterpolation";
        NodeType[NodeType["SelectorCombinator"] = 7] = "SelectorCombinator";
        NodeType[NodeType["SelectorCombinatorParent"] = 8] = "SelectorCombinatorParent";
        NodeType[NodeType["SelectorCombinatorSibling"] = 9] = "SelectorCombinatorSibling";
        NodeType[NodeType["SelectorCombinatorAllSiblings"] = 10] = "SelectorCombinatorAllSiblings";
        NodeType[NodeType["SelectorCombinatorShadowPiercingDescendant"] = 11] = "SelectorCombinatorShadowPiercingDescendant";
        NodeType[NodeType["Page"] = 12] = "Page";
        NodeType[NodeType["PageBoxMarginBox"] = 13] = "PageBoxMarginBox";
        NodeType[NodeType["ClassSelector"] = 14] = "ClassSelector";
        NodeType[NodeType["IdentifierSelector"] = 15] = "IdentifierSelector";
        NodeType[NodeType["ElementNameSelector"] = 16] = "ElementNameSelector";
        NodeType[NodeType["PseudoSelector"] = 17] = "PseudoSelector";
        NodeType[NodeType["AttributeSelector"] = 18] = "AttributeSelector";
        NodeType[NodeType["Declaration"] = 19] = "Declaration";
        NodeType[NodeType["Declarations"] = 20] = "Declarations";
        NodeType[NodeType["Property"] = 21] = "Property";
        NodeType[NodeType["Expression"] = 22] = "Expression";
        NodeType[NodeType["BinaryExpression"] = 23] = "BinaryExpression";
        NodeType[NodeType["Term"] = 24] = "Term";
        NodeType[NodeType["Operator"] = 25] = "Operator";
        NodeType[NodeType["Value"] = 26] = "Value";
        NodeType[NodeType["StringLiteral"] = 27] = "StringLiteral";
        NodeType[NodeType["URILiteral"] = 28] = "URILiteral";
        NodeType[NodeType["EscapedValue"] = 29] = "EscapedValue";
        NodeType[NodeType["Function"] = 30] = "Function";
        NodeType[NodeType["NumericValue"] = 31] = "NumericValue";
        NodeType[NodeType["HexColorValue"] = 32] = "HexColorValue";
        NodeType[NodeType["MixinDeclaration"] = 33] = "MixinDeclaration";
        NodeType[NodeType["MixinReference"] = 34] = "MixinReference";
        NodeType[NodeType["VariableName"] = 35] = "VariableName";
        NodeType[NodeType["VariableDeclaration"] = 36] = "VariableDeclaration";
        NodeType[NodeType["Prio"] = 37] = "Prio";
        NodeType[NodeType["Interpolation"] = 38] = "Interpolation";
        NodeType[NodeType["NestedProperties"] = 39] = "NestedProperties";
        NodeType[NodeType["ExtendsReference"] = 40] = "ExtendsReference";
        NodeType[NodeType["SelectorPlaceholder"] = 41] = "SelectorPlaceholder";
        NodeType[NodeType["Debug"] = 42] = "Debug";
        NodeType[NodeType["If"] = 43] = "If";
        NodeType[NodeType["Else"] = 44] = "Else";
        NodeType[NodeType["For"] = 45] = "For";
        NodeType[NodeType["Each"] = 46] = "Each";
        NodeType[NodeType["While"] = 47] = "While";
        NodeType[NodeType["MixinContent"] = 48] = "MixinContent";
        NodeType[NodeType["Media"] = 49] = "Media";
        NodeType[NodeType["Keyframe"] = 50] = "Keyframe";
        NodeType[NodeType["FontFace"] = 51] = "FontFace";
        NodeType[NodeType["Import"] = 52] = "Import";
        NodeType[NodeType["Namespace"] = 53] = "Namespace";
        NodeType[NodeType["Invocation"] = 54] = "Invocation";
        NodeType[NodeType["FunctionDeclaration"] = 55] = "FunctionDeclaration";
        NodeType[NodeType["ReturnStatement"] = 56] = "ReturnStatement";
        NodeType[NodeType["MediaQuery"] = 57] = "MediaQuery";
        NodeType[NodeType["FunctionParameter"] = 58] = "FunctionParameter";
        NodeType[NodeType["FunctionArgument"] = 59] = "FunctionArgument";
        NodeType[NodeType["KeyframeSelector"] = 60] = "KeyframeSelector";
        NodeType[NodeType["ViewPort"] = 61] = "ViewPort";
        NodeType[NodeType["Document"] = 62] = "Document";
        NodeType[NodeType["AtApplyRule"] = 63] = "AtApplyRule";
        NodeType[NodeType["CustomPropertyDeclaration"] = 64] = "CustomPropertyDeclaration";
        NodeType[NodeType["CustomPropertySet"] = 65] = "CustomPropertySet";
        NodeType[NodeType["ListEntry"] = 66] = "ListEntry";
        NodeType[NodeType["Supports"] = 67] = "Supports";
        NodeType[NodeType["SupportsCondition"] = 68] = "SupportsCondition";
        NodeType[NodeType["NamespacePrefix"] = 69] = "NamespacePrefix";
        NodeType[NodeType["GridLine"] = 70] = "GridLine";
        NodeType[NodeType["Plugin"] = 71] = "Plugin";
        NodeType[NodeType["UnknownAtRule"] = 72] = "UnknownAtRule";
    })(NodeType = exports.NodeType || (exports.NodeType = {}));
    var ReferenceType;
    (function (ReferenceType) {
        ReferenceType[ReferenceType["Mixin"] = 0] = "Mixin";
        ReferenceType[ReferenceType["Rule"] = 1] = "Rule";
        ReferenceType[ReferenceType["Variable"] = 2] = "Variable";
        ReferenceType[ReferenceType["Function"] = 3] = "Function";
        ReferenceType[ReferenceType["Keyframe"] = 4] = "Keyframe";
        ReferenceType[ReferenceType["Unknown"] = 5] = "Unknown";
    })(ReferenceType = exports.ReferenceType || (exports.ReferenceType = {}));
    function getNodeAtOffset(node, offset) {
        var candidate = null;
        if (!node || offset < node.offset || offset > node.end) {
            return null;
        }
        // Find the shortest node at the position
        node.accept(function (node) {
            if (node.offset === -1 && node.length === -1) {
                return true;
            }
            if (node.offset <= offset && node.end >= offset) {
                if (!candidate) {
                    candidate = node;
                }
                else if (node.length <= candidate.length) {
                    candidate = node;
                }
                return true;
            }
            return false;
        });
        return candidate;
    }
    exports.getNodeAtOffset = getNodeAtOffset;
    function getNodePath(node, offset) {
        var candidate = getNodeAtOffset(node, offset);
        var path = [];
        while (candidate) {
            path.unshift(candidate);
            candidate = candidate.parent;
        }
        return path;
    }
    exports.getNodePath = getNodePath;
    function getParentDeclaration(node) {
        var decl = node.findParent(NodeType.Declaration);
        if (decl && decl.getValue() && decl.getValue().encloses(node)) {
            return decl;
        }
        return null;
    }
    exports.getParentDeclaration = getParentDeclaration;
    var Node = /** @class */ (function () {
        function Node(offset, len, nodeType) {
            if (offset === void 0) { offset = -1; }
            if (len === void 0) { len = -1; }
            this.parent = null;
            this.offset = offset;
            this.length = len;
            if (nodeType) {
                this.nodeType = nodeType;
            }
        }
        Object.defineProperty(Node.prototype, "end", {
            get: function () { return this.offset + this.length; },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(Node.prototype, "type", {
            get: function () {
                return this.nodeType || NodeType.Undefined;
            },
            set: function (type) {
                this.nodeType = type;
            },
            enumerable: true,
            configurable: true
        });
        Node.prototype.getTextProvider = function () {
            var node = this;
            while (node && !node.textProvider) {
                node = node.parent;
            }
            if (node) {
                return node.textProvider;
            }
            return function () { return 'unknown'; };
        };
        Node.prototype.getText = function () {
            return this.getTextProvider()(this.offset, this.length);
        };
        Node.prototype.matches = function (str) {
            return this.length === str.length && this.getTextProvider()(this.offset, this.length) === str;
        };
        Node.prototype.startsWith = function (str) {
            return this.length >= str.length && this.getTextProvider()(this.offset, str.length) === str;
        };
        Node.prototype.endsWith = function (str) {
            return this.length >= str.length && this.getTextProvider()(this.end - str.length, str.length) === str;
        };
        Node.prototype.accept = function (visitor) {
            if (visitor(this) && this.children) {
                for (var _i = 0, _a = this.children; _i < _a.length; _i++) {
                    var child = _a[_i];
                    child.accept(visitor);
                }
            }
        };
        Node.prototype.acceptVisitor = function (visitor) {
            this.accept(visitor.visitNode.bind(visitor));
        };
        Node.prototype.adoptChild = function (node, index) {
            if (index === void 0) { index = -1; }
            if (node.parent && node.parent.children) {
                var idx = node.parent.children.indexOf(node);
                if (idx >= 0) {
                    node.parent.children.splice(idx, 1);
                }
            }
            node.parent = this;
            var children = this.children;
            if (!children) {
                children = this.children = [];
            }
            if (index !== -1) {
                children.splice(index, 0, node);
            }
            else {
                children.push(node);
            }
            return node;
        };
        Node.prototype.attachTo = function (parent, index) {
            if (index === void 0) { index = -1; }
            if (parent) {
                parent.adoptChild(this, index);
            }
            return this;
        };
        Node.prototype.collectIssues = function (results) {
            if (this.issues) {
                results.push.apply(results, this.issues);
            }
        };
        Node.prototype.addIssue = function (issue) {
            if (!this.issues) {
                this.issues = [];
            }
            this.issues.push(issue);
        };
        Node.prototype.hasIssue = function (rule) {
            return Array.isArray(this.issues) && this.issues.some(function (i) { return i.getRule() === rule; });
        };
        Node.prototype.isErroneous = function (recursive) {
            if (recursive === void 0) { recursive = false; }
            if (this.issues && this.issues.length > 0) {
                return true;
            }
            return recursive && Array.isArray(this.children) && this.children.some(function (c) { return c.isErroneous(true); });
        };
        Node.prototype.setNode = function (field, node, index) {
            if (index === void 0) { index = -1; }
            if (node) {
                node.attachTo(this, index);
                this[field] = node;
                return true;
            }
            return false;
        };
        Node.prototype.addChild = function (node) {
            if (node) {
                if (!this.children) {
                    this.children = [];
                }
                node.attachTo(this);
                this.updateOffsetAndLength(node);
                return true;
            }
            return false;
        };
        Node.prototype.updateOffsetAndLength = function (node) {
            if (node.offset < this.offset || this.offset === -1) {
                this.offset = node.offset;
            }
            var nodeEnd = node.end;
            if ((nodeEnd > this.end) || this.length === -1) {
                this.length = nodeEnd - this.offset;
            }
        };
        Node.prototype.hasChildren = function () {
            return this.children && this.children.length > 0;
        };
        Node.prototype.getChildren = function () {
            return this.children ? this.children.slice(0) : [];
        };
        Node.prototype.getChild = function (index) {
            if (this.children && index < this.children.length) {
                return this.children[index];
            }
            return null;
        };
        Node.prototype.addChildren = function (nodes) {
            for (var _i = 0, nodes_1 = nodes; _i < nodes_1.length; _i++) {
                var node = nodes_1[_i];
                this.addChild(node);
            }
        };
        Node.prototype.findFirstChildBeforeOffset = function (offset) {
            if (this.children) {
                var current = null;
                for (var i = this.children.length - 1; i >= 0; i--) {
                    // iterate until we find a child that has a start offset smaller than the input offset
                    current = this.children[i];
                    if (current.offset <= offset) {
                        return current;
                    }
                }
            }
            return null;
        };
        Node.prototype.findChildAtOffset = function (offset, goDeep) {
            var current = this.findFirstChildBeforeOffset(offset);
            if (current && current.end >= offset) {
                if (goDeep) {
                    return current.findChildAtOffset(offset, true) || current;
                }
                return current;
            }
            return null;
        };
        Node.prototype.encloses = function (candidate) {
            return this.offset <= candidate.offset && this.offset + this.length >= candidate.offset + candidate.length;
        };
        Node.prototype.getParent = function () {
            var result = this.parent;
            while (result instanceof Nodelist) {
                result = result.parent;
            }
            return result;
        };
        Node.prototype.findParent = function (type) {
            var result = this;
            while (result && result.type !== type) {
                result = result.parent;
            }
            return result;
        };
        Node.prototype.findAParent = function () {
            var types = [];
            for (var _i = 0; _i < arguments.length; _i++) {
                types[_i] = arguments[_i];
            }
            var result = this;
            while (result && !types.some(function (t) { return result.type === t; })) {
                result = result.parent;
            }
            return result;
        };
        Node.prototype.setData = function (key, value) {
            if (!this.options) {
                this.options = {};
            }
            this.options[key] = value;
        };
        Node.prototype.getData = function (key) {
            if (!this.options || !this.options.hasOwnProperty(key)) {
                return null;
            }
            return this.options[key];
        };
        return Node;
    }());
    exports.Node = Node;
    var Nodelist = /** @class */ (function (_super) {
        __extends(Nodelist, _super);
        function Nodelist(parent, index) {
            if (index === void 0) { index = -1; }
            var _this = _super.call(this, -1, -1) || this;
            _this.attachTo(parent, index);
            _this.offset = -1;
            _this.length = -1;
            return _this;
        }
        return Nodelist;
    }(Node));
    exports.Nodelist = Nodelist;
    var Identifier = /** @class */ (function (_super) {
        __extends(Identifier, _super);
        function Identifier(offset, length) {
            var _this = _super.call(this, offset, length) || this;
            _this.isCustomProperty = false;
            return _this;
        }
        Object.defineProperty(Identifier.prototype, "type", {
            get: function () {
                return NodeType.Identifier;
            },
            enumerable: true,
            configurable: true
        });
        Identifier.prototype.containsInterpolation = function () {
            return this.hasChildren();
        };
        return Identifier;
    }(Node));
    exports.Identifier = Identifier;
    var Stylesheet = /** @class */ (function (_super) {
        __extends(Stylesheet, _super);
        function Stylesheet(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(Stylesheet.prototype, "type", {
            get: function () {
                return NodeType.Stylesheet;
            },
            enumerable: true,
            configurable: true
        });
        Stylesheet.prototype.setName = function (value) {
            this.name = value;
        };
        return Stylesheet;
    }(Node));
    exports.Stylesheet = Stylesheet;
    var Declarations = /** @class */ (function (_super) {
        __extends(Declarations, _super);
        function Declarations(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(Declarations.prototype, "type", {
            get: function () {
                return NodeType.Declarations;
            },
            enumerable: true,
            configurable: true
        });
        return Declarations;
    }(Node));
    exports.Declarations = Declarations;
    var BodyDeclaration = /** @class */ (function (_super) {
        __extends(BodyDeclaration, _super);
        function BodyDeclaration(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        BodyDeclaration.prototype.getDeclarations = function () {
            return this.declarations;
        };
        BodyDeclaration.prototype.setDeclarations = function (decls) {
            return this.setNode('declarations', decls);
        };
        return BodyDeclaration;
    }(Node));
    exports.BodyDeclaration = BodyDeclaration;
    var RuleSet = /** @class */ (function (_super) {
        __extends(RuleSet, _super);
        function RuleSet(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(RuleSet.prototype, "type", {
            get: function () {
                return NodeType.Ruleset;
            },
            enumerable: true,
            configurable: true
        });
        RuleSet.prototype.getSelectors = function () {
            if (!this.selectors) {
                this.selectors = new Nodelist(this);
            }
            return this.selectors;
        };
        RuleSet.prototype.isNested = function () {
            return !!this.parent && this.parent.findParent(NodeType.Declarations) !== null;
        };
        return RuleSet;
    }(BodyDeclaration));
    exports.RuleSet = RuleSet;
    var Selector = /** @class */ (function (_super) {
        __extends(Selector, _super);
        function Selector(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(Selector.prototype, "type", {
            get: function () {
                return NodeType.Selector;
            },
            enumerable: true,
            configurable: true
        });
        return Selector;
    }(Node));
    exports.Selector = Selector;
    var SimpleSelector = /** @class */ (function (_super) {
        __extends(SimpleSelector, _super);
        function SimpleSelector(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(SimpleSelector.prototype, "type", {
            get: function () {
                return NodeType.SimpleSelector;
            },
            enumerable: true,
            configurable: true
        });
        return SimpleSelector;
    }(Node));
    exports.SimpleSelector = SimpleSelector;
    var AtApplyRule = /** @class */ (function (_super) {
        __extends(AtApplyRule, _super);
        function AtApplyRule(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(AtApplyRule.prototype, "type", {
            get: function () {
                return NodeType.AtApplyRule;
            },
            enumerable: true,
            configurable: true
        });
        AtApplyRule.prototype.setIdentifier = function (node) {
            return this.setNode('identifier', node, 0);
        };
        AtApplyRule.prototype.getIdentifier = function () {
            return this.identifier;
        };
        AtApplyRule.prototype.getName = function () {
            return this.identifier ? this.identifier.getText() : '';
        };
        return AtApplyRule;
    }(Node));
    exports.AtApplyRule = AtApplyRule;
    var AbstractDeclaration = /** @class */ (function (_super) {
        __extends(AbstractDeclaration, _super);
        function AbstractDeclaration(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        return AbstractDeclaration;
    }(Node));
    exports.AbstractDeclaration = AbstractDeclaration;
    var CustomPropertyDeclaration = /** @class */ (function (_super) {
        __extends(CustomPropertyDeclaration, _super);
        function CustomPropertyDeclaration(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(CustomPropertyDeclaration.prototype, "type", {
            get: function () {
                return NodeType.CustomPropertyDeclaration;
            },
            enumerable: true,
            configurable: true
        });
        CustomPropertyDeclaration.prototype.setProperty = function (node) {
            return this.setNode('property', node);
        };
        CustomPropertyDeclaration.prototype.getProperty = function () {
            return this.property;
        };
        CustomPropertyDeclaration.prototype.setValue = function (value) {
            return this.setNode('value', value);
        };
        CustomPropertyDeclaration.prototype.getValue = function () {
            return this.value;
        };
        CustomPropertyDeclaration.prototype.setPropertySet = function (value) {
            return this.setNode('propertySet', value);
        };
        CustomPropertyDeclaration.prototype.getPropertySet = function () {
            return this.propertySet;
        };
        return CustomPropertyDeclaration;
    }(AbstractDeclaration));
    exports.CustomPropertyDeclaration = CustomPropertyDeclaration;
    var CustomPropertySet = /** @class */ (function (_super) {
        __extends(CustomPropertySet, _super);
        function CustomPropertySet(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(CustomPropertySet.prototype, "type", {
            get: function () {
                return NodeType.CustomPropertySet;
            },
            enumerable: true,
            configurable: true
        });
        return CustomPropertySet;
    }(BodyDeclaration));
    exports.CustomPropertySet = CustomPropertySet;
    var Declaration = /** @class */ (function (_super) {
        __extends(Declaration, _super);
        function Declaration(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(Declaration.prototype, "type", {
            get: function () {
                return NodeType.Declaration;
            },
            enumerable: true,
            configurable: true
        });
        Declaration.prototype.setProperty = function (node) {
            return this.setNode('property', node);
        };
        Declaration.prototype.getProperty = function () {
            return this.property;
        };
        Declaration.prototype.getFullPropertyName = function () {
            var propertyName = this.property ? this.property.getName() : 'unknown';
            if (this.parent instanceof Declarations && this.parent.getParent() instanceof NestedProperties) {
                var parentDecl = this.parent.getParent().getParent();
                if (parentDecl instanceof Declaration) {
                    return parentDecl.getFullPropertyName() + propertyName;
                }
            }
            return propertyName;
        };
        Declaration.prototype.getNonPrefixedPropertyName = function () {
            var propertyName = this.getFullPropertyName();
            if (propertyName && propertyName.charAt(0) === '-') {
                var vendorPrefixEnd = propertyName.indexOf('-', 1);
                if (vendorPrefixEnd !== -1) {
                    return propertyName.substring(vendorPrefixEnd + 1);
                }
            }
            return propertyName;
        };
        Declaration.prototype.setValue = function (value) {
            return this.setNode('value', value);
        };
        Declaration.prototype.getValue = function () {
            return this.value;
        };
        Declaration.prototype.setNestedProperties = function (value) {
            return this.setNode('nestedProperties', value);
        };
        Declaration.prototype.getNestedProperties = function () {
            return this.nestedProperties;
        };
        return Declaration;
    }(AbstractDeclaration));
    exports.Declaration = Declaration;
    var Property = /** @class */ (function (_super) {
        __extends(Property, _super);
        function Property(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(Property.prototype, "type", {
            get: function () {
                return NodeType.Property;
            },
            enumerable: true,
            configurable: true
        });
        Property.prototype.setIdentifier = function (value) {
            return this.setNode('identifier', value);
        };
        Property.prototype.getIdentifier = function () {
            return this.identifier;
        };
        Property.prototype.getName = function () {
            return this.getText();
        };
        Property.prototype.isCustomProperty = function () {
            return this.identifier.isCustomProperty;
        };
        return Property;
    }(Node));
    exports.Property = Property;
    var Invocation = /** @class */ (function (_super) {
        __extends(Invocation, _super);
        function Invocation(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(Invocation.prototype, "type", {
            get: function () {
                return NodeType.Invocation;
            },
            enumerable: true,
            configurable: true
        });
        Invocation.prototype.getArguments = function () {
            if (!this.arguments) {
                this.arguments = new Nodelist(this);
            }
            return this.arguments;
        };
        return Invocation;
    }(Node));
    exports.Invocation = Invocation;
    var Function = /** @class */ (function (_super) {
        __extends(Function, _super);
        function Function(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(Function.prototype, "type", {
            get: function () {
                return NodeType.Function;
            },
            enumerable: true,
            configurable: true
        });
        Function.prototype.setIdentifier = function (node) {
            return this.setNode('identifier', node, 0);
        };
        Function.prototype.getIdentifier = function () {
            return this.identifier;
        };
        Function.prototype.getName = function () {
            return this.identifier ? this.identifier.getText() : '';
        };
        return Function;
    }(Invocation));
    exports.Function = Function;
    var FunctionParameter = /** @class */ (function (_super) {
        __extends(FunctionParameter, _super);
        function FunctionParameter(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(FunctionParameter.prototype, "type", {
            get: function () {
                return NodeType.FunctionParameter;
            },
            enumerable: true,
            configurable: true
        });
        FunctionParameter.prototype.setIdentifier = function (node) {
            return this.setNode('identifier', node, 0);
        };
        FunctionParameter.prototype.getIdentifier = function () {
            return this.identifier;
        };
        FunctionParameter.prototype.getName = function () {
            return this.identifier ? this.identifier.getText() : '';
        };
        FunctionParameter.prototype.setDefaultValue = function (node) {
            return this.setNode('defaultValue', node, 0);
        };
        FunctionParameter.prototype.getDefaultValue = function () {
            return this.defaultValue;
        };
        return FunctionParameter;
    }(Node));
    exports.FunctionParameter = FunctionParameter;
    var FunctionArgument = /** @class */ (function (_super) {
        __extends(FunctionArgument, _super);
        function FunctionArgument(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(FunctionArgument.prototype, "type", {
            get: function () {
                return NodeType.FunctionArgument;
            },
            enumerable: true,
            configurable: true
        });
        FunctionArgument.prototype.setIdentifier = function (node) {
            return this.setNode('identifier', node, 0);
        };
        FunctionArgument.prototype.getIdentifier = function () {
            return this.identifier;
        };
        FunctionArgument.prototype.getName = function () {
            return this.identifier ? this.identifier.getText() : '';
        };
        FunctionArgument.prototype.setValue = function (node) {
            return this.setNode('value', node, 0);
        };
        FunctionArgument.prototype.getValue = function () {
            return this.value;
        };
        return FunctionArgument;
    }(Node));
    exports.FunctionArgument = FunctionArgument;
    var IfStatement = /** @class */ (function (_super) {
        __extends(IfStatement, _super);
        function IfStatement(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(IfStatement.prototype, "type", {
            get: function () {
                return NodeType.If;
            },
            enumerable: true,
            configurable: true
        });
        IfStatement.prototype.setExpression = function (node) {
            return this.setNode('expression', node, 0);
        };
        IfStatement.prototype.setElseClause = function (elseClause) {
            return this.setNode('elseClause', elseClause);
        };
        return IfStatement;
    }(BodyDeclaration));
    exports.IfStatement = IfStatement;
    var ForStatement = /** @class */ (function (_super) {
        __extends(ForStatement, _super);
        function ForStatement(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(ForStatement.prototype, "type", {
            get: function () {
                return NodeType.For;
            },
            enumerable: true,
            configurable: true
        });
        ForStatement.prototype.setVariable = function (node) {
            return this.setNode('variable', node, 0);
        };
        return ForStatement;
    }(BodyDeclaration));
    exports.ForStatement = ForStatement;
    var EachStatement = /** @class */ (function (_super) {
        __extends(EachStatement, _super);
        function EachStatement(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(EachStatement.prototype, "type", {
            get: function () {
                return NodeType.Each;
            },
            enumerable: true,
            configurable: true
        });
        EachStatement.prototype.getVariables = function () {
            if (!this.variables) {
                this.variables = new Nodelist(this);
            }
            return this.variables;
        };
        return EachStatement;
    }(BodyDeclaration));
    exports.EachStatement = EachStatement;
    var WhileStatement = /** @class */ (function (_super) {
        __extends(WhileStatement, _super);
        function WhileStatement(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(WhileStatement.prototype, "type", {
            get: function () {
                return NodeType.While;
            },
            enumerable: true,
            configurable: true
        });
        return WhileStatement;
    }(BodyDeclaration));
    exports.WhileStatement = WhileStatement;
    var ElseStatement = /** @class */ (function (_super) {
        __extends(ElseStatement, _super);
        function ElseStatement(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(ElseStatement.prototype, "type", {
            get: function () {
                return NodeType.Else;
            },
            enumerable: true,
            configurable: true
        });
        return ElseStatement;
    }(BodyDeclaration));
    exports.ElseStatement = ElseStatement;
    var FunctionDeclaration = /** @class */ (function (_super) {
        __extends(FunctionDeclaration, _super);
        function FunctionDeclaration(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(FunctionDeclaration.prototype, "type", {
            get: function () {
                return NodeType.FunctionDeclaration;
            },
            enumerable: true,
            configurable: true
        });
        FunctionDeclaration.prototype.setIdentifier = function (node) {
            return this.setNode('identifier', node, 0);
        };
        FunctionDeclaration.prototype.getIdentifier = function () {
            return this.identifier;
        };
        FunctionDeclaration.prototype.getName = function () {
            return this.identifier ? this.identifier.getText() : '';
        };
        FunctionDeclaration.prototype.getParameters = function () {
            if (!this.parameters) {
                this.parameters = new Nodelist(this);
            }
            return this.parameters;
        };
        return FunctionDeclaration;
    }(BodyDeclaration));
    exports.FunctionDeclaration = FunctionDeclaration;
    var ViewPort = /** @class */ (function (_super) {
        __extends(ViewPort, _super);
        function ViewPort(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(ViewPort.prototype, "type", {
            get: function () {
                return NodeType.ViewPort;
            },
            enumerable: true,
            configurable: true
        });
        return ViewPort;
    }(BodyDeclaration));
    exports.ViewPort = ViewPort;
    var FontFace = /** @class */ (function (_super) {
        __extends(FontFace, _super);
        function FontFace(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(FontFace.prototype, "type", {
            get: function () {
                return NodeType.FontFace;
            },
            enumerable: true,
            configurable: true
        });
        return FontFace;
    }(BodyDeclaration));
    exports.FontFace = FontFace;
    var NestedProperties = /** @class */ (function (_super) {
        __extends(NestedProperties, _super);
        function NestedProperties(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(NestedProperties.prototype, "type", {
            get: function () {
                return NodeType.NestedProperties;
            },
            enumerable: true,
            configurable: true
        });
        return NestedProperties;
    }(BodyDeclaration));
    exports.NestedProperties = NestedProperties;
    var Keyframe = /** @class */ (function (_super) {
        __extends(Keyframe, _super);
        function Keyframe(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(Keyframe.prototype, "type", {
            get: function () {
                return NodeType.Keyframe;
            },
            enumerable: true,
            configurable: true
        });
        Keyframe.prototype.setKeyword = function (keyword) {
            return this.setNode('keyword', keyword, 0);
        };
        Keyframe.prototype.getKeyword = function () {
            return this.keyword;
        };
        Keyframe.prototype.setIdentifier = function (node) {
            return this.setNode('identifier', node, 0);
        };
        Keyframe.prototype.getIdentifier = function () {
            return this.identifier;
        };
        Keyframe.prototype.getName = function () {
            return this.identifier ? this.identifier.getText() : '';
        };
        return Keyframe;
    }(BodyDeclaration));
    exports.Keyframe = Keyframe;
    var KeyframeSelector = /** @class */ (function (_super) {
        __extends(KeyframeSelector, _super);
        function KeyframeSelector(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(KeyframeSelector.prototype, "type", {
            get: function () {
                return NodeType.KeyframeSelector;
            },
            enumerable: true,
            configurable: true
        });
        return KeyframeSelector;
    }(BodyDeclaration));
    exports.KeyframeSelector = KeyframeSelector;
    var Import = /** @class */ (function (_super) {
        __extends(Import, _super);
        function Import(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(Import.prototype, "type", {
            get: function () {
                return NodeType.Import;
            },
            enumerable: true,
            configurable: true
        });
        Import.prototype.setMedialist = function (node) {
            if (node) {
                node.attachTo(this);
                this.medialist = node;
                return true;
            }
            return false;
        };
        return Import;
    }(Node));
    exports.Import = Import;
    var Namespace = /** @class */ (function (_super) {
        __extends(Namespace, _super);
        function Namespace(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(Namespace.prototype, "type", {
            get: function () {
                return NodeType.Namespace;
            },
            enumerable: true,
            configurable: true
        });
        return Namespace;
    }(Node));
    exports.Namespace = Namespace;
    var Media = /** @class */ (function (_super) {
        __extends(Media, _super);
        function Media(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(Media.prototype, "type", {
            get: function () {
                return NodeType.Media;
            },
            enumerable: true,
            configurable: true
        });
        return Media;
    }(BodyDeclaration));
    exports.Media = Media;
    var Supports = /** @class */ (function (_super) {
        __extends(Supports, _super);
        function Supports(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(Supports.prototype, "type", {
            get: function () {
                return NodeType.Supports;
            },
            enumerable: true,
            configurable: true
        });
        return Supports;
    }(BodyDeclaration));
    exports.Supports = Supports;
    var Document = /** @class */ (function (_super) {
        __extends(Document, _super);
        function Document(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(Document.prototype, "type", {
            get: function () {
                return NodeType.Document;
            },
            enumerable: true,
            configurable: true
        });
        return Document;
    }(BodyDeclaration));
    exports.Document = Document;
    var Medialist = /** @class */ (function (_super) {
        __extends(Medialist, _super);
        function Medialist(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Medialist.prototype.getMediums = function () {
            if (!this.mediums) {
                this.mediums = new Nodelist(this);
            }
            return this.mediums;
        };
        return Medialist;
    }(Node));
    exports.Medialist = Medialist;
    var MediaQuery = /** @class */ (function (_super) {
        __extends(MediaQuery, _super);
        function MediaQuery(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(MediaQuery.prototype, "type", {
            get: function () {
                return NodeType.MediaQuery;
            },
            enumerable: true,
            configurable: true
        });
        return MediaQuery;
    }(Node));
    exports.MediaQuery = MediaQuery;
    var SupportsCondition = /** @class */ (function (_super) {
        __extends(SupportsCondition, _super);
        function SupportsCondition(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(SupportsCondition.prototype, "type", {
            get: function () {
                return NodeType.SupportsCondition;
            },
            enumerable: true,
            configurable: true
        });
        return SupportsCondition;
    }(Node));
    exports.SupportsCondition = SupportsCondition;
    var Page = /** @class */ (function (_super) {
        __extends(Page, _super);
        function Page(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(Page.prototype, "type", {
            get: function () {
                return NodeType.Page;
            },
            enumerable: true,
            configurable: true
        });
        return Page;
    }(BodyDeclaration));
    exports.Page = Page;
    var PageBoxMarginBox = /** @class */ (function (_super) {
        __extends(PageBoxMarginBox, _super);
        function PageBoxMarginBox(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(PageBoxMarginBox.prototype, "type", {
            get: function () {
                return NodeType.PageBoxMarginBox;
            },
            enumerable: true,
            configurable: true
        });
        return PageBoxMarginBox;
    }(BodyDeclaration));
    exports.PageBoxMarginBox = PageBoxMarginBox;
    var Expression = /** @class */ (function (_super) {
        __extends(Expression, _super);
        function Expression(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(Expression.prototype, "type", {
            get: function () {
                return NodeType.Expression;
            },
            enumerable: true,
            configurable: true
        });
        return Expression;
    }(Node));
    exports.Expression = Expression;
    var BinaryExpression = /** @class */ (function (_super) {
        __extends(BinaryExpression, _super);
        function BinaryExpression(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(BinaryExpression.prototype, "type", {
            get: function () {
                return NodeType.BinaryExpression;
            },
            enumerable: true,
            configurable: true
        });
        BinaryExpression.prototype.setLeft = function (left) {
            return this.setNode('left', left);
        };
        BinaryExpression.prototype.getLeft = function () {
            return this.left;
        };
        BinaryExpression.prototype.setRight = function (right) {
            return this.setNode('right', right);
        };
        BinaryExpression.prototype.getRight = function () {
            return this.right;
        };
        BinaryExpression.prototype.setOperator = function (value) {
            return this.setNode('operator', value);
        };
        BinaryExpression.prototype.getOperator = function () {
            return this.operator;
        };
        return BinaryExpression;
    }(Node));
    exports.BinaryExpression = BinaryExpression;
    var Term = /** @class */ (function (_super) {
        __extends(Term, _super);
        function Term(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(Term.prototype, "type", {
            get: function () {
                return NodeType.Term;
            },
            enumerable: true,
            configurable: true
        });
        Term.prototype.setOperator = function (value) {
            return this.setNode('operator', value);
        };
        Term.prototype.getOperator = function () {
            return this.operator;
        };
        Term.prototype.setExpression = function (value) {
            return this.setNode('expression', value);
        };
        Term.prototype.getExpression = function () {
            return this.expression;
        };
        return Term;
    }(Node));
    exports.Term = Term;
    var AttributeSelector = /** @class */ (function (_super) {
        __extends(AttributeSelector, _super);
        function AttributeSelector(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(AttributeSelector.prototype, "type", {
            get: function () {
                return NodeType.AttributeSelector;
            },
            enumerable: true,
            configurable: true
        });
        AttributeSelector.prototype.setNamespacePrefix = function (value) {
            return this.setNode('namespacePrefix', value);
        };
        AttributeSelector.prototype.getNamespacePrefix = function () {
            return this.namespacePrefix;
        };
        AttributeSelector.prototype.setIdentifier = function (value) {
            return this.setNode('identifier', value);
        };
        AttributeSelector.prototype.getIdentifier = function () {
            return this.identifier;
        };
        AttributeSelector.prototype.setOperator = function (operator) {
            return this.setNode('operator', operator);
        };
        AttributeSelector.prototype.getOperator = function () {
            return this.operator;
        };
        AttributeSelector.prototype.setValue = function (value) {
            return this.setNode('value', value);
        };
        AttributeSelector.prototype.getValue = function () {
            return this.value;
        };
        return AttributeSelector;
    }(Node));
    exports.AttributeSelector = AttributeSelector;
    var Operator = /** @class */ (function (_super) {
        __extends(Operator, _super);
        function Operator(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(Operator.prototype, "type", {
            get: function () {
                return NodeType.Operator;
            },
            enumerable: true,
            configurable: true
        });
        return Operator;
    }(Node));
    exports.Operator = Operator;
    var HexColorValue = /** @class */ (function (_super) {
        __extends(HexColorValue, _super);
        function HexColorValue(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(HexColorValue.prototype, "type", {
            get: function () {
                return NodeType.HexColorValue;
            },
            enumerable: true,
            configurable: true
        });
        return HexColorValue;
    }(Node));
    exports.HexColorValue = HexColorValue;
    var _dot = '.'.charCodeAt(0), _0 = '0'.charCodeAt(0), _9 = '9'.charCodeAt(0);
    var NumericValue = /** @class */ (function (_super) {
        __extends(NumericValue, _super);
        function NumericValue(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(NumericValue.prototype, "type", {
            get: function () {
                return NodeType.NumericValue;
            },
            enumerable: true,
            configurable: true
        });
        NumericValue.prototype.getValue = function () {
            var raw = this.getText();
            var unitIdx = 0;
            var code;
            for (var i = 0, len = raw.length; i < len; i++) {
                code = raw.charCodeAt(i);
                if (!(_0 <= code && code <= _9 || code === _dot)) {
                    break;
                }
                unitIdx += 1;
            }
            return {
                value: raw.substring(0, unitIdx),
                unit: unitIdx < raw.length ? raw.substring(unitIdx) : undefined
            };
        };
        return NumericValue;
    }(Node));
    exports.NumericValue = NumericValue;
    var VariableDeclaration = /** @class */ (function (_super) {
        __extends(VariableDeclaration, _super);
        function VariableDeclaration(offset, length) {
            var _this = _super.call(this, offset, length) || this;
            _this.needsSemicolon = true;
            return _this;
        }
        Object.defineProperty(VariableDeclaration.prototype, "type", {
            get: function () {
                return NodeType.VariableDeclaration;
            },
            enumerable: true,
            configurable: true
        });
        VariableDeclaration.prototype.setVariable = function (node) {
            if (node) {
                node.attachTo(this);
                this.variable = node;
                return true;
            }
            return false;
        };
        VariableDeclaration.prototype.getVariable = function () {
            return this.variable;
        };
        VariableDeclaration.prototype.getName = function () {
            return this.variable ? this.variable.getName() : '';
        };
        VariableDeclaration.prototype.setValue = function (node) {
            if (node) {
                node.attachTo(this);
                this.value = node;
                return true;
            }
            return false;
        };
        VariableDeclaration.prototype.getValue = function () {
            return this.value;
        };
        return VariableDeclaration;
    }(AbstractDeclaration));
    exports.VariableDeclaration = VariableDeclaration;
    var Interpolation = /** @class */ (function (_super) {
        __extends(Interpolation, _super);
        function Interpolation(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(Interpolation.prototype, "type", {
            get: function () {
                return NodeType.Interpolation;
            },
            enumerable: true,
            configurable: true
        });
        return Interpolation;
    }(Node));
    exports.Interpolation = Interpolation;
    var Variable = /** @class */ (function (_super) {
        __extends(Variable, _super);
        function Variable(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(Variable.prototype, "type", {
            get: function () {
                return NodeType.VariableName;
            },
            enumerable: true,
            configurable: true
        });
        Variable.prototype.getName = function () {
            return this.getText();
        };
        return Variable;
    }(Node));
    exports.Variable = Variable;
    var ExtendsReference = /** @class */ (function (_super) {
        __extends(ExtendsReference, _super);
        function ExtendsReference(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(ExtendsReference.prototype, "type", {
            get: function () {
                return NodeType.ExtendsReference;
            },
            enumerable: true,
            configurable: true
        });
        ExtendsReference.prototype.getSelectors = function () {
            if (!this.selectors) {
                this.selectors = new Nodelist(this);
            }
            return this.selectors;
        };
        return ExtendsReference;
    }(Node));
    exports.ExtendsReference = ExtendsReference;
    var MixinReference = /** @class */ (function (_super) {
        __extends(MixinReference, _super);
        function MixinReference(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(MixinReference.prototype, "type", {
            get: function () {
                return NodeType.MixinReference;
            },
            enumerable: true,
            configurable: true
        });
        MixinReference.prototype.getNamespaces = function () {
            if (!this.namespaces) {
                this.namespaces = new Nodelist(this);
            }
            return this.namespaces;
        };
        MixinReference.prototype.setIdentifier = function (node) {
            return this.setNode('identifier', node, 0);
        };
        MixinReference.prototype.getIdentifier = function () {
            return this.identifier;
        };
        MixinReference.prototype.getName = function () {
            return this.identifier ? this.identifier.getText() : '';
        };
        MixinReference.prototype.getArguments = function () {
            if (!this.arguments) {
                this.arguments = new Nodelist(this);
            }
            return this.arguments;
        };
        MixinReference.prototype.setContent = function (node) {
            return this.setNode('content', node);
        };
        MixinReference.prototype.getContent = function () {
            return this.content;
        };
        return MixinReference;
    }(Node));
    exports.MixinReference = MixinReference;
    var MixinDeclaration = /** @class */ (function (_super) {
        __extends(MixinDeclaration, _super);
        function MixinDeclaration(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(MixinDeclaration.prototype, "type", {
            get: function () {
                return NodeType.MixinDeclaration;
            },
            enumerable: true,
            configurable: true
        });
        MixinDeclaration.prototype.setIdentifier = function (node) {
            return this.setNode('identifier', node, 0);
        };
        MixinDeclaration.prototype.getIdentifier = function () {
            return this.identifier;
        };
        MixinDeclaration.prototype.getName = function () {
            return this.identifier ? this.identifier.getText() : '';
        };
        MixinDeclaration.prototype.getParameters = function () {
            if (!this.parameters) {
                this.parameters = new Nodelist(this);
            }
            return this.parameters;
        };
        MixinDeclaration.prototype.setGuard = function (node) {
            if (node) {
                node.attachTo(this);
                this.guard = node;
            }
            return false;
        };
        return MixinDeclaration;
    }(BodyDeclaration));
    exports.MixinDeclaration = MixinDeclaration;
    var UnknownAtRule = /** @class */ (function (_super) {
        __extends(UnknownAtRule, _super);
        function UnknownAtRule(offset, length) {
            return _super.call(this, offset, length) || this;
        }
        Object.defineProperty(UnknownAtRule.prototype, "type", {
            get: function () {
                return NodeType.UnknownAtRule;
            },
            enumerable: true,
            configurable: true
        });
        UnknownAtRule.prototype.setAtRuleName = function (atRuleName) {
            this.atRuleName = atRuleName;
        };
        UnknownAtRule.prototype.getAtRuleName = function (atRuleName) {
            return this.atRuleName;
        };
        return UnknownAtRule;
    }(BodyDeclaration));
    exports.UnknownAtRule = UnknownAtRule;
    var ListEntry = /** @class */ (function (_super) {
        __extends(ListEntry, _super);
        function ListEntry() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        Object.defineProperty(ListEntry.prototype, "type", {
            get: function () {
                return NodeType.ListEntry;
            },
            enumerable: true,
            configurable: true
        });
        ListEntry.prototype.setKey = function (node) {
            return this.setNode('key', node, 0);
        };
        ListEntry.prototype.setValue = function (node) {
            return this.setNode('value', node, 1);
        };
        return ListEntry;
    }(Node));
    exports.ListEntry = ListEntry;
    var LessGuard = /** @class */ (function (_super) {
        __extends(LessGuard, _super);
        function LessGuard() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        LessGuard.prototype.getConditions = function () {
            if (!this.conditions) {
                this.conditions = new Nodelist(this);
            }
            return this.conditions;
        };
        return LessGuard;
    }(Node));
    exports.LessGuard = LessGuard;
    var GuardCondition = /** @class */ (function (_super) {
        __extends(GuardCondition, _super);
        function GuardCondition() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        GuardCondition.prototype.setVariable = function (node) {
            return this.setNode('variable', node);
        };
        return GuardCondition;
    }(Node));
    exports.GuardCondition = GuardCondition;
    var Level;
    (function (Level) {
        Level[Level["Ignore"] = 1] = "Ignore";
        Level[Level["Warning"] = 2] = "Warning";
        Level[Level["Error"] = 4] = "Error";
    })(Level = exports.Level || (exports.Level = {}));
    var Marker = /** @class */ (function () {
        function Marker(node, rule, level, message, offset, length) {
            if (offset === void 0) { offset = node.offset; }
            if (length === void 0) { length = node.length; }
            this.node = node;
            this.rule = rule;
            this.level = level;
            this.message = message || rule.message;
            this.offset = offset;
            this.length = length;
        }
        Marker.prototype.getRule = function () {
            return this.rule;
        };
        Marker.prototype.getLevel = function () {
            return this.level;
        };
        Marker.prototype.getOffset = function () {
            return this.offset;
        };
        Marker.prototype.getLength = function () {
            return this.length;
        };
        Marker.prototype.getNode = function () {
            return this.node;
        };
        Marker.prototype.getMessage = function () {
            return this.message;
        };
        return Marker;
    }());
    exports.Marker = Marker;
    /*
    export class DefaultVisitor implements IVisitor {
    
        public visitNode(node:Node):boolean {
            switch (node.type) {
                case NodeType.Stylesheet:
                    return this.visitStylesheet(<Stylesheet> node);
                case NodeType.FontFace:
                    return this.visitFontFace(<FontFace> node);
                case NodeType.Ruleset:
                    return this.visitRuleSet(<RuleSet> node);
                case NodeType.Selector:
                    return this.visitSelector(<Selector> node);
                case NodeType.SimpleSelector:
                    return this.visitSimpleSelector(<SimpleSelector> node);
                case NodeType.Declaration:
                    return this.visitDeclaration(<Declaration> node);
                case NodeType.Function:
                    return this.visitFunction(<Function> node);
                case NodeType.FunctionDeclaration:
                    return this.visitFunctionDeclaration(<FunctionDeclaration> node);
                case NodeType.FunctionParameter:
                    return this.visitFunctionParameter(<FunctionParameter> node);
                case NodeType.FunctionArgument:
                    return this.visitFunctionArgument(<FunctionArgument> node);
                case NodeType.Term:
                    return this.visitTerm(<Term> node);
                case NodeType.Declaration:
                    return this.visitExpression(<Expression> node);
                case NodeType.NumericValue:
                    return this.visitNumericValue(<NumericValue> node);
                case NodeType.Page:
                    return this.visitPage(<Page> node);
                case NodeType.PageBoxMarginBox:
                    return this.visitPageBoxMarginBox(<PageBoxMarginBox> node);
                case NodeType.Property:
                    return this.visitProperty(<Property> node);
                case NodeType.NumericValue:
                    return this.visitNodelist(<Nodelist> node);
                case NodeType.Import:
                    return this.visitImport(<Import> node);
                case NodeType.Namespace:
                    return this.visitNamespace(<Namespace> node);
                case NodeType.Keyframe:
                    return this.visitKeyframe(<Keyframe> node);
                case NodeType.KeyframeSelector:
                    return this.visitKeyframeSelector(<KeyframeSelector> node);
                case NodeType.MixinDeclaration:
                    return this.visitMixinDeclaration(<MixinDeclaration> node);
                case NodeType.MixinReference:
                    return this.visitMixinReference(<MixinReference> node);
                case NodeType.Variable:
                    return this.visitVariable(<Variable> node);
                case NodeType.VariableDeclaration:
                    return this.visitVariableDeclaration(<VariableDeclaration> node);
            }
            return this.visitUnknownNode(node);
        }
    
        public visitFontFace(node:FontFace):boolean {
            return true;
        }
    
        public visitKeyframe(node:Keyframe):boolean {
            return true;
        }
    
        public visitKeyframeSelector(node:KeyframeSelector):boolean {
            return true;
        }
    
        public visitStylesheet(node:Stylesheet):boolean {
            return true;
        }
    
        public visitProperty(Node:Property):boolean {
            return true;
        }
    
        public visitRuleSet(node:RuleSet):boolean {
            return true;
        }
    
        public visitSelector(node:Selector):boolean {
            return true;
        }
    
        public visitSimpleSelector(node:SimpleSelector):boolean {
            return true;
        }
    
        public visitDeclaration(node:Declaration):boolean {
            return true;
        }
    
        public visitFunction(node:Function):boolean {
            return true;
        }
    
        public visitFunctionDeclaration(node:FunctionDeclaration):boolean {
            return true;
        }
    
        public visitInvocation(node:Invocation):boolean {
            return true;
        }
    
        public visitTerm(node:Term):boolean {
            return true;
        }
    
        public visitImport(node:Import):boolean {
            return true;
        }
    
        public visitNamespace(node:Namespace):boolean {
            return true;
        }
    
        public visitExpression(node:Expression):boolean {
            return true;
        }
    
        public visitNumericValue(node:NumericValue):boolean {
            return true;
        }
    
        public visitPage(node:Page):boolean {
            return true;
        }
    
        public visitPageBoxMarginBox(node:PageBoxMarginBox):boolean {
            return true;
        }
    
        public visitNodelist(node:Nodelist):boolean {
            return true;
        }
    
        public visitVariableDeclaration(node:VariableDeclaration):boolean {
            return true;
        }
    
        public visitVariable(node:Variable):boolean {
            return true;
        }
    
        public visitMixinDeclaration(node:MixinDeclaration):boolean {
            return true;
        }
    
        public visitMixinReference(node:MixinReference):boolean {
            return true;
        }
    
        public visitUnknownNode(node:Node):boolean {
            return true;
        }
    }
    */
    var ParseErrorCollector = /** @class */ (function () {
        function ParseErrorCollector() {
            this.entries = [];
        }
        ParseErrorCollector.entries = function (node) {
            var visitor = new ParseErrorCollector();
            node.acceptVisitor(visitor);
            return visitor.entries;
        };
        ParseErrorCollector.prototype.visitNode = function (node) {
            if (node.isErroneous()) {
                node.collectIssues(this.entries);
            }
            return true;
        };
        return ParseErrorCollector;
    }());
    exports.ParseErrorCollector = ParseErrorCollector;
});

/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/
define('vscode-nls/vscode-nls',["require", "exports"], function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    function format(message, args) {
        var result;
        if (args.length === 0) {
            result = message;
        }
        else {
            result = message.replace(/\{(\d+)\}/g, function (match, rest) {
                var index = rest[0];
                return typeof args[index] !== 'undefined' ? args[index] : match;
            });
        }
        return result;
    }
    function localize(key, message) {
        var args = [];
        for (var _i = 2; _i < arguments.length; _i++) {
            args[_i - 2] = arguments[_i];
        }
        return format(message, args);
    }
    function loadMessageBundle(file) {
        return localize;
    }
    exports.loadMessageBundle = loadMessageBundle;
    function config(opt) {
        return loadMessageBundle;
    }
    exports.config = config;
});

define('vscode-nls', ['vscode-nls/vscode-nls'], function (main) { return main; });

(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/parser/cssErrors',["require", "exports", "vscode-nls"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    var nls = require("vscode-nls");
    var localize = nls.loadMessageBundle();
    var CSSIssueType = /** @class */ (function () {
        function CSSIssueType(id, message) {
            this.id = id;
            this.message = message;
        }
        return CSSIssueType;
    }());
    exports.CSSIssueType = CSSIssueType;
    exports.ParseError = {
        NumberExpected: new CSSIssueType('css-numberexpected', localize('expected.number', "number expected")),
        ConditionExpected: new CSSIssueType('css-conditionexpected', localize('expected.condt', "condition expected")),
        RuleOrSelectorExpected: new CSSIssueType('css-ruleorselectorexpected', localize('expected.ruleorselector', "at-rule or selector expected")),
        DotExpected: new CSSIssueType('css-dotexpected', localize('expected.dot', "dot expected")),
        ColonExpected: new CSSIssueType('css-colonexpected', localize('expected.colon', "colon expected")),
        SemiColonExpected: new CSSIssueType('css-semicolonexpected', localize('expected.semicolon', "semi-colon expected")),
        TermExpected: new CSSIssueType('css-termexpected', localize('expected.term', "term expected")),
        ExpressionExpected: new CSSIssueType('css-expressionexpected', localize('expected.expression', "expression expected")),
        OperatorExpected: new CSSIssueType('css-operatorexpected', localize('expected.operator', "operator expected")),
        IdentifierExpected: new CSSIssueType('css-identifierexpected', localize('expected.ident', "identifier expected")),
        PercentageExpected: new CSSIssueType('css-percentageexpected', localize('expected.percentage', "percentage expected")),
        URIOrStringExpected: new CSSIssueType('css-uriorstringexpected', localize('expected.uriorstring', "uri or string expected")),
        URIExpected: new CSSIssueType('css-uriexpected', localize('expected.uri', "URI expected")),
        VariableNameExpected: new CSSIssueType('css-varnameexpected', localize('expected.varname', "variable name expected")),
        VariableValueExpected: new CSSIssueType('css-varvalueexpected', localize('expected.varvalue', "variable value expected")),
        PropertyValueExpected: new CSSIssueType('css-propertyvalueexpected', localize('expected.propvalue', "property value expected")),
        LeftCurlyExpected: new CSSIssueType('css-lcurlyexpected', localize('expected.lcurly', "{ expected")),
        RightCurlyExpected: new CSSIssueType('css-rcurlyexpected', localize('expected.rcurly', "} expected")),
        LeftSquareBracketExpected: new CSSIssueType('css-rbracketexpected', localize('expected.lsquare', "[ expected")),
        RightSquareBracketExpected: new CSSIssueType('css-lbracketexpected', localize('expected.rsquare', "] expected")),
        LeftParenthesisExpected: new CSSIssueType('css-lparentexpected', localize('expected.lparen', "( expected")),
        RightParenthesisExpected: new CSSIssueType('css-rparentexpected', localize('expected.rparent', ") expected")),
        CommaExpected: new CSSIssueType('css-commaexpected', localize('expected.comma', "comma expected")),
        PageDirectiveOrDeclarationExpected: new CSSIssueType('css-pagedirordeclexpected', localize('expected.pagedirordecl', "page directive or declaraton expected")),
        UnknownAtRule: new CSSIssueType('css-unknownatrule', localize('unknown.atrule', "at-rule unknown")),
        UnknownKeyword: new CSSIssueType('css-unknownkeyword', localize('unknown.keyword', "unknown keyword")),
        SelectorExpected: new CSSIssueType('css-selectorexpected', localize('expected.selector', "selector expected")),
        StringLiteralExpected: new CSSIssueType('css-stringliteralexpected', localize('expected.stringliteral', "string literal expected")),
        WhitespaceExpected: new CSSIssueType('css-whitespaceexpected', localize('expected.whitespace', "whitespace expected")),
        MediaQueryExpected: new CSSIssueType('css-mediaqueryexpected', localize('expected.mediaquery', "media query expected"))
    };
});

/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/
// file generated from css-schema.xml and https://github.com/mdn/data using build/generate_browserjs.js
(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/data/browsers',["require", "exports"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.cssData = {
        "version": 1,
        "properties": [
            {
                name: "additive-symbols",
                browsers: [
                    "FF33"
                ],
                "syntax": "[ <integer> && <symbol> ]#",
                "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",
                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: "flex-start",
                        "description": "Lines are packed toward the start of the flex container."
                    },
                    {
                        name: "space-around",
                        "description": "Lines are evenly distributed in the flex container, with half-size spaces on either end."
                    },
                    {
                        name: "space-between",
                        "description": "Lines are evenly distributed in the flex container."
                    },
                    {
                        name: "stretch",
                        "description": "Lines stretch to take up the remaining space."
                    }
                ],
                "syntax": "normal | <baseline-position> | <content-distribution> | <overflow-position>? <content-position>",
                "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.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "align-items",
                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: "center",
                        "description": "The flex item’s margin box is centered in the cross axis within the line."
                    },
                    {
                        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: "flex-start",
                        "description": "The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."
                    },
                    {
                        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": "normal | stretch | <baseline-position> | [ <overflow-position>? <self-position> ]",
                "description": "Aligns flex items along the cross axis of the current line of the flex container.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "justify-items",
                values: [
                    {
                        name: "auto"
                    },
                    {
                        name: "normal"
                    },
                    {
                        name: "end"
                    },
                    {
                        name: "start"
                    },
                    {
                        name: "flex-end",
                        "description": "\"Flex items are packed toward the end of the line.\""
                    },
                    {
                        name: "flex-start",
                        "description": "\"Flex items are packed toward the start of the line.\""
                    },
                    {
                        name: "self-end"
                    },
                    {
                        name: "self-start"
                    },
                    {
                        name: "center",
                        "description": "The items are packed flush to each other toward the center of the of the alignment container."
                    },
                    {
                        name: "left"
                    },
                    {
                        name: "right"
                    },
                    {
                        name: "baseline"
                    },
                    {
                        name: "first baseline"
                    },
                    {
                        name: "last baseline"
                    },
                    {
                        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: "save"
                    },
                    {
                        name: "unsave"
                    },
                    {
                        name: "legacy"
                    }
                ],
                "syntax": "normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | 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: "auto"
                    },
                    {
                        name: "normal"
                    },
                    {
                        name: "end"
                    },
                    {
                        name: "start"
                    },
                    {
                        name: "flex-end",
                        "description": "\"Flex items are packed toward the end of the line.\""
                    },
                    {
                        name: "flex-start",
                        "description": "\"Flex items are packed toward the start of the line.\""
                    },
                    {
                        name: "self-end"
                    },
                    {
                        name: "self-start"
                    },
                    {
                        name: "center",
                        "description": "The items are packed flush to each other toward the center of the of the alignment container."
                    },
                    {
                        name: "left"
                    },
                    {
                        name: "right"
                    },
                    {
                        name: "baseline"
                    },
                    {
                        name: "first baseline"
                    },
                    {
                        name: "last baseline"
                    },
                    {
                        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: "save"
                    },
                    {
                        name: "unsave"
                    }
                ],
                "syntax": "auto | normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ]",
                "description": "Defines the way of justifying a box inside its container along the appropriate axis.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "align-self",
                values: [
                    {
                        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: "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: "center",
                        "description": "The flex item’s margin box is centered in the cross axis within the line."
                    },
                    {
                        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: "flex-start",
                        "description": "The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."
                    },
                    {
                        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 | <baseline-position> | <overflow-position>? <self-position>",
                "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",
                "description": "Shorthand that resets all properties except 'direction' and 'unicode-bidi'.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "alt",
                browsers: [
                    "S9"
                ],
                values: [],
                "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"
                    },
                    {
                        name: "alternate-reverse"
                    },
                    {
                        name: "backwards"
                    },
                    {
                        name: "both",
                        "description": "Both forwards and backwards fill modes are applied."
                    },
                    {
                        name: "forwards"
                    },
                    {
                        name: "infinite",
                        "description": "Causes the animation to repeat forever."
                    },
                    {
                        name: "none",
                        "description": "No animation is performed"
                    },
                    {
                        name: "normal",
                        "description": "Normal playback."
                    },
                    {
                        name: "reverse",
                        "description": "All iterations of the animation are played in the reverse direction from the way they were specified."
                    }
                ],
                "syntax": "<single-animation>#",
                "description": "Shorthand property combines six of the animation properties into a single property.",
                "restrictions": [
                    "time",
                    "timing-function",
                    "enum",
                    "identifier",
                    "number"
                ]
            },
            {
                name: "animation-delay",
                "syntax": "<time>#",
                "description": "Defines when the animation will start.",
                "restrictions": [
                    "time"
                ]
            },
            {
                name: "animation-direction",
                values: [
                    {
                        name: "alternate"
                    },
                    {
                        name: "alternate-reverse"
                    },
                    {
                        name: "normal",
                        "description": "Normal playback."
                    },
                    {
                        name: "reverse",
                        "description": "All iterations of the animation are played in the reverse direction from the way they were specified."
                    }
                ],
                "syntax": "<single-animation-direction>#",
                "description": "Defines whether or not the animation should play in reverse on alternate cycles.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "animation-duration",
                "syntax": "<time>#",
                "description": "Defines the length of time that an animation takes to complete one cycle.",
                "restrictions": [
                    "time"
                ]
            },
            {
                name: "animation-fill-mode",
                values: [
                    {
                        name: "backwards"
                    },
                    {
                        name: "both",
                        "description": "Both forwards and backwards fill modes are applied."
                    },
                    {
                        name: "forwards"
                    },
                    {
                        name: "none",
                        "description": "There is no change to the property value between the time the animation is applied and the time the animation begins playing or after the animation completes."
                    }
                ],
                "syntax": "<single-animation-fill-mode>#",
                "description": "Defines what values are applied by the animation outside the time it is executing.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "animation-iteration-count",
                values: [
                    {
                        name: "infinite",
                        "description": "Causes the animation to repeat forever."
                    }
                ],
                "syntax": "<single-animation-iteration-count>#",
                "description": "Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.",
                "restrictions": [
                    "number",
                    "enum"
                ]
            },
            {
                name: "animation-name",
                values: [
                    {
                        name: "none",
                        "description": "No animation is performed"
                    }
                ],
                "syntax": "[ none | <keyframes-name> ]#",
                "description": "Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.",
                "restrictions": [
                    "identifier",
                    "enum"
                ]
            },
            {
                name: "animation-play-state",
                values: [
                    {
                        name: "paused"
                    },
                    {
                        name: "running"
                    }
                ],
                "syntax": "<single-animation-play-state>#",
                "description": "Defines whether the animation is running or paused.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "animation-timing-function",
                "syntax": "<single-timing-function>#",
                "description": "Describes how the animation will progress over one cycle of its duration.",
                "restrictions": [
                    "timing-function"
                ]
            },
            {
                name: "backface-visibility",
                values: [
                    {
                        name: "hidden",
                        "description": "Back side is hidden."
                    },
                    {
                        name: "visible",
                        "description": "Back side is visible."
                    }
                ],
                "syntax": "visible | hidden",
                "description": "Determines whether or not the 'back' side of a transformed element is visible when facing the viewer. With an identity transform, the front side of an element faces the viewer.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "background",
                values: [
                    {
                        name: "fixed",
                        "description": "The background is fixed with regard to the viewport. In paged media where there is no viewport, a 'fixed' background is fixed with respect to the page box and therefore replicated on every page."
                    },
                    {
                        name: "local",
                        "description": "The background is fixed with regard to the element's contents: if the element has a scrolling mechanism, the background scrolls with the element's contents."
                    },
                    {
                        name: "none",
                        "description": "A value of 'none' counts as an image layer but draws nothing."
                    },
                    {
                        name: "scroll",
                        "description": "The background is fixed with regard to the element itself and does not scroll with its contents. (It is effectively attached to the element's border.)"
                    }
                ],
                "syntax": "[ <bg-layer> , ]* <final-bg-layer>",
                "description": "Shorthand property for setting most background properties at the same place in the style sheet.",
                "restrictions": [
                    "enum",
                    "image",
                    "color",
                    "position",
                    "length",
                    "repeat",
                    "percentage",
                    "box"
                ]
            },
            {
                name: "background-attachment",
                values: [
                    {
                        name: "fixed",
                        "description": "The background is fixed with regard to the viewport. In paged media where there is no viewport, a 'fixed' background is fixed with respect to the page box and therefore replicated on every page."
                    },
                    {
                        name: "local",
                        "description": "The background is fixed with regard to the element’s contents: if the element has a scrolling mechanism, the background scrolls with the element’s contents."
                    },
                    {
                        name: "scroll",
                        "description": "The background is fixed with regard to the element itself and does not scroll with its contents. (It is effectively attached to the element’s border.)"
                    }
                ],
                "syntax": "<attachment>#",
                "description": "Specifies whether the background images are fixed with regard to the viewport ('fixed') or scroll along with the element ('scroll') or its contents ('local').",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "background-blend-mode",
                browsers: [
                    "FF30",
                    "S",
                    "C35",
                    "O22"
                ],
                values: [
                    {
                        name: "normal",
                        "description": "Default attribute which specifies no blending"
                    },
                    {
                        name: "multiply"
                    },
                    {
                        name: "screen"
                    },
                    {
                        name: "overlay"
                    },
                    {
                        name: "darken"
                    },
                    {
                        name: "lighten"
                    },
                    {
                        name: "color-dodge"
                    },
                    {
                        name: "color-burn"
                    },
                    {
                        name: "hard-light"
                    },
                    {
                        name: "soft-light"
                    },
                    {
                        name: "difference"
                    },
                    {
                        name: "exclusion"
                    },
                    {
                        name: "hue",
                        browsers: [
                            "FF30",
                            "S",
                            "C35",
                            "O22"
                        ]
                    },
                    {
                        name: "saturation",
                        browsers: [
                            "FF30",
                            "S",
                            "C35",
                            "O22"
                        ]
                    },
                    {
                        name: "color",
                        browsers: [
                            "FF30",
                            "S",
                            "C35",
                            "O22"
                        ]
                    },
                    {
                        name: "luminosity",
                        browsers: [
                            "FF30",
                            "S",
                            "C35",
                            "O22"
                        ]
                    }
                ],
                "syntax": "<blend-mode>#",
                "description": "Defines the blending mode of each background layer.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "background-clip",
                "syntax": "<box>#",
                "description": "Determines the background painting area.",
                "restrictions": [
                    "box"
                ]
            },
            {
                name: "background-color",
                "syntax": "<color>",
                "description": "Sets the background color of an element.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "background-image",
                values: [
                    {
                        name: "none",
                        "description": "Counts as an image layer but draws nothing."
                    }
                ],
                "syntax": "<bg-image>#",
                "description": "Sets the background image(s) of an element.",
                "restrictions": [
                    "image",
                    "enum"
                ]
            },
            {
                name: "background-origin",
                "syntax": "<box>#",
                "description": "For elements rendered as a single box, specifies the background positioning area. For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages) specifies which boxes 'box-decoration-break' operates on to determine the background positioning area(s).",
                "restrictions": [
                    "box"
                ]
            },
            {
                name: "background-position",
                "syntax": "<bg-position>#",
                "description": "Specifies the initial position of the background image(s) (after any resizing) within their corresponding background positioning area.",
                "restrictions": [
                    "position",
                    "length",
                    "percentage"
                ]
            },
            {
                name: "background-position-x",
                values: [
                    {
                        name: "center",
                        "description": "Equivalent to '50%' ('left 50%') for the horizontal position if the horizontal position is not otherwise specified, or '50%' ('top 50%') for the vertical position if it is."
                    },
                    {
                        name: "left",
                        "description": "Equivalent to '0%' for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset."
                    },
                    {
                        name: "right",
                        "description": "Equivalent to '100%' for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset."
                    }
                ],
                "status": "experimental",
                "syntax": "[ center | [ left | right | x-start | x-end ]? <length-percentage>? ]#",
                "description": "If background images have been specified, this property specifies their initial position (after any resizing) within their corresponding background positioning area.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "background-position-y",
                values: [
                    {
                        name: "bottom",
                        "description": "Equivalent to '100%' for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset."
                    },
                    {
                        name: "center",
                        "description": "Equivalent to '50%' ('left 50%') for the horizontal position if the horizontal position is not otherwise specified, or '50%' ('top 50%') for the vertical position if it is."
                    },
                    {
                        name: "top",
                        "description": "Equivalent to '0%' for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."
                    }
                ],
                "status": "experimental",
                "syntax": "[ center | [ top | bottom | y-start | y-end ]? <length-percentage>? ]#",
                "description": "If background images have been specified, this property specifies their initial position (after any resizing) within their corresponding background positioning area.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "background-repeat",
                values: [],
                "syntax": "<repeat-style>#",
                "description": "Specifies how background images are tiled after they have been sized and positioned.",
                "restrictions": [
                    "repeat"
                ]
            },
            {
                name: "background-size",
                values: [
                    {
                        name: "auto",
                        "description": "Resolved by using the image’s intrinsic ratio and the size of the other dimension, or failing that, using the image’s intrinsic size, or failing that, treating it as 100%."
                    },
                    {
                        name: "contain",
                        "description": "Scale the image, while preserving its intrinsic aspect ratio (if any), to the largest size such that both its width and its height can fit inside the background positioning area."
                    },
                    {
                        name: "cover",
                        "description": "Scale the image, while preserving its intrinsic aspect ratio (if any), to the smallest size such that both its width and its height can completely cover the background positioning area."
                    }
                ],
                "syntax": "<bg-size>#",
                "description": "Specifies the size of the background images.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "behavior",
                browsers: [
                    "IE6"
                ],
                "description": "IE only. Used to extend behaviors of the browser.",
                "restrictions": [
                    "url"
                ]
            },
            {
                name: "block-size",
                browsers: [
                    "FF41",
                    "C57",
                    "O44"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "Depends on the values of other properties."
                    }
                ],
                "syntax": "<'width'>",
                "description": "Logical 'width'. Mapping depends on the element’s 'writing-mode'.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "border",
                "syntax": "<line-width> || <line-style> || <color>",
                "description": "Shorthand property for setting border width, style, and color.",
                "restrictions": [
                    "length",
                    "line-width",
                    "line-style",
                    "color"
                ]
            },
            {
                name: "border-block-end",
                browsers: [
                    "FF41"
                ],
                "syntax": "<'border-width'> || <'border-style'> || <'color'>",
                "description": "Logical 'border-bottom'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.",
                "restrictions": [
                    "length",
                    "line-width",
                    "line-style",
                    "color"
                ]
            },
            {
                name: "border-block-start",
                browsers: [
                    "FF41"
                ],
                "syntax": "<'border-width'> || <'border-style'> || <'color'>",
                "description": "Logical 'border-top'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.",
                "restrictions": [
                    "length",
                    "line-width",
                    "line-style",
                    "color"
                ]
            },
            {
                name: "border-block-end-color",
                browsers: [
                    "FF41",
                    "C69",
                    "O56"
                ],
                "syntax": "<'color'>",
                "description": "Logical 'border-bottom-color'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "border-block-start-color",
                browsers: [
                    "FF41",
                    "C69",
                    "O56"
                ],
                "syntax": "<'color'>",
                "description": "Logical 'border-top-color'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "border-block-end-style",
                browsers: [
                    "FF41",
                    "C69",
                    "O56"
                ],
                "syntax": "<'border-style'>",
                "description": "Logical 'border-bottom-style'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.",
                "restrictions": [
                    "line-style"
                ]
            },
            {
                name: "border-block-start-style",
                browsers: [
                    "FF41",
                    "O56"
                ],
                "syntax": "<'border-style'>",
                "description": "Logical 'border-top-style'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.",
                "restrictions": [
                    "line-style"
                ]
            },
            {
                name: "border-block-end-width",
                browsers: [
                    "FF41",
                    "C69",
                    "O56"
                ],
                "syntax": "<'border-width'>",
                "description": "Logical 'border-bottom-width'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.",
                "restrictions": [
                    "length",
                    "line-width"
                ]
            },
            {
                name: "border-block-start-width",
                browsers: [
                    "FF41",
                    "C69",
                    "O56"
                ],
                "syntax": "<'border-width'>",
                "description": "Logical 'border-top-width'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.",
                "restrictions": [
                    "length",
                    "line-width"
                ]
            },
            {
                name: "border-bottom",
                "syntax": "<line-width> || <line-style> || <color>",
                "description": "Shorthand property for setting border width, style and color.",
                "restrictions": [
                    "length",
                    "line-width",
                    "line-style",
                    "color"
                ]
            },
            {
                name: "border-bottom-color",
                "syntax": "<color>",
                "description": "Sets the color of the bottom border.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "border-bottom-left-radius",
                "syntax": "<length-percentage>{1,2}",
                "description": "Defines the radii of the bottom left outer border edge.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "border-bottom-right-radius",
                "syntax": "<length-percentage>{1,2}",
                "description": "Defines the radii of the bottom right outer border edge.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "border-bottom-style",
                "syntax": "<line-style>",
                "description": "Sets the style of the bottom border.",
                "restrictions": [
                    "line-style"
                ]
            },
            {
                name: "border-bottom-width",
                "syntax": "<line-width>",
                "description": "Sets the thickness of the bottom border.",
                "restrictions": [
                    "length",
                    "line-width"
                ]
            },
            {
                name: "border-collapse",
                values: [
                    {
                        name: "collapse",
                        "description": "Selects the collapsing borders model."
                    },
                    {
                        name: "separate",
                        "description": "Selects the separated borders border model."
                    }
                ],
                "syntax": "collapse | separate",
                "description": "Selects a table's border model.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "border-color",
                values: [],
                "syntax": "<color>{1,4}",
                "description": "The color of the border around all four edges of an element.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "border-image",
                values: [
                    {
                        name: "auto",
                        "description": "If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."
                    },
                    {
                        name: "fill",
                        "description": "Causes the middle part of the border-image to be preserved."
                    },
                    {
                        name: "none",
                        "description": "Use the border styles."
                    },
                    {
                        name: "repeat"
                    },
                    {
                        name: "round",
                        "description": "The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."
                    },
                    {
                        name: "space",
                        "description": "The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."
                    },
                    {
                        name: "stretch",
                        "description": "The image is stretched to fill the area."
                    },
                    {
                        name: "url()"
                    }
                ],
                "syntax": "<'border-image-source'> || <'border-image-slice'> [ / <'border-image-width'> | / <'border-image-width'>? / <'border-image-outset'> ]? || <'border-image-repeat'>",
                "description": "Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.",
                "restrictions": [
                    "length",
                    "percentage",
                    "number",
                    "url",
                    "enum"
                ]
            },
            {
                name: "border-image-outset",
                "syntax": "[ <length> | <number> ]{1,4}",
                "description": "The values specify the amount by which the border image area extends beyond the border box on the top, right, bottom, and left sides respectively. If the fourth value is absent, it is the same as the second. If the third one is also absent, it is the same as the first. If the second one is also absent, it is the same as the first. Numbers represent multiples of the corresponding border-width.",
                "restrictions": [
                    "length",
                    "number"
                ]
            },
            {
                name: "border-image-repeat",
                values: [
                    {
                        name: "repeat"
                    },
                    {
                        name: "round",
                        "description": "The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."
                    },
                    {
                        name: "space",
                        "description": "The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."
                    },
                    {
                        name: "stretch",
                        "description": "The image is stretched to fill the area."
                    }
                ],
                "syntax": "[ stretch | repeat | round | space ]{1,2}",
                "description": "Specifies how the images for the sides and the middle part of the border image are scaled and tiled. If the second keyword is absent, it is assumed to be the same as the first.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "border-image-slice",
                values: [
                    {
                        name: "fill",
                        "description": "Causes the middle part of the border-image to be preserved."
                    }
                ],
                "syntax": "<number-percentage>{1,4} && fill?",
                "description": "Specifies inward offsets from the top, right, bottom, and left edges of the image, dividing it into nine regions: four corners, four edges and a middle.",
                "restrictions": [
                    "number",
                    "percentage"
                ]
            },
            {
                name: "border-image-source",
                values: [
                    {
                        name: "none",
                        "description": "Use the border styles."
                    }
                ],
                "syntax": "none | <image>",
                "description": "Specifies an image to use instead of the border styles given by the 'border-style' properties and as an additional background layer for the element. If the value is 'none' or if the image cannot be displayed, the border styles will be used.",
                "restrictions": [
                    "image"
                ]
            },
            {
                name: "border-image-width",
                values: [
                    {
                        name: "auto",
                        "description": "The border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."
                    }
                ],
                "syntax": "[ <length-percentage> | <number> | auto ]{1,4}",
                "description": "The four values of 'border-image-width' specify offsets that are used to divide the border image area into nine parts. They represent inward distances from the top, right, bottom, and left sides of the area, respectively.",
                "restrictions": [
                    "length",
                    "percentage",
                    "number"
                ]
            },
            {
                name: "border-inline-end",
                browsers: [
                    "FF41"
                ],
                "syntax": "<'border-width'> || <'border-style'> || <'color'>",
                "description": "Logical 'border-right'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.",
                "restrictions": [
                    "length",
                    "line-width",
                    "line-style",
                    "color"
                ]
            },
            {
                name: "border-inline-start",
                browsers: [
                    "FF41"
                ],
                "syntax": "<'border-width'> || <'border-style'> || <'color'>",
                "description": "Logical 'border-left'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.",
                "restrictions": [
                    "length",
                    "line-width",
                    "line-style",
                    "color"
                ]
            },
            {
                name: "border-inline-end-color",
                browsers: [
                    "FF41",
                    "C69",
                    "O56"
                ],
                "syntax": "<'color'>",
                "description": "Logical 'border-right-color'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "border-inline-start-color",
                browsers: [
                    "FF41",
                    "C69",
                    "O56"
                ],
                "syntax": "<'color'>",
                "description": "Logical 'border-left-color'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "border-inline-end-style",
                browsers: [
                    "FF41",
                    "C69",
                    "O56"
                ],
                "syntax": "<'border-style'>",
                "description": "Logical 'border-right-style'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.",
                "restrictions": [
                    "line-style"
                ]
            },
            {
                name: "border-inline-start-style",
                browsers: [
                    "FF41",
                    "C69",
                    "O56"
                ],
                "syntax": "<'border-style'>",
                "description": "Logical 'border-left-style'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.",
                "restrictions": [
                    "line-style"
                ]
            },
            {
                name: "border-inline-end-width",
                browsers: [
                    "FF41",
                    "C69",
                    "O56"
                ],
                "syntax": "<'border-width'>",
                "description": "Logical 'border-right-width'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.",
                "restrictions": [
                    "length",
                    "line-width"
                ]
            },
            {
                name: "border-inline-start-width",
                browsers: [
                    "FF41",
                    "C69",
                    "O56"
                ],
                "syntax": "<'border-width'>",
                "description": "Logical 'border-left-width'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.",
                "restrictions": [
                    "length",
                    "line-width"
                ]
            },
            {
                name: "border-left",
                "syntax": "<line-width> || <line-style> || <color>",
                "description": "Shorthand property for setting border width, style and color",
                "restrictions": [
                    "length",
                    "line-width",
                    "line-style",
                    "color"
                ]
            },
            {
                name: "border-left-color",
                "syntax": "<color>",
                "description": "Sets the color of the left border.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "border-left-style",
                "syntax": "<line-style>",
                "description": "Sets the style of the left border.",
                "restrictions": [
                    "line-style"
                ]
            },
            {
                name: "border-left-width",
                "syntax": "<line-width>",
                "description": "Sets the thickness of the left border.",
                "restrictions": [
                    "length",
                    "line-width"
                ]
            },
            {
                name: "border-radius",
                "syntax": "<length-percentage>{1,4} [ / <length-percentage>{1,4} ]?",
                "description": "Defines the radii of the outer border edge.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "border-right",
                "syntax": "<line-width> || <line-style> || <color>",
                "description": "Shorthand property for setting border width, style and color",
                "restrictions": [
                    "length",
                    "line-width",
                    "line-style",
                    "color"
                ]
            },
            {
                name: "border-right-color",
                "syntax": "<color>",
                "description": "Sets the color of the right border.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "border-right-style",
                "syntax": "<line-style>",
                "description": "Sets the style of the right border.",
                "restrictions": [
                    "line-style"
                ]
            },
            {
                name: "border-right-width",
                "syntax": "<line-width>",
                "description": "Sets the thickness of the right border.",
                "restrictions": [
                    "length",
                    "line-width"
                ]
            },
            {
                name: "border-spacing",
                "syntax": "<length> <length>?",
                "description": "The lengths specify the distance that separates adjoining cell borders. If one length is specified, it gives both the horizontal and vertical spacing. If two are specified, the first gives the horizontal spacing and the second the vertical spacing. Lengths may not be negative.",
                "restrictions": [
                    "length"
                ]
            },
            {
                name: "border-style",
                values: [],
                "syntax": "<line-style>{1,4}",
                "description": "The style of the border around edges of an element.",
                "restrictions": [
                    "line-style"
                ]
            },
            {
                name: "border-top",
                "syntax": "<line-width> || <line-style> || <color>",
                "description": "Shorthand property for setting border width, style and color",
                "restrictions": [
                    "length",
                    "line-width",
                    "line-style",
                    "color"
                ]
            },
            {
                name: "border-top-color",
                "syntax": "<color>",
                "description": "Sets the color of the top border.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "border-top-left-radius",
                "syntax": "<length-percentage>{1,2}",
                "description": "Defines the radii of the top left outer border edge.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "border-top-right-radius",
                "syntax": "<length-percentage>{1,2}",
                "description": "Defines the radii of the top right outer border edge.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "border-top-style",
                "syntax": "<line-style>",
                "description": "Sets the style of the top border.",
                "restrictions": [
                    "line-style"
                ]
            },
            {
                name: "border-top-width",
                "syntax": "<line-width>",
                "description": "Sets the thickness of the top border.",
                "restrictions": [
                    "length",
                    "line-width"
                ]
            },
            {
                name: "border-width",
                values: [],
                "syntax": "<line-width>{1,4}",
                "description": "Shorthand that sets the four 'border-*-width' properties. If it has four values, they set top, right, bottom and left in that order. If left is missing, it is the same as right; if bottom is missing, it is the same as top; if right is missing, it is the same as top.",
                "restrictions": [
                    "length",
                    "line-width"
                ]
            },
            {
                name: "bottom",
                values: [
                    {
                        name: "auto",
                        "description": "For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"
                    }
                ],
                "syntax": "<length> | <percentage> | auto",
                "description": "Specifies how far an absolutely positioned box's bottom margin edge is offset above the bottom edge of the box's 'containing block'.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "box-decoration-break",
                browsers: [
                    "FF32",
                    "S6.1",
                    "C22",
                    "O15"
                ],
                values: [
                    {
                        name: "clone"
                    },
                    {
                        name: "slice"
                    }
                ],
                "syntax": "slice | clone",
                "description": "Specifies whether individual boxes are treated as broken pieces of one continuous box, or whether each box is individually wrapped with the border and padding.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "box-shadow",
                values: [
                    {
                        name: "inset"
                    },
                    {
                        name: "none",
                        "description": "No shadow."
                    }
                ],
                "syntax": "none | <shadow>#",
                "description": "Attaches one or more drop-shadows to the box. The property is a comma-separated list of shadows, each specified by 2-4 length values, an optional color, and an optional 'inset' keyword. Omitted lengths are 0; omitted colors are a user agent chosen color.",
                "restrictions": [
                    "length",
                    "color",
                    "enum"
                ]
            },
            {
                name: "box-sizing",
                values: [
                    {
                        name: "border-box"
                    },
                    {
                        name: "content-box"
                    }
                ],
                "syntax": "content-box | border-box",
                "description": "Specifies the behavior of the 'width' and 'height' properties.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "break-after",
                browsers: [
                    "E12",
                    "S10",
                    "C50",
                    "IE10",
                    "O37"
                ],
                values: [
                    {
                        name: "always",
                        "description": "Always force a page break before/after the generated box."
                    },
                    {
                        name: "auto",
                        "description": "Neither force nor forbid a page/column break before/after the principal box."
                    },
                    {
                        name: "avoid",
                        "description": "Avoid a break before/after the principal box."
                    },
                    {
                        name: "avoid-column",
                        "description": "Avoid a column break before/after the principal box."
                    },
                    {
                        name: "avoid-page",
                        "description": "Avoid a page break before/after the principal box."
                    },
                    {
                        name: "column",
                        "description": "Always force a column break before/after the principal box."
                    },
                    {
                        name: "left",
                        "description": "Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."
                    },
                    {
                        name: "page",
                        "description": "Always force a page break before/after the principal box."
                    },
                    {
                        name: "right",
                        "description": "Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."
                    }
                ],
                "syntax": "auto | avoid | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region",
                "description": "Describes the page/column/region break behavior after the generated box.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "break-before",
                values: [
                    {
                        name: "always",
                        "description": "Always force a page break before/after the generated box."
                    },
                    {
                        name: "auto",
                        "description": "Neither force nor forbid a page/column break before/after the principal box."
                    },
                    {
                        name: "avoid",
                        "description": "Avoid a break before/after the principal box."
                    },
                    {
                        name: "avoid-column",
                        "description": "Avoid a column break before/after the principal box."
                    },
                    {
                        name: "avoid-page",
                        "description": "Avoid a page break before/after the principal box."
                    },
                    {
                        name: "column",
                        "description": "Always force a column break before/after the principal box."
                    },
                    {
                        name: "left",
                        "description": "Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."
                    },
                    {
                        name: "page",
                        "description": "Always force a page break before/after the principal box."
                    },
                    {
                        name: "right",
                        "description": "Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."
                    }
                ],
                "syntax": "auto | avoid | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region",
                "description": "Describes the page/column/region break behavior before the generated box.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "break-inside",
                values: [
                    {
                        name: "auto",
                        "description": "Impose no additional breaking constraints within the box."
                    },
                    {
                        name: "avoid",
                        "description": "Avoid breaks within the box."
                    },
                    {
                        name: "avoid-column",
                        "description": "Avoid a column break within the box."
                    },
                    {
                        name: "avoid-page",
                        "description": "Avoid a page break within the box."
                    }
                ],
                "syntax": "auto | avoid | avoid-page | avoid-column | avoid-region",
                "description": "Describes the page/column/region break behavior inside the principal box.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "caption-side",
                values: [
                    {
                        name: "bottom",
                        "description": "Positions the caption box below the table box."
                    },
                    {
                        name: "top",
                        "description": "Positions the caption box above the table box."
                    }
                ],
                "syntax": "top | bottom | block-start | block-end | inline-start | inline-end",
                "description": "Specifies the position of the caption box with respect to the table box.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "caret-color",
                browsers: [
                    "FF53",
                    "S11.1",
                    "C57",
                    "O44"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "The user agent selects an appropriate color for the caret. This is generally currentcolor, but the user agent may choose a different color to ensure good visibility and contrast with the surrounding content, taking into account the value of currentcolor, the background, shadows, and other factors."
                    }
                ],
                "syntax": "auto | <color>",
                "description": "Controls the color of the text insertion indicator.",
                "restrictions": [
                    "color",
                    "enum"
                ]
            },
            {
                name: "clear",
                values: [
                    {
                        name: "both",
                        "description": "The clearance of the generated box is set to the amount necessary to place the top border edge below the bottom outer edge of any right-floating and left-floating boxes that resulted from elements earlier in the source document."
                    },
                    {
                        name: "left",
                        "description": "The clearance of the generated box is set to the amount necessary to place the top border edge below the bottom outer edge of any left-floating boxes that resulted from elements earlier in the source document."
                    },
                    {
                        name: "none",
                        "description": "No constraint on the box's position with respect to floats."
                    },
                    {
                        name: "right",
                        "description": "The clearance of the generated box is set to the amount necessary to place the top border edge below the bottom outer edge of any right-floating boxes that resulted from elements earlier in the source document."
                    }
                ],
                "syntax": "none | left | right | both | inline-start | inline-end",
                "description": "Indicates which sides of an element's box(es) may not be adjacent to an earlier floating box. The 'clear' property does not consider floats inside the element itself or in other block formatting contexts.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "clip",
                values: [
                    {
                        name: "auto",
                        "description": "The element does not clip."
                    },
                    {
                        name: "rect()"
                    }
                ],
                "syntax": "<shape> | auto",
                "description": "Deprecated. Use the 'clip-path' property when support allows. Defines the visible portion of an element’s box.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "clip-path",
                browsers: [
                    "FF3.5",
                    "C55",
                    "O42"
                ],
                values: [
                    {
                        name: "none",
                        "description": "No clipping path gets created."
                    },
                    {
                        name: "url()",
                        "description": "References a <clipPath> element to create a clipping path."
                    }
                ],
                "syntax": "<clip-source> | [ <basic-shape> || <geometry-box> ] | none",
                "description": "Specifies a clipping path where everything inside the path is visible and everything outside is clipped out.",
                "restrictions": [
                    "url",
                    "shape",
                    "geometry-box",
                    "enum"
                ]
            },
            {
                name: "clip-rule",
                browsers: [
                    "E",
                    "C5",
                    "FF3",
                    "IE10",
                    "O9",
                    "S6"
                ],
                values: [
                    {
                        name: "evenodd"
                    },
                    {
                        name: "nonzero"
                    }
                ],
                "description": "Indicates the algorithm which is to be used to determine what parts of the canvas are included inside the shape.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "color",
                "syntax": "<color>",
                "description": "Color of an element's text",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "color-interpolation-filters",
                browsers: [
                    "E",
                    "C5",
                    "FF3",
                    "IE10",
                    "O9",
                    "S6"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "Color operations are not required to occur in a particular color space."
                    },
                    {
                        name: "linearRGB"
                    },
                    {
                        name: "sRGB"
                    }
                ],
                "description": "Specifies the color space for imaging operations performed via filter effects.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "column-count",
                values: [
                    {
                        name: "auto",
                        "description": "Determines the number of columns by the 'column-width' property and the element width."
                    }
                ],
                "syntax": "<integer> | auto",
                "description": "Describes the optimal number of columns into which the content of the element will be flowed.",
                "restrictions": [
                    "integer",
                    "enum"
                ]
            },
            {
                name: "column-fill",
                browsers: [
                    "E12",
                    "FF52",
                    "C"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "Fills columns sequentially."
                    },
                    {
                        name: "balance"
                    }
                ],
                "syntax": "auto | balance | balance-all",
                "description": "In continuous media, this property will only be consulted if the length of columns has been constrained. Otherwise, columns will automatically be balanced.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "column-gap",
                values: [
                    {
                        name: "normal",
                        "description": "User agent specific and typically equivalent to 1em."
                    }
                ],
                "syntax": "normal | <length-percentage>",
                "description": "Sets the gap between columns. If there is a column rule between columns, it will appear in the middle of the gap.",
                "restrictions": [
                    "length",
                    "enum"
                ]
            },
            {
                name: "column-rule",
                "syntax": "<'column-rule-width'> || <'column-rule-style'> || <'column-rule-color'>",
                "description": "Shorthand for setting 'column-rule-width', 'column-rule-style', and 'column-rule-color' at the same place in the style sheet. Omitted values are set to their initial values.",
                "restrictions": [
                    "length",
                    "line-width",
                    "line-style",
                    "color"
                ]
            },
            {
                name: "column-rule-color",
                "syntax": "<color>",
                "description": "Sets the color of the column rule",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "column-rule-style",
                "syntax": "<'border-style'>",
                "description": "Sets the style of the rule between columns of an element.",
                "restrictions": [
                    "line-style"
                ]
            },
            {
                name: "column-rule-width",
                "syntax": "<'border-width'>",
                "description": "Sets the width of the rule between columns. Negative values are not allowed.",
                "restrictions": [
                    "length",
                    "line-width"
                ]
            },
            {
                name: "columns",
                values: [
                    {
                        name: "auto",
                        "description": "The width depends on the values of other properties."
                    }
                ],
                "syntax": "<'column-width'> || <'column-count'>",
                "description": "A shorthand property which sets both 'column-width' and 'column-count'.",
                "restrictions": [
                    "length",
                    "integer",
                    "enum"
                ]
            },
            {
                name: "column-span",
                values: [
                    {
                        name: "all",
                        "description": "The element spans across all columns. Content in the normal flow that appears before the element is automatically balanced across all columns before the element appear."
                    },
                    {
                        name: "none",
                        "description": "The element does not span multiple columns."
                    }
                ],
                "syntax": "none | all",
                "description": "Describes the page/column break behavior after the generated box.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "column-width",
                values: [
                    {
                        name: "auto",
                        "description": "The width depends on the values of other properties."
                    }
                ],
                "syntax": "<length> | auto",
                "description": "Describes the width of columns in multicol elements.",
                "restrictions": [
                    "length",
                    "enum"
                ]
            },
            {
                name: "contain",
                browsers: [
                    "FF",
                    "C52",
                    "O40"
                ],
                values: [
                    {
                        name: "none",
                        "description": "Indicates that the property has no effect."
                    },
                    {
                        name: "strict",
                        "description": "Turns on all forms of containment for the element."
                    },
                    {
                        name: "content",
                        "description": "All containment rules except size are applied to the element."
                    },
                    {
                        name: "size"
                    },
                    {
                        name: "layout"
                    },
                    {
                        name: "style",
                        "description": "Turns on style containment for the element."
                    },
                    {
                        name: "paint"
                    }
                ],
                "status": "experimental",
                "syntax": "none | strict | content | [ size || layout || style || paint ]",
                "description": "Indicates that an element and its contents are, as much as possible, independent of the rest of the document tree.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "content",
                values: [
                    {
                        name: "attr()"
                    },
                    {
                        name: "counter(name)"
                    },
                    {
                        name: "icon",
                        "description": "The (pseudo-)element is replaced in its entirety by the resource referenced by its 'icon' property, and treated as a replaced element."
                    },
                    {
                        name: "none",
                        "description": "On elements, this inhibits the children of the element from being rendered as children of this element, as if the element was empty. On pseudo-elements it causes the pseudo-element to have no content."
                    },
                    {
                        name: "normal",
                        "description": "See http://www.w3.org/TR/css3-content/#content for computation rules."
                    },
                    {
                        name: "url()"
                    }
                ],
                "syntax": "normal | none | [ <content-replacement> | <content-list> ] [/ <string> ]?",
                "description": "Determines which page-based occurrence of a given element is applied to a counter or string value.",
                "restrictions": [
                    "string",
                    "url"
                ]
            },
            {
                name: "counter-increment",
                browsers: [
                    "FF1",
                    "S3",
                    "C2",
                    "IE8",
                    "O9.2"
                ],
                values: [
                    {
                        name: "none",
                        "description": "This element does not alter the value of any counters."
                    }
                ],
                "syntax": "[ <custom-ident> <integer>? ]+ | none",
                "description": "Manipulate the value of existing counters.",
                "restrictions": [
                    "identifier",
                    "integer"
                ]
            },
            {
                name: "counter-reset",
                values: [
                    {
                        name: "none",
                        "description": "The counter is not modified."
                    }
                ],
                "syntax": "[ <custom-ident> <integer>? ]+ | none",
                "description": "Property accepts one or more names of counters (identifiers), each one optionally followed by an integer. The integer gives the value that the counter is set to on each occurrence of the element.",
                "restrictions": [
                    "identifier",
                    "integer"
                ]
            },
            {
                name: "cursor",
                values: [
                    {
                        name: "alias"
                    },
                    {
                        name: "all-scroll"
                    },
                    {
                        name: "auto",
                        "description": "The UA determines the cursor to display based on the current context."
                    },
                    {
                        name: "cell"
                    },
                    {
                        name: "col-resize"
                    },
                    {
                        name: "context-menu"
                    },
                    {
                        name: "copy"
                    },
                    {
                        name: "crosshair"
                    },
                    {
                        name: "default",
                        "description": "The platform-dependent default cursor. Often rendered as an arrow."
                    },
                    {
                        name: "e-resize"
                    },
                    {
                        name: "ew-resize"
                    },
                    {
                        name: "grab"
                    },
                    {
                        name: "grabbing"
                    },
                    {
                        name: "help"
                    },
                    {
                        name: "move"
                    },
                    {
                        name: "-moz-grab"
                    },
                    {
                        name: "-moz-grabbing"
                    },
                    {
                        name: "-moz-zoom-in"
                    },
                    {
                        name: "-moz-zoom-out"
                    },
                    {
                        name: "ne-resize"
                    },
                    {
                        name: "nesw-resize"
                    },
                    {
                        name: "no-drop"
                    },
                    {
                        name: "none",
                        "description": "No cursor is rendered for the element."
                    },
                    {
                        name: "not-allowed"
                    },
                    {
                        name: "n-resize"
                    },
                    {
                        name: "ns-resize"
                    },
                    {
                        name: "nw-resize"
                    },
                    {
                        name: "nwse-resize"
                    },
                    {
                        name: "pointer"
                    },
                    {
                        name: "progress"
                    },
                    {
                        name: "row-resize"
                    },
                    {
                        name: "se-resize"
                    },
                    {
                        name: "s-resize"
                    },
                    {
                        name: "sw-resize"
                    },
                    {
                        name: "text",
                        "description": "Indicates text that may be selected. Often rendered as a vertical I-beam."
                    },
                    {
                        name: "vertical-text"
                    },
                    {
                        name: "wait"
                    },
                    {
                        name: "-webkit-grab"
                    },
                    {
                        name: "-webkit-grabbing"
                    },
                    {
                        name: "-webkit-zoom-in"
                    },
                    {
                        name: "-webkit-zoom-out"
                    },
                    {
                        name: "w-resize"
                    },
                    {
                        name: "zoom-in"
                    },
                    {
                        name: "zoom-out"
                    }
                ],
                "syntax": "[ [ <url> [ <x> <y> ]? , ]* [ auto | default | none | context-menu | help | pointer | progress | wait | cell | crosshair | text | vertical-text | alias | copy | move | no-drop | not-allowed | e-resize | n-resize | ne-resize | nw-resize | s-resize | se-resize | sw-resize | w-resize | ew-resize | ns-resize | nesw-resize | nwse-resize | col-resize | row-resize | all-scroll | zoom-in | zoom-out | grab | grabbing ] ]",
                "description": "Allows control over cursor appearance in an element",
                "restrictions": [
                    "url",
                    "number",
                    "enum"
                ]
            },
            {
                name: "direction",
                values: [
                    {
                        name: "ltr"
                    },
                    {
                        name: "rtl"
                    }
                ],
                "syntax": "ltr | rtl",
                "description": "Specifies the inline base direction or directionality of any bidi paragraph, embedding, isolate, or override established by the box. Note: for HTML content use the 'dir' attribute and 'bdo' element rather than this property.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "display",
                values: [
                    {
                        name: "block"
                    },
                    {
                        name: "contents",
                        "description": "The element itself does not generate any boxes, but its children and pseudo-elements still generate boxes as normal."
                    },
                    {
                        name: "flex"
                    },
                    {
                        name: "flexbox"
                    },
                    {
                        name: "flow-root"
                    },
                    {
                        name: "grid"
                    },
                    {
                        name: "inline",
                        "description": "The element generates an inline-level box."
                    },
                    {
                        name: "inline-block"
                    },
                    {
                        name: "inline-flex"
                    },
                    {
                        name: "inline-flexbox"
                    },
                    {
                        name: "inline-table"
                    },
                    {
                        name: "list-item"
                    },
                    {
                        name: "-moz-box"
                    },
                    {
                        name: "-moz-deck"
                    },
                    {
                        name: "-moz-grid"
                    },
                    {
                        name: "-moz-grid-group"
                    },
                    {
                        name: "-moz-grid-line"
                    },
                    {
                        name: "-moz-groupbox"
                    },
                    {
                        name: "-moz-inline-box"
                    },
                    {
                        name: "-moz-inline-grid"
                    },
                    {
                        name: "-moz-inline-stack"
                    },
                    {
                        name: "-moz-marker"
                    },
                    {
                        name: "-moz-popup"
                    },
                    {
                        name: "-moz-stack"
                    },
                    {
                        name: "-ms-flexbox"
                    },
                    {
                        name: "-ms-grid"
                    },
                    {
                        name: "-ms-inline-flexbox"
                    },
                    {
                        name: "-ms-inline-grid"
                    },
                    {
                        name: "none",
                        "description": "The element and its descendants generates no boxes."
                    },
                    {
                        name: "ruby",
                        "description": "The element generates a principal ruby container box, and establishes a ruby formatting context."
                    },
                    {
                        name: "ruby-base"
                    },
                    {
                        name: "ruby-base-container"
                    },
                    {
                        name: "ruby-text"
                    },
                    {
                        name: "ruby-text-container"
                    },
                    {
                        name: "run-in"
                    },
                    {
                        name: "table"
                    },
                    {
                        name: "table-caption"
                    },
                    {
                        name: "table-cell"
                    },
                    {
                        name: "table-column"
                    },
                    {
                        name: "table-column-group"
                    },
                    {
                        name: "table-footer-group"
                    },
                    {
                        name: "table-header-group"
                    },
                    {
                        name: "table-row"
                    },
                    {
                        name: "table-row-group"
                    },
                    {
                        name: "-webkit-box"
                    },
                    {
                        name: "-webkit-flex"
                    },
                    {
                        name: "-webkit-inline-box"
                    },
                    {
                        name: "-webkit-inline-flex"
                    }
                ],
                "syntax": "[ <display-outside> || <display-inside> ] | <display-listitem> | <display-internal> | <display-box> | <display-legacy>",
                "description": "In combination with 'float' and 'position', determines the type of box or boxes that are generated for an element.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "empty-cells",
                values: [
                    {
                        name: "hide"
                    },
                    {
                        name: "-moz-show-background"
                    },
                    {
                        name: "show"
                    }
                ],
                "syntax": "show | hide",
                "description": "In the separated borders model, this property controls the rendering of borders and backgrounds around cells that have no visible content.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "enable-background",
                values: [
                    {
                        name: "accumulate"
                    },
                    {
                        name: "new"
                    }
                ],
                "description": "Deprecated. Use 'isolation' property instead when support allows. Specifies how the accumulation of the background image is managed.",
                "restrictions": [
                    "integer",
                    "length",
                    "percentage",
                    "enum"
                ]
            },
            {
                name: "fallback",
                browsers: [
                    "FF33"
                ],
                "syntax": "<counter-style-name>",
                "description": "@counter-style descriptor. Specifies a fallback counter style to be used when the current counter style can’t create a representation for a given counter value.",
                "restrictions": [
                    "identifier"
                ]
            },
            {
                name: "fill",
                values: [
                    {
                        name: "url()",
                        "description": "A URL reference to a paint server element, which is an element that defines a paint server: ‘hatch’, ‘linearGradient’, ‘mesh’, ‘pattern’, ‘radialGradient’ and ‘solidcolor’."
                    },
                    {
                        name: "none",
                        "description": "No paint is applied in this layer."
                    }
                ],
                "description": "Paints the interior of the given graphical element.",
                "restrictions": [
                    "color",
                    "enum",
                    "url"
                ]
            },
            {
                name: "fill-opacity",
                "description": "Specifies the opacity of the painting operation used to paint the interior the current object.",
                "restrictions": [
                    "number(0-1)"
                ]
            },
            {
                name: "fill-rule",
                values: [
                    {
                        name: "evenodd"
                    },
                    {
                        name: "nonzero"
                    }
                ],
                "description": "Indicates the algorithm (or winding rule) which is to be used to determine what parts of the canvas are included inside the shape.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "filter",
                browsers: [
                    "E12",
                    "FF35",
                    "S6",
                    "C53",
                    "O40"
                ],
                values: [
                    {
                        name: "none",
                        "description": "No filter effects are applied."
                    },
                    {
                        name: "blur()"
                    },
                    {
                        name: "brightness()"
                    },
                    {
                        name: "contrast()"
                    },
                    {
                        name: "drop-shadow()"
                    },
                    {
                        name: "grayscale()"
                    },
                    {
                        name: "hue-rotate()"
                    },
                    {
                        name: "invert()"
                    },
                    {
                        name: "opacity()"
                    },
                    {
                        name: "saturate()"
                    },
                    {
                        name: "sepia()"
                    },
                    {
                        name: "url()",
                        browsers: [
                            "E12",
                            "FF35",
                            "S6",
                            "C53",
                            "O40"
                        ],
                        "description": "A filter reference to a <filter> element."
                    }
                ],
                "syntax": "none | <filter-function-list>",
                "description": "Processes an element’s rendering before it is displayed in the document, by applying one or more filter effects.",
                "restrictions": [
                    "enum",
                    "url"
                ]
            },
            {
                name: "flex",
                values: [
                    {
                        name: "auto",
                        "description": "Retrieves the value of the main size property as the used 'flex-basis'."
                    },
                    {
                        name: "content",
                        "description": "Indicates automatic sizing, based on the flex item’s content."
                    },
                    {
                        name: "none",
                        "description": "Expands to '0 0 auto'."
                    }
                ],
                "syntax": "none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ]",
                "description": "Specifies the components of a flexible length: the flex grow factor and flex shrink factor, and the flex basis.",
                "restrictions": [
                    "length",
                    "number",
                    "percentage"
                ]
            },
            {
                name: "flex-basis",
                values: [
                    {
                        name: "auto",
                        "description": "Retrieves the value of the main size property as the used 'flex-basis'."
                    },
                    {
                        name: "content",
                        "description": "Indicates automatic sizing, based on the flex item’s content."
                    }
                ],
                "syntax": "content | <'width'>",
                "description": "Sets the flex basis.",
                "restrictions": [
                    "length",
                    "number",
                    "percentage"
                ]
            },
            {
                name: "flex-direction",
                values: [
                    {
                        name: "column",
                        "description": "The flex container’s main axis has the same orientation as the block axis of the current writing mode."
                    },
                    {
                        name: "column-reverse"
                    },
                    {
                        name: "row",
                        "description": "The flex container’s main axis has the same orientation as the inline axis of the current writing mode."
                    },
                    {
                        name: "row-reverse"
                    }
                ],
                "syntax": "row | row-reverse | column | column-reverse",
                "description": "Specifies how flex items are placed in the flex container, by setting the direction of the flex container’s main axis.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "flex-flow",
                values: [
                    {
                        name: "column",
                        "description": "The flex container’s main axis has the same orientation as the block axis of the current writing mode."
                    },
                    {
                        name: "column-reverse"
                    },
                    {
                        name: "nowrap",
                        "description": "The flex container is single-line."
                    },
                    {
                        name: "row",
                        "description": "The flex container’s main axis has the same orientation as the inline axis of the current writing mode."
                    },
                    {
                        name: "row-reverse"
                    },
                    {
                        name: "wrap",
                        "description": "The flexbox is multi-line."
                    },
                    {
                        name: "wrap-reverse"
                    }
                ],
                "syntax": "<'flex-direction'> || <'flex-wrap'>",
                "description": "Specifies how flexbox items are placed in the flexbox.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "flex-grow",
                "syntax": "<number>",
                "description": "Sets the flex grow factor. Negative numbers are invalid.",
                "restrictions": [
                    "number"
                ]
            },
            {
                name: "flex-shrink",
                "syntax": "<number>",
                "description": "Sets the flex shrink factor. Negative numbers are invalid.",
                "restrictions": [
                    "number"
                ]
            },
            {
                name: "flex-wrap",
                values: [
                    {
                        name: "nowrap",
                        "description": "The flex container is single-line."
                    },
                    {
                        name: "wrap",
                        "description": "The flexbox is multi-line."
                    },
                    {
                        name: "wrap-reverse"
                    }
                ],
                "syntax": "nowrap | wrap | wrap-reverse",
                "description": "Controls whether the flex container is single-line or multi-line, and the direction of the cross-axis, which determines the direction new lines are stacked in.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "float",
                values: [
                    {
                        name: "inline-end"
                    },
                    {
                        name: "inline-start"
                    },
                    {
                        name: "left",
                        "description": "The element generates a block box that is floated to the left. Content flows on the right side of the box, starting at the top (subject to the 'clear' property)."
                    },
                    {
                        name: "none",
                        "description": "The box is not floated."
                    },
                    {
                        name: "right",
                        "description": "Similar to 'left', except the box is floated to the right, and content flows on the left side of the box, starting at the top."
                    }
                ],
                "syntax": "left | right | none | inline-start | inline-end",
                "description": "Specifies how a box should be floated. It may be set for any element, but only applies to elements that generate boxes that are not absolutely positioned.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "flood-color",
                browsers: [
                    "E",
                    "C5",
                    "FF3",
                    "IE10",
                    "O9",
                    "S6"
                ],
                "description": "Indicates what color to use to flood the current filter primitive subregion.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "flood-opacity",
                browsers: [
                    "E",
                    "C5",
                    "FF3",
                    "IE10",
                    "O9",
                    "S6"
                ],
                "description": "Indicates what opacity to use to flood the current filter primitive subregion.",
                "restrictions": [
                    "number(0-1)",
                    "percentage"
                ]
            },
            {
                name: "font",
                values: [
                    {
                        name: "100"
                    },
                    {
                        name: "200"
                    },
                    {
                        name: "300"
                    },
                    {
                        name: "400"
                    },
                    {
                        name: "500"
                    },
                    {
                        name: "600"
                    },
                    {
                        name: "700"
                    },
                    {
                        name: "800"
                    },
                    {
                        name: "900"
                    },
                    {
                        name: "bold"
                    },
                    {
                        name: "bolder"
                    },
                    {
                        name: "caption"
                    },
                    {
                        name: "icon",
                        "description": "The font used to label icons."
                    },
                    {
                        name: "italic",
                        "description": "Selects a font that is labeled 'italic', or, if that is not available, one labeled 'oblique'."
                    },
                    {
                        name: "large"
                    },
                    {
                        name: "larger"
                    },
                    {
                        name: "lighter"
                    },
                    {
                        name: "medium"
                    },
                    {
                        name: "menu"
                    },
                    {
                        name: "message-box"
                    },
                    {
                        name: "normal",
                        "description": "Specifies a face that is not labeled as a small-caps font."
                    },
                    {
                        name: "oblique",
                        "description": "Selects a font that is labeled 'oblique'."
                    },
                    {
                        name: "small"
                    },
                    {
                        name: "small-caps",
                        "description": "Specifies a font that is labeled as a small-caps font. If a genuine small-caps font is not available, user agents should simulate a small-caps font."
                    },
                    {
                        name: "small-caption"
                    },
                    {
                        name: "smaller"
                    },
                    {
                        name: "status-bar"
                    },
                    {
                        name: "x-large"
                    },
                    {
                        name: "x-small"
                    },
                    {
                        name: "xx-large"
                    },
                    {
                        name: "xx-small"
                    }
                ],
                "syntax": "[ [ <'font-style'> || <font-variant-css21> || <'font-weight'> || <'font-stretch'> ]? <'font-size'> [ / <'line-height'> ]? <'font-family'> ] | caption | icon | menu | message-box | small-caption | status-bar",
                "description": "Shorthand property for setting 'font-style', 'font-variant', 'font-weight', 'font-size', 'line-height', and 'font-family', at the same place in the style sheet. The syntax of this property is based on a traditional typographical shorthand notation to set multiple properties related to fonts.",
                "restrictions": [
                    "font"
                ]
            },
            {
                name: "font-family",
                values: [
                    {
                        name: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif"
                    },
                    {
                        name: "Arial, Helvetica, sans-serif"
                    },
                    {
                        name: "Cambria, Cochin, Georgia, Times, 'Times New Roman', serif"
                    },
                    {
                        name: "'Courier New', Courier, monospace"
                    },
                    {
                        name: "cursive"
                    },
                    {
                        name: "fantasy"
                    },
                    {
                        name: "'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif"
                    },
                    {
                        name: "Georgia, 'Times New Roman', Times, serif"
                    },
                    {
                        name: "'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif"
                    },
                    {
                        name: "Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif"
                    },
                    {
                        name: "'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif"
                    },
                    {
                        name: "monospace"
                    },
                    {
                        name: "sans-serif"
                    },
                    {
                        name: "'Segoe UI', Tahoma, Geneva, Verdana, sans-serif"
                    },
                    {
                        name: "serif"
                    },
                    {
                        name: "'Times New Roman', Times, serif"
                    },
                    {
                        name: "'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif"
                    },
                    {
                        name: "Verdana, Geneva, Tahoma, sans-serif"
                    }
                ],
                "syntax": "<family-name>",
                "description": "Specifies a prioritized list of font family names or generic family names. A user agent iterates through the list of family names until it matches an available font that contains a glyph for the character to be rendered.",
                "restrictions": [
                    "font"
                ]
            },
            {
                name: "font-feature-settings",
                values: [
                    {
                        name: "\"aalt\""
                    },
                    {
                        name: "\"abvf\""
                    },
                    {
                        name: "\"abvm\""
                    },
                    {
                        name: "\"abvs\""
                    },
                    {
                        name: "\"afrc\""
                    },
                    {
                        name: "\"akhn\""
                    },
                    {
                        name: "\"blwf\""
                    },
                    {
                        name: "\"blwm\""
                    },
                    {
                        name: "\"blws\""
                    },
                    {
                        name: "\"calt\""
                    },
                    {
                        name: "\"case\""
                    },
                    {
                        name: "\"ccmp\""
                    },
                    {
                        name: "\"cfar\""
                    },
                    {
                        name: "\"cjct\""
                    },
                    {
                        name: "\"clig\""
                    },
                    {
                        name: "\"cpct\""
                    },
                    {
                        name: "\"cpsp\""
                    },
                    {
                        name: "\"cswh\""
                    },
                    {
                        name: "\"curs\""
                    },
                    {
                        name: "\"c2pc\""
                    },
                    {
                        name: "\"c2cs\"",
                        "description": "Small Capitals From Capitals. Applies only to bicameral scripts."
                    },
                    {
                        name: "\"dist\""
                    },
                    {
                        name: "\"dlig\"",
                        "description": "Discretionary ligatures."
                    },
                    {
                        name: "\"dnom\""
                    },
                    {
                        name: "\"dtls\""
                    },
                    {
                        name: "\"expt\""
                    },
                    {
                        name: "\"falt\""
                    },
                    {
                        name: "\"fin2\""
                    },
                    {
                        name: "\"fin3\""
                    },
                    {
                        name: "\"fina\""
                    },
                    {
                        name: "\"flac\""
                    },
                    {
                        name: "\"frac\""
                    },
                    {
                        name: "\"fwid\""
                    },
                    {
                        name: "\"half\""
                    },
                    {
                        name: "\"haln\""
                    },
                    {
                        name: "\"halt\""
                    },
                    {
                        name: "\"hist\""
                    },
                    {
                        name: "\"hkna\""
                    },
                    {
                        name: "\"hlig\""
                    },
                    {
                        name: "\"hngl\""
                    },
                    {
                        name: "\"hojo\""
                    },
                    {
                        name: "\"hwid\""
                    },
                    {
                        name: "\"init\""
                    },
                    {
                        name: "\"isol\""
                    },
                    {
                        name: "\"ital\""
                    },
                    {
                        name: "\"jalt\""
                    },
                    {
                        name: "\"jp78\""
                    },
                    {
                        name: "\"jp83\""
                    },
                    {
                        name: "\"jp90\""
                    },
                    {
                        name: "\"jp04\""
                    },
                    {
                        name: "\"kern\"",
                        "description": "Kerning."
                    },
                    {
                        name: "\"lfbd\""
                    },
                    {
                        name: "\"liga\"",
                        "description": "Standard Ligatures."
                    },
                    {
                        name: "\"ljmo\""
                    },
                    {
                        name: "\"lnum\"",
                        "description": "Lining Figures."
                    },
                    {
                        name: "\"locl\""
                    },
                    {
                        name: "\"ltra\""
                    },
                    {
                        name: "\"ltrm\""
                    },
                    {
                        name: "\"mark\""
                    },
                    {
                        name: "\"med2\""
                    },
                    {
                        name: "\"medi\""
                    },
                    {
                        name: "\"mgrk\""
                    },
                    {
                        name: "\"mkmk\""
                    },
                    {
                        name: "\"nalt\""
                    },
                    {
                        name: "\"nlck\""
                    },
                    {
                        name: "\"nukt\""
                    },
                    {
                        name: "\"numr\""
                    },
                    {
                        name: "\"onum\"",
                        "description": "Oldstyle Figures."
                    },
                    {
                        name: "\"opbd\""
                    },
                    {
                        name: "\"ordn\""
                    },
                    {
                        name: "\"ornm\""
                    },
                    {
                        name: "\"palt\""
                    },
                    {
                        name: "\"pcap\""
                    },
                    {
                        name: "\"pkna\""
                    },
                    {
                        name: "\"pnum\""
                    },
                    {
                        name: "\"pref\""
                    },
                    {
                        name: "\"pres\""
                    },
                    {
                        name: "\"pstf\""
                    },
                    {
                        name: "\"psts\""
                    },
                    {
                        name: "\"pwid\""
                    },
                    {
                        name: "\"qwid\""
                    },
                    {
                        name: "\"rand\""
                    },
                    {
                        name: "\"rclt\""
                    },
                    {
                        name: "\"rlig\""
                    },
                    {
                        name: "\"rkrf\""
                    },
                    {
                        name: "\"rphf\""
                    },
                    {
                        name: "\"rtbd\""
                    },
                    {
                        name: "\"rtla\""
                    },
                    {
                        name: "\"rtlm\""
                    },
                    {
                        name: "\"ruby\""
                    },
                    {
                        name: "\"salt\""
                    },
                    {
                        name: "\"sinf\""
                    },
                    {
                        name: "\"size\""
                    },
                    {
                        name: "\"smcp\"",
                        "description": "Small Capitals. Applies only to bicameral scripts."
                    },
                    {
                        name: "\"smpl\""
                    },
                    {
                        name: "\"ssty\""
                    },
                    {
                        name: "\"stch\""
                    },
                    {
                        name: "\"subs\""
                    },
                    {
                        name: "\"sups\""
                    },
                    {
                        name: "\"swsh\"",
                        "description": "Swash. Does not apply to ideographic scripts."
                    },
                    {
                        name: "\"titl\""
                    },
                    {
                        name: "\"tjmo\""
                    },
                    {
                        name: "\"tnam\""
                    },
                    {
                        name: "\"tnum\"",
                        "description": "Tabular Figures."
                    },
                    {
                        name: "\"trad\""
                    },
                    {
                        name: "\"twid\""
                    },
                    {
                        name: "\"unic\""
                    },
                    {
                        name: "\"valt\""
                    },
                    {
                        name: "\"vatu\""
                    },
                    {
                        name: "\"vert\""
                    },
                    {
                        name: "\"vhal\""
                    },
                    {
                        name: "\"vjmo\""
                    },
                    {
                        name: "\"vkna\""
                    },
                    {
                        name: "\"vkrn\""
                    },
                    {
                        name: "\"vpal\""
                    },
                    {
                        name: "\"vrt2\""
                    },
                    {
                        name: "\"zero\""
                    },
                    {
                        name: "normal",
                        "description": "No change in glyph substitution or positioning occurs."
                    },
                    {
                        name: "off",
                        "description": "Disable feature."
                    },
                    {
                        name: "on",
                        "description": "Enable feature."
                    }
                ],
                "syntax": "normal | <feature-tag-value>#",
                "description": "Provides low-level control over OpenType font features. It is intended as a way of providing access to font features that are not widely used but are needed for a particular use case.",
                "restrictions": [
                    "string",
                    "integer"
                ]
            },
            {
                name: "font-kerning",
                browsers: [
                    "FF32",
                    "S7",
                    "C32"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "Specifies that kerning is applied at the discretion of the user agent."
                    },
                    {
                        name: "none",
                        "description": "Specifies that kerning is not applied."
                    },
                    {
                        name: "normal",
                        "description": "Specifies that kerning is applied."
                    }
                ],
                "syntax": "auto | normal | none",
                "description": "Kerning is the contextual adjustment of inter-glyph spacing. This property controls metric kerning, kerning that utilizes adjustment data contained in the font.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "font-language-override",
                browsers: [
                    "FF34"
                ],
                values: [
                    {
                        name: "normal",
                        "description": "Implies that when rendering with OpenType fonts the language of the document is used to infer the OpenType language system, used to select language specific features when rendering."
                    }
                ],
                "syntax": "normal | <string>",
                "description": "The value of 'normal' implies that when rendering with OpenType fonts the language of the document is used to infer the OpenType language system, used to select language specific features when rendering.",
                "restrictions": [
                    "string"
                ]
            },
            {
                name: "font-size",
                values: [
                    {
                        name: "large"
                    },
                    {
                        name: "larger"
                    },
                    {
                        name: "medium"
                    },
                    {
                        name: "small"
                    },
                    {
                        name: "smaller"
                    },
                    {
                        name: "x-large"
                    },
                    {
                        name: "x-small"
                    },
                    {
                        name: "xx-large"
                    },
                    {
                        name: "xx-small"
                    }
                ],
                "syntax": "<absolute-size> | <relative-size> | <length-percentage>",
                "description": "Indicates the desired height of glyphs from the font. For scalable fonts, the font-size is a scale factor applied to the EM unit of the font. (Note that certain glyphs may bleed outside their EM box.) For non-scalable fonts, the font-size is converted into absolute units and matched against the declared font-size of the font, using the same absolute coordinate space for both of the matched values.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "font-size-adjust",
                browsers: [
                    "FF40",
                    "C43",
                    "O30"
                ],
                values: [
                    {
                        name: "none",
                        "description": "Do not preserve the font’s x-height."
                    }
                ],
                "syntax": "none | <number>",
                "description": "Preserves the readability of text when font fallback occurs by adjusting the font-size so that the x-height is the same irregardless of the font used.",
                "restrictions": [
                    "number"
                ]
            },
            {
                name: "font-stretch",
                values: [
                    {
                        name: "condensed"
                    },
                    {
                        name: "expanded"
                    },
                    {
                        name: "extra-condensed"
                    },
                    {
                        name: "extra-expanded"
                    },
                    {
                        name: "narrower"
                    },
                    {
                        name: "normal"
                    },
                    {
                        name: "semi-condensed"
                    },
                    {
                        name: "semi-expanded"
                    },
                    {
                        name: "ultra-condensed"
                    },
                    {
                        name: "ultra-expanded"
                    },
                    {
                        name: "wider"
                    }
                ],
                "syntax": "<font-stretch-absolute>{1,2}",
                "description": "Selects a normal, condensed, or expanded face from a font family.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "font-style",
                values: [
                    {
                        name: "italic",
                        "description": "Selects a font that is labeled as an 'italic' face, or an 'oblique' face if one is not"
                    },
                    {
                        name: "normal",
                        "description": "Selects a face that is classified as 'normal'."
                    },
                    {
                        name: "oblique",
                        "description": "Selects a font that is labeled as an 'oblique' face, or an 'italic' face if one is not."
                    }
                ],
                "syntax": "normal | italic | oblique <angle>{0,2}",
                "description": "Allows italic or oblique faces to be selected. Italic forms are generally cursive in nature while oblique faces are typically sloped versions of the regular face.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "font-synthesis",
                browsers: [
                    "FF34",
                    "S9"
                ],
                values: [
                    {
                        name: "none",
                        "description": "Disallow all synthetic faces."
                    },
                    {
                        name: "style",
                        "description": "Allow synthetic italic faces."
                    },
                    {
                        name: "weight"
                    }
                ],
                "syntax": "none | [ weight || style ]",
                "description": "Controls whether user agents are allowed to synthesize bold or oblique font faces when a font family lacks bold or italic faces.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "font-variant",
                values: [
                    {
                        name: "normal",
                        "description": "Specifies a face that is not labeled as a small-caps font."
                    },
                    {
                        name: "small-caps",
                        "description": "Specifies a font that is labeled as a small-caps font. If a genuine small-caps font is not available, user agents should simulate a small-caps font."
                    }
                ],
                "syntax": "normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> || stylistic(<feature-value-name>) || historical-forms || styleset(<feature-value-name>#) || character-variant(<feature-value-name>#) || swash(<feature-value-name>) || ornaments(<feature-value-name>) || annotation(<feature-value-name>) || [ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ] || <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero || <east-asian-variant-values> || <east-asian-width-values> || ruby ]",
                "description": "Specifies variant representations of the font",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "font-variant-alternates",
                browsers: [
                    "FF34"
                ],
                values: [
                    {
                        name: "annotation()"
                    },
                    {
                        name: "character-variant()"
                    },
                    {
                        name: "historical-forms"
                    },
                    {
                        name: "normal",
                        "description": "None of the features are enabled."
                    },
                    {
                        name: "ornaments()"
                    },
                    {
                        name: "styleset()"
                    },
                    {
                        name: "stylistic()"
                    },
                    {
                        name: "swash()"
                    }
                ],
                "syntax": "normal | [ stylistic( <feature-value-name> ) || historical-forms || styleset( <feature-value-name># ) || character-variant( <feature-value-name># ) || swash( <feature-value-name> ) || ornaments( <feature-value-name> ) || annotation( <feature-value-name> ) ]",
                "description": "For any given character, fonts can provide a variety of alternate glyphs in addition to the default glyph for that character. This property provides control over the selection of these alternate glyphs.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "font-variant-caps",
                browsers: [
                    "FF34",
                    "C52",
                    "O39"
                ],
                values: [
                    {
                        name: "all-petite-caps"
                    },
                    {
                        name: "all-small-caps"
                    },
                    {
                        name: "normal",
                        "description": "None of the features are enabled."
                    },
                    {
                        name: "petite-caps"
                    },
                    {
                        name: "small-caps",
                        "description": "Enables display of small capitals. Small-caps glyphs typically use the form of uppercase letters but are reduced to the size of lowercase letters."
                    },
                    {
                        name: "titling-caps"
                    },
                    {
                        name: "unicase"
                    }
                ],
                "syntax": "normal | small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps",
                "description": "Specifies control over capitalized forms.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "font-variant-east-asian",
                browsers: [
                    "FF34",
                    "C63",
                    "O50"
                ],
                values: [
                    {
                        name: "full-width"
                    },
                    {
                        name: "jis04"
                    },
                    {
                        name: "jis78"
                    },
                    {
                        name: "jis83"
                    },
                    {
                        name: "jis90"
                    },
                    {
                        name: "normal",
                        "description": "None of the features are enabled."
                    },
                    {
                        name: "proportional-width"
                    },
                    {
                        name: "ruby",
                        "description": "Enables display of ruby variant glyphs."
                    },
                    {
                        name: "simplified"
                    },
                    {
                        name: "traditional"
                    }
                ],
                "syntax": "normal | [ <east-asian-variant-values> || <east-asian-width-values> || ruby ]",
                "description": "Allows control of glyph substitute and positioning in East Asian text.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "font-variant-ligatures",
                browsers: [
                    "FF34",
                    "S9.1",
                    "C34",
                    "O21"
                ],
                values: [
                    {
                        name: "additional-ligatures"
                    },
                    {
                        name: "common-ligatures"
                    },
                    {
                        name: "contextual",
                        browsers: [
                            "FF34",
                            "S9.1",
                            "C34",
                            "O21"
                        ]
                    },
                    {
                        name: "discretionary-ligatures"
                    },
                    {
                        name: "historical-ligatures"
                    },
                    {
                        name: "no-additional-ligatures"
                    },
                    {
                        name: "no-common-ligatures"
                    },
                    {
                        name: "no-contextual",
                        browsers: [
                            "FF34",
                            "S9.1",
                            "C34",
                            "O21"
                        ]
                    },
                    {
                        name: "no-discretionary-ligatures"
                    },
                    {
                        name: "no-historical-ligatures"
                    },
                    {
                        name: "none",
                        browsers: [
                            "FF34",
                            "S9.1",
                            "C34",
                            "O21"
                        ],
                        "description": "Disables all ligatures."
                    },
                    {
                        name: "normal",
                        "description": "Implies that the defaults set by the font are used."
                    }
                ],
                "syntax": "normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> ]",
                "description": "Specifies control over which ligatures are enabled or disabled. A value of ‘normal’ implies that the defaults set by the font are used.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "font-variant-numeric",
                browsers: [
                    "FF34",
                    "S9.1",
                    "C52",
                    "O39"
                ],
                values: [
                    {
                        name: "diagonal-fractions"
                    },
                    {
                        name: "lining-nums"
                    },
                    {
                        name: "normal",
                        "description": "None of the features are enabled."
                    },
                    {
                        name: "oldstyle-nums"
                    },
                    {
                        name: "ordinal"
                    },
                    {
                        name: "proportional-nums"
                    },
                    {
                        name: "slashed-zero"
                    },
                    {
                        name: "stacked-fractions"
                    },
                    {
                        name: "tabular-nums"
                    }
                ],
                "syntax": "normal | [ <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero ]",
                "description": "Specifies control over numerical forms.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "font-variant-position",
                browsers: [
                    "FF34"
                ],
                values: [
                    {
                        name: "normal",
                        "description": "None of the features are enabled."
                    },
                    {
                        name: "sub",
                        "description": "Enables display of subscript variants (OpenType feature: subs)."
                    },
                    {
                        name: "super",
                        "description": "Enables display of superscript variants (OpenType feature: sups)."
                    }
                ],
                "syntax": "normal | sub | super",
                "description": "Specifies the vertical position",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "font-weight",
                values: [
                    {
                        name: "100"
                    },
                    {
                        name: "200"
                    },
                    {
                        name: "300"
                    },
                    {
                        name: "400"
                    },
                    {
                        name: "500"
                    },
                    {
                        name: "600"
                    },
                    {
                        name: "700"
                    },
                    {
                        name: "800"
                    },
                    {
                        name: "900"
                    },
                    {
                        name: "bold"
                    },
                    {
                        name: "bolder"
                    },
                    {
                        name: "lighter"
                    },
                    {
                        name: "normal",
                        "description": "Same as 400"
                    }
                ],
                "syntax": "<font-weight-absolute>{1,2}",
                "description": "Specifies weight of glyphs in the font, their degree of blackness or stroke thickness.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "glyph-orientation-horizontal",
                "description": "Controls glyph orientation when the inline-progression-direction is horizontal.",
                "restrictions": [
                    "angle",
                    "number"
                ]
            },
            {
                name: "glyph-orientation-vertical",
                values: [
                    {
                        name: "auto",
                        "description": "Sets the orientation based on the fullwidth or non-fullwidth characters and the most common orientation."
                    }
                ],
                "description": "Controls glyph orientation when the inline-progression-direction is vertical.",
                "restrictions": [
                    "angle",
                    "number",
                    "enum"
                ]
            },
            {
                name: "grid-area",
                browsers: [
                    "E16",
                    "FF52",
                    "S10.1",
                    "C57",
                    "O44"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "The property contributes nothing to the grid item’s placement, indicating auto-placement, an automatic span, or a default span of one."
                    },
                    {
                        name: "span"
                    }
                ],
                "syntax": "<grid-line> [ / <grid-line> ]{0,3}",
                "description": "Determine a grid item’s size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement. Shorthand for 'grid-row-start', 'grid-column-start', 'grid-row-end', and 'grid-column-end'.",
                "restrictions": [
                    "identifier",
                    "integer"
                ]
            },
            {
                name: "grid",
                browsers: [
                    "E16",
                    "FF52",
                    "S10.1",
                    "C57",
                    "O44"
                ],
                "syntax": "<'grid-template'> | <'grid-template-rows'> / [ auto-flow && dense? ] <'grid-auto-columns'>? | [ auto-flow && dense? ] <'grid-auto-rows'>? / <'grid-template-columns'>",
                "description": "The grid CSS property is a shorthand property that sets all of the explicit grid properties ('grid-template-rows', 'grid-template-columns', and 'grid-template-areas'), and all the implicit grid properties ('grid-auto-rows', 'grid-auto-columns', and 'grid-auto-flow'), in a single declaration.",
                "restrictions": [
                    "identifier",
                    "length",
                    "percentage",
                    "string",
                    "enum"
                ]
            },
            {
                name: "grid-auto-columns",
                values: [
                    {
                        name: "min-content",
                        "description": "Represents the largest min-content contribution of the grid items occupying the grid track."
                    },
                    {
                        name: "max-content",
                        "description": "Represents the largest max-content contribution of the grid items occupying the grid track."
                    },
                    {
                        name: "auto",
                        "description": "As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."
                    },
                    {
                        name: "minmax()"
                    }
                ],
                "syntax": "<track-size>+",
                "description": "Specifies the size of implicitly created columns.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "grid-auto-flow",
                browsers: [
                    "E16",
                    "FF52",
                    "S10.1",
                    "C57",
                    "O44"
                ],
                values: [
                    {
                        name: "row",
                        "description": "The auto-placement algorithm places items by filling each row in turn, adding new rows as necessary."
                    },
                    {
                        name: "column",
                        "description": "The auto-placement algorithm places items by filling each column in turn, adding new columns as necessary."
                    },
                    {
                        name: "dense"
                    }
                ],
                "syntax": "[ row | column ] || dense",
                "description": "Controls how the auto-placement algorithm works, specifying exactly how auto-placed items get flowed into the grid.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "grid-auto-rows",
                values: [
                    {
                        name: "min-content",
                        "description": "Represents the largest min-content contribution of the grid items occupying the grid track."
                    },
                    {
                        name: "max-content",
                        "description": "Represents the largest max-content contribution of the grid items occupying the grid track."
                    },
                    {
                        name: "auto",
                        "description": "As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."
                    },
                    {
                        name: "minmax()"
                    }
                ],
                "syntax": "<track-size>+",
                "description": "Specifies the size of implicitly created rows.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "grid-column",
                browsers: [
                    "E16",
                    "FF52",
                    "S10.1",
                    "C57",
                    "O44"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "The property contributes nothing to the grid item’s placement, indicating auto-placement, an automatic span, or a default span of one."
                    },
                    {
                        name: "span"
                    }
                ],
                "syntax": "<grid-line> [ / <grid-line> ]?",
                "description": "Shorthand for 'grid-column-start' and 'grid-column-end'.",
                "restrictions": [
                    "identifier",
                    "integer",
                    "enum"
                ]
            },
            {
                name: "grid-column-end",
                browsers: [
                    "E16",
                    "FF52",
                    "S10.1",
                    "C57",
                    "O44"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "The property contributes nothing to the grid item’s placement, indicating auto-placement, an automatic span, or a default span of one."
                    },
                    {
                        name: "span"
                    }
                ],
                "syntax": "<grid-line>",
                "description": "Determine a grid item’s size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.",
                "restrictions": [
                    "identifier",
                    "integer",
                    "enum"
                ]
            },
            {
                name: "grid-column-gap",
                browsers: [
                    "FF52",
                    "C57",
                    "S10.1",
                    "O44"
                ],
                "status": "obsolete",
                "syntax": "<length-percentage>",
                "description": "Specifies the gutters between grid columns. Replaced by 'column-gap' property.",
                "restrictions": [
                    "length"
                ]
            },
            {
                name: "grid-column-start",
                browsers: [
                    "E16",
                    "FF52",
                    "S10.1",
                    "C57",
                    "O44"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "The property contributes nothing to the grid item’s placement, indicating auto-placement, an automatic span, or a default span of one."
                    },
                    {
                        name: "span"
                    }
                ],
                "syntax": "<grid-line>",
                "description": "Determine a grid item’s size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.",
                "restrictions": [
                    "identifier",
                    "integer",
                    "enum"
                ]
            },
            {
                name: "grid-gap",
                browsers: [
                    "FF52",
                    "C57",
                    "S10.1",
                    "O44"
                ],
                "status": "obsolete",
                "syntax": "<'grid-row-gap'> <'grid-column-gap'>?",
                "description": "Shorthand that specifies the gutters between grid columns and grid rows in one declaration. Replaced by 'gap' property.",
                "restrictions": [
                    "length"
                ]
            },
            {
                name: "grid-row",
                browsers: [
                    "E16",
                    "FF52",
                    "S10.1",
                    "C57",
                    "O44"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "The property contributes nothing to the grid item’s placement, indicating auto-placement, an automatic span, or a default span of one."
                    },
                    {
                        name: "span"
                    }
                ],
                "syntax": "<grid-line> [ / <grid-line> ]?",
                "description": "Shorthand for 'grid-row-start' and 'grid-row-end'.",
                "restrictions": [
                    "identifier",
                    "integer",
                    "enum"
                ]
            },
            {
                name: "grid-row-end",
                browsers: [
                    "E16",
                    "FF52",
                    "S10.1",
                    "C57",
                    "O44"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "The property contributes nothing to the grid item’s placement, indicating auto-placement, an automatic span, or a default span of one."
                    },
                    {
                        name: "span"
                    }
                ],
                "syntax": "<grid-line>",
                "description": "Determine a grid item’s size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.",
                "restrictions": [
                    "identifier",
                    "integer",
                    "enum"
                ]
            },
            {
                name: "grid-row-gap",
                browsers: [
                    "FF52",
                    "C57",
                    "S10.1",
                    "O44"
                ],
                "status": "obsolete",
                "syntax": "<length-percentage>",
                "description": "Specifies the gutters between grid rows. Replaced by 'row-gap' property.",
                "restrictions": [
                    "length"
                ]
            },
            {
                name: "grid-row-start",
                browsers: [
                    "E16",
                    "FF52",
                    "S10.1",
                    "C57",
                    "O44"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "The property contributes nothing to the grid item’s placement, indicating auto-placement, an automatic span, or a default span of one."
                    },
                    {
                        name: "span"
                    }
                ],
                "syntax": "<grid-line>",
                "description": "Determine a grid item’s size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.",
                "restrictions": [
                    "identifier",
                    "integer",
                    "enum"
                ]
            },
            {
                name: "grid-template",
                browsers: [
                    "E16",
                    "FF52",
                    "S10.1",
                    "C57",
                    "O44"
                ],
                values: [
                    {
                        name: "none",
                        "description": "Sets all three properties to their initial values."
                    },
                    {
                        name: "min-content",
                        "description": "Represents the largest min-content contribution of the grid items occupying the grid track."
                    },
                    {
                        name: "max-content",
                        "description": "Represents the largest max-content contribution of the grid items occupying the grid track."
                    },
                    {
                        name: "auto",
                        "description": "As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."
                    },
                    {
                        name: "subgrid",
                        "description": "Sets 'grid-template-rows' and 'grid-template-columns' to 'subgrid', and 'grid-template-areas' to its initial value."
                    },
                    {
                        name: "minmax()"
                    },
                    {
                        name: "repeat()",
                        "description": "Represents a repeated fragment of the track list, allowing a large number of columns or rows that exhibit a recurring pattern to be written in a more compact form."
                    }
                ],
                "syntax": "none | [ <'grid-template-rows'> / <'grid-template-columns'> ] | [ <line-names>? <string> <track-size>? <line-names>? ]+ [ / <explicit-track-list> ]?",
                "description": "Shorthand for setting grid-template-columns, grid-template-rows, and grid-template-areas in a single declaration.",
                "restrictions": [
                    "identifier",
                    "length",
                    "percentage",
                    "string",
                    "enum"
                ]
            },
            {
                name: "grid-template-areas",
                browsers: [
                    "E16",
                    "FF52",
                    "S10.1",
                    "C57",
                    "O44"
                ],
                values: [
                    {
                        name: "none",
                        "description": "The grid container doesn’t define any named grid areas."
                    }
                ],
                "syntax": "none | <string>+",
                "description": "Specifies named grid areas, which are not associated with any particular grid item, but can be referenced from the grid-placement properties.",
                "restrictions": [
                    "string"
                ]
            },
            {
                name: "grid-template-columns",
                browsers: [
                    "E16",
                    "FF52",
                    "S10.1",
                    "C57",
                    "O44"
                ],
                values: [
                    {
                        name: "none",
                        "description": "There is no explicit grid; any rows/columns will be implicitly generated."
                    },
                    {
                        name: "min-content",
                        "description": "Represents the largest min-content contribution of the grid items occupying the grid track."
                    },
                    {
                        name: "max-content",
                        "description": "Represents the largest max-content contribution of the grid items occupying the grid track."
                    },
                    {
                        name: "auto",
                        "description": "As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."
                    },
                    {
                        name: "subgrid",
                        "description": "Indicates that the grid will align to its parent grid in that axis."
                    },
                    {
                        name: "minmax()"
                    },
                    {
                        name: "repeat()",
                        "description": "Represents a repeated fragment of the track list, allowing a large number of columns or rows that exhibit a recurring pattern to be written in a more compact form."
                    }
                ],
                "syntax": "none | <track-list> | <auto-track-list>",
                "description": "specifies, as a space-separated track list, the line names and track sizing functions of the grid.",
                "restrictions": [
                    "identifier",
                    "length",
                    "percentage",
                    "enum"
                ]
            },
            {
                name: "grid-template-rows",
                browsers: [
                    "E16",
                    "FF52",
                    "S10.1",
                    "C57",
                    "O44"
                ],
                values: [
                    {
                        name: "none",
                        "description": "There is no explicit grid; any rows/columns will be implicitly generated."
                    },
                    {
                        name: "min-content",
                        "description": "Represents the largest min-content contribution of the grid items occupying the grid track."
                    },
                    {
                        name: "max-content",
                        "description": "Represents the largest max-content contribution of the grid items occupying the grid track."
                    },
                    {
                        name: "auto",
                        "description": "As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."
                    },
                    {
                        name: "subgrid",
                        "description": "Indicates that the grid will align to its parent grid in that axis."
                    },
                    {
                        name: "minmax()"
                    },
                    {
                        name: "repeat()",
                        "description": "Represents a repeated fragment of the track list, allowing a large number of columns or rows that exhibit a recurring pattern to be written in a more compact form."
                    }
                ],
                "syntax": "none | <track-list> | <auto-track-list>",
                "description": "specifies, as a space-separated track list, the line names and track sizing functions of the grid.",
                "restrictions": [
                    "identifier",
                    "length",
                    "percentage",
                    "string",
                    "enum"
                ]
            },
            {
                name: "height",
                values: [
                    {
                        name: "auto",
                        "description": "The height depends on the values of other properties."
                    },
                    {
                        name: "fit-content"
                    },
                    {
                        name: "max-content",
                        "description": "Use the max-content inline size or max-content block size, as appropriate to the writing mode."
                    },
                    {
                        name: "min-content",
                        "description": "Use the min-content inline size or min-content block size, as appropriate to the writing mode."
                    }
                ],
                "syntax": "<viewport-length>{1,2}",
                "description": "Specifies the height of the content area, padding area or border area (depending on 'box-sizing') of certain boxes.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "hyphens",
                values: [
                    {
                        name: "auto",
                        "description": "Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."
                    },
                    {
                        name: "manual"
                    },
                    {
                        name: "none",
                        "description": "Words are not broken at line breaks, even if characters inside the word suggest line break points."
                    }
                ],
                "syntax": "none | manual | auto",
                "description": "Controls whether hyphenation is allowed to create more break opportunities within a line of text.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "image-orientation",
                browsers: [
                    "FF26"
                ],
                values: [
                    {
                        name: "flip"
                    },
                    {
                        name: "from-image"
                    }
                ],
                "syntax": "from-image | <angle> | [ <angle>? flip ]",
                "description": "Specifies an orthogonal rotation to be applied to an image before it is laid out.",
                "restrictions": [
                    "angle"
                ]
            },
            {
                name: "image-rendering",
                browsers: [
                    "FF3.6",
                    "S",
                    "C",
                    "O"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "The image should be scaled with an algorithm that maximizes the appearance of the image."
                    },
                    {
                        name: "crisp-edges"
                    },
                    {
                        name: "-moz-crisp-edges",
                        browsers: [
                            "FF3.6",
                            "S",
                            "C",
                            "O"
                        ]
                    },
                    {
                        name: "optimizeQuality"
                    },
                    {
                        name: "optimizeSpeed",
                        "description": "Deprecated."
                    },
                    {
                        name: "pixelated"
                    }
                ],
                "syntax": "auto | crisp-edges | pixelated",
                "description": "Provides a hint to the user-agent about what aspects of an image are most important to preserve when the image is scaled, to aid the user-agent in the choice of an appropriate scaling algorithm.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "ime-mode",
                browsers: [
                    "FF3",
                    "IE5"
                ],
                values: [
                    {
                        name: "active"
                    },
                    {
                        name: "auto",
                        "description": "No change is made to the current input method editor state. This is the default."
                    },
                    {
                        name: "disabled"
                    },
                    {
                        name: "inactive"
                    },
                    {
                        name: "normal",
                        "description": "The IME state should be normal; this value can be used in a user style sheet to override the page setting."
                    }
                ],
                "status": "obsolete",
                "syntax": "auto | normal | active | inactive | disabled",
                "description": "Controls the state of the input method editor for text fields.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "inline-size",
                browsers: [
                    "FF41",
                    "C57",
                    "O44"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "Depends on the values of other properties."
                    }
                ],
                "syntax": "<'width'>",
                "description": "Logical 'height'. Mapping depends on the element’s 'writing-mode'.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "isolation",
                browsers: [
                    "FF36",
                    "S",
                    "C41",
                    "O30"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "Elements are not isolated unless an operation is applied that causes the creation of a stacking context."
                    },
                    {
                        name: "isolate",
                        "description": "In CSS will turn the element into a stacking context."
                    }
                ],
                "syntax": "auto | isolate",
                "description": "In CSS setting to 'isolate' will turn the element into a stacking context. In SVG, it defines whether an element is isolated or not.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "justify-content",
                values: [
                    {
                        name: "center",
                        "description": "Flex items are packed toward the center of the line."
                    },
                    {
                        name: "start",
                        "description": "The items are packed flush to each other toward the start edge of the alignment container in the main axis."
                    },
                    {
                        name: "end",
                        "description": "The items are packed flush to each other toward the end edge of the alignment container in the main axis."
                    },
                    {
                        name: "left",
                        "description": "The items are packed flush to each other toward the left edge of the alignment container in the main axis."
                    },
                    {
                        name: "right",
                        "description": "The items are packed flush to each other toward the right edge of the alignment container in the main axis."
                    },
                    {
                        name: "safe"
                    },
                    {
                        name: "unsafe"
                    },
                    {
                        name: "stretch",
                        "description": "If the combined size of the alignment subjects is less than the size of the alignment container, any auto-sized alignment subjects have their size increased equally (not proportionally), while still respecting the constraints imposed by max-height/max-width (or equivalent functionality), so that the combined size exactly fills the alignment container."
                    },
                    {
                        name: "space-evenly"
                    },
                    {
                        name: "flex-end",
                        "description": "Flex items are packed toward the end of the line."
                    },
                    {
                        name: "flex-start",
                        "description": "Flex items are packed toward the start of the line."
                    },
                    {
                        name: "space-around",
                        "description": "Flex items are evenly distributed in the line, with half-size spaces on either end."
                    },
                    {
                        name: "space-between",
                        "description": "Flex items are evenly distributed in the line."
                    },
                    {
                        name: "baseline",
                        "description": "Specifies participation in first-baseline alignment."
                    },
                    {
                        name: "first baseline",
                        "description": "Specifies participation in first-baseline alignment."
                    },
                    {
                        name: "last baseline",
                        "description": "Specifies participation in last-baseline alignment."
                    }
                ],
                "syntax": "normal | <content-distribution> | <overflow-position>? [ <content-position> | left | right ]",
                "description": "Aligns flex items along the main axis of the current line of the flex container.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "kerning",
                values: [
                    {
                        name: "auto",
                        "description": "Indicates that the user agent should adjust inter-glyph spacing based on kerning tables that are included in the font that will be used."
                    }
                ],
                "description": "Indicates whether the user agent should adjust inter-glyph spacing based on kerning tables that are included in the relevant font or instead disable auto-kerning and set inter-character spacing to a specific length.",
                "restrictions": [
                    "length",
                    "enum"
                ]
            },
            {
                name: "left",
                values: [
                    {
                        name: "auto",
                        "description": "For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"
                    }
                ],
                "syntax": "<length> | <percentage> | auto",
                "description": "Specifies how far an absolutely positioned box's left margin edge is offset to the right of the left edge of the box's 'containing block'.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "letter-spacing",
                values: [
                    {
                        name: "normal",
                        "description": "The spacing is the normal spacing for the current font. It is typically zero-length."
                    }
                ],
                "syntax": "normal | <length>",
                "description": "Specifies the minimum, maximum, and optimal spacing between grapheme clusters.",
                "restrictions": [
                    "length"
                ]
            },
            {
                name: "lighting-color",
                browsers: [
                    "E",
                    "C5",
                    "FF3",
                    "IE10",
                    "O9",
                    "S6"
                ],
                "description": "Defines the color of the light source for filter primitives 'feDiffuseLighting' and 'feSpecularLighting'.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "line-break",
                browsers: [
                    "E14",
                    "S",
                    "C58",
                    "IE5.5",
                    "O45"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "The UA determines the set of line-breaking restrictions to use for CJK scripts, and it may vary the restrictions based on the length of the line; e.g., use a less restrictive set of line-break rules for short lines."
                    },
                    {
                        name: "loose",
                        "description": "Breaks text using the least restrictive set of line-breaking rules. Typically used for short lines, such as in newspapers."
                    },
                    {
                        name: "normal",
                        "description": "Breaks text using the most common set of line-breaking rules."
                    },
                    {
                        name: "strict",
                        "description": "Breaks CJK scripts using a more restrictive set of line-breaking rules than 'normal'."
                    }
                ],
                "syntax": "auto | loose | normal | strict",
                "description": "Specifies what set of line breaking restrictions are in effect within the element.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "line-height",
                values: [
                    {
                        name: "normal",
                        "description": "Tells user agents to set the computed value to a 'reasonable' value based on the font size of the element."
                    }
                ],
                "syntax": "normal | <number> | <length> | <percentage>",
                "description": "Determines the block-progression dimension of the text content area of an inline box.",
                "restrictions": [
                    "number",
                    "length",
                    "percentage"
                ]
            },
            {
                name: "list-style",
                values: [
                    {
                        name: "armenian"
                    },
                    {
                        name: "circle"
                    },
                    {
                        name: "decimal"
                    },
                    {
                        name: "decimal-leading-zero"
                    },
                    {
                        name: "disc"
                    },
                    {
                        name: "georgian"
                    },
                    {
                        name: "inside"
                    },
                    {
                        name: "lower-alpha"
                    },
                    {
                        name: "lower-greek"
                    },
                    {
                        name: "lower-latin"
                    },
                    {
                        name: "lower-roman"
                    },
                    {
                        name: "none"
                    },
                    {
                        name: "outside"
                    },
                    {
                        name: "square",
                        "description": "A filled square."
                    },
                    {
                        name: "symbols()"
                    },
                    {
                        name: "upper-alpha"
                    },
                    {
                        name: "upper-latin"
                    },
                    {
                        name: "upper-roman"
                    },
                    {
                        name: "url()"
                    }
                ],
                "syntax": "<'list-style-type'> || <'list-style-position'> || <'list-style-image'>",
                "description": "Shorthand for setting 'list-style-type', 'list-style-position' and 'list-style-image'",
                "restrictions": [
                    "image",
                    "enum",
                    "url"
                ]
            },
            {
                name: "list-style-image",
                values: [
                    {
                        name: "none",
                        "description": "The default contents of the of the list item’s marker are given by 'list-style-type' instead."
                    }
                ],
                "syntax": "<url> | none",
                "description": "Sets the image that will be used as the list item marker. When the image is available, it will replace the marker set with the 'list-style-type' marker.",
                "restrictions": [
                    "image"
                ]
            },
            {
                name: "list-style-position",
                values: [
                    {
                        name: "inside"
                    },
                    {
                        name: "outside"
                    }
                ],
                "syntax": "inside | outside",
                "description": "Specifies the position of the '::marker' pseudo-element's box in the list item.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "list-style-type",
                values: [
                    {
                        name: "armenian",
                        "description": "Traditional uppercase Armenian numbering."
                    },
                    {
                        name: "circle"
                    },
                    {
                        name: "decimal",
                        "description": "Western decimal numbers."
                    },
                    {
                        name: "decimal-leading-zero",
                        "description": "Decimal numbers padded by initial zeros."
                    },
                    {
                        name: "disc"
                    },
                    {
                        name: "georgian",
                        "description": "Traditional Georgian numbering."
                    },
                    {
                        name: "lower-alpha",
                        "description": "Lowercase ASCII letters."
                    },
                    {
                        name: "lower-greek",
                        "description": "Lowercase classical Greek."
                    },
                    {
                        name: "lower-latin",
                        "description": "Lowercase ASCII letters."
                    },
                    {
                        name: "lower-roman",
                        "description": "Lowercase ASCII Roman numerals."
                    },
                    {
                        name: "none",
                        "description": "No marker"
                    },
                    {
                        name: "square",
                        "description": "A filled square."
                    },
                    {
                        name: "symbols()"
                    },
                    {
                        name: "upper-alpha",
                        "description": "Uppercase ASCII letters."
                    },
                    {
                        name: "upper-latin",
                        "description": "Uppercase ASCII letters."
                    },
                    {
                        name: "upper-roman",
                        "description": "Uppercase ASCII Roman numerals."
                    }
                ],
                "syntax": "<counter-style> | <string> | none",
                "description": "Used to construct the default contents of a list item’s marker",
                "restrictions": [
                    "enum",
                    "string"
                ]
            },
            {
                name: "margin",
                values: [
                    {
                        name: "auto"
                    }
                ],
                "syntax": "[ <length> | <percentage> | auto ]{1,4}",
                "description": "Shorthand property to set values the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "margin-block-end",
                browsers: [
                    "FF41",
                    "C69",
                    "O56"
                ],
                values: [
                    {
                        name: "auto"
                    }
                ],
                "syntax": "<'margin-left'>",
                "description": "Logical 'margin-bottom'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "margin-block-start",
                browsers: [
                    "FF41",
                    "C69",
                    "O56"
                ],
                values: [
                    {
                        name: "auto"
                    }
                ],
                "syntax": "<'margin-left'>",
                "description": "Logical 'margin-top'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "margin-bottom",
                values: [
                    {
                        name: "auto"
                    }
                ],
                "syntax": "<length> | <percentage> | auto",
                "description": "Shorthand property to set values the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "margin-inline-end",
                browsers: [
                    "FF41",
                    "S3",
                    "C69",
                    "O56"
                ],
                values: [
                    {
                        name: "auto"
                    }
                ],
                "syntax": "<'margin-left'>",
                "description": "Logical 'margin-right'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "margin-inline-start",
                browsers: [
                    "FF41",
                    "S3",
                    "C69",
                    "O56"
                ],
                values: [
                    {
                        name: "auto"
                    }
                ],
                "syntax": "<'margin-left'>",
                "description": "Logical 'margin-left'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "margin-left",
                values: [
                    {
                        name: "auto"
                    }
                ],
                "syntax": "<length> | <percentage> | auto",
                "description": "Shorthand property to set values the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "margin-right",
                values: [
                    {
                        name: "auto"
                    }
                ],
                "syntax": "<length> | <percentage> | auto",
                "description": "Shorthand property to set values the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "margin-top",
                values: [
                    {
                        name: "auto"
                    }
                ],
                "syntax": "<length> | <percentage> | auto",
                "description": "Shorthand property to set values the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "marker",
                values: [
                    {
                        name: "none",
                        "description": "Indicates that no marker symbol will be drawn at the given vertex or vertices."
                    },
                    {
                        name: "url()",
                        "description": "Indicates that the <marker> element referenced will be used."
                    }
                ],
                "description": "Specifies the marker symbol that shall be used for all points on the sets the value for all vertices on the given ‘path’ element or basic shape.",
                "restrictions": [
                    "url"
                ]
            },
            {
                name: "marker-end",
                values: [
                    {
                        name: "none",
                        "description": "Indicates that no marker symbol will be drawn at the given vertex or vertices."
                    },
                    {
                        name: "url()",
                        "description": "Indicates that the <marker> element referenced will be used."
                    }
                ],
                "description": "Specifies the marker that will be drawn at the last vertices of the given markable element.",
                "restrictions": [
                    "url"
                ]
            },
            {
                name: "marker-mid",
                values: [
                    {
                        name: "none",
                        "description": "Indicates that no marker symbol will be drawn at the given vertex or vertices."
                    },
                    {
                        name: "url()",
                        "description": "Indicates that the <marker> element referenced will be used."
                    }
                ],
                "description": "Specifies the marker that will be drawn at all vertices except the first and last.",
                "restrictions": [
                    "url"
                ]
            },
            {
                name: "marker-start",
                values: [
                    {
                        name: "none",
                        "description": "Indicates that no marker symbol will be drawn at the given vertex or vertices."
                    },
                    {
                        name: "url()",
                        "description": "Indicates that the <marker> element referenced will be used."
                    }
                ],
                "description": "Specifies the marker that will be drawn at the first vertices of the given markable element.",
                "restrictions": [
                    "url"
                ]
            },
            {
                name: "mask-image",
                browsers: [
                    "E16",
                    "FF53",
                    "S4",
                    "C1",
                    "O"
                ],
                values: [
                    {
                        name: "none",
                        "description": "Counts as a transparent black image layer."
                    },
                    {
                        name: "url()",
                        "description": "Reference to a <mask element or to a CSS image."
                    }
                ],
                "syntax": "<mask-reference>#",
                "description": "Sets the mask layer image of an element.",
                "restrictions": [
                    "url",
                    "image",
                    "enum"
                ]
            },
            {
                name: "mask-mode",
                browsers: [
                    "FF53"
                ],
                values: [
                    {
                        name: "alpha",
                        "description": "Alpha values of the mask layer image should be used as the mask values."
                    },
                    {
                        name: "auto",
                        "description": "Use alpha values if 'mask-image' is an image, luminance if a <mask> element or a CSS image."
                    },
                    {
                        name: "luminance",
                        "description": "Luminance values of the mask layer image should be used as the mask values."
                    }
                ],
                "syntax": "<masking-mode>#",
                "description": "Indicates whether the mask layer image is treated as luminance mask or alpha mask.",
                "restrictions": [
                    "url",
                    "image",
                    "enum"
                ]
            },
            {
                name: "mask-origin",
                browsers: [
                    "FF53",
                    "S",
                    "C",
                    "O"
                ],
                "syntax": "<geometry-box>#",
                "description": "Specifies the mask positioning area.",
                "restrictions": [
                    "geometry-box",
                    "enum"
                ]
            },
            {
                name: "mask-position",
                browsers: [
                    "E18",
                    "FF53",
                    "S4",
                    "C1"
                ],
                "syntax": "<position>#",
                "description": "Specifies how mask layer images are positioned.",
                "restrictions": [
                    "position",
                    "length",
                    "percentage"
                ]
            },
            {
                name: "mask-repeat",
                browsers: [
                    "E18",
                    "FF53",
                    "S4",
                    "C1"
                ],
                "syntax": "<repeat-style>#",
                "description": "Specifies how mask layer images are tiled after they have been sized and positioned.",
                "restrictions": [
                    "repeat"
                ]
            },
            {
                name: "mask-size",
                browsers: [
                    "E17",
                    "FF53"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "Resolved by using the image’s intrinsic ratio and the size of the other dimension, or failing that, using the image’s intrinsic size, or failing that, treating it as 100%."
                    },
                    {
                        name: "contain",
                        "description": "Scale the image, while preserving its intrinsic aspect ratio (if any), to the largest size such that both its width and its height can fit inside the background positioning area."
                    },
                    {
                        name: "cover",
                        "description": "Scale the image, while preserving its intrinsic aspect ratio (if any), to the smallest size such that both its width and its height can completely cover the background positioning area."
                    }
                ],
                "syntax": "<bg-size>#",
                "description": "Specifies the size of the mask layer images.",
                "restrictions": [
                    "length",
                    "percentage",
                    "enum"
                ]
            },
            {
                name: "mask-type",
                browsers: [
                    "FF35",
                    "C24"
                ],
                values: [
                    {
                        name: "alpha",
                        "description": "Indicates that the alpha values of the mask should be used."
                    },
                    {
                        name: "luminance",
                        "description": "Indicates that the luminance values of the mask should be used."
                    }
                ],
                "syntax": "luminance | alpha",
                "description": "Defines whether the content of the <mask> element is treated as as luminance mask or alpha mask.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "max-block-size",
                browsers: [
                    "FF41",
                    "C57",
                    "O44"
                ],
                values: [
                    {
                        name: "none",
                        "description": "No limit on the width of the box."
                    }
                ],
                "status": "experimental",
                "syntax": "<'max-width'>",
                "description": "Logical 'max-width'. Mapping depends on the element’s 'writing-mode'.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "max-height",
                values: [
                    {
                        name: "none",
                        "description": "No limit on the height of the box."
                    },
                    {
                        name: "fit-content"
                    },
                    {
                        name: "max-content",
                        "description": "Use the max-content inline size or max-content block size, as appropriate to the writing mode."
                    },
                    {
                        name: "min-content",
                        "description": "Use the min-content inline size or min-content block size, as appropriate to the writing mode."
                    }
                ],
                "syntax": "<viewport-length>",
                "description": "Allows authors to constrain content height to a certain range.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "max-inline-size",
                browsers: [
                    "FF41",
                    "S10.1",
                    "C57",
                    "O44"
                ],
                values: [
                    {
                        name: "none",
                        "description": "No limit on the height of the box."
                    }
                ],
                "status": "experimental",
                "syntax": "<'max-width'>",
                "description": "Logical 'max-height'. Mapping depends on the element’s 'writing-mode'.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "max-width",
                values: [
                    {
                        name: "none",
                        "description": "No limit on the width of the box."
                    },
                    {
                        name: "fit-content"
                    },
                    {
                        name: "max-content",
                        "description": "Use the max-content inline size or max-content block size, as appropriate to the writing mode."
                    },
                    {
                        name: "min-content",
                        "description": "Use the min-content inline size or min-content block size, as appropriate to the writing mode."
                    }
                ],
                "syntax": "<viewport-length>",
                "description": "Allows authors to constrain content width to a certain range.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "min-block-size",
                browsers: [
                    "FF41",
                    "C57",
                    "O44"
                ],
                "syntax": "<'min-width'>",
                "description": "Logical 'min-width'. Mapping depends on the element’s 'writing-mode'.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "min-height",
                values: [
                    {
                        name: "auto"
                    },
                    {
                        name: "fit-content"
                    },
                    {
                        name: "max-content",
                        "description": "Use the max-content inline size or max-content block size, as appropriate to the writing mode."
                    },
                    {
                        name: "min-content",
                        "description": "Use the min-content inline size or min-content block size, as appropriate to the writing mode."
                    }
                ],
                "syntax": "<viewport-length>",
                "description": "Allows authors to constrain content height to a certain range.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "min-inline-size",
                browsers: [
                    "FF41",
                    "C57",
                    "O44"
                ],
                "syntax": "<'min-width'>",
                "description": "Logical 'min-height'. Mapping depends on the element’s 'writing-mode'.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "min-width",
                values: [
                    {
                        name: "auto"
                    },
                    {
                        name: "fit-content"
                    },
                    {
                        name: "max-content",
                        "description": "Use the max-content inline size or max-content block size, as appropriate to the writing mode."
                    },
                    {
                        name: "min-content",
                        "description": "Use the min-content inline size or min-content block size, as appropriate to the writing mode."
                    }
                ],
                "syntax": "<viewport-length>",
                "description": "Allows authors to constrain content width to a certain range.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "mix-blend-mode",
                browsers: [
                    "FF32",
                    "S8",
                    "C41",
                    "O"
                ],
                values: [
                    {
                        name: "normal",
                        "description": "Default attribute which specifies no blending"
                    },
                    {
                        name: "multiply"
                    },
                    {
                        name: "screen"
                    },
                    {
                        name: "overlay"
                    },
                    {
                        name: "darken"
                    },
                    {
                        name: "lighten"
                    },
                    {
                        name: "color-dodge"
                    },
                    {
                        name: "color-burn"
                    },
                    {
                        name: "hard-light"
                    },
                    {
                        name: "soft-light"
                    },
                    {
                        name: "difference"
                    },
                    {
                        name: "exclusion"
                    },
                    {
                        name: "hue",
                        browsers: [
                            "FF32",
                            "S8",
                            "C41",
                            "O"
                        ]
                    },
                    {
                        name: "saturation",
                        browsers: [
                            "FF32",
                            "S8",
                            "C41",
                            "O"
                        ]
                    },
                    {
                        name: "color",
                        browsers: [
                            "FF32",
                            "S8",
                            "C41",
                            "O"
                        ]
                    },
                    {
                        name: "luminosity",
                        browsers: [
                            "FF32",
                            "S8",
                            "C41",
                            "O"
                        ]
                    }
                ],
                "syntax": "<blend-mode>",
                "description": "Defines the formula that must be used to mix the colors with the backdrop.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "motion",
                browsers: [
                    "C46",
                    "O33"
                ],
                values: [
                    {
                        name: "none",
                        "description": "No motion path gets created."
                    },
                    {
                        name: "path()"
                    },
                    {
                        name: "auto",
                        "description": "Indicates that the object is rotated by the angle of the direction of the motion path."
                    },
                    {
                        name: "reverse",
                        "description": "Indicates that the object is rotated by the angle of the direction of the motion path plus 180 degrees."
                    }
                ],
                "description": "Shorthand property for setting 'motion-path', 'motion-offset' and 'motion-rotation'.",
                "restrictions": [
                    "url",
                    "length",
                    "percentage",
                    "angle",
                    "shape",
                    "geometry-box",
                    "enum"
                ]
            },
            {
                name: "motion-offset",
                browsers: [
                    "C46",
                    "O33"
                ],
                "description": "A distance that describes the position along the specified motion path.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "motion-path",
                browsers: [
                    "C46",
                    "O33"
                ],
                values: [
                    {
                        name: "none",
                        "description": "No motion path gets created."
                    },
                    {
                        name: "path()"
                    }
                ],
                "description": "Specifies the motion path the element gets positioned at.",
                "restrictions": [
                    "url",
                    "shape",
                    "geometry-box",
                    "enum"
                ]
            },
            {
                name: "motion-rotation",
                browsers: [
                    "C46",
                    "O33"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "Indicates that the object is rotated by the angle of the direction of the motion path."
                    },
                    {
                        name: "reverse",
                        "description": "Indicates that the object is rotated by the angle of the direction of the motion path plus 180 degrees."
                    }
                ],
                "description": "Defines the direction of the element while positioning along the motion path.",
                "restrictions": [
                    "angle"
                ]
            },
            {
                name: "-moz-animation",
                browsers: [
                    "FF9"
                ],
                values: [
                    {
                        name: "alternate"
                    },
                    {
                        name: "alternate-reverse"
                    },
                    {
                        name: "backwards"
                    },
                    {
                        name: "both",
                        "description": "Both forwards and backwards fill modes are applied."
                    },
                    {
                        name: "forwards"
                    },
                    {
                        name: "infinite",
                        "description": "Causes the animation to repeat forever."
                    },
                    {
                        name: "none",
                        "description": "No animation is performed"
                    },
                    {
                        name: "normal",
                        "description": "Normal playback."
                    },
                    {
                        name: "reverse",
                        "description": "All iterations of the animation are played in the reverse direction from the way they were specified."
                    }
                ],
                "description": "Shorthand property combines six of the animation properties into a single property.",
                "restrictions": [
                    "time",
                    "enum",
                    "timing-function",
                    "identifier",
                    "number"
                ]
            },
            {
                name: "-moz-animation-delay",
                browsers: [
                    "FF9"
                ],
                "description": "Defines when the animation will start.",
                "restrictions": [
                    "time"
                ]
            },
            {
                name: "-moz-animation-direction",
                browsers: [
                    "FF9"
                ],
                values: [
                    {
                        name: "alternate"
                    },
                    {
                        name: "alternate-reverse"
                    },
                    {
                        name: "normal",
                        "description": "Normal playback."
                    },
                    {
                        name: "reverse",
                        "description": "All iterations of the animation are played in the reverse direction from the way they were specified."
                    }
                ],
                "description": "Defines whether or not the animation should play in reverse on alternate cycles.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-moz-animation-duration",
                browsers: [
                    "FF9"
                ],
                "description": "Defines the length of time that an animation takes to complete one cycle.",
                "restrictions": [
                    "time"
                ]
            },
            {
                name: "-moz-animation-iteration-count",
                browsers: [
                    "FF9"
                ],
                values: [
                    {
                        name: "infinite",
                        "description": "Causes the animation to repeat forever."
                    }
                ],
                "description": "Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.",
                "restrictions": [
                    "number",
                    "enum"
                ]
            },
            {
                name: "-moz-animation-name",
                browsers: [
                    "FF9"
                ],
                values: [
                    {
                        name: "none",
                        "description": "No animation is performed"
                    }
                ],
                "description": "Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.",
                "restrictions": [
                    "identifier",
                    "enum"
                ]
            },
            {
                name: "-moz-animation-play-state",
                browsers: [
                    "FF9"
                ],
                values: [
                    {
                        name: "paused"
                    },
                    {
                        name: "running"
                    }
                ],
                "description": "Defines whether the animation is running or paused.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-moz-animation-timing-function",
                browsers: [
                    "FF9"
                ],
                "description": "Describes how the animation will progress over one cycle of its duration. See the 'transition-timing-function'.",
                "restrictions": [
                    "timing-function"
                ]
            },
            {
                name: "-moz-appearance",
                browsers: [
                    "FF1"
                ],
                values: [
                    {
                        name: "button"
                    },
                    {
                        name: "button-arrow-down"
                    },
                    {
                        name: "button-arrow-next"
                    },
                    {
                        name: "button-arrow-previous"
                    },
                    {
                        name: "button-arrow-up"
                    },
                    {
                        name: "button-bevel"
                    },
                    {
                        name: "checkbox"
                    },
                    {
                        name: "checkbox-container"
                    },
                    {
                        name: "checkbox-label"
                    },
                    {
                        name: "dialog"
                    },
                    {
                        name: "groupbox"
                    },
                    {
                        name: "listbox"
                    },
                    {
                        name: "menuarrow"
                    },
                    {
                        name: "menuimage"
                    },
                    {
                        name: "menuitem"
                    },
                    {
                        name: "menuitemtext"
                    },
                    {
                        name: "menulist"
                    },
                    {
                        name: "menulist-button"
                    },
                    {
                        name: "menulist-text"
                    },
                    {
                        name: "menulist-textfield"
                    },
                    {
                        name: "menupopup"
                    },
                    {
                        name: "menuradio"
                    },
                    {
                        name: "menuseparator"
                    },
                    {
                        name: "-moz-mac-unified-toolbar"
                    },
                    {
                        name: "-moz-win-borderless-glass"
                    },
                    {
                        name: "-moz-win-browsertabbar-toolbox"
                    },
                    {
                        name: "-moz-win-communications-toolbox"
                    },
                    {
                        name: "-moz-win-glass"
                    },
                    {
                        name: "-moz-win-media-toolbox"
                    },
                    {
                        name: "none"
                    },
                    {
                        name: "progressbar"
                    },
                    {
                        name: "progresschunk"
                    },
                    {
                        name: "radio"
                    },
                    {
                        name: "radio-container"
                    },
                    {
                        name: "radio-label"
                    },
                    {
                        name: "radiomenuitem"
                    },
                    {
                        name: "resizer"
                    },
                    {
                        name: "resizerpanel"
                    },
                    {
                        name: "scrollbarbutton-down"
                    },
                    {
                        name: "scrollbarbutton-left"
                    },
                    {
                        name: "scrollbarbutton-right"
                    },
                    {
                        name: "scrollbarbutton-up"
                    },
                    {
                        name: "scrollbar-small"
                    },
                    {
                        name: "scrollbartrack-horizontal"
                    },
                    {
                        name: "scrollbartrack-vertical"
                    },
                    {
                        name: "separator"
                    },
                    {
                        name: "spinner"
                    },
                    {
                        name: "spinner-downbutton"
                    },
                    {
                        name: "spinner-textfield"
                    },
                    {
                        name: "spinner-upbutton"
                    },
                    {
                        name: "statusbar"
                    },
                    {
                        name: "statusbarpanel"
                    },
                    {
                        name: "tab"
                    },
                    {
                        name: "tabpanels"
                    },
                    {
                        name: "tab-scroll-arrow-back"
                    },
                    {
                        name: "tab-scroll-arrow-forward"
                    },
                    {
                        name: "textfield"
                    },
                    {
                        name: "textfield-multiline"
                    },
                    {
                        name: "toolbar"
                    },
                    {
                        name: "toolbox"
                    },
                    {
                        name: "tooltip"
                    },
                    {
                        name: "treeheadercell"
                    },
                    {
                        name: "treeheadersortarrow"
                    },
                    {
                        name: "treeitem"
                    },
                    {
                        name: "treetwistyopen"
                    },
                    {
                        name: "treeview"
                    },
                    {
                        name: "treewisty"
                    },
                    {
                        name: "window"
                    }
                ],
                "status": "nonstandard",
                "syntax": "none | button | button-arrow-down | button-arrow-next | button-arrow-previous | button-arrow-up | button-bevel | button-focus | caret | checkbox | checkbox-container | checkbox-label | checkmenuitem | dualbutton | groupbox | listbox | listitem | menuarrow | menubar | menucheckbox | menuimage | menuitem | menuitemtext | menulist | menulist-button | menulist-text | menulist-textfield | menupopup | menuradio | menuseparator | meterbar | meterchunk | progressbar | progressbar-vertical | progresschunk | progresschunk-vertical | radio | radio-container | radio-label | radiomenuitem | range | range-thumb | resizer | resizerpanel | scale-horizontal | scalethumbend | scalethumb-horizontal | scalethumbstart | scalethumbtick | scalethumb-vertical | scale-vertical | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | separator | sheet | spinner | spinner-downbutton | spinner-textfield | spinner-upbutton | splitter | statusbar | statusbarpanel | tab | tabpanel | tabpanels | tab-scroll-arrow-back | tab-scroll-arrow-forward | textfield | textfield-multiline | toolbar | toolbarbutton | toolbarbutton-dropdown | toolbargripper | toolbox | tooltip | treeheader | treeheadercell | treeheadersortarrow | treeitem | treeline | treetwisty | treetwistyopen | treeview | -moz-mac-unified-toolbar | -moz-win-borderless-glass | -moz-win-browsertabbar-toolbox | -moz-win-communicationstext | -moz-win-communications-toolbox | -moz-win-exclude-glass | -moz-win-glass | -moz-win-mediatext | -moz-win-media-toolbox | -moz-window-button-box | -moz-window-button-box-maximized | -moz-window-button-close | -moz-window-button-maximize | -moz-window-button-minimize | -moz-window-button-restore | -moz-window-frame-bottom | -moz-window-frame-left | -moz-window-frame-right | -moz-window-titlebar | -moz-window-titlebar-maximized",
                "description": "Used in Gecko (Firefox) to display an element using a platform-native styling based on the operating system's theme.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-moz-backface-visibility",
                browsers: [
                    "FF10"
                ],
                values: [
                    {
                        name: "hidden"
                    },
                    {
                        name: "visible"
                    }
                ],
                "description": "Determines whether or not the 'back' side of a transformed element is visible when facing the viewer. With an identity transform, the front side of an element faces the viewer.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-moz-background-clip",
                browsers: [
                    "FF1-3.6"
                ],
                values: [
                    {
                        name: "padding"
                    }
                ],
                "description": "Determines the background painting area.",
                "restrictions": [
                    "box",
                    "enum"
                ]
            },
            {
                name: "-moz-background-inline-policy",
                browsers: [
                    "FF1"
                ],
                values: [
                    {
                        name: "bounding-box"
                    },
                    {
                        name: "continuous"
                    },
                    {
                        name: "each-box"
                    }
                ],
                "description": "In Gecko-based applications like Firefox, the -moz-background-inline-policy CSS property specifies how the background image of an inline element is determined when the content of the inline element wraps onto multiple lines. The choice of position has significant effects on repetition.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-moz-background-origin",
                browsers: [
                    "FF1"
                ],
                "description": "For elements rendered as a single box, specifies the background positioning area. For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages) specifies which boxes 'box-decoration-break' operates on to determine the background positioning area(s).",
                "restrictions": [
                    "box"
                ]
            },
            {
                name: "-moz-border-bottom-colors",
                browsers: [
                    "FF1"
                ],
                "status": "nonstandard",
                "syntax": "<color>+ | none",
                "description": "Sets a list of colors for the bottom border.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "-moz-border-image",
                browsers: [
                    "FF3.6"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."
                    },
                    {
                        name: "fill",
                        "description": "Causes the middle part of the border-image to be preserved."
                    },
                    {
                        name: "none"
                    },
                    {
                        name: "repeat"
                    },
                    {
                        name: "round",
                        "description": "The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."
                    },
                    {
                        name: "space",
                        "description": "The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."
                    },
                    {
                        name: "stretch",
                        "description": "The image is stretched to fill the area."
                    },
                    {
                        name: "url()"
                    }
                ],
                "description": "Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.",
                "restrictions": [
                    "length",
                    "percentage",
                    "number",
                    "url",
                    "enum"
                ]
            },
            {
                name: "-moz-border-left-colors",
                browsers: [
                    "FF1"
                ],
                "status": "nonstandard",
                "syntax": "<color>+ | none",
                "description": "Sets a list of colors for the bottom border.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "-moz-border-right-colors",
                browsers: [
                    "FF1"
                ],
                "status": "nonstandard",
                "syntax": "<color>+ | none",
                "description": "Sets a list of colors for the bottom border.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "-moz-border-top-colors",
                browsers: [
                    "FF1"
                ],
                "status": "nonstandard",
                "syntax": "<color>+ | none",
                "description": "Ske Firefox, -moz-border-bottom-colors sets a list of colors for the bottom border.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "-moz-box-align",
                browsers: [
                    "FF1"
                ],
                values: [
                    {
                        name: "baseline",
                        "description": "If this box orientation is inline-axis or horizontal, all children are placed with their baselines aligned, and extra space placed before or after as necessary. For block flows, the baseline of the first non-empty line box located within the element is used. For tables, the baseline of the first cell is used."
                    },
                    {
                        name: "center",
                        "description": "Any extra space is divided evenly, with half placed above the child and the other half placed after the child."
                    },
                    {
                        name: "end",
                        "description": "For normal direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element. For reverse direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element."
                    },
                    {
                        name: "start",
                        "description": "For normal direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element. For reverse direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element."
                    },
                    {
                        name: "stretch",
                        "description": "The height of each child is adjusted to that of the containing block."
                    }
                ],
                "description": "Specifies how a XUL box aligns its contents across (perpendicular to) the direction of its layout. The effect of this is only visible if there is extra space in the box.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-moz-box-direction",
                browsers: [
                    "FF1"
                ],
                values: [
                    {
                        name: "normal",
                        "description": "A box with a computed value of horizontal for box-orient displays its children from left to right. A box with a computed value of vertical displays its children from top to bottom."
                    },
                    {
                        name: "reverse",
                        "description": "A box with a computed value of horizontal for box-orient displays its children from right to left. A box with a computed value of vertical displays its children from bottom to top."
                    }
                ],
                "description": "Specifies whether a box lays out its contents normally (from the top or left edge), or in reverse (from the bottom or right edge).",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-moz-box-flex",
                browsers: [
                    "FF1"
                ],
                "description": "Specifies how a box grows to fill the box that contains it, in the direction of the containing box's layout.",
                "restrictions": [
                    "number"
                ]
            },
            {
                name: "-moz-box-flexgroup",
                browsers: [
                    "FF1"
                ],
                "description": "Flexible elements can be assigned to flex groups using the 'box-flex-group' property.",
                "restrictions": [
                    "integer"
                ]
            },
            {
                name: "-moz-box-ordinal-group",
                browsers: [
                    "FF1"
                ],
                "description": "Indicates the ordinal group the element belongs to. Elements with a lower ordinal group are displayed before those with a higher ordinal group.",
                "restrictions": [
                    "integer"
                ]
            },
            {
                name: "-moz-box-orient",
                browsers: [
                    "FF1"
                ],
                values: [
                    {
                        name: "block-axis"
                    },
                    {
                        name: "horizontal",
                        "description": "The box displays its children from left to right in a horizontal line."
                    },
                    {
                        name: "inline-axis"
                    },
                    {
                        name: "vertical",
                        "description": "The box displays its children from stacked from top to bottom vertically."
                    }
                ],
                "description": "In Mozilla applications, -moz-box-orient specifies whether a box lays out its contents horizontally or vertically.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-moz-box-pack",
                browsers: [
                    "FF1"
                ],
                values: [
                    {
                        name: "center",
                        "description": "The extra space is divided evenly, with half placed before the first child and the other half placed after the last child."
                    },
                    {
                        name: "end",
                        "description": "For normal direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child. For reverse direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child."
                    },
                    {
                        name: "justify",
                        "description": "The space is divided evenly in-between each child, with none of the extra space placed before the first child or after the last child. If there is only one child, treat the pack value as if it were start."
                    },
                    {
                        name: "start",
                        "description": "For normal direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child. For reverse direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child."
                    }
                ],
                "description": "Specifies how a box packs its contents in the direction of its layout. The effect of this is only visible if there is extra space in the box.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-moz-box-sizing",
                browsers: [
                    "FF1"
                ],
                values: [
                    {
                        name: "border-box"
                    },
                    {
                        name: "content-box"
                    },
                    {
                        name: "padding-box"
                    }
                ],
                "description": "Box Model addition in CSS3.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-moz-column-count",
                browsers: [
                    "FF3.5"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "Determines the number of columns by the 'column-width' property and the element width."
                    }
                ],
                "description": "Describes the optimal number of columns into which the content of the element will be flowed.",
                "restrictions": [
                    "integer"
                ]
            },
            {
                name: "-moz-column-gap",
                browsers: [
                    "FF3.5"
                ],
                values: [
                    {
                        name: "normal",
                        "description": "User agent specific and typically equivalent to 1em."
                    }
                ],
                "description": "Sets the gap between columns. If there is a column rule between columns, it will appear in the middle of the gap.",
                "restrictions": [
                    "length"
                ]
            },
            {
                name: "-moz-column-rule",
                browsers: [
                    "FF3.5"
                ],
                "description": "Shorthand for setting 'column-rule-width', 'column-rule-style', and 'column-rule-color' at the same place in the style sheet. Omitted values are set to their initial values.",
                "restrictions": [
                    "length",
                    "line-width",
                    "line-style",
                    "color"
                ]
            },
            {
                name: "-moz-column-rule-color",
                browsers: [
                    "FF3.5"
                ],
                "description": "Sets the color of the column rule",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "-moz-column-rule-style",
                browsers: [
                    "FF3.5"
                ],
                "description": "Sets the style of the rule between columns of an element.",
                "restrictions": [
                    "line-style"
                ]
            },
            {
                name: "-moz-column-rule-width",
                browsers: [
                    "FF3.5"
                ],
                "description": "Sets the width of the rule between columns. Negative values are not allowed.",
                "restrictions": [
                    "length",
                    "line-width"
                ]
            },
            {
                name: "-moz-columns",
                browsers: [
                    "FF9"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "The width depends on the values of other properties."
                    }
                ],
                "description": "A shorthand property which sets both 'column-width' and 'column-count'.",
                "restrictions": [
                    "length",
                    "integer"
                ]
            },
            {
                name: "-moz-column-width",
                browsers: [
                    "FF3.5"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "The width depends on the values of other properties."
                    }
                ],
                "description": "This property describes the width of columns in multicol elements.",
                "restrictions": [
                    "length"
                ]
            },
            {
                name: "-moz-font-feature-settings",
                browsers: [
                    "FF4"
                ],
                values: [
                    {
                        name: "\"c2cs\""
                    },
                    {
                        name: "\"dlig\""
                    },
                    {
                        name: "\"kern\""
                    },
                    {
                        name: "\"liga\""
                    },
                    {
                        name: "\"lnum\""
                    },
                    {
                        name: "\"onum\""
                    },
                    {
                        name: "\"smcp\""
                    },
                    {
                        name: "\"swsh\""
                    },
                    {
                        name: "\"tnum\""
                    },
                    {
                        name: "normal",
                        "description": "No change in glyph substitution or positioning occurs."
                    },
                    {
                        name: "off",
                        browsers: [
                            "FF4"
                        ]
                    },
                    {
                        name: "on",
                        browsers: [
                            "FF4"
                        ]
                    }
                ],
                "description": "Provides low-level control over OpenType font features. It is intended as a way of providing access to font features that are not widely used but are needed for a particular use case.",
                "restrictions": [
                    "string",
                    "integer"
                ]
            },
            {
                name: "-moz-hyphens",
                browsers: [
                    "FF9"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."
                    },
                    {
                        name: "manual"
                    },
                    {
                        name: "none",
                        "description": "Words are not broken at line breaks, even if characters inside the word suggest line break points."
                    }
                ],
                "description": "Controls whether hyphenation is allowed to create more break opportunities within a line of text.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-moz-perspective",
                browsers: [
                    "FF10"
                ],
                values: [
                    {
                        name: "none",
                        "description": "No perspective transform is applied."
                    }
                ],
                "description": "Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.",
                "restrictions": [
                    "length"
                ]
            },
            {
                name: "-moz-perspective-origin",
                browsers: [
                    "FF10"
                ],
                "description": "Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.",
                "restrictions": [
                    "position",
                    "percentage",
                    "length"
                ]
            },
            {
                name: "-moz-text-align-last",
                browsers: [
                    "FF12"
                ],
                values: [
                    {
                        name: "auto"
                    },
                    {
                        name: "center",
                        "description": "The inline contents are centered within the line box."
                    },
                    {
                        name: "justify",
                        "description": "The text is justified according to the method specified by the 'text-justify' property."
                    },
                    {
                        name: "left",
                        "description": "The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."
                    },
                    {
                        name: "right",
                        "description": "The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."
                    }
                ],
                "description": "Describes how the last line of a block or a line right before a forced line break is aligned when 'text-align' is set to 'justify'.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-moz-text-decoration-color",
                browsers: [
                    "FF6"
                ],
                "description": "Specifies the color of text decoration (underlines overlines, and line-throughs) set on the element with text-decoration-line.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "-moz-text-decoration-line",
                browsers: [
                    "FF6"
                ],
                values: [
                    {
                        name: "line-through"
                    },
                    {
                        name: "none",
                        "description": "Neither produces nor inhibits text decoration."
                    },
                    {
                        name: "overline"
                    },
                    {
                        name: "underline"
                    }
                ],
                "description": "Specifies what line decorations, if any, are added to the element.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-moz-text-decoration-style",
                browsers: [
                    "FF6"
                ],
                values: [
                    {
                        name: "dashed"
                    },
                    {
                        name: "dotted"
                    },
                    {
                        name: "double"
                    },
                    {
                        name: "none",
                        "description": "Produces no line."
                    },
                    {
                        name: "solid"
                    },
                    {
                        name: "wavy"
                    }
                ],
                "description": "Specifies the line style for underline, line-through and overline text decoration.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-moz-text-size-adjust",
                browsers: [
                    "FF"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "Renderers must use the default size adjustment when displaying on a small device."
                    },
                    {
                        name: "none",
                        "description": "Renderers must not do size adjustment when displaying on a small device."
                    }
                ],
                "description": "Specifies a size adjustment for displaying text content in mobile browsers.",
                "restrictions": [
                    "enum",
                    "percentage"
                ]
            },
            {
                name: "-moz-transform",
                browsers: [
                    "FF3.5"
                ],
                values: [
                    {
                        name: "matrix()"
                    },
                    {
                        name: "matrix3d()"
                    },
                    {
                        name: "none"
                    },
                    {
                        name: "perspective"
                    },
                    {
                        name: "rotate()"
                    },
                    {
                        name: "rotate3d()"
                    },
                    {
                        name: "rotateX('angle')"
                    },
                    {
                        name: "rotateY('angle')"
                    },
                    {
                        name: "rotateZ('angle')"
                    },
                    {
                        name: "scale()"
                    },
                    {
                        name: "scale3d()"
                    },
                    {
                        name: "scaleX()"
                    },
                    {
                        name: "scaleY()"
                    },
                    {
                        name: "scaleZ()"
                    },
                    {
                        name: "skew()"
                    },
                    {
                        name: "skewX()"
                    },
                    {
                        name: "skewY()"
                    },
                    {
                        name: "translate()"
                    },
                    {
                        name: "translate3d()"
                    },
                    {
                        name: "translateX()"
                    },
                    {
                        name: "translateY()"
                    },
                    {
                        name: "translateZ()"
                    }
                ],
                "description": "A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-moz-transform-origin",
                browsers: [
                    "FF3.5"
                ],
                "description": "Establishes the origin of transformation for an element.",
                "restrictions": [
                    "position",
                    "length",
                    "percentage"
                ]
            },
            {
                name: "-moz-transition",
                browsers: [
                    "FF4"
                ],
                values: [
                    {
                        name: "all",
                        "description": "Every property that is able to undergo a transition will do so."
                    },
                    {
                        name: "none",
                        "description": "No property will transition."
                    }
                ],
                "description": "Shorthand property combines four of the transition properties into a single property.",
                "restrictions": [
                    "time",
                    "property",
                    "timing-function",
                    "enum"
                ]
            },
            {
                name: "-moz-transition-delay",
                browsers: [
                    "FF4"
                ],
                "description": "Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.",
                "restrictions": [
                    "time"
                ]
            },
            {
                name: "-moz-transition-duration",
                browsers: [
                    "FF4"
                ],
                "description": "Specifies how long the transition from the old value to the new value should take.",
                "restrictions": [
                    "time"
                ]
            },
            {
                name: "-moz-transition-property",
                browsers: [
                    "FF4"
                ],
                values: [
                    {
                        name: "all",
                        "description": "Every property that is able to undergo a transition will do so."
                    },
                    {
                        name: "none",
                        "description": "No property will transition."
                    }
                ],
                "description": "Specifies the name of the CSS property to which the transition is applied.",
                "restrictions": [
                    "property"
                ]
            },
            {
                name: "-moz-transition-timing-function",
                browsers: [
                    "FF4"
                ],
                "description": "Describes how the intermediate values used during a transition will be calculated.",
                "restrictions": [
                    "timing-function"
                ]
            },
            {
                name: "-moz-user-focus",
                browsers: [
                    "FF"
                ],
                values: [
                    {
                        name: "ignore"
                    },
                    {
                        name: "normal"
                    }
                ],
                "status": "nonstandard",
                "syntax": "ignore | normal | select-after | select-before | select-menu | select-same | select-all | none",
                "description": "Used to indicate whether the element can have focus."
            },
            {
                name: "-moz-user-select",
                browsers: [
                    "FF1.5"
                ],
                values: [
                    {
                        name: "all"
                    },
                    {
                        name: "element"
                    },
                    {
                        name: "elements"
                    },
                    {
                        name: "-moz-all"
                    },
                    {
                        name: "-moz-none"
                    },
                    {
                        name: "none"
                    },
                    {
                        name: "text"
                    },
                    {
                        name: "toggle"
                    }
                ],
                "description": "Controls the appearance of selection.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-accelerator",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "false"
                    },
                    {
                        name: "true"
                    }
                ],
                "status": "nonstandard",
                "syntax": "false | true",
                "description": "IE only. Has the ability to turn off its system underlines for accelerator keys until the ALT key is pressed",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-behavior",
                browsers: [
                    "IE8"
                ],
                "description": "IE only. Used to extend behaviors of the browser",
                "restrictions": [
                    "url"
                ]
            },
            {
                name: "-ms-block-progression",
                browsers: [
                    "IE8"
                ],
                values: [
                    {
                        name: "bt"
                    },
                    {
                        name: "lr"
                    },
                    {
                        name: "rl"
                    },
                    {
                        name: "tb"
                    }
                ],
                "status": "nonstandard",
                "syntax": "tb | rl | bt | lr",
                "description": "Sets the block-progression value and the flow orientation",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-content-zoom-chaining",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "chained",
                        "description": "The nearest zoomable parent element begins zooming when the user hits a zoom limit during a manipulation. No bounce effect is shown."
                    },
                    {
                        name: "none",
                        "description": "A bounce effect is shown when the user hits a zoom limit during a manipulation."
                    }
                ],
                "status": "nonstandard",
                "syntax": "none | chained",
                "description": "Specifies the zoom behavior that occurs when a user hits the zoom limit during a manipulation."
            },
            {
                name: "-ms-content-zooming",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "none",
                        "description": "The element is not zoomable."
                    },
                    {
                        name: "zoom"
                    }
                ],
                "status": "nonstandard",
                "syntax": "none | zoom",
                "description": "Specifies whether zooming is enabled.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-content-zoom-limit",
                browsers: [
                    "E",
                    "IE10"
                ],
                "status": "nonstandard",
                "syntax": "<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>",
                "description": "Shorthand property for the -ms-content-zoom-limit-min and -ms-content-zoom-limit-max properties.",
                "restrictions": [
                    "percentage"
                ]
            },
            {
                name: "-ms-content-zoom-limit-max",
                browsers: [
                    "E",
                    "IE10"
                ],
                "status": "nonstandard",
                "syntax": "<percentage>",
                "description": "Specifies the maximum zoom factor.",
                "restrictions": [
                    "percentage"
                ]
            },
            {
                name: "-ms-content-zoom-limit-min",
                browsers: [
                    "E",
                    "IE10"
                ],
                "status": "nonstandard",
                "syntax": "<percentage>",
                "description": "Specifies the minimum zoom factor.",
                "restrictions": [
                    "percentage"
                ]
            },
            {
                name: "-ms-content-zoom-snap",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "mandatory",
                        "description": "Indicates that the motion of the content after the contact is picked up is always adjusted so that it lands on a snap-point."
                    },
                    {
                        name: "none",
                        "description": "Indicates that zooming is unaffected by any defined snap-points."
                    },
                    {
                        name: "proximity",
                        "description": "Indicates that the motion of the content after the contact is picked up may be adjusted if the content would normally stop \"close enough\" to a snap-point."
                    },
                    {
                        name: "snapInterval(100%, 100%)",
                        "description": "Specifies where the snap-points will be placed."
                    },
                    {
                        name: "snapList()",
                        "description": "Specifies the position of individual snap-points as a comma-separated list of zoom factors."
                    }
                ],
                "status": "nonstandard",
                "syntax": "<'-ms-content-zoom-snap-type'> || <'-ms-content-zoom-snap-points'>",
                "description": "Shorthand property for the -ms-content-zoom-snap-type and -ms-content-zoom-snap-points properties."
            },
            {
                name: "-ms-content-zoom-snap-points",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "snapInterval(100%, 100%)",
                        "description": "Specifies where the snap-points will be placed."
                    },
                    {
                        name: "snapList()",
                        "description": "Specifies the position of individual snap-points as a comma-separated list of zoom factors."
                    }
                ],
                "status": "nonstandard",
                "syntax": "snapInterval( <percentage>, <percentage> ) | snapList( <percentage># )",
                "description": "Defines where zoom snap-points are located."
            },
            {
                name: "-ms-content-zoom-snap-type",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "mandatory",
                        "description": "Indicates that the motion of the content after the contact is picked up is always adjusted so that it lands on a snap-point."
                    },
                    {
                        name: "none",
                        "description": "Indicates that zooming is unaffected by any defined snap-points."
                    },
                    {
                        name: "proximity",
                        "description": "Indicates that the motion of the content after the contact is picked up may be adjusted if the content would normally stop \"close enough\" to a snap-point."
                    }
                ],
                "status": "nonstandard",
                "syntax": "none | proximity | mandatory",
                "description": "Specifies how zooming is affected by defined snap-points.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-filter",
                browsers: [
                    "IE8-9"
                ],
                "status": "nonstandard",
                "syntax": "<string>",
                "description": "IE only. Used to produce visual effects.",
                "restrictions": [
                    "string"
                ]
            },
            {
                name: "-ms-flex",
                browsers: [
                    "IE10"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "Retrieves the value of the main size property as the used 'flex-basis'."
                    },
                    {
                        name: "none",
                        "description": "Expands to '0 0 auto'."
                    }
                ],
                "description": "specifies the parameters of a flexible length: the positive and negative flexibility, and the preferred size.",
                "restrictions": [
                    "length",
                    "number",
                    "percentage"
                ]
            },
            {
                name: "-ms-flex-align",
                browsers: [
                    "IE10"
                ],
                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: "center",
                        "description": "The flex item’s margin box is centered in the cross axis within the line."
                    },
                    {
                        name: "end",
                        "description": "The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."
                    },
                    {
                        name: "start",
                        "description": "The cross-start margin edge of the flexbox item is placed flush with the cross-start edge of the line."
                    },
                    {
                        name: "stretch",
                        "description": "If the cross size property of the flexbox item is anything other than 'auto', this value is identical to 'start'."
                    }
                ],
                "description": "Aligns flex items along the cross axis of the current line of the flex container.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-flex-direction",
                browsers: [
                    "IE10"
                ],
                values: [
                    {
                        name: "column",
                        "description": "The flex container’s main axis has the same orientation as the block axis of the current writing mode."
                    },
                    {
                        name: "column-reverse"
                    },
                    {
                        name: "row",
                        "description": "The flex container’s main axis has the same orientation as the inline axis of the current writing mode."
                    },
                    {
                        name: "row-reverse"
                    }
                ],
                "description": "Specifies how flex items are placed in the flex container, by setting the direction of the flex container’s main axis.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-flex-flow",
                browsers: [
                    "IE10"
                ],
                values: [
                    {
                        name: "column",
                        "description": "The flex container’s main axis has the same orientation as the block axis of the current writing mode."
                    },
                    {
                        name: "column-reverse"
                    },
                    {
                        name: "nowrap",
                        "description": "The flex container is single-line."
                    },
                    {
                        name: "row",
                        "description": "The flex container’s main axis has the same orientation as the inline axis of the current writing mode."
                    },
                    {
                        name: "wrap",
                        "description": "The flexbox is multi-line."
                    },
                    {
                        name: "wrap-reverse"
                    }
                ],
                "description": "Specifies how flexbox items are placed in the flexbox.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-flex-item-align",
                browsers: [
                    "IE10"
                ],
                values: [
                    {
                        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: "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: "center",
                        "description": "The flex item’s margin box is centered in the cross axis within the line."
                    },
                    {
                        name: "end",
                        "description": "The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."
                    },
                    {
                        name: "start",
                        "description": "The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."
                    },
                    {
                        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."
                    }
                ],
                "description": "Allows the default alignment along the cross axis to be overridden for individual flex items.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-flex-line-pack",
                browsers: [
                    "IE10"
                ],
                values: [
                    {
                        name: "center",
                        "description": "Lines are packed toward the center of the flex container."
                    },
                    {
                        name: "distribute",
                        "description": "Lines are evenly distributed in the flex container, with half-size spaces on either end."
                    },
                    {
                        name: "end",
                        "description": "Lines are packed toward the end of the flex container."
                    },
                    {
                        name: "justify",
                        "description": "Lines are evenly distributed in the flex container."
                    },
                    {
                        name: "start",
                        "description": "Lines are packed toward the start of the flex container."
                    },
                    {
                        name: "stretch",
                        "description": "Lines stretch to take up the remaining space."
                    }
                ],
                "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.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-flex-order",
                browsers: [
                    "IE10"
                ],
                "description": "Controls the order in which children of a flex container appear within the flex container, by assigning them to ordinal groups.",
                "restrictions": [
                    "integer"
                ]
            },
            {
                name: "-ms-flex-pack",
                browsers: [
                    "IE10"
                ],
                values: [
                    {
                        name: "center",
                        "description": "Flex items are packed toward the center of the line."
                    },
                    {
                        name: "distribute",
                        "description": "Flex items are evenly distributed in the line, with half-size spaces on either end."
                    },
                    {
                        name: "end",
                        "description": "Flex items are packed toward the end of the line."
                    },
                    {
                        name: "justify",
                        "description": "Flex items are evenly distributed in the line."
                    },
                    {
                        name: "start",
                        "description": "Flex items are packed toward the start of the line."
                    }
                ],
                "description": "Aligns flex items along the main axis of the current line of the flex container.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-flex-wrap",
                browsers: [
                    "IE10"
                ],
                values: [
                    {
                        name: "nowrap",
                        "description": "The flex container is single-line."
                    },
                    {
                        name: "wrap",
                        "description": "The flexbox is multi-line."
                    },
                    {
                        name: "wrap-reverse"
                    }
                ],
                "description": "Controls whether the flex container is single-line or multi-line, and the direction of the cross-axis, which determines the direction new lines are stacked in.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-flow-from",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "none",
                        "description": "The block container is not a CSS Region."
                    }
                ],
                "status": "nonstandard",
                "syntax": "[ none | <custom-ident> ]#",
                "description": "Makes a block container a region and associates it with a named flow.",
                "restrictions": [
                    "identifier"
                ]
            },
            {
                name: "-ms-flow-into",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "none",
                        "description": "The element is not moved to a named flow and normal CSS processing takes place."
                    }
                ],
                "status": "nonstandard",
                "syntax": "[ none | <custom-ident> ]#",
                "description": "Places an element or its contents into a named flow.",
                "restrictions": [
                    "identifier"
                ]
            },
            {
                name: "-ms-grid-column",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "auto"
                    },
                    {
                        name: "end"
                    },
                    {
                        name: "start"
                    }
                ],
                "description": "Used to place grid items and explicitly defined grid cells in the Grid.",
                "restrictions": [
                    "integer",
                    "string",
                    "enum"
                ]
            },
            {
                name: "-ms-grid-column-align",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "center",
                        "description": "Places the center of the Grid Item's margin box at the center of the Grid Item's column."
                    },
                    {
                        name: "end",
                        "description": "Aligns the end edge of the Grid Item's margin box to the end edge of the Grid Item's column."
                    },
                    {
                        name: "start",
                        "description": "Aligns the starting edge of the Grid Item's margin box to the starting edge of the Grid Item's column."
                    },
                    {
                        name: "stretch",
                        "description": "Ensures that the Grid Item's margin box is equal to the size of the Grid Item's column."
                    }
                ],
                "description": "Aligns the columns in a grid.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-grid-columns",
                browsers: [
                    "E",
                    "IE10"
                ],
                "description": "Lays out the columns of the grid."
            },
            {
                name: "-ms-grid-column-span",
                browsers: [
                    "E",
                    "IE10"
                ],
                "description": "Specifies the number of columns to span.",
                "restrictions": [
                    "integer"
                ]
            },
            {
                name: "-ms-grid-layer",
                browsers: [
                    "E",
                    "IE10"
                ],
                "description": "Grid-layer is similar in concept to z-index, but avoids overloading the meaning of the z-index property, which is applicable only to positioned elements.",
                "restrictions": [
                    "integer"
                ]
            },
            {
                name: "-ms-grid-row",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "auto"
                    },
                    {
                        name: "end"
                    },
                    {
                        name: "start"
                    }
                ],
                "description": "grid-row is used to place grid items and explicitly defined grid cells in the Grid.",
                "restrictions": [
                    "integer",
                    "string",
                    "enum"
                ]
            },
            {
                name: "-ms-grid-row-align",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "center",
                        "description": "Places the center of the Grid Item's margin box at the center of the Grid Item's row."
                    },
                    {
                        name: "end",
                        "description": "Aligns the end edge of the Grid Item's margin box to the end edge of the Grid Item's row."
                    },
                    {
                        name: "start",
                        "description": "Aligns the starting edge of the Grid Item's margin box to the starting edge of the Grid Item's row."
                    },
                    {
                        name: "stretch",
                        "description": "Ensures that the Grid Item's margin box is equal to the size of the Grid Item's row."
                    }
                ],
                "description": "Aligns the rows in a grid.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-grid-rows",
                browsers: [
                    "E",
                    "IE10"
                ],
                "description": "Lays out the columns of the grid."
            },
            {
                name: "-ms-grid-row-span",
                browsers: [
                    "E",
                    "IE10"
                ],
                "description": "Specifies the number of rows to span.",
                "restrictions": [
                    "integer"
                ]
            },
            {
                name: "-ms-high-contrast-adjust",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "Properties will be adjusted as applicable."
                    },
                    {
                        name: "none",
                        "description": "No adjustments will be applied."
                    }
                ],
                "status": "nonstandard",
                "syntax": "auto | none",
                "description": "Specifies if properties should be adjusted in high contrast mode.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-hyphenate-limit-chars",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "The user agent chooses a value that adapts to the current layout."
                    }
                ],
                "status": "nonstandard",
                "syntax": "auto | <integer>{1,3}",
                "description": "Specifies the minimum number of characters in a hyphenated word.",
                "restrictions": [
                    "integer"
                ]
            },
            {
                name: "-ms-hyphenate-limit-lines",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "no-limit"
                    }
                ],
                "status": "nonstandard",
                "syntax": "no-limit | <integer>",
                "description": "Indicates the maximum number of successive hyphenated lines in an element.",
                "restrictions": [
                    "integer"
                ]
            },
            {
                name: "-ms-hyphenate-limit-zone",
                browsers: [
                    "E",
                    "IE10"
                ],
                "status": "nonstandard",
                "syntax": "<percentage> | <length>",
                "description": "Specifies the maximum amount of unfilled space (before justification) that may be left in the line box before hyphenation is triggered to pull part of a word from the next line back up into the current line.",
                "restrictions": [
                    "percentage",
                    "length"
                ]
            },
            {
                name: "-ms-hyphens",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."
                    },
                    {
                        name: "manual"
                    },
                    {
                        name: "none",
                        "description": "Words are not broken at line breaks, even if characters inside the word suggest line break points."
                    }
                ],
                "description": "Controls whether hyphenation is allowed to create more break opportunities within a line of text.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-ime-mode",
                browsers: [
                    "IE10"
                ],
                values: [
                    {
                        name: "active"
                    },
                    {
                        name: "auto",
                        "description": "No change is made to the current input method editor state. This is the default."
                    },
                    {
                        name: "disabled"
                    },
                    {
                        name: "inactive"
                    },
                    {
                        name: "normal",
                        "description": "The IME state should be normal; this value can be used in a user style sheet to override the page setting."
                    }
                ],
                "description": "Controls the state of the input method editor for text fields.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-interpolation-mode",
                browsers: [
                    "IE7"
                ],
                values: [
                    {
                        name: "bicubic"
                    },
                    {
                        name: "nearest-neighbor"
                    }
                ],
                "description": "Gets or sets the interpolation (resampling) method used to stretch images.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-layout-grid",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "char",
                        "description": "Any of the range of character values available to the -ms-layout-grid-char property."
                    },
                    {
                        name: "line",
                        "description": "Any of the range of line values available to the -ms-layout-grid-line property."
                    },
                    {
                        name: "mode"
                    },
                    {
                        name: "type"
                    }
                ],
                "description": "Sets or retrieves the composite document grid properties that specify the layout of text characters."
            },
            {
                name: "-ms-layout-grid-char",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "Largest character in the font of the element is used to set the character grid."
                    },
                    {
                        name: "none",
                        "description": "Default. No character grid is set."
                    }
                ],
                "description": "Sets or retrieves the size of the character grid used for rendering the text content of an element.",
                "restrictions": [
                    "enum",
                    "length",
                    "percentage"
                ]
            },
            {
                name: "-ms-layout-grid-line",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "Largest character in the font of the element is used to set the character grid."
                    },
                    {
                        name: "none",
                        "description": "Default. No grid line is set."
                    }
                ],
                "description": "Sets or retrieves the gridline value used for rendering the text content of an element.",
                "restrictions": [
                    "length"
                ]
            },
            {
                name: "-ms-layout-grid-mode",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "both",
                        "description": "Default. Both the char and line grid modes are enabled. This setting is necessary to fully enable the layout grid on an element."
                    },
                    {
                        name: "char",
                        "description": "Only a character grid is used. This is recommended for use with block-level elements, such as a blockquote, where the line grid is intended to be disabled."
                    },
                    {
                        name: "line",
                        "description": "Only a line grid is used. This is recommended for use with inline elements, such as a span, to disable the horizontal grid on runs of text that act as a single entity in the grid layout."
                    },
                    {
                        name: "none",
                        "description": "No grid is used."
                    }
                ],
                "description": "Gets or sets whether the text layout grid uses two dimensions.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-layout-grid-type",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "fixed",
                        "description": "Grid used for monospaced layout. All noncursive characters are treated as equal; every character is centered within a single grid space by default."
                    },
                    {
                        name: "loose",
                        "description": "Default. Grid used for Japanese and Korean characters."
                    },
                    {
                        name: "strict",
                        "description": "Grid used for Chinese, as well as Japanese (Genko) and Korean characters. Only the ideographs, kanas, and wide characters are snapped to the grid."
                    }
                ],
                "description": "Sets or retrieves the type of grid used for rendering the text content of an element.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-line-break",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "The UA determines the set of line-breaking restrictions to use for CJK scripts, and it may vary the restrictions based on the length of the line; e.g., use a less restrictive set of line-break rules for short lines."
                    },
                    {
                        name: "keep-all",
                        "description": "Sequences of CJK characters can no longer break on implied break points. This option should only be used where the presence of word separator characters still creates line-breaking opportunities, as in Korean."
                    },
                    {
                        name: "newspaper",
                        "description": "Breaks CJK scripts using the least restrictive set of line-breaking rules. Typically used for short lines, such as in newspapers."
                    },
                    {
                        name: "normal",
                        "description": "Breaks CJK scripts using a normal set of line-breaking rules."
                    },
                    {
                        name: "strict",
                        "description": "Breaks CJK scripts using a more restrictive set of line-breaking rules than 'normal'."
                    }
                ],
                "description": "Specifies what set of line breaking restrictions are in effect within the element.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-overflow-style",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "No preference, UA should use the first scrolling method in the list that it supports."
                    },
                    {
                        name: "-ms-autohiding-scrollbar"
                    },
                    {
                        name: "none",
                        "description": "Indicates the element does not display scrollbars or panning indicators, even when its content overflows."
                    },
                    {
                        name: "scrollbar"
                    }
                ],
                "status": "nonstandard",
                "syntax": "auto | none | scrollbar | -ms-autohiding-scrollbar",
                "description": "Specify whether content is clipped when it overflows the element's content area.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-perspective",
                browsers: [
                    "IE10"
                ],
                values: [
                    {
                        name: "none",
                        "description": "No perspective transform is applied."
                    }
                ],
                "description": "Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.",
                "restrictions": [
                    "length"
                ]
            },
            {
                name: "-ms-perspective-origin",
                browsers: [
                    "IE10"
                ],
                "description": "Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.",
                "restrictions": [
                    "position",
                    "percentage",
                    "length"
                ]
            },
            {
                name: "-ms-perspective-origin-x",
                browsers: [
                    "IE10"
                ],
                "description": "Establishes the origin for the perspective property. It effectively sets the X  position at which the viewer appears to be looking at the children of the element.",
                "restrictions": [
                    "position",
                    "percentage",
                    "length"
                ]
            },
            {
                name: "-ms-perspective-origin-y",
                browsers: [
                    "IE10"
                ],
                "description": "Establishes the origin for the perspective property. It effectively sets the Y position at which the viewer appears to be looking at the children of the element.",
                "restrictions": [
                    "position",
                    "percentage",
                    "length"
                ]
            },
            {
                name: "-ms-progress-appearance",
                browsers: [
                    "IE10"
                ],
                values: [
                    {
                        name: "bar"
                    },
                    {
                        name: "ring"
                    }
                ],
                "description": "Gets or sets a value that specifies whether a progress control displays as a bar or a ring.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-scrollbar-3dlight-color",
                browsers: [
                    "IE5"
                ],
                "status": "nonstandard",
                "syntax": "<color>",
                "description": "Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "-ms-scrollbar-arrow-color",
                browsers: [
                    "IE5"
                ],
                "status": "nonstandard",
                "syntax": "<color>",
                "description": "Determines the color of the arrow elements of a scroll arrow.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "-ms-scrollbar-base-color",
                browsers: [
                    "IE5"
                ],
                "status": "nonstandard",
                "syntax": "<color>",
                "description": "Determines the color of the main elements of a scroll bar, which include the scroll box, track, and scroll arrows.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "-ms-scrollbar-darkshadow-color",
                browsers: [
                    "IE5"
                ],
                "status": "nonstandard",
                "syntax": "<color>",
                "description": "Determines the color of the gutter of a scroll bar.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "-ms-scrollbar-face-color",
                browsers: [
                    "IE5"
                ],
                "status": "nonstandard",
                "syntax": "<color>",
                "description": "Determines the color of the scroll box and scroll arrows of a scroll bar.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "-ms-scrollbar-highlight-color",
                browsers: [
                    "IE5"
                ],
                "status": "nonstandard",
                "syntax": "<color>",
                "description": "Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "-ms-scrollbar-shadow-color",
                browsers: [
                    "IE5"
                ],
                "status": "nonstandard",
                "syntax": "<color>",
                "description": "Determines the color of the bottom and right edges of the scroll box and scroll arrows of a scroll bar.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "-ms-scrollbar-track-color",
                browsers: [
                    "IE5"
                ],
                "status": "nonstandard",
                "syntax": "<color>",
                "description": "Determines the color of the track element of a scroll bar.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "-ms-scroll-chaining",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "chained"
                    },
                    {
                        name: "none"
                    }
                ],
                "status": "nonstandard",
                "syntax": "chained | none",
                "description": "Gets or sets a value that indicates the scrolling behavior that occurs when a user hits the content boundary during a manipulation.",
                "restrictions": [
                    "enum",
                    "length"
                ]
            },
            {
                name: "-ms-scroll-limit",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "auto"
                    }
                ],
                "status": "nonstandard",
                "syntax": "<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>",
                "description": "Gets or sets a shorthand value that sets values for the -ms-scroll-limit-x-min, -ms-scroll-limit-y-min, -ms-scroll-limit-x-max, and -ms-scroll-limit-y-max properties.",
                "restrictions": [
                    "length"
                ]
            },
            {
                name: "-ms-scroll-limit-x-max",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "auto"
                    }
                ],
                "status": "nonstandard",
                "syntax": "auto | <length>",
                "description": "Gets or sets a value that specifies the maximum value for the scrollLeft property.",
                "restrictions": [
                    "length"
                ]
            },
            {
                name: "-ms-scroll-limit-x-min",
                browsers: [
                    "E",
                    "IE10"
                ],
                "status": "nonstandard",
                "syntax": "<length>",
                "description": "Gets or sets a value that specifies the minimum value for the scrollLeft property.",
                "restrictions": [
                    "length"
                ]
            },
            {
                name: "-ms-scroll-limit-y-max",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "auto"
                    }
                ],
                "status": "nonstandard",
                "syntax": "auto | <length>",
                "description": "Gets or sets a value that specifies the maximum value for the scrollTop property.",
                "restrictions": [
                    "length"
                ]
            },
            {
                name: "-ms-scroll-limit-y-min",
                browsers: [
                    "E",
                    "IE10"
                ],
                "status": "nonstandard",
                "syntax": "<length>",
                "description": "Gets or sets a value that specifies the minimum value for the scrollTop property.",
                "restrictions": [
                    "length"
                ]
            },
            {
                name: "-ms-scroll-rails",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "none"
                    },
                    {
                        name: "railed"
                    }
                ],
                "status": "nonstandard",
                "syntax": "none | railed",
                "description": "Gets or sets a value that indicates whether or not small motions perpendicular to the primary axis of motion will result in either changes to both the scrollTop and scrollLeft properties or a change to the primary axis (for instance, either the scrollTop or scrollLeft properties will change, but not both).",
                "restrictions": [
                    "enum",
                    "length"
                ]
            },
            {
                name: "-ms-scroll-snap-points-x",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "snapInterval(100%, 100%)"
                    },
                    {
                        name: "snapList()"
                    }
                ],
                "status": "nonstandard",
                "syntax": "snapInterval( <length-percentage>, <length-percentage> ) | snapList( <length-percentage># )",
                "description": "Gets or sets a value that defines where snap-points will be located along the x-axis.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-scroll-snap-points-y",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "snapInterval(100%, 100%)"
                    },
                    {
                        name: "snapList()"
                    }
                ],
                "status": "nonstandard",
                "syntax": "snapInterval( <length-percentage>, <length-percentage> ) | snapList( <length-percentage># )",
                "description": "Gets or sets a value that defines where snap-points will be located along the y-axis.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-scroll-snap-type",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "none",
                        "description": "The visual viewport of this scroll container must ignore snap points, if any, when scrolled."
                    },
                    {
                        name: "mandatory",
                        "description": "The visual viewport of this scroll container is guaranteed to rest on a snap point when there are no active scrolling operations."
                    },
                    {
                        name: "proximity",
                        "description": "The visual viewport of this scroll container may come to rest on a snap point at the termination of a scroll at the discretion of the UA given the parameters of the scroll."
                    }
                ],
                "status": "nonstandard",
                "syntax": "none | proximity | mandatory",
                "description": "Gets or sets a value that defines what type of snap-point should be used for the current element. There are two type of snap-points, with the primary difference being whether or not the user is guaranteed to always stop on a snap-point.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-scroll-snap-x",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "mandatory"
                    },
                    {
                        name: "none"
                    },
                    {
                        name: "proximity"
                    },
                    {
                        name: "snapInterval(100%, 100%)"
                    },
                    {
                        name: "snapList()"
                    }
                ],
                "status": "nonstandard",
                "syntax": "<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>",
                "description": "Gets or sets a shorthand value that sets values for the -ms-scroll-snap-type and -ms-scroll-snap-points-x properties.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-scroll-snap-y",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "mandatory"
                    },
                    {
                        name: "none"
                    },
                    {
                        name: "proximity"
                    },
                    {
                        name: "snapInterval(100%, 100%)"
                    },
                    {
                        name: "snapList()"
                    }
                ],
                "status": "nonstandard",
                "syntax": "<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>",
                "description": "Gets or sets a shorthand value that sets values for the -ms-scroll-snap-type and -ms-scroll-snap-points-y properties.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-scroll-translation",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "none"
                    },
                    {
                        name: "vertical-to-horizontal"
                    }
                ],
                "status": "nonstandard",
                "syntax": "none | vertical-to-horizontal",
                "description": "Gets or sets a value that specifies whether vertical-to-horizontal scroll wheel translation occurs on the specified element.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-text-align-last",
                browsers: [
                    "E",
                    "IE8"
                ],
                values: [
                    {
                        name: "auto"
                    },
                    {
                        name: "center",
                        "description": "The inline contents are centered within the line box."
                    },
                    {
                        name: "justify",
                        "description": "The text is justified according to the method specified by the 'text-justify' property."
                    },
                    {
                        name: "left",
                        "description": "The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."
                    },
                    {
                        name: "right",
                        "description": "The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."
                    }
                ],
                "description": "Describes how the last line of a block or a line right before a forced line break is aligned when 'text-align' is set to 'justify'.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-text-autospace",
                browsers: [
                    "E",
                    "IE8"
                ],
                values: [
                    {
                        name: "ideograph-alpha"
                    },
                    {
                        name: "ideograph-numeric"
                    },
                    {
                        name: "ideograph-parenthesis"
                    },
                    {
                        name: "ideograph-space"
                    },
                    {
                        name: "none",
                        "description": "No extra space is created."
                    },
                    {
                        name: "punctuation"
                    }
                ],
                "status": "nonstandard",
                "syntax": "none | ideograph-alpha | ideograph-numeric | ideograph-parenthesis | ideograph-space",
                "description": "Determines whether or not a full-width punctuation mark character should be trimmed if it appears at the beginning of a line, so that its 'ink' lines up with the first glyph in the line above and below.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-text-combine-horizontal",
                browsers: [
                    "E",
                    "IE11"
                ],
                values: [
                    {
                        name: "all",
                        "description": "Attempt to typeset horizontally all consecutive characters within the box such that they take up the space of a single character within the vertical line box."
                    },
                    {
                        name: "digits"
                    },
                    {
                        name: "none",
                        "description": "No special processing."
                    }
                ],
                "description": "This property specifies the combination of multiple characters into the space of a single character.",
                "restrictions": [
                    "enum",
                    "integer"
                ]
            },
            {
                name: "-ms-text-justify",
                browsers: [
                    "E",
                    "IE8"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "The UA determines the justification algorithm to follow, based on a balance between performance and adequate presentation quality."
                    },
                    {
                        name: "distribute",
                        "description": "Justification primarily changes spacing both at word separators and at grapheme cluster boundaries in all scripts except those in the connected and cursive groups. This value is sometimes used in e.g. Japanese, often with the 'text-align-last' property."
                    },
                    {
                        name: "inter-cluster"
                    },
                    {
                        name: "inter-ideograph"
                    },
                    {
                        name: "inter-word"
                    },
                    {
                        name: "kashida"
                    }
                ],
                "description": "Selects the justification algorithm used when 'text-align' is set to 'justify'. The property applies to block containers, but the UA may (but is not required to) also support it on inline elements.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-text-kashida-space",
                browsers: [
                    "E",
                    "IE10"
                ],
                "description": "Sets or retrieves the ratio of kashida expansion to white space expansion when justifying lines of text in the object.",
                "restrictions": [
                    "percentage"
                ]
            },
            {
                name: "-ms-text-overflow",
                browsers: [
                    "IE10"
                ],
                values: [
                    {
                        name: "clip"
                    },
                    {
                        name: "ellipsis"
                    }
                ],
                "description": "Text can overflow for example when it is prevented from wrapping",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-text-size-adjust",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "Renderers must use the default size adjustment when displaying on a small device."
                    },
                    {
                        name: "none",
                        "description": "Renderers must not do size adjustment when displaying on a small device."
                    }
                ],
                "description": "Specifies a size adjustment for displaying text content in mobile browsers.",
                "restrictions": [
                    "enum",
                    "percentage"
                ]
            },
            {
                name: "-ms-text-underline-position",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "alphabetic",
                        "description": "The underline is aligned with the alphabetic baseline. In this case the underline is likely to cross some descenders."
                    },
                    {
                        name: "auto",
                        "description": "The user agent may use any algorithm to determine the underline's position. In horizontal line layout, the underline should be aligned as for alphabetic. In vertical line layout, if the language is set to Japanese or Korean, the underline should be aligned as for over."
                    },
                    {
                        name: "over"
                    },
                    {
                        name: "under"
                    }
                ],
                "description": "Sets the position of an underline specified on the same element: it does not affect underlines specified by ancestor elements.This property is typically used in vertical writing contexts such as in Japanese documents where it often desired to have the underline appear 'over' (to the right of) the affected run of text",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-touch-action",
                browsers: [
                    "IE10"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "The element is a passive element, with several exceptions."
                    },
                    {
                        name: "double-tap-zoom",
                        "description": "The element will zoom on double-tap."
                    },
                    {
                        name: "manipulation",
                        "description": "The element is a manipulation-causing element."
                    },
                    {
                        name: "none",
                        "description": "The element is a manipulation-blocking element."
                    },
                    {
                        name: "pan-x",
                        "description": "The element permits touch-driven panning on the horizontal axis. The touch pan is performed on the nearest ancestor with horizontally scrollable content."
                    },
                    {
                        name: "pan-y",
                        "description": "The element permits touch-driven panning on the vertical axis. The touch pan is performed on the nearest ancestor with vertically scrollable content."
                    },
                    {
                        name: "pinch-zoom",
                        "description": "The element permits pinch-zooming. The pinch-zoom is performed on the nearest ancestor with zoomable content."
                    }
                ],
                "description": "Gets or sets a value that indicates whether and how a given region can be manipulated by the user.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-touch-select",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "grippers"
                    },
                    {
                        name: "none",
                        "description": "Grippers are always off."
                    }
                ],
                "status": "nonstandard",
                "syntax": "grippers | none",
                "description": "Gets or sets a value that toggles the 'gripper' visual elements that enable touch text selection.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-transform",
                browsers: [
                    "IE9-9"
                ],
                values: [
                    {
                        name: "matrix()"
                    },
                    {
                        name: "matrix3d()"
                    },
                    {
                        name: "none"
                    },
                    {
                        name: "rotate()"
                    },
                    {
                        name: "rotate3d()"
                    },
                    {
                        name: "rotateX('angle')"
                    },
                    {
                        name: "rotateY('angle')"
                    },
                    {
                        name: "rotateZ('angle')"
                    },
                    {
                        name: "scale()"
                    },
                    {
                        name: "scale3d()"
                    },
                    {
                        name: "scaleX()"
                    },
                    {
                        name: "scaleY()"
                    },
                    {
                        name: "scaleZ()"
                    },
                    {
                        name: "skew()"
                    },
                    {
                        name: "skewX()"
                    },
                    {
                        name: "skewY()"
                    },
                    {
                        name: "translate()"
                    },
                    {
                        name: "translate3d()"
                    },
                    {
                        name: "translateX()"
                    },
                    {
                        name: "translateY()"
                    },
                    {
                        name: "translateZ()"
                    }
                ],
                "description": "A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-transform-origin",
                browsers: [
                    "IE9-9"
                ],
                "description": "Establishes the origin of transformation for an element.",
                "restrictions": [
                    "position",
                    "length",
                    "percentage"
                ]
            },
            {
                name: "-ms-transform-origin-x",
                browsers: [
                    "IE10"
                ],
                "description": "The x coordinate of the origin for transforms applied to an element with respect to its border box.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "-ms-transform-origin-y",
                browsers: [
                    "IE10"
                ],
                "description": "The y coordinate of the origin for transforms applied to an element with respect to its border box.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "-ms-transform-origin-z",
                browsers: [
                    "IE10"
                ],
                "description": "The z coordinate of the origin for transforms applied to an element with respect to its border box.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "-ms-user-select",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "element"
                    },
                    {
                        name: "none"
                    },
                    {
                        name: "text"
                    }
                ],
                "status": "nonstandard",
                "syntax": "none | element | text",
                "description": "Controls the appearance of selection.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-word-break",
                browsers: [
                    "IE8"
                ],
                values: [
                    {
                        name: "break-all"
                    },
                    {
                        name: "keep-all",
                        "description": "Block characters can no longer create implied break points."
                    },
                    {
                        name: "normal",
                        "description": "Breaks non-CJK scripts according to their own rules."
                    }
                ],
                "description": "Specifies line break opportunities for non-CJK scripts.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-word-wrap",
                browsers: [
                    "IE8"
                ],
                values: [
                    {
                        name: "break-word",
                        "description": "An unbreakable 'word' may be broken at an arbitrary point if there are no otherwise-acceptable break points in the line."
                    },
                    {
                        name: "normal",
                        "description": "Lines may break only at allowed break points."
                    }
                ],
                "description": "Specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-wrap-flow",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "For floats an exclusion is created, for all other elements an exclusion is not created."
                    },
                    {
                        name: "both",
                        "description": "Inline flow content can flow on all sides of the exclusion."
                    },
                    {
                        name: "clear"
                    },
                    {
                        name: "end",
                        "description": "Inline flow content can wrap on the end side of the exclusion area but must leave the area to the start edge of the exclusion area empty."
                    },
                    {
                        name: "maximum"
                    },
                    {
                        name: "minimum"
                    },
                    {
                        name: "start",
                        "description": "Inline flow content can wrap on the start edge of the exclusion area but must leave the area to end edge of the exclusion area empty."
                    }
                ],
                "status": "nonstandard",
                "syntax": "auto | both | start | end | maximum | clear",
                "description": "An element becomes an exclusion when its 'wrap-flow' property has a computed value other than 'auto'.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-wrap-margin",
                browsers: [
                    "E",
                    "IE10"
                ],
                "status": "nonstandard",
                "syntax": "<length>",
                "description": "Gets or sets a value that is used to offset the inner wrap shape from other shapes.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "-ms-wrap-through",
                browsers: [
                    "E",
                    "IE10"
                ],
                values: [
                    {
                        name: "none",
                        "description": "The exclusion element does not inherit its parent node's wrapping context. Its descendants are only subject to exclusion shapes defined inside the element."
                    },
                    {
                        name: "wrap",
                        "description": "The exclusion element inherits its parent node's wrapping context. Its descendant inline content wraps around exclusions defined outside the element."
                    }
                ],
                "status": "nonstandard",
                "syntax": "wrap | none",
                "description": "Specifies if an element inherits its parent wrapping context. In other words if it is subject to the exclusions defined outside the element.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-writing-mode",
                browsers: [
                    "IE8"
                ],
                values: [
                    {
                        name: "bt-lr"
                    },
                    {
                        name: "bt-rl"
                    },
                    {
                        name: "lr-bt"
                    },
                    {
                        name: "lr-tb"
                    },
                    {
                        name: "rl-bt"
                    },
                    {
                        name: "rl-tb"
                    },
                    {
                        name: "tb-lr"
                    },
                    {
                        name: "tb-rl"
                    }
                ],
                "description": "Shorthand property for both 'direction' and 'block-progression'.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-ms-zoom",
                browsers: [
                    "IE8"
                ],
                values: [
                    {
                        name: "normal"
                    }
                ],
                "description": "Sets or retrieves the magnification scale of the object.",
                "restrictions": [
                    "enum",
                    "integer",
                    "number",
                    "percentage"
                ]
            },
            {
                name: "-ms-zoom-animation",
                browsers: [
                    "IE10"
                ],
                values: [
                    {
                        name: "default"
                    },
                    {
                        name: "none"
                    }
                ],
                "description": "Gets or sets a value that indicates whether an animation is used when zooming.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "nav-down",
                browsers: [
                    "O9.5"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "The user agent automatically determines which element to navigate the focus to in response to directional navigational input."
                    },
                    {
                        name: "current"
                    },
                    {
                        name: "root"
                    }
                ],
                "description": "Provides an way to control directional focus navigation.",
                "restrictions": [
                    "enum",
                    "identifier",
                    "string"
                ]
            },
            {
                name: "nav-index",
                browsers: [
                    "O9.5"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "The element's sequential navigation order is assigned automatically by the user agent."
                    }
                ],
                "description": "Provides an input-method-neutral way of specifying the sequential navigation order (also known as 'tabbing order').",
                "restrictions": [
                    "number"
                ]
            },
            {
                name: "nav-left",
                browsers: [
                    "O9.5"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "The user agent automatically determines which element to navigate the focus to in response to directional navigational input."
                    },
                    {
                        name: "current"
                    },
                    {
                        name: "root"
                    }
                ],
                "description": "Provides an way to control directional focus navigation.",
                "restrictions": [
                    "enum",
                    "identifier",
                    "string"
                ]
            },
            {
                name: "nav-right",
                browsers: [
                    "O9.5"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "The user agent automatically determines which element to navigate the focus to in response to directional navigational input."
                    },
                    {
                        name: "current"
                    },
                    {
                        name: "root"
                    }
                ],
                "description": "Provides an way to control directional focus navigation.",
                "restrictions": [
                    "enum",
                    "identifier",
                    "string"
                ]
            },
            {
                name: "nav-up",
                browsers: [
                    "O9.5"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "The user agent automatically determines which element to navigate the focus to in response to directional navigational input."
                    },
                    {
                        name: "current"
                    },
                    {
                        name: "root"
                    }
                ],
                "description": "Provides an way to control directional focus navigation.",
                "restrictions": [
                    "enum",
                    "identifier",
                    "string"
                ]
            },
            {
                name: "negative",
                browsers: [
                    "FF33"
                ],
                "syntax": "<symbol> <symbol>?",
                "description": "@counter-style descriptor. Defines how to alter the representation when the counter value is negative.",
                "restrictions": [
                    "image",
                    "identifier",
                    "string"
                ]
            },
            {
                name: "-o-animation",
                browsers: [
                    "O12"
                ],
                values: [
                    {
                        name: "alternate"
                    },
                    {
                        name: "alternate-reverse"
                    },
                    {
                        name: "backwards"
                    },
                    {
                        name: "both",
                        "description": "Both forwards and backwards fill modes are applied."
                    },
                    {
                        name: "forwards"
                    },
                    {
                        name: "infinite",
                        "description": "Causes the animation to repeat forever."
                    },
                    {
                        name: "none",
                        "description": "No animation is performed"
                    },
                    {
                        name: "normal",
                        "description": "Normal playback."
                    },
                    {
                        name: "reverse",
                        "description": "All iterations of the animation are played in the reverse direction from the way they were specified."
                    }
                ],
                "description": "Shorthand property combines six of the animation properties into a single property.",
                "restrictions": [
                    "time",
                    "enum",
                    "timing-function",
                    "identifier",
                    "number"
                ]
            },
            {
                name: "-o-animation-delay",
                browsers: [
                    "O12"
                ],
                "description": "Defines when the animation will start.",
                "restrictions": [
                    "time"
                ]
            },
            {
                name: "-o-animation-direction",
                browsers: [
                    "O12"
                ],
                values: [
                    {
                        name: "alternate"
                    },
                    {
                        name: "alternate-reverse"
                    },
                    {
                        name: "normal",
                        "description": "Normal playback."
                    },
                    {
                        name: "reverse",
                        "description": "All iterations of the animation are played in the reverse direction from the way they were specified."
                    }
                ],
                "description": "Defines whether or not the animation should play in reverse on alternate cycles.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-o-animation-duration",
                browsers: [
                    "O12"
                ],
                "description": "Defines the length of time that an animation takes to complete one cycle.",
                "restrictions": [
                    "time"
                ]
            },
            {
                name: "-o-animation-fill-mode",
                browsers: [
                    "O12"
                ],
                values: [
                    {
                        name: "backwards"
                    },
                    {
                        name: "both",
                        "description": "Both forwards and backwards fill modes are applied."
                    },
                    {
                        name: "forwards"
                    },
                    {
                        name: "none",
                        "description": "There is no change to the property value between the time the animation is applied and the time the animation begins playing or after the animation completes."
                    }
                ],
                "description": "Defines what values are applied by the animation outside the time it is executing.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-o-animation-iteration-count",
                browsers: [
                    "O12"
                ],
                values: [
                    {
                        name: "infinite",
                        "description": "Causes the animation to repeat forever."
                    }
                ],
                "description": "Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.",
                "restrictions": [
                    "number",
                    "enum"
                ]
            },
            {
                name: "-o-animation-name",
                browsers: [
                    "O12"
                ],
                values: [
                    {
                        name: "none",
                        "description": "No animation is performed"
                    }
                ],
                "description": "Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.",
                "restrictions": [
                    "identifier",
                    "enum"
                ]
            },
            {
                name: "-o-animation-play-state",
                browsers: [
                    "O12"
                ],
                values: [
                    {
                        name: "paused"
                    },
                    {
                        name: "running"
                    }
                ],
                "description": "Defines whether the animation is running or paused.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-o-animation-timing-function",
                browsers: [
                    "O12"
                ],
                "description": "Describes how the animation will progress over one cycle of its duration. See the 'transition-timing-function'.",
                "restrictions": [
                    "timing-function"
                ]
            },
            {
                name: "object-fit",
                browsers: [
                    "E16",
                    "FF36",
                    "S10",
                    "C31",
                    "O19"
                ],
                values: [
                    {
                        name: "contain",
                        "description": "The replaced content is sized to maintain its aspect ratio while fitting within the element’s content box: its concrete object size is resolved as a contain constraint against the element's used width and height."
                    },
                    {
                        name: "cover",
                        "description": "The replaced content is sized to maintain its aspect ratio while filling the element's entire content box: its concrete object size is resolved as a cover constraint against the element’s used width and height."
                    },
                    {
                        name: "fill",
                        "description": "The replaced content is sized to fill the element’s content box: the object's concrete object size is the element's used width and height."
                    },
                    {
                        name: "none",
                        "description": "The replaced content is not resized to fit inside the element's content box"
                    },
                    {
                        name: "scale-down"
                    }
                ],
                "syntax": "fill | contain | cover | none | scale-down",
                "description": "Specifies how the contents of a replaced element should be scaled relative to the box established by its used height and width.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "object-position",
                browsers: [
                    "E16",
                    "FF36",
                    "S10",
                    "C31",
                    "O19"
                ],
                "syntax": "<position>",
                "description": "Determines the alignment of the replaced element inside its box.",
                "restrictions": [
                    "position",
                    "length",
                    "percentage"
                ]
            },
            {
                name: "-o-border-image",
                browsers: [
                    "O11.6"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."
                    },
                    {
                        name: "fill",
                        "description": "Causes the middle part of the border-image to be preserved."
                    },
                    {
                        name: "none"
                    },
                    {
                        name: "repeat"
                    },
                    {
                        name: "round",
                        "description": "The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."
                    },
                    {
                        name: "space",
                        "description": "The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."
                    },
                    {
                        name: "stretch",
                        "description": "The image is stretched to fill the area."
                    }
                ],
                "description": "Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.",
                "restrictions": [
                    "length",
                    "percentage",
                    "number",
                    "image",
                    "enum"
                ]
            },
            {
                name: "-o-object-fit",
                browsers: [
                    "O10.6"
                ],
                values: [
                    {
                        name: "contain",
                        "description": "The replaced content is sized to maintain its aspect ratio while fitting within the element’s content box: its concrete object size is resolved as a contain constraint against the element's used width and height."
                    },
                    {
                        name: "cover",
                        "description": "The replaced content is sized to maintain its aspect ratio while filling the element's entire content box: its concrete object size is resolved as a cover constraint against the element’s used width and height."
                    },
                    {
                        name: "fill",
                        "description": "The replaced content is sized to fill the element’s content box: the object's concrete object size is the element's used width and height."
                    },
                    {
                        name: "none",
                        "description": "The replaced content is not resized to fit inside the element's content box"
                    },
                    {
                        name: "scale-down"
                    }
                ],
                "description": "Specifies how the contents of a replaced element should be scaled relative to the box established by its used height and width.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-o-object-position",
                browsers: [
                    "O10.6"
                ],
                "description": "Determines the alignment of the replaced element inside its box.",
                "restrictions": [
                    "position",
                    "length",
                    "percentage"
                ]
            },
            {
                name: "opacity",
                "syntax": "<number>",
                "description": "Opacity of an element's text, where 1 is opaque and 0 is entirely transparent.",
                "restrictions": [
                    "number(0-1)"
                ]
            },
            {
                name: "order",
                "syntax": "<integer>",
                "description": "Controls the order in which children of a flex container appear within the flex container, by assigning them to ordinal groups.",
                "restrictions": [
                    "integer"
                ]
            },
            {
                name: "orphans",
                browsers: [
                    "E12",
                    "C25",
                    "IE8",
                    "O9.2"
                ],
                "syntax": "<integer>",
                "description": "Specifies the minimum number of line boxes in a block container that must be left in a fragment before a fragmentation break.",
                "restrictions": [
                    "integer"
                ]
            },
            {
                name: "-o-table-baseline",
                browsers: [
                    "O9.6"
                ],
                "description": "Determines which row of a inline-table should be used as baseline of inline-table.",
                "restrictions": [
                    "integer"
                ]
            },
            {
                name: "-o-tab-size",
                browsers: [
                    "O10.6"
                ],
                "description": "This property determines the width of the tab character (U+0009), in space characters (U+0020), when rendered.",
                "restrictions": [
                    "integer",
                    "length"
                ]
            },
            {
                name: "-o-text-overflow",
                browsers: [
                    "O10"
                ],
                values: [
                    {
                        name: "clip"
                    },
                    {
                        name: "ellipsis"
                    }
                ],
                "description": "Text can overflow for example when it is prevented from wrapping",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-o-transform",
                browsers: [
                    "O10.5"
                ],
                values: [
                    {
                        name: "matrix()"
                    },
                    {
                        name: "matrix3d()"
                    },
                    {
                        name: "none"
                    },
                    {
                        name: "rotate()"
                    },
                    {
                        name: "rotate3d()"
                    },
                    {
                        name: "rotateX('angle')"
                    },
                    {
                        name: "rotateY('angle')"
                    },
                    {
                        name: "rotateZ('angle')"
                    },
                    {
                        name: "scale()"
                    },
                    {
                        name: "scale3d()"
                    },
                    {
                        name: "scaleX()"
                    },
                    {
                        name: "scaleY()"
                    },
                    {
                        name: "scaleZ()"
                    },
                    {
                        name: "skew()"
                    },
                    {
                        name: "skewX()"
                    },
                    {
                        name: "skewY()"
                    },
                    {
                        name: "translate()"
                    },
                    {
                        name: "translate3d()"
                    },
                    {
                        name: "translateX()"
                    },
                    {
                        name: "translateY()"
                    },
                    {
                        name: "translateZ()"
                    }
                ],
                "description": "A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-o-transform-origin",
                browsers: [
                    "O10.5"
                ],
                "description": "Establishes the origin of transformation for an element.",
                "restrictions": [
                    "positon",
                    "length",
                    "percentage"
                ]
            },
            {
                name: "-o-transition",
                browsers: [
                    "O11.5"
                ],
                values: [
                    {
                        name: "all",
                        "description": "Every property that is able to undergo a transition will do so."
                    },
                    {
                        name: "none",
                        "description": "No property will transition."
                    }
                ],
                "description": "Shorthand property combines four of the transition properties into a single property.",
                "restrictions": [
                    "time",
                    "property",
                    "timing-function",
                    "enum"
                ]
            },
            {
                name: "-o-transition-delay",
                browsers: [
                    "O11.5"
                ],
                "description": "Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.",
                "restrictions": [
                    "time"
                ]
            },
            {
                name: "-o-transition-duration",
                browsers: [
                    "O11.5"
                ],
                "description": "Specifies how long the transition from the old value to the new value should take.",
                "restrictions": [
                    "time"
                ]
            },
            {
                name: "-o-transition-property",
                browsers: [
                    "O11.5"
                ],
                values: [
                    {
                        name: "all",
                        "description": "Every property that is able to undergo a transition will do so."
                    },
                    {
                        name: "none",
                        "description": "No property will transition."
                    }
                ],
                "description": "Specifies the name of the CSS property to which the transition is applied.",
                "restrictions": [
                    "property"
                ]
            },
            {
                name: "-o-transition-timing-function",
                browsers: [
                    "O11.5"
                ],
                "description": "Describes how the intermediate values used during a transition will be calculated.",
                "restrictions": [
                    "timing-function"
                ]
            },
            {
                name: "offset-block-end",
                browsers: [
                    "FF41"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."
                    }
                ],
                "description": "Logical 'bottom'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "offset-block-start",
                browsers: [
                    "FF41"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."
                    }
                ],
                "description": "Logical 'top'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "offset-inline-end",
                browsers: [
                    "FF41"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."
                    }
                ],
                "description": "Logical 'right'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "offset-inline-start",
                browsers: [
                    "FF41"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."
                    }
                ],
                "description": "Logical 'left'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "outline",
                values: [
                    {
                        name: "auto",
                        "description": "Permits the user agent to render a custom outline style, typically the default platform style."
                    },
                    {
                        name: "invert"
                    }
                ],
                "syntax": "[ <'outline-color'> || <'outline-style'> || <'outline-width'> ]",
                "description": "Shorthand property for 'outline-style', 'outline-width', and 'outline-color'.",
                "restrictions": [
                    "length",
                    "line-width",
                    "line-style",
                    "color",
                    "enum"
                ]
            },
            {
                name: "outline-color",
                values: [
                    {
                        name: "invert"
                    }
                ],
                "syntax": "<color> | invert",
                "description": "The color of the outline.",
                "restrictions": [
                    "enum",
                    "color"
                ]
            },
            {
                name: "outline-offset",
                browsers: [
                    "FF1.5",
                    "S1.2",
                    "C1",
                    "O9.5"
                ],
                "syntax": "<length>",
                "description": "Offset the outline and draw it beyond the border edge.",
                "restrictions": [
                    "length"
                ]
            },
            {
                name: "outline-style",
                values: [
                    {
                        name: "auto",
                        "description": "Permits the user agent to render a custom outline style, typically the default platform style."
                    }
                ],
                "syntax": "auto | <'border-style'>",
                "description": "Style of the outline.",
                "restrictions": [
                    "line-style",
                    "enum"
                ]
            },
            {
                name: "outline-width",
                "syntax": "<line-width>",
                "description": "Width of the outline.",
                "restrictions": [
                    "length",
                    "line-width"
                ]
            },
            {
                name: "overflow",
                values: [
                    {
                        name: "auto",
                        "description": "The behavior of the 'auto' value is UA-dependent, but should cause a scrolling mechanism to be provided for overflowing boxes."
                    },
                    {
                        name: "hidden",
                        "description": "Content is clipped and no scrolling mechanism should be provided to view the content outside the clipping region."
                    },
                    {
                        name: "-moz-hidden-unscrollable"
                    },
                    {
                        name: "scroll",
                        "description": "Content is clipped and if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism should be displayed for a box whether or not any of its content is clipped."
                    },
                    {
                        name: "visible",
                        "description": "Content is not clipped, i.e., it may be rendered outside the content box."
                    }
                ],
                "syntax": "[ visible | hidden | clip | scroll | auto ]{1,2}",
                "description": "Shorthand for setting 'overflow-x' and 'overflow-y'.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "overflow-wrap",
                values: [
                    {
                        name: "break-word",
                        "description": "An otherwise unbreakable sequence of characters may be broken at an arbitrary point if there are no otherwise-acceptable break points in the line."
                    },
                    {
                        name: "normal",
                        "description": "Lines may break only at allowed break points."
                    }
                ],
                "syntax": "normal | break-word",
                "description": "Specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit within the line box.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "overflow-x",
                values: [
                    {
                        name: "auto",
                        "description": "The behavior of the 'auto' value is UA-dependent, but should cause a scrolling mechanism to be provided for overflowing boxes."
                    },
                    {
                        name: "hidden",
                        "description": "Content is clipped and no scrolling mechanism should be provided to view the content outside the clipping region."
                    },
                    {
                        name: "scroll",
                        "description": "Content is clipped and if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism should be displayed for a box whether or not any of its content is clipped."
                    },
                    {
                        name: "visible",
                        "description": "Content is not clipped, i.e., it may be rendered outside the content box."
                    }
                ],
                "syntax": "visible | hidden | clip | scroll | auto",
                "description": "Specifies the handling of overflow in the horizontal direction.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "overflow-y",
                values: [
                    {
                        name: "auto",
                        "description": "The behavior of the 'auto' value is UA-dependent, but should cause a scrolling mechanism to be provided for overflowing boxes."
                    },
                    {
                        name: "hidden",
                        "description": "Content is clipped and no scrolling mechanism should be provided to view the content outside the clipping region."
                    },
                    {
                        name: "scroll",
                        "description": "Content is clipped and if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism should be displayed for a box whether or not any of its content is clipped."
                    },
                    {
                        name: "visible",
                        "description": "Content is not clipped, i.e., it may be rendered outside the content box."
                    }
                ],
                "syntax": "visible | hidden | clip | scroll | auto",
                "description": "Specifies the handling of overflow in the vertical direction.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "pad",
                browsers: [
                    "FF33"
                ],
                "syntax": "<integer> && <symbol>",
                "description": "@counter-style descriptor. Specifies a “fixed-width” counter style, where representations shorter than the pad value are padded with a particular <symbol>",
                "restrictions": [
                    "integer",
                    "image",
                    "string",
                    "identifier"
                ]
            },
            {
                name: "padding",
                values: [],
                "syntax": "[ <length> | <percentage> ]{1,4}",
                "description": "Shorthand property to set values the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "padding-bottom",
                "syntax": "<length> | <percentage>",
                "description": "Shorthand property to set values the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "padding-block-end",
                browsers: [
                    "FF41",
                    "C69",
                    "O56"
                ],
                "syntax": "<'padding-left'>",
                "description": "Logical 'padding-bottom'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "padding-block-start",
                browsers: [
                    "FF41",
                    "C69",
                    "O56"
                ],
                "syntax": "<'padding-left'>",
                "description": "Logical 'padding-top'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "padding-inline-end",
                browsers: [
                    "FF41",
                    "S3",
                    "C69",
                    "O56"
                ],
                "syntax": "<'padding-left'>",
                "description": "Logical 'padding-right'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "padding-inline-start",
                browsers: [
                    "FF41",
                    "S3",
                    "C69",
                    "O56"
                ],
                "syntax": "<'padding-left'>",
                "description": "Logical 'padding-left'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "padding-left",
                "syntax": "<length> | <percentage>",
                "description": "Shorthand property to set values the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "padding-right",
                "syntax": "<length> | <percentage>",
                "description": "Shorthand property to set values the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "padding-top",
                "syntax": "<length> | <percentage>",
                "description": "Shorthand property to set values the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "page-break-after",
                values: [
                    {
                        name: "always",
                        "description": "Always force a page break after the generated box."
                    },
                    {
                        name: "auto",
                        "description": "Neither force nor forbid a page break after generated box."
                    },
                    {
                        name: "avoid",
                        "description": "Avoid a page break after the generated box."
                    },
                    {
                        name: "left",
                        "description": "Force one or two page breaks after the generated box so that the next page is formatted as a left page."
                    },
                    {
                        name: "right",
                        "description": "Force one or two page breaks after the generated box so that the next page is formatted as a right page."
                    }
                ],
                "syntax": "auto | always | avoid | left | right | recto | verso",
                "description": "Defines rules for page breaks after an element.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "page-break-before",
                values: [
                    {
                        name: "always",
                        "description": "Always force a page break before the generated box."
                    },
                    {
                        name: "auto",
                        "description": "Neither force nor forbid a page break before the generated box."
                    },
                    {
                        name: "avoid",
                        "description": "Avoid a page break before the generated box."
                    },
                    {
                        name: "left",
                        "description": "Force one or two page breaks before the generated box so that the next page is formatted as a left page."
                    },
                    {
                        name: "right",
                        "description": "Force one or two page breaks before the generated box so that the next page is formatted as a right page."
                    }
                ],
                "syntax": "auto | always | avoid | left | right | recto | verso",
                "description": "Defines rules for page breaks before an element.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "page-break-inside",
                values: [
                    {
                        name: "auto",
                        "description": "Neither force nor forbid a page break inside the generated box."
                    },
                    {
                        name: "avoid",
                        "description": "Avoid a page break inside the generated box."
                    }
                ],
                "syntax": "auto | avoid",
                "description": "Defines rules for page breaks inside an element.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "paint-order",
                browsers: [
                    "FF60",
                    "S"
                ],
                values: [
                    {
                        name: "fill"
                    },
                    {
                        name: "markers"
                    },
                    {
                        name: "normal",
                        "description": "The element is painted with the standard order of painting operations: the 'fill' is painted first, then its 'stroke' and finally its markers."
                    },
                    {
                        name: "stroke"
                    }
                ],
                "status": "experimental",
                "syntax": "normal | [ fill || stroke || markers ]",
                "description": "Controls the order that the three paint operations that shapes and text are rendered with: their fill, their stroke and any markers they might have.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "perspective",
                values: [
                    {
                        name: "none",
                        "description": "No perspective transform is applied."
                    }
                ],
                "syntax": "none | <length>",
                "description": "Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.",
                "restrictions": [
                    "length",
                    "enum"
                ]
            },
            {
                name: "perspective-origin",
                "syntax": "<position>",
                "description": "Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.",
                "restrictions": [
                    "position",
                    "percentage",
                    "length"
                ]
            },
            {
                name: "pointer-events",
                values: [
                    {
                        name: "all",
                        "description": "The given element can be the target element for pointer events whenever the pointer is over either the interior or the perimeter of the element."
                    },
                    {
                        name: "fill",
                        "description": "The given element can be the target element for pointer events whenever the pointer is over the interior of the element."
                    },
                    {
                        name: "none",
                        "description": "The given element does not receive pointer events."
                    },
                    {
                        name: "painted"
                    },
                    {
                        name: "stroke",
                        "description": "The given element can be the target element for pointer events whenever the pointer is over the perimeter of the element."
                    },
                    {
                        name: "visible",
                        "description": "The given element can be the target element for pointer events when the ‘visibility’ property is set to visible and the pointer is over either the interior or the perimete of the element."
                    },
                    {
                        name: "visibleFill"
                    },
                    {
                        name: "visiblePainted"
                    },
                    {
                        name: "visibleStroke"
                    }
                ],
                "syntax": "auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all | inherit",
                "description": "Specifies under what circumstances a given element can be the target element for a pointer event.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "position",
                values: [
                    {
                        name: "absolute"
                    },
                    {
                        name: "fixed",
                        "description": "The box's position is calculated according to the 'absolute' model, but in addition, the box is fixed with respect to some reference. As with the 'absolute' model, the box's margins do not collapse with any other margins."
                    },
                    {
                        name: "-ms-page"
                    },
                    {
                        name: "relative"
                    },
                    {
                        name: "static"
                    },
                    {
                        name: "sticky"
                    },
                    {
                        name: "-webkit-sticky"
                    }
                ],
                "syntax": "static | relative | absolute | sticky | fixed",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "prefix",
                browsers: [
                    "FF33"
                ],
                "syntax": "<symbol>",
                "description": "@counter-style descriptor. Specifies a <symbol> that is prepended to the marker representation.",
                "restrictions": [
                    "image",
                    "string",
                    "identifier"
                ]
            },
            {
                name: "quotes",
                values: [
                    {
                        name: "none",
                        "description": "The 'open-quote' and 'close-quote' values of the 'content' property produce no quotations marks, as if they were 'no-open-quote' and 'no-close-quote' respectively."
                    }
                ],
                "syntax": "none | [ <string> <string> ]+",
                "description": "Specifies quotation marks for any number of embedded quotations.",
                "restrictions": [
                    "string"
                ]
            },
            {
                name: "range",
                browsers: [
                    "FF33"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "The range depends on the counter system."
                    },
                    {
                        name: "infinite",
                        "description": "If used as the first value in a range, it represents negative infinity; if used as the second value, it represents positive infinity."
                    }
                ],
                "syntax": "[ [ <integer> | infinite ]{2} ]# | auto",
                "description": "@counter-style descriptor. Defines the ranges over which the counter style is defined.",
                "restrictions": [
                    "integer",
                    "enum"
                ]
            },
            {
                name: "resize",
                browsers: [
                    "FF",
                    "S3",
                    "C1",
                    "O12.1"
                ],
                values: [
                    {
                        name: "both",
                        "description": "The UA presents a bidirectional resizing mechanism to allow the user to adjust both the height and the width of the element."
                    },
                    {
                        name: "horizontal",
                        "description": "The UA presents a unidirectional horizontal resizing mechanism to allow the user to adjust only the width of the element."
                    },
                    {
                        name: "none",
                        "description": "The UA does not present a resizing mechanism on the element, and the user is given no direct manipulation mechanism to resize the element."
                    },
                    {
                        name: "vertical",
                        "description": "The UA presents a unidirectional vertical resizing mechanism to allow the user to adjust only the height of the element."
                    }
                ],
                "syntax": "none | both | horizontal | vertical | block | inline",
                "description": "Specifies whether or not an element is resizable by the user, and if so, along which axis/axes.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "right",
                values: [
                    {
                        name: "auto",
                        "description": "For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"
                    }
                ],
                "syntax": "<length> | <percentage> | auto",
                "description": "Specifies how far an absolutely positioned box's right margin edge is offset to the left of the right edge of the box's 'containing block'.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "ruby-align",
                browsers: [
                    "FF38"
                ],
                values: [
                    {
                        name: "auto",
                        browsers: [
                            "FF38"
                        ],
                        "description": "The user agent determines how the ruby contents are aligned. This is the initial value."
                    },
                    {
                        name: "center",
                        "description": "The ruby content is centered within its box."
                    },
                    {
                        name: "distribute-letter",
                        browsers: [
                            "FF38"
                        ]
                    },
                    {
                        name: "distribute-space",
                        browsers: [
                            "FF38"
                        ]
                    },
                    {
                        name: "left",
                        "description": "The ruby text content is aligned with the start edge of the base."
                    },
                    {
                        name: "line-edge",
                        browsers: [
                            "FF38"
                        ]
                    },
                    {
                        name: "right",
                        browsers: [
                            "FF38"
                        ],
                        "description": "The ruby text content is aligned with the end edge of the base."
                    },
                    {
                        name: "start",
                        browsers: [
                            "FF38"
                        ],
                        "description": "The ruby text content is aligned with the start edge of the base."
                    },
                    {
                        name: "space-between",
                        browsers: [
                            "FF38"
                        ],
                        "description": "The ruby content expands as defined for normal text justification (as defined by 'text-justify'),"
                    },
                    {
                        name: "space-around",
                        browsers: [
                            "FF38"
                        ],
                        "description": "As for 'space-between' except that there exists an extra justification opportunities whose space is distributed half before and half after the ruby content."
                    }
                ],
                "status": "experimental",
                "syntax": "start | center | space-between | space-around",
                "description": "Specifies how text is distributed within the various ruby boxes when their contents do not exactly fill their respective boxes.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "ruby-overhang",
                browsers: [
                    "FF10",
                    "IE5"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "The ruby text can overhang text adjacent to the base on either side. This is the initial value."
                    },
                    {
                        name: "end",
                        "description": "The ruby text can overhang the text that follows it."
                    },
                    {
                        name: "none",
                        "description": "The ruby text cannot overhang any text adjacent to its base, only its own base."
                    },
                    {
                        name: "start",
                        "description": "The ruby text can overhang the text that precedes it."
                    }
                ],
                "description": "Determines whether, and on which side, ruby text is allowed to partially overhang any adjacent text in addition to its own base, when the ruby text is wider than the ruby base.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "ruby-position",
                browsers: [
                    "E12",
                    "FF38"
                ],
                values: [
                    {
                        name: "after"
                    },
                    {
                        name: "before"
                    },
                    {
                        name: "inline"
                    },
                    {
                        name: "right",
                        "description": "The ruby text appears on the right of the base. Unlike 'before' and 'after', this value is not relative to the text flow direction."
                    }
                ],
                "status": "experimental",
                "syntax": "over | under | inter-character",
                "description": "Used by the parent of elements with display: ruby-text to control the position of the ruby text with respect to its base.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "ruby-span",
                browsers: [
                    "FF10"
                ],
                values: [
                    {
                        name: "attr(x)"
                    },
                    {
                        name: "none",
                        "description": "No spanning. The computed value is '1'."
                    }
                ],
                "description": "Determines whether, and on which side, ruby text is allowed to partially overhang any adjacent text in addition to its own base, when the ruby text is wider than the ruby base.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "scrollbar-3dlight-color",
                browsers: [
                    "IE6"
                ],
                "description": "Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "scrollbar-arrow-color",
                browsers: [
                    "IE6"
                ],
                "description": "Determines the color of the arrow elements of a scroll arrow.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "scrollbar-base-color",
                browsers: [
                    "IE6"
                ],
                "description": "Determines the color of the main elements of a scroll bar, which include the scroll box, track, and scroll arrows.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "scrollbar-darkshadow-color",
                browsers: [
                    "IE6"
                ],
                "description": "Determines the color of the gutter of a scroll bar.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "scrollbar-face-color",
                browsers: [
                    "IE6"
                ],
                "description": "Determines the color of the scroll box and scroll arrows of a scroll bar.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "scrollbar-highlight-color",
                browsers: [
                    "IE6"
                ],
                "description": "Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "scrollbar-shadow-color",
                browsers: [
                    "IE6"
                ],
                "description": "Determines the color of the bottom and right edges of the scroll box and scroll arrows of a scroll bar.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "scrollbar-track-color",
                browsers: [
                    "IE6"
                ],
                "description": "Determines the color of the track element of a scroll bar.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "scroll-behavior",
                browsers: [
                    "FF36",
                    "C61",
                    "O48"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "Scrolls in an instant fashion."
                    },
                    {
                        name: "smooth"
                    }
                ],
                "syntax": "auto | smooth",
                "description": "Specifies the scrolling behavior for a scrolling box, when scrolling happens due to navigation or CSSOM scrolling APIs.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "scroll-snap-coordinate",
                browsers: [
                    "FF39"
                ],
                values: [
                    {
                        name: "none",
                        "description": "Specifies that this element does not contribute a snap point."
                    }
                ],
                "status": "obsolete",
                "syntax": "none | <position>#",
                "description": "Defines the x and y coordinate within the element which will align with the nearest ancestor scroll container’s snap-destination for the respective axis.",
                "restrictions": [
                    "position",
                    "length",
                    "percentage",
                    "enum"
                ]
            },
            {
                name: "scroll-snap-destination",
                browsers: [
                    "FF39"
                ],
                "status": "obsolete",
                "syntax": "<position>",
                "description": "Define the x and y coordinate within the scroll container’s visual viewport which element snap points will align with.",
                "restrictions": [
                    "position",
                    "length",
                    "percentage"
                ]
            },
            {
                name: "scroll-snap-points-x",
                browsers: [
                    "FF39",
                    "S9"
                ],
                values: [
                    {
                        name: "none",
                        "description": "No snap points are defined by this scroll container."
                    },
                    {
                        name: "repeat()",
                        "description": "Defines an interval at which snap points are defined, starting from the container’s relevant start edge."
                    }
                ],
                "status": "obsolete",
                "syntax": "none | repeat( <length-percentage> )",
                "description": "Defines the positioning of snap points along the x axis of the scroll container it is applied to.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "scroll-snap-points-y",
                browsers: [
                    "FF39",
                    "S9"
                ],
                values: [
                    {
                        name: "none",
                        "description": "No snap points are defined by this scroll container."
                    },
                    {
                        name: "repeat()",
                        "description": "Defines an interval at which snap points are defined, starting from the container’s relevant start edge."
                    }
                ],
                "status": "obsolete",
                "syntax": "none | repeat( <length-percentage> )",
                "description": "Defines the positioning of snap points alobg the y axis of the scroll container it is applied to.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "scroll-snap-type",
                values: [
                    {
                        name: "none",
                        "description": "The visual viewport of this scroll container must ignore snap points, if any, when scrolled."
                    },
                    {
                        name: "mandatory",
                        "description": "The visual viewport of this scroll container is guaranteed to rest on a snap point when there are no active scrolling operations."
                    },
                    {
                        name: "proximity",
                        "description": "The visual viewport of this scroll container may come to rest on a snap point at the termination of a scroll at the discretion of the UA given the parameters of the scroll."
                    }
                ],
                "syntax": "none | [ x | y | block | inline | both ] [ mandatory | proximity ]",
                "description": "Defines how strictly snap points are enforced on the scroll container.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "shape-image-threshold",
                browsers: [
                    "FF62",
                    "S10.1",
                    "C37",
                    "O24"
                ],
                "syntax": "<number>",
                "description": "Defines the alpha channel threshold used to extract the shape using an image. A value of 0.5 means that the shape will enclose all the pixels that are more than 50% opaque.",
                "restrictions": [
                    "number"
                ]
            },
            {
                name: "shape-margin",
                browsers: [
                    "FF62",
                    "S10.1",
                    "C37",
                    "O24"
                ],
                "syntax": "<length-percentage>",
                "description": "Adds a margin to a 'shape-outside'. This defines a new shape that is the smallest contour that includes all the points that are the 'shape-margin' distance outward in the perpendicular direction from a point on the underlying shape.",
                "restrictions": [
                    "url",
                    "length",
                    "percentage"
                ]
            },
            {
                name: "shape-outside",
                browsers: [
                    "FF62",
                    "S10.1",
                    "C37",
                    "O24"
                ],
                values: [
                    {
                        name: "margin-box"
                    },
                    {
                        name: "none",
                        "description": "The float area is unaffected."
                    }
                ],
                "syntax": "none | <shape-box> || <basic-shape> | <image>",
                "description": "Specifies an orthogonal rotation to be applied to an image before it is laid out.",
                "restrictions": [
                    "image",
                    "box",
                    "shape",
                    "enum"
                ]
            },
            {
                name: "shape-rendering",
                values: [
                    {
                        name: "auto",
                        "description": "Suppresses aural rendering."
                    },
                    {
                        name: "crispEdges"
                    },
                    {
                        name: "geometricPrecision",
                        "description": "Emphasize geometric precision over speed and crisp edges."
                    },
                    {
                        name: "optimizeSpeed",
                        "description": "Emphasize rendering speed over geometric precision and crisp edges."
                    }
                ],
                "description": "Provides hints about what tradeoffs to make as it renders vector graphics elements such as <path> elements and basic shapes such as circles and rectangles.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "size",
                browsers: [
                    "C",
                    "O8"
                ],
                "restrictions": [
                    "length"
                ]
            },
            {
                name: "src",
                values: [
                    {
                        name: "url()",
                        "description": "Reference font by URL"
                    },
                    {
                        name: "format()"
                    },
                    {
                        name: "local()"
                    }
                ],
                "syntax": "[ <url> [ format( <string># ) ]? | local( <family-name> ) ]#",
                "description": "@font-face descriptor. Specifies the resource containing font data. It is required, whether the font is downloadable or locally installed.",
                "restrictions": [
                    "enum",
                    "url",
                    "identifier"
                ]
            },
            {
                name: "stop-color",
                "description": "Indicates what color to use at that gradient stop.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "stop-opacity",
                "description": "Defines the opacity of a given gradient stop.",
                "restrictions": [
                    "number(0-1)"
                ]
            },
            {
                name: "stroke",
                values: [
                    {
                        name: "url()",
                        "description": "A URL reference to a paint server element, which is an element that defines a paint server: ‘hatch’, ‘linearGradient’, ‘mesh’, ‘pattern’, ‘radialGradient’ and ‘solidcolor’."
                    },
                    {
                        name: "none",
                        "description": "No paint is applied in this layer."
                    }
                ],
                "description": "Paints along the outline of the given graphical element.",
                "restrictions": [
                    "color",
                    "enum",
                    "url"
                ]
            },
            {
                name: "stroke-dasharray",
                values: [
                    {
                        name: "none",
                        "description": "Indicates that no dashing is used."
                    }
                ],
                "description": "Controls the pattern of dashes and gaps used to stroke paths.",
                "restrictions": [
                    "length",
                    "percentage",
                    "number",
                    "enum"
                ]
            },
            {
                name: "stroke-dashoffset",
                "description": "Specifies the distance into the dash pattern to start the dash.",
                "restrictions": [
                    "percentage",
                    "length"
                ]
            },
            {
                name: "stroke-linecap",
                values: [
                    {
                        name: "butt"
                    },
                    {
                        name: "round",
                        "description": "Indicates that at each end of each subpath, the shape representing the stroke will be extended by a half circle with a radius equal to the stroke width."
                    },
                    {
                        name: "square",
                        "description": "Indicates that at the end of each subpath, the shape representing the stroke will be extended by a rectangle with the same width as the stroke width and whose length is half of the stroke width."
                    }
                ],
                "description": "Specifies the shape to be used at the end of open subpaths when they are stroked.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "stroke-linejoin",
                values: [
                    {
                        name: "bevel"
                    },
                    {
                        name: "miter"
                    },
                    {
                        name: "round",
                        "description": "Indicates that a round corner is to be used to join path segments."
                    }
                ],
                "description": "Specifies the shape to be used at the corners of paths or basic shapes when they are stroked.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "stroke-miterlimit",
                "description": "When two line segments meet at a sharp angle and miter joins have been specified for 'stroke-linejoin', it is possible for the miter to extend far beyond the thickness of the line stroking the path.",
                "restrictions": [
                    "number"
                ]
            },
            {
                name: "stroke-opacity",
                "description": "Specifies the opacity of the painting operation used to stroke the current object.",
                "restrictions": [
                    "number(0-1)"
                ]
            },
            {
                name: "stroke-width",
                "description": "Specifies the width of the stroke on the current object.",
                "restrictions": [
                    "percentage",
                    "length"
                ]
            },
            {
                name: "suffix",
                browsers: [
                    "FF33"
                ],
                "syntax": "<symbol>",
                "description": "@counter-style descriptor. Specifies a <symbol> that is appended to the marker representation.",
                "restrictions": [
                    "image",
                    "string",
                    "identifier"
                ]
            },
            {
                name: "system",
                browsers: [
                    "FF33"
                ],
                values: [
                    {
                        name: "additive"
                    },
                    {
                        name: "alphabetic",
                        "description": "Interprets the list of counter symbols as digits to an alphabetic numbering system, similar to the default lower-alpha counter style, which wraps from \"a\", \"b\", \"c\", to \"aa\", \"ab\", \"ac\"."
                    },
                    {
                        name: "cyclic"
                    },
                    {
                        name: "extends"
                    },
                    {
                        name: "fixed",
                        "description": "Runs through its list of counter symbols once, then falls back."
                    },
                    {
                        name: "numeric"
                    },
                    {
                        name: "symbolic"
                    }
                ],
                "syntax": "cyclic | numeric | alphabetic | symbolic | additive | [ fixed <integer>? ] | [ extends <counter-style-name> ]",
                "description": "@counter-style descriptor. Specifies which algorithm will be used to construct the counter’s representation based on the counter value.",
                "restrictions": [
                    "enum",
                    "integer"
                ]
            },
            {
                name: "symbols",
                browsers: [
                    "FF33"
                ],
                "syntax": "<symbol>+",
                "description": "@counter-style descriptor. Specifies the symbols used by the marker-construction algorithm specified by the system descriptor.",
                "restrictions": [
                    "image",
                    "string",
                    "identifier"
                ]
            },
            {
                name: "table-layout",
                values: [
                    {
                        name: "auto",
                        "description": "Use any automatic table layout algorithm."
                    },
                    {
                        name: "fixed",
                        "description": "Use the fixed table layout algorithm."
                    }
                ],
                "syntax": "auto | fixed",
                "description": "Controls the algorithm used to lay out the table cells, rows, and columns.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "tab-size",
                browsers: [
                    "FF4",
                    "S6.1",
                    "C21",
                    "O15"
                ],
                "syntax": "<integer> | <length>",
                "description": "Determines the width of the tab character (U+0009), in space characters (U+0020), when rendered.",
                "restrictions": [
                    "integer",
                    "length"
                ]
            },
            {
                name: "text-align",
                values: [
                    {
                        name: "center",
                        "description": "The inline contents are centered within the line box."
                    },
                    {
                        name: "end",
                        "description": "The inline contents are aligned to the end edge of the line box."
                    },
                    {
                        name: "justify",
                        "description": "The text is justified according to the method specified by the 'text-justify' property."
                    },
                    {
                        name: "left",
                        "description": "The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."
                    },
                    {
                        name: "right",
                        "description": "The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."
                    },
                    {
                        name: "start",
                        "description": "The inline contents are aligned to the start edge of the line box."
                    }
                ],
                "syntax": "start | end | left | right | center | justify | match-parent",
                "description": "Describes how inline contents of a block are horizontally aligned if the contents do not completely fill the line box.",
                "restrictions": [
                    "string"
                ]
            },
            {
                name: "text-align-last",
                browsers: [
                    "E12",
                    "FF49",
                    "C47",
                    "IE",
                    "O"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "Content on the affected line is aligned per 'text-align' unless 'text-align' is set to 'justify', in which case it is 'start-aligned'."
                    },
                    {
                        name: "center",
                        "description": "The inline contents are centered within the line box."
                    },
                    {
                        name: "justify",
                        "description": "The text is justified according to the method specified by the 'text-justify' property."
                    },
                    {
                        name: "left",
                        "description": "The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."
                    },
                    {
                        name: "right",
                        "description": "The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."
                    }
                ],
                "syntax": "auto | start | end | left | right | center | justify",
                "description": "Describes how the last line of a block or a line right before a forced line break is aligned when 'text-align' is set to 'justify'.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "text-anchor",
                values: [
                    {
                        name: "end",
                        "description": "The rendered characters are aligned such that the end of the resulting rendered text is at the initial current text position."
                    },
                    {
                        name: "middle",
                        "description": "The rendered characters are aligned such that the geometric middle of the resulting rendered text is at the initial current text position."
                    },
                    {
                        name: "start",
                        "description": "The rendered characters are aligned such that the start of the resulting rendered text is at the initial current text position."
                    }
                ],
                "description": "Used to align (start-, middle- or end-alignment) a string of text relative to a given point.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "text-decoration",
                values: [
                    {
                        name: "dashed"
                    },
                    {
                        name: "dotted"
                    },
                    {
                        name: "double"
                    },
                    {
                        name: "line-through"
                    },
                    {
                        name: "none",
                        "description": "Produces no line."
                    },
                    {
                        name: "overline"
                    },
                    {
                        name: "solid"
                    },
                    {
                        name: "underline"
                    },
                    {
                        name: "wavy"
                    }
                ],
                "syntax": "<'text-decoration-line'> || <'text-decoration-style'> || <'text-decoration-color'>",
                "description": "Decorations applied to font used for an element's text.",
                "restrictions": [
                    "enum",
                    "color"
                ]
            },
            {
                name: "text-decoration-color",
                browsers: [
                    "FF36",
                    "S",
                    "C57",
                    "O44"
                ],
                "syntax": "<color>",
                "description": "Specifies the color of text decoration (underlines overlines, and line-throughs) set on the element with text-decoration-line.",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "text-decoration-line",
                browsers: [
                    "FF36",
                    "S",
                    "C",
                    "O"
                ],
                values: [
                    {
                        name: "line-through"
                    },
                    {
                        name: "none",
                        "description": "Neither produces nor inhibits text decoration."
                    },
                    {
                        name: "overline"
                    },
                    {
                        name: "underline"
                    }
                ],
                "syntax": "none | [ underline || overline || line-through || blink ]",
                "description": "Specifies what line decorations, if any, are added to the element.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "text-decoration-style",
                browsers: [
                    "FF36",
                    "S",
                    "C57",
                    "O44"
                ],
                values: [
                    {
                        name: "dashed"
                    },
                    {
                        name: "dotted"
                    },
                    {
                        name: "double"
                    },
                    {
                        name: "none",
                        "description": "Produces no line."
                    },
                    {
                        name: "solid"
                    },
                    {
                        name: "wavy"
                    }
                ],
                "syntax": "solid | double | dotted | dashed | wavy",
                "description": "Specifies the line style for underline, line-through and overline text decoration.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "text-indent",
                values: [],
                "syntax": "<length-percentage> && hanging? && each-line?",
                "description": "Specifies the indentation applied to lines of inline content in a block. The indentation only affects the first line of inline content in the block unless the 'hanging' keyword is specified, in which case it affects all lines except the first.",
                "restrictions": [
                    "percentage",
                    "length"
                ]
            },
            {
                name: "text-justify",
                browsers: [
                    "E14",
                    "FF55",
                    "C",
                    "IE11",
                    "O"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "The UA determines the justification algorithm to follow, based on a balance between performance and adequate presentation quality."
                    },
                    {
                        name: "distribute",
                        "description": "Justification primarily changes spacing both at word separators and at grapheme cluster boundaries in all scripts except those in the connected and cursive groups. This value is sometimes used in e.g. Japanese, often with the 'text-align-last' property."
                    },
                    {
                        name: "distribute-all-lines"
                    },
                    {
                        name: "inter-cluster"
                    },
                    {
                        name: "inter-ideograph"
                    },
                    {
                        name: "inter-word"
                    },
                    {
                        name: "kashida"
                    },
                    {
                        name: "newspaper"
                    }
                ],
                "syntax": "auto | inter-character | inter-word | none",
                "description": "Selects the justification algorithm used when 'text-align' is set to 'justify'. The property applies to block containers, but the UA may (but is not required to) also support it on inline elements.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "text-orientation",
                browsers: [
                    "FF41",
                    "C48",
                    "O"
                ],
                values: [
                    {
                        name: "sideways",
                        browsers: [
                            "FF41",
                            "C48",
                            "O"
                        ]
                    },
                    {
                        name: "sideways-right",
                        browsers: [
                            "FF41",
                            "C48",
                            "O"
                        ]
                    },
                    {
                        name: "upright"
                    }
                ],
                "syntax": "mixed | upright | sideways",
                "description": "Specifies the orientation of text within a line.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "text-overflow",
                values: [
                    {
                        name: "clip"
                    },
                    {
                        name: "ellipsis"
                    }
                ],
                "syntax": "[ clip | ellipsis | <string> ]{1,2}",
                "description": "Text can overflow for example when it is prevented from wrapping.",
                "restrictions": [
                    "enum",
                    "string"
                ]
            },
            {
                name: "text-rendering",
                browsers: [
                    "FF3",
                    "S5",
                    "C4",
                    "O15"
                ],
                values: [
                    {
                        name: "auto"
                    },
                    {
                        name: "geometricPrecision",
                        "description": "Indicates that the user agent shall emphasize geometric precision over legibility and rendering speed."
                    },
                    {
                        name: "optimizeLegibility"
                    },
                    {
                        name: "optimizeSpeed",
                        "description": "Indicates that the user agent shall emphasize rendering speed over legibility and geometric precision."
                    }
                ],
                "syntax": "auto | optimizeSpeed | optimizeLegibility | geometricPrecision",
                "description": "The creator of SVG content might want to provide a hint to the implementation about what tradeoffs to make as it renders text. The ‘text-rendering’ property provides these hints.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "text-shadow",
                values: [
                    {
                        name: "none",
                        "description": "No shadow."
                    }
                ],
                "syntax": "none | <shadow-t>#",
                "description": "Enables shadow effects to be applied to the text of the element.",
                "restrictions": [
                    "length",
                    "color"
                ]
            },
            {
                name: "text-transform",
                values: [
                    {
                        name: "capitalize"
                    },
                    {
                        name: "lowercase"
                    },
                    {
                        name: "none",
                        "description": "No effects."
                    },
                    {
                        name: "uppercase"
                    }
                ],
                "syntax": "none | capitalize | uppercase | lowercase | full-width",
                "description": "Controls capitalization effects of an element’s text.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "text-underline-position",
                browsers: [
                    "E12",
                    "C33",
                    "IE6"
                ],
                values: [
                    {
                        name: "above"
                    },
                    {
                        name: "auto",
                        "description": "The user agent may use any algorithm to determine the underline’s position. In horizontal line layout, the underline should be aligned as for alphabetic. In vertical line layout, if the language is set to Japanese or Korean, the underline should be aligned as for over."
                    },
                    {
                        name: "below",
                        "description": "The underline is aligned with the under edge of the element’s content box."
                    }
                ],
                "syntax": "auto | [ under || [ left | right ] ]",
                "description": "Sets the position of an underline specified on the same element: it does not affect underlines specified by ancestor elements. This property is typically used in vertical writing contexts such as in Japanese documents where it often desired to have the underline appear 'over' (to the right of) the affected run of text",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "top",
                values: [
                    {
                        name: "auto",
                        "description": "For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"
                    }
                ],
                "syntax": "<length> | <percentage> | auto",
                "description": "Specifies how far an absolutely positioned box's top margin edge is offset below the top edge of the box's 'containing block'.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "touch-action",
                browsers: [
                    "E12",
                    "FF52",
                    "C36",
                    "IE11",
                    "O23"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "The user agent may determine any permitted touch behaviors for touches that begin on the element."
                    },
                    {
                        name: "cross-slide-x",
                        browsers: [
                            "E12",
                            "FF52",
                            "C36",
                            "IE11",
                            "O23"
                        ]
                    },
                    {
                        name: "cross-slide-y",
                        browsers: [
                            "E12",
                            "FF52",
                            "C36",
                            "IE11",
                            "O23"
                        ]
                    },
                    {
                        name: "double-tap-zoom",
                        browsers: [
                            "E12",
                            "FF52",
                            "C36",
                            "IE11",
                            "O23"
                        ]
                    },
                    {
                        name: "manipulation",
                        "description": "The user agent may consider touches that begin on the element only for the purposes of scrolling and continuous zooming."
                    },
                    {
                        name: "none",
                        "description": "Touches that begin on the element must not trigger default touch behaviors."
                    },
                    {
                        name: "pan-x",
                        "description": "The user agent may consider touches that begin on the element only for the purposes of horizontally scrolling the element’s nearest ancestor with horizontally scrollable content."
                    },
                    {
                        name: "pan-y",
                        "description": "The user agent may consider touches that begin on the element only for the purposes of vertically scrolling the element’s nearest ancestor with vertically scrollable content."
                    },
                    {
                        name: "pinch-zoom",
                        browsers: [
                            "E12",
                            "FF52",
                            "C36",
                            "IE11",
                            "O23"
                        ]
                    }
                ],
                "syntax": "auto | none | [ [ pan-x | pan-left | pan-right ] || [ pan-y | pan-up | pan-down ] || pinch-zoom ] | manipulation",
                "description": "Determines whether touch input may trigger default behavior supplied by user agent.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "transform",
                values: [
                    {
                        name: "matrix()"
                    },
                    {
                        name: "matrix3d()"
                    },
                    {
                        name: "none"
                    },
                    {
                        name: "perspective()"
                    },
                    {
                        name: "rotate()"
                    },
                    {
                        name: "rotate3d()"
                    },
                    {
                        name: "rotateX('angle')"
                    },
                    {
                        name: "rotateY('angle')"
                    },
                    {
                        name: "rotateZ('angle')"
                    },
                    {
                        name: "scale()"
                    },
                    {
                        name: "scale3d()"
                    },
                    {
                        name: "scaleX()"
                    },
                    {
                        name: "scaleY()"
                    },
                    {
                        name: "scaleZ()"
                    },
                    {
                        name: "skew()"
                    },
                    {
                        name: "skewX()"
                    },
                    {
                        name: "skewY()"
                    },
                    {
                        name: "translate()"
                    },
                    {
                        name: "translate3d()"
                    },
                    {
                        name: "translateX()"
                    },
                    {
                        name: "translateY()"
                    },
                    {
                        name: "translateZ()"
                    }
                ],
                "syntax": "none | <transform-list>",
                "description": "A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "transform-origin",
                "syntax": "[ <length-percentage> | left | center | right | top | bottom ] | [ [ <length-percentage> | left | center | right ] && [ <length-percentage> | top | center | bottom ] ] <length>?",
                "description": "Establishes the origin of transformation for an element.",
                "restrictions": [
                    "position",
                    "length",
                    "percentage"
                ]
            },
            {
                name: "transform-style",
                browsers: [
                    "E12",
                    "FF16",
                    "S",
                    "C12",
                    "O15"
                ],
                values: [
                    {
                        name: "flat"
                    },
                    {
                        name: "preserve-3d",
                        browsers: [
                            "E12",
                            "FF16",
                            "S",
                            "C12",
                            "O15"
                        ]
                    }
                ],
                "syntax": "flat | preserve-3d",
                "description": "Defines how nested elements are rendered in 3D space.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "transition",
                values: [
                    {
                        name: "all",
                        "description": "Every property that is able to undergo a transition will do so."
                    },
                    {
                        name: "none",
                        "description": "No property will transition."
                    }
                ],
                "syntax": "<single-transition>#",
                "description": "Shorthand property combines four of the transition properties into a single property.",
                "restrictions": [
                    "time",
                    "property",
                    "timing-function",
                    "enum"
                ]
            },
            {
                name: "transition-delay",
                "syntax": "<time>#",
                "description": "Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.",
                "restrictions": [
                    "time"
                ]
            },
            {
                name: "transition-duration",
                "syntax": "<time>#",
                "description": "Specifies how long the transition from the old value to the new value should take.",
                "restrictions": [
                    "time"
                ]
            },
            {
                name: "transition-property",
                values: [
                    {
                        name: "all",
                        "description": "Every property that is able to undergo a transition will do so."
                    },
                    {
                        name: "none",
                        "description": "No property will transition."
                    }
                ],
                "syntax": "none | <single-transition-property>#",
                "description": "Specifies the name of the CSS property to which the transition is applied.",
                "restrictions": [
                    "property"
                ]
            },
            {
                name: "transition-timing-function",
                "syntax": "<single-transition-timing-function>#",
                "description": "Describes how the intermediate values used during a transition will be calculated.",
                "restrictions": [
                    "timing-function"
                ]
            },
            {
                name: "unicode-bidi",
                values: [
                    {
                        name: "bidi-override"
                    },
                    {
                        name: "embed"
                    },
                    {
                        name: "isolate",
                        "description": "The contents of the element are considered to be inside a separate, independent paragraph."
                    },
                    {
                        name: "isolate-override"
                    },
                    {
                        name: "normal",
                        "description": "The element does not open an additional level of embedding with respect to the bidirectional algorithm. For inline-level elements, implicit reordering works across element boundaries."
                    },
                    {
                        name: "plaintext"
                    }
                ],
                "syntax": "normal | embed | isolate | bidi-override | isolate-override | plaintext",
                "description": "The level of embedding with respect to the bidirectional algorithm.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "unicode-range",
                values: [
                    {
                        name: "U+26"
                    },
                    {
                        name: "U+20-24F, U+2B0-2FF, U+370-4FF, U+1E00-1EFF, U+2000-20CF, U+2100-23FF, U+2500-26FF, U+E000-F8FF, U+FB00–FB4F"
                    },
                    {
                        name: "U+20-17F, U+2B0-2FF, U+2000-206F, U+20A0-20CF, U+2100-21FF, U+2600-26FF"
                    },
                    {
                        name: "U+20-2FF, U+370-4FF, U+1E00-20CF, U+2100-23FF, U+2500-26FF, U+FB00-FB4F, U+FFF0-FFFD"
                    },
                    {
                        name: "U+20-4FF, U+530-58F, U+10D0-10FF, U+1E00-23FF, U+2440-245F, U+2500-26FF, U+FB00-FB4F, U+FE20-FE2F, U+FFF0-FFFD"
                    },
                    {
                        name: "U+00-7F"
                    },
                    {
                        name: "U+80-FF"
                    },
                    {
                        name: "U+100-17F"
                    },
                    {
                        name: "U+180-24F"
                    },
                    {
                        name: "U+1E00-1EFF"
                    },
                    {
                        name: "U+250-2AF"
                    },
                    {
                        name: "U+370-3FF"
                    },
                    {
                        name: "U+1F00-1FFF"
                    },
                    {
                        name: "U+400-4FF"
                    },
                    {
                        name: "U+500-52F"
                    },
                    {
                        name: "U+00-52F, U+1E00-1FFF, U+2200–22FF"
                    },
                    {
                        name: "U+530–58F"
                    },
                    {
                        name: "U+590–5FF"
                    },
                    {
                        name: "U+600–6FF"
                    },
                    {
                        name: "U+750–77F"
                    },
                    {
                        name: "U+8A0–8FF"
                    },
                    {
                        name: "U+700–74F"
                    },
                    {
                        name: "U+900–97F"
                    },
                    {
                        name: "U+980–9FF"
                    },
                    {
                        name: "U+A00–A7F"
                    },
                    {
                        name: "U+A80–AFF"
                    },
                    {
                        name: "U+B00–B7F"
                    },
                    {
                        name: "U+B80–BFF"
                    },
                    {
                        name: "U+C00–C7F"
                    },
                    {
                        name: "U+C80–CFF"
                    },
                    {
                        name: "U+D00–D7F"
                    },
                    {
                        name: "U+D80–DFF"
                    },
                    {
                        name: "U+118A0–118FF"
                    },
                    {
                        name: "U+E00–E7F"
                    },
                    {
                        name: "U+1A20–1AAF"
                    },
                    {
                        name: "U+AA80–AADF"
                    },
                    {
                        name: "U+E80–EFF"
                    },
                    {
                        name: "U+F00–FFF"
                    },
                    {
                        name: "U+1000–109F"
                    },
                    {
                        name: "U+10A0–10FF"
                    },
                    {
                        name: "U+1200–137F"
                    },
                    {
                        name: "U+1380–139F"
                    },
                    {
                        name: "U+2D80–2DDF"
                    },
                    {
                        name: "U+AB00–AB2F"
                    },
                    {
                        name: "U+1780–17FF"
                    },
                    {
                        name: "U+1800–18AF"
                    },
                    {
                        name: "U+1B80–1BBF"
                    },
                    {
                        name: "U+1CC0–1CCF"
                    },
                    {
                        name: "U+4E00–9FD5"
                    },
                    {
                        name: "U+3400–4DB5"
                    },
                    {
                        name: "U+2F00–2FDF"
                    },
                    {
                        name: "U+2E80–2EFF"
                    },
                    {
                        name: "U+1100–11FF"
                    },
                    {
                        name: "U+AC00–D7AF"
                    },
                    {
                        name: "U+3040–309F"
                    },
                    {
                        name: "U+30A0–30FF"
                    },
                    {
                        name: "U+A5, U+4E00-9FFF, U+30??, U+FF00-FF9F"
                    },
                    {
                        name: "U+A4D0–A4FF"
                    },
                    {
                        name: "U+A000–A48F"
                    },
                    {
                        name: "U+A490–A4CF"
                    },
                    {
                        name: "U+2000-206F"
                    },
                    {
                        name: "U+3000–303F"
                    },
                    {
                        name: "U+2070–209F"
                    },
                    {
                        name: "U+20A0–20CF"
                    },
                    {
                        name: "U+2100–214F"
                    },
                    {
                        name: "U+2150–218F"
                    },
                    {
                        name: "U+2190–21FF"
                    },
                    {
                        name: "U+2200–22FF"
                    },
                    {
                        name: "U+2300–23FF"
                    },
                    {
                        name: "U+E000-F8FF"
                    },
                    {
                        name: "U+FB00–FB4F"
                    },
                    {
                        name: "U+FB50–FDFF"
                    },
                    {
                        name: "U+1F600–1F64F"
                    },
                    {
                        name: "U+2600–26FF"
                    },
                    {
                        name: "U+1F300–1F5FF"
                    },
                    {
                        name: "U+1F900–1F9FF"
                    },
                    {
                        name: "U+1F680–1F6FF"
                    }
                ],
                "syntax": "<unicode-range>#",
                "description": "@font-face descriptor. Defines the set of Unicode codepoints that may be supported by the font face for which it is declared.",
                "restrictions": [
                    "unicode-range"
                ]
            },
            {
                name: "user-select",
                values: [
                    {
                        name: "all",
                        "description": "The content of the element must be selected atomically"
                    },
                    {
                        name: "auto"
                    },
                    {
                        name: "contain",
                        "description": "UAs must not allow a selection which is started in this element to be extended outside of this element."
                    },
                    {
                        name: "none",
                        "description": "The UA must not allow selections to be started in this element."
                    },
                    {
                        name: "text",
                        "description": "The element imposes no constraint on the selection."
                    }
                ],
                "status": "nonstandard",
                "syntax": "auto | text | none | contain | all",
                "description": "Controls the appearance of selection.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "vertical-align",
                values: [
                    {
                        name: "auto",
                        "description": "Align the dominant baseline of the parent box with the equivalent, or heuristically reconstructed, baseline of the element inline box."
                    },
                    {
                        name: "baseline",
                        "description": "Align the 'alphabetic' baseline of the element with the 'alphabetic' baseline of the parent element."
                    },
                    {
                        name: "bottom",
                        "description": "Align the after edge of the extended inline box with the after-edge of the line box."
                    },
                    {
                        name: "middle",
                        "description": "Align the 'middle' baseline of the inline element with the middle baseline of the parent."
                    },
                    {
                        name: "sub",
                        "description": "Lower the baseline of the box to the proper position for subscripts of the parent's box. (This value has no effect on the font size of the element's text.)"
                    },
                    {
                        name: "super",
                        "description": "Raise the baseline of the box to the proper position for superscripts of the parent's box. (This value has no effect on the font size of the element's text.)"
                    },
                    {
                        name: "text-bottom"
                    },
                    {
                        name: "text-top"
                    },
                    {
                        name: "top",
                        "description": "Align the before edge of the extended inline box with the before-edge of the line box."
                    },
                    {
                        name: "-webkit-baseline-middle"
                    }
                ],
                "syntax": "baseline | sub | super | text-top | text-bottom | middle | top | bottom | <percentage> | <length>",
                "description": "Affects the vertical positioning of the inline boxes generated by an inline-level element inside a line box.",
                "restrictions": [
                    "percentage",
                    "length"
                ]
            },
            {
                name: "visibility",
                values: [
                    {
                        name: "collapse",
                        "description": "Table-specific. If used on elements other than rows, row groups, columns, or column groups, 'collapse' has the same meaning as 'hidden'."
                    },
                    {
                        name: "hidden",
                        "description": "The generated box is invisible (fully transparent, nothing is drawn), but still affects layout."
                    },
                    {
                        name: "visible",
                        "description": "The generated box is visible."
                    }
                ],
                "syntax": "visible | hidden | collapse",
                "description": "Specifies whether the boxes generated by an element are rendered. Invisible boxes still affect layout (set the ‘display’ property to ‘none’ to suppress box generation altogether).",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-webkit-animation",
                browsers: [
                    "C",
                    "S5"
                ],
                values: [
                    {
                        name: "alternate"
                    },
                    {
                        name: "alternate-reverse"
                    },
                    {
                        name: "backwards"
                    },
                    {
                        name: "both",
                        "description": "Both forwards and backwards fill modes are applied."
                    },
                    {
                        name: "forwards"
                    },
                    {
                        name: "infinite",
                        "description": "Causes the animation to repeat forever."
                    },
                    {
                        name: "none",
                        "description": "No animation is performed"
                    },
                    {
                        name: "normal",
                        "description": "Normal playback."
                    },
                    {
                        name: "reverse",
                        "description": "All iterations of the animation are played in the reverse direction from the way they were specified."
                    }
                ],
                "description": "Shorthand property combines six of the animation properties into a single property.",
                "restrictions": [
                    "time",
                    "enum",
                    "timing-function",
                    "identifier",
                    "number"
                ]
            },
            {
                name: "-webkit-animation-delay",
                browsers: [
                    "C",
                    "S5"
                ],
                "description": "Defines when the animation will start.",
                "restrictions": [
                    "time"
                ]
            },
            {
                name: "-webkit-animation-direction",
                browsers: [
                    "C",
                    "S5"
                ],
                values: [
                    {
                        name: "alternate"
                    },
                    {
                        name: "alternate-reverse"
                    },
                    {
                        name: "normal",
                        "description": "Normal playback."
                    },
                    {
                        name: "reverse",
                        "description": "All iterations of the animation are played in the reverse direction from the way they were specified."
                    }
                ],
                "description": "Defines whether or not the animation should play in reverse on alternate cycles.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-webkit-animation-duration",
                browsers: [
                    "C",
                    "S5"
                ],
                "description": "Defines the length of time that an animation takes to complete one cycle.",
                "restrictions": [
                    "time"
                ]
            },
            {
                name: "-webkit-animation-fill-mode",
                browsers: [
                    "C",
                    "S5"
                ],
                values: [
                    {
                        name: "backwards"
                    },
                    {
                        name: "both",
                        "description": "Both forwards and backwards fill modes are applied."
                    },
                    {
                        name: "forwards"
                    },
                    {
                        name: "none",
                        "description": "There is no change to the property value between the time the animation is applied and the time the animation begins playing or after the animation completes."
                    }
                ],
                "description": "Defines what values are applied by the animation outside the time it is executing.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-webkit-animation-iteration-count",
                browsers: [
                    "C",
                    "S5"
                ],
                values: [
                    {
                        name: "infinite",
                        "description": "Causes the animation to repeat forever."
                    }
                ],
                "description": "Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.",
                "restrictions": [
                    "number",
                    "enum"
                ]
            },
            {
                name: "-webkit-animation-name",
                browsers: [
                    "C",
                    "S5"
                ],
                values: [
                    {
                        name: "none",
                        "description": "No animation is performed"
                    }
                ],
                "description": "Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.",
                "restrictions": [
                    "identifier",
                    "enum"
                ]
            },
            {
                name: "-webkit-animation-play-state",
                browsers: [
                    "C",
                    "S5"
                ],
                values: [
                    {
                        name: "paused"
                    },
                    {
                        name: "running"
                    }
                ],
                "description": "Defines whether the animation is running or paused.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-webkit-animation-timing-function",
                browsers: [
                    "C",
                    "S5"
                ],
                "description": "Describes how the animation will progress over one cycle of its duration. See the 'transition-timing-function'.",
                "restrictions": [
                    "timing-function"
                ]
            },
            {
                name: "-webkit-appearance",
                browsers: [
                    "C",
                    "S3"
                ],
                values: [
                    {
                        name: "button"
                    },
                    {
                        name: "button-bevel"
                    },
                    {
                        name: "caps-lock-indicator"
                    },
                    {
                        name: "caret"
                    },
                    {
                        name: "checkbox"
                    },
                    {
                        name: "default-button"
                    },
                    {
                        name: "listbox"
                    },
                    {
                        name: "listitem"
                    },
                    {
                        name: "media-fullscreen-button"
                    },
                    {
                        name: "media-mute-button"
                    },
                    {
                        name: "media-play-button"
                    },
                    {
                        name: "media-seek-back-button"
                    },
                    {
                        name: "media-seek-forward-button"
                    },
                    {
                        name: "media-slider"
                    },
                    {
                        name: "media-sliderthumb"
                    },
                    {
                        name: "menulist"
                    },
                    {
                        name: "menulist-button"
                    },
                    {
                        name: "menulist-text"
                    },
                    {
                        name: "menulist-textfield"
                    },
                    {
                        name: "none"
                    },
                    {
                        name: "push-button"
                    },
                    {
                        name: "radio"
                    },
                    {
                        name: "scrollbarbutton-down"
                    },
                    {
                        name: "scrollbarbutton-left"
                    },
                    {
                        name: "scrollbarbutton-right"
                    },
                    {
                        name: "scrollbarbutton-up"
                    },
                    {
                        name: "scrollbargripper-horizontal"
                    },
                    {
                        name: "scrollbargripper-vertical"
                    },
                    {
                        name: "scrollbarthumb-horizontal"
                    },
                    {
                        name: "scrollbarthumb-vertical"
                    },
                    {
                        name: "scrollbartrack-horizontal"
                    },
                    {
                        name: "scrollbartrack-vertical"
                    },
                    {
                        name: "searchfield"
                    },
                    {
                        name: "searchfield-cancel-button"
                    },
                    {
                        name: "searchfield-decoration"
                    },
                    {
                        name: "searchfield-results-button"
                    },
                    {
                        name: "searchfield-results-decoration"
                    },
                    {
                        name: "slider-horizontal"
                    },
                    {
                        name: "sliderthumb-horizontal"
                    },
                    {
                        name: "sliderthumb-vertical"
                    },
                    {
                        name: "slider-vertical"
                    },
                    {
                        name: "square-button"
                    },
                    {
                        name: "textarea"
                    },
                    {
                        name: "textfield"
                    }
                ],
                "status": "nonstandard",
                "syntax": "none | button | button-bevel | caret | checkbox | default-button | inner-spin-button | listbox | listitem | media-controls-background | media-controls-fullscreen-background | media-current-time-display | media-enter-fullscreen-button | media-exit-fullscreen-button | media-fullscreen-button | media-mute-button | media-overlay-play-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | media-time-remaining-display | media-toggle-closed-captions-button | media-volume-slider | media-volume-slider-container | media-volume-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | meter | progress-bar | progress-bar-value | push-button | radio | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield",
                "description": "Changes the appearance of buttons and other controls to resemble native controls.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-webkit-backdrop-filter",
                browsers: [
                    "S9"
                ],
                values: [
                    {
                        name: "none",
                        "description": "No filter effects are applied."
                    },
                    {
                        name: "blur()"
                    },
                    {
                        name: "brightness()"
                    },
                    {
                        name: "contrast()"
                    },
                    {
                        name: "drop-shadow()"
                    },
                    {
                        name: "grayscale()"
                    },
                    {
                        name: "hue-rotate()"
                    },
                    {
                        name: "invert()"
                    },
                    {
                        name: "opacity()"
                    },
                    {
                        name: "saturate()"
                    },
                    {
                        name: "sepia()"
                    },
                    {
                        name: "url()",
                        "description": "A filter reference to a <filter> element."
                    }
                ],
                "description": "Applies a filter effect where the first filter in the list takes the element's background image as the input image.",
                "restrictions": [
                    "enum",
                    "url"
                ]
            },
            {
                name: "-webkit-backface-visibility",
                browsers: [
                    "C",
                    "S5"
                ],
                values: [
                    {
                        name: "hidden"
                    },
                    {
                        name: "visible"
                    }
                ],
                "description": "Determines whether or not the 'back' side of a transformed element is visible when facing the viewer. With an identity transform, the front side of an element faces the viewer.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-webkit-background-clip",
                browsers: [
                    "C",
                    "S3"
                ],
                "description": "Determines the background painting area.",
                "restrictions": [
                    "box"
                ]
            },
            {
                name: "-webkit-background-composite",
                browsers: [
                    "C",
                    "S3"
                ],
                values: [
                    {
                        name: "border"
                    },
                    {
                        name: "padding"
                    }
                ],
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-webkit-background-origin",
                browsers: [
                    "C",
                    "S3"
                ],
                "description": "For elements rendered as a single box, specifies the background positioning area. For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages) specifies which boxes 'box-decoration-break' operates on to determine the background positioning area(s).",
                "restrictions": [
                    "box"
                ]
            },
            {
                name: "-webkit-border-image",
                browsers: [
                    "C",
                    "S5"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."
                    },
                    {
                        name: "fill",
                        "description": "Causes the middle part of the border-image to be preserved."
                    },
                    {
                        name: "none"
                    },
                    {
                        name: "repeat"
                    },
                    {
                        name: "round",
                        "description": "The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."
                    },
                    {
                        name: "space",
                        "description": "The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."
                    },
                    {
                        name: "stretch",
                        "description": "The image is stretched to fill the area."
                    },
                    {
                        name: "url()"
                    }
                ],
                "description": "Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.",
                "restrictions": [
                    "length",
                    "percentage",
                    "number",
                    "url",
                    "enum"
                ]
            },
            {
                name: "-webkit-box-align",
                browsers: [
                    "C",
                    "S3"
                ],
                values: [
                    {
                        name: "baseline",
                        "description": "If this box orientation is inline-axis or horizontal, all children are placed with their baselines aligned, and extra space placed before or after as necessary. For block flows, the baseline of the first non-empty line box located within the element is used. For tables, the baseline of the first cell is used."
                    },
                    {
                        name: "center",
                        "description": "Any extra space is divided evenly, with half placed above the child and the other half placed after the child."
                    },
                    {
                        name: "end",
                        "description": "For normal direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element. For reverse direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element."
                    },
                    {
                        name: "start",
                        "description": "For normal direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element. For reverse direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element."
                    },
                    {
                        name: "stretch",
                        "description": "The height of each child is adjusted to that of the containing block."
                    }
                ],
                "description": "Specifies the alignment of nested elements within an outer flexible box element.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-webkit-box-direction",
                browsers: [
                    "C",
                    "S3"
                ],
                values: [
                    {
                        name: "normal",
                        "description": "A box with a computed value of horizontal for box-orient displays its children from left to right. A box with a computed value of vertical displays its children from top to bottom."
                    },
                    {
                        name: "reverse",
                        "description": "A box with a computed value of horizontal for box-orient displays its children from right to left. A box with a computed value of vertical displays its children from bottom to top."
                    }
                ],
                "description": "In webkit applications, -webkit-box-direction specifies whether a box lays out its contents normally (from the top or left edge), or in reverse (from the bottom or right edge).",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-webkit-box-flex",
                browsers: [
                    "C",
                    "S3"
                ],
                "description": "Specifies an element's flexibility.",
                "restrictions": [
                    "number"
                ]
            },
            {
                name: "-webkit-box-flex-group",
                browsers: [
                    "C",
                    "S3"
                ],
                "description": "Flexible elements can be assigned to flex groups using the 'box-flex-group' property.",
                "restrictions": [
                    "integer"
                ]
            },
            {
                name: "-webkit-box-ordinal-group",
                browsers: [
                    "C",
                    "S3"
                ],
                "description": "Indicates the ordinal group the element belongs to. Elements with a lower ordinal group are displayed before those with a higher ordinal group.",
                "restrictions": [
                    "integer"
                ]
            },
            {
                name: "-webkit-box-orient",
                browsers: [
                    "C",
                    "S3"
                ],
                values: [
                    {
                        name: "block-axis"
                    },
                    {
                        name: "horizontal",
                        "description": "The box displays its children from left to right in a horizontal line."
                    },
                    {
                        name: "inline-axis"
                    },
                    {
                        name: "vertical",
                        "description": "The box displays its children from stacked from top to bottom vertically."
                    }
                ],
                "description": "In webkit applications, -webkit-box-orient specifies whether a box lays out its contents horizontally or vertically.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-webkit-box-pack",
                browsers: [
                    "C",
                    "S3"
                ],
                values: [
                    {
                        name: "center",
                        "description": "The extra space is divided evenly, with half placed before the first child and the other half placed after the last child."
                    },
                    {
                        name: "end",
                        "description": "For normal direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child. For reverse direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child."
                    },
                    {
                        name: "justify",
                        "description": "The space is divided evenly in-between each child, with none of the extra space placed before the first child or after the last child. If there is only one child, treat the pack value as if it were start."
                    },
                    {
                        name: "start",
                        "description": "For normal direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child. For reverse direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child."
                    }
                ],
                "description": "Specifies alignment of child elements within the current element in the direction of orientation.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-webkit-box-reflect",
                browsers: [
                    "S4",
                    "C4",
                    "O15"
                ],
                values: [
                    {
                        name: "above",
                        "description": "The reflection appears above the border box."
                    },
                    {
                        name: "below",
                        "description": "The reflection appears below the border box."
                    },
                    {
                        name: "left",
                        "description": "The reflection appears to the left of the border box."
                    },
                    {
                        name: "right",
                        "description": "The reflection appears to the right of the border box."
                    }
                ],
                "status": "nonstandard",
                "syntax": "[ above | below | right | left ]? <length>? <image>?",
                "description": "Defines a reflection of a border box."
            },
            {
                name: "-webkit-box-sizing",
                browsers: [
                    "C",
                    "S3"
                ],
                values: [
                    {
                        name: "border-box"
                    },
                    {
                        name: "content-box"
                    }
                ],
                "description": "Box Model addition in CSS3.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-webkit-break-after",
                browsers: [
                    "S7"
                ],
                values: [
                    {
                        name: "always",
                        "description": "Always force a page break before/after the generated box."
                    },
                    {
                        name: "auto",
                        "description": "Neither force nor forbid a page/column break before/after the generated box."
                    },
                    {
                        name: "avoid",
                        "description": "Avoid a page/column break before/after the generated box."
                    },
                    {
                        name: "avoid-column",
                        "description": "Avoid a column break before/after the generated box."
                    },
                    {
                        name: "avoid-page",
                        "description": "Avoid a page break before/after the generated box."
                    },
                    {
                        name: "avoid-region"
                    },
                    {
                        name: "column",
                        "description": "Always force a column break before/after the generated box."
                    },
                    {
                        name: "left",
                        "description": "Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."
                    },
                    {
                        name: "page",
                        "description": "Always force a page break before/after the generated box."
                    },
                    {
                        name: "region"
                    },
                    {
                        name: "right",
                        "description": "Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."
                    }
                ],
                "description": "Describes the page/column break behavior before the generated box.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-webkit-break-before",
                browsers: [
                    "S7"
                ],
                values: [
                    {
                        name: "always",
                        "description": "Always force a page break before/after the generated box."
                    },
                    {
                        name: "auto",
                        "description": "Neither force nor forbid a page/column break before/after the generated box."
                    },
                    {
                        name: "avoid",
                        "description": "Avoid a page/column break before/after the generated box."
                    },
                    {
                        name: "avoid-column",
                        "description": "Avoid a column break before/after the generated box."
                    },
                    {
                        name: "avoid-page",
                        "description": "Avoid a page break before/after the generated box."
                    },
                    {
                        name: "avoid-region"
                    },
                    {
                        name: "column",
                        "description": "Always force a column break before/after the generated box."
                    },
                    {
                        name: "left",
                        "description": "Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."
                    },
                    {
                        name: "page",
                        "description": "Always force a page break before/after the generated box."
                    },
                    {
                        name: "region"
                    },
                    {
                        name: "right",
                        "description": "Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."
                    }
                ],
                "description": "Describes the page/column break behavior before the generated box.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-webkit-break-inside",
                browsers: [
                    "S7"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "Neither force nor forbid a page/column break inside the generated box."
                    },
                    {
                        name: "avoid",
                        "description": "Avoid a page/column break inside the generated box."
                    },
                    {
                        name: "avoid-column",
                        "description": "Avoid a column break inside the generated box."
                    },
                    {
                        name: "avoid-page",
                        "description": "Avoid a page break inside the generated box."
                    },
                    {
                        name: "avoid-region"
                    }
                ],
                "description": "Describes the page/column break behavior inside the generated box.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-webkit-column-break-after",
                browsers: [
                    "C",
                    "S3"
                ],
                values: [
                    {
                        name: "always",
                        "description": "Always force a page break before/after the generated box."
                    },
                    {
                        name: "auto",
                        "description": "Neither force nor forbid a page/column break before/after the generated box."
                    },
                    {
                        name: "avoid",
                        "description": "Avoid a page/column break before/after the generated box."
                    },
                    {
                        name: "avoid-column",
                        "description": "Avoid a column break before/after the generated box."
                    },
                    {
                        name: "avoid-page",
                        "description": "Avoid a page break before/after the generated box."
                    },
                    {
                        name: "avoid-region"
                    },
                    {
                        name: "column",
                        "description": "Always force a column break before/after the generated box."
                    },
                    {
                        name: "left",
                        "description": "Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."
                    },
                    {
                        name: "page",
                        "description": "Always force a page break before/after the generated box."
                    },
                    {
                        name: "region"
                    },
                    {
                        name: "right",
                        "description": "Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."
                    }
                ],
                "description": "Describes the page/column break behavior before the generated box.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-webkit-column-break-before",
                browsers: [
                    "C",
                    "S3"
                ],
                values: [
                    {
                        name: "always",
                        "description": "Always force a page break before/after the generated box."
                    },
                    {
                        name: "auto",
                        "description": "Neither force nor forbid a page/column break before/after the generated box."
                    },
                    {
                        name: "avoid",
                        "description": "Avoid a page/column break before/after the generated box."
                    },
                    {
                        name: "avoid-column",
                        "description": "Avoid a column break before/after the generated box."
                    },
                    {
                        name: "avoid-page",
                        "description": "Avoid a page break before/after the generated box."
                    },
                    {
                        name: "avoid-region"
                    },
                    {
                        name: "column",
                        "description": "Always force a column break before/after the generated box."
                    },
                    {
                        name: "left",
                        "description": "Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."
                    },
                    {
                        name: "page",
                        "description": "Always force a page break before/after the generated box."
                    },
                    {
                        name: "region"
                    },
                    {
                        name: "right",
                        "description": "Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."
                    }
                ],
                "description": "Describes the page/column break behavior before the generated box.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-webkit-column-break-inside",
                browsers: [
                    "C",
                    "S3"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "Neither force nor forbid a page/column break inside the generated box."
                    },
                    {
                        name: "avoid",
                        "description": "Avoid a page/column break inside the generated box."
                    },
                    {
                        name: "avoid-column",
                        "description": "Avoid a column break inside the generated box."
                    },
                    {
                        name: "avoid-page",
                        "description": "Avoid a page break inside the generated box."
                    },
                    {
                        name: "avoid-region"
                    }
                ],
                "description": "Describes the page/column break behavior inside the generated box.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-webkit-column-count",
                browsers: [
                    "C",
                    "S3"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "Determines the number of columns by the 'column-width' property and the element width."
                    }
                ],
                "description": "Describes the optimal number of columns into which the content of the element will be flowed.",
                "restrictions": [
                    "integer"
                ]
            },
            {
                name: "-webkit-column-gap",
                browsers: [
                    "C",
                    "S3"
                ],
                values: [
                    {
                        name: "normal",
                        "description": "User agent specific and typically equivalent to 1em."
                    }
                ],
                "description": "Sets the gap between columns. If there is a column rule between columns, it will appear in the middle of the gap.",
                "restrictions": [
                    "length"
                ]
            },
            {
                name: "-webkit-column-rule",
                browsers: [
                    "C",
                    "S3"
                ],
                "description": "This property is a shorthand for setting 'column-rule-width', 'column-rule-style', and 'column-rule-color' at the same place in the style sheet. Omitted values are set to their initial values.",
                "restrictions": [
                    "length",
                    "line-width",
                    "line-style",
                    "color"
                ]
            },
            {
                name: "-webkit-column-rule-color",
                browsers: [
                    "C",
                    "S3"
                ],
                "description": "Sets the color of the column rule",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "-webkit-column-rule-style",
                browsers: [
                    "C",
                    "S3"
                ],
                "description": "Sets the style of the rule between columns of an element.",
                "restrictions": [
                    "line-style"
                ]
            },
            {
                name: "-webkit-column-rule-width",
                browsers: [
                    "C",
                    "S3"
                ],
                "description": "Sets the width of the rule between columns. Negative values are not allowed.",
                "restrictions": [
                    "length",
                    "line-width"
                ]
            },
            {
                name: "-webkit-columns",
                browsers: [
                    "C",
                    "S3"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "The width depends on the values of other properties."
                    }
                ],
                "description": "A shorthand property which sets both 'column-width' and 'column-count'.",
                "restrictions": [
                    "length",
                    "integer"
                ]
            },
            {
                name: "-webkit-column-span",
                browsers: [
                    "C",
                    "S3"
                ],
                values: [
                    {
                        name: "all",
                        "description": "The element spans across all columns. Content in the normal flow that appears before the element is automatically balanced across all columns before the element appear."
                    },
                    {
                        name: "none",
                        "description": "The element does not span multiple columns."
                    }
                ],
                "description": "Describes the page/column break behavior after the generated box.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-webkit-column-width",
                browsers: [
                    "C",
                    "S3"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "The width depends on the values of other properties."
                    }
                ],
                "description": "This property describes the width of columns in multicol elements.",
                "restrictions": [
                    "length"
                ]
            },
            {
                name: "-webkit-filter",
                browsers: [
                    "C18",
                    "O15",
                    "S6"
                ],
                values: [
                    {
                        name: "none",
                        "description": "No filter effects are applied."
                    },
                    {
                        name: "blur()"
                    },
                    {
                        name: "brightness()"
                    },
                    {
                        name: "contrast()"
                    },
                    {
                        name: "drop-shadow()"
                    },
                    {
                        name: "grayscale()"
                    },
                    {
                        name: "hue-rotate()"
                    },
                    {
                        name: "invert()"
                    },
                    {
                        name: "opacity()"
                    },
                    {
                        name: "saturate()"
                    },
                    {
                        name: "sepia()"
                    },
                    {
                        name: "url()",
                        "description": "A filter reference to a <filter> element."
                    }
                ],
                "description": "Processes an element’s rendering before it is displayed in the document, by applying one or more filter effects.",
                "restrictions": [
                    "enum",
                    "url"
                ]
            },
            {
                name: "-webkit-flow-from",
                browsers: [
                    "S6.1"
                ],
                values: [
                    {
                        name: "none",
                        "description": "The block container is not a CSS Region."
                    }
                ],
                "description": "Makes a block container a region and associates it with a named flow.",
                "restrictions": [
                    "identifier"
                ]
            },
            {
                name: "-webkit-flow-into",
                browsers: [
                    "S6.1"
                ],
                values: [
                    {
                        name: "none",
                        "description": "The element is not moved to a named flow and normal CSS processing takes place."
                    }
                ],
                "description": "Places an element or its contents into a named flow.",
                "restrictions": [
                    "identifier"
                ]
            },
            {
                name: "-webkit-font-feature-settings",
                browsers: [
                    "C16"
                ],
                values: [
                    {
                        name: "\"c2cs\""
                    },
                    {
                        name: "\"dlig\""
                    },
                    {
                        name: "\"kern\""
                    },
                    {
                        name: "\"liga\""
                    },
                    {
                        name: "\"lnum\""
                    },
                    {
                        name: "\"onum\""
                    },
                    {
                        name: "\"smcp\""
                    },
                    {
                        name: "\"swsh\""
                    },
                    {
                        name: "\"tnum\""
                    },
                    {
                        name: "normal",
                        "description": "No change in glyph substitution or positioning occurs."
                    },
                    {
                        name: "off"
                    },
                    {
                        name: "on"
                    }
                ],
                "description": "This property provides low-level control over OpenType font features. It is intended as a way of providing access to font features that are not widely used but are needed for a particular use case.",
                "restrictions": [
                    "string",
                    "integer"
                ]
            },
            {
                name: "-webkit-hyphens",
                browsers: [
                    "S5.1"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."
                    },
                    {
                        name: "manual"
                    },
                    {
                        name: "none",
                        "description": "Words are not broken at line breaks, even if characters inside the word suggest line break points."
                    }
                ],
                "description": "Controls whether hyphenation is allowed to create more break opportunities within a line of text.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-webkit-line-break",
                browsers: [
                    "C",
                    "S3"
                ],
                values: [
                    {
                        name: "after-white-space"
                    },
                    {
                        name: "normal"
                    }
                ],
                "description": "Specifies line-breaking rules for CJK (Chinese, Japanese, and Korean) text."
            },
            {
                name: "-webkit-margin-bottom-collapse",
                browsers: [
                    "C",
                    "S3"
                ],
                values: [
                    {
                        name: "collapse"
                    },
                    {
                        name: "discard"
                    },
                    {
                        name: "separate"
                    }
                ],
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-webkit-margin-collapse",
                browsers: [
                    "C",
                    "S3"
                ],
                values: [
                    {
                        name: "collapse"
                    },
                    {
                        name: "discard"
                    },
                    {
                        name: "separate"
                    }
                ],
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-webkit-margin-start",
                browsers: [
                    "C",
                    "S3"
                ],
                values: [
                    {
                        name: "auto"
                    }
                ],
                "restrictions": [
                    "percentage",
                    "length"
                ]
            },
            {
                name: "-webkit-margin-top-collapse",
                browsers: [
                    "C",
                    "S3"
                ],
                values: [
                    {
                        name: "collapse"
                    },
                    {
                        name: "discard"
                    },
                    {
                        name: "separate"
                    }
                ],
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-webkit-mask-clip",
                browsers: [
                    "C",
                    "O15",
                    "S4"
                ],
                "status": "nonstandard",
                "syntax": "[ <box> | border | padding | content | text ]#",
                "description": "Determines the mask painting area, which determines the area that is affected by the mask.",
                "restrictions": [
                    "box"
                ]
            },
            {
                name: "-webkit-mask-image",
                browsers: [
                    "C",
                    "O15",
                    "S4"
                ],
                values: [
                    {
                        name: "none",
                        "description": "Counts as a transparent black image layer."
                    },
                    {
                        name: "url()",
                        "description": "Reference to a <mask element or to a CSS image."
                    }
                ],
                "status": "nonstandard",
                "syntax": "<mask-reference>#",
                "description": "Sets the mask layer image of an element.",
                "restrictions": [
                    "url",
                    "image",
                    "enum"
                ]
            },
            {
                name: "-webkit-mask-origin",
                browsers: [
                    "C",
                    "O15",
                    "S4"
                ],
                "status": "nonstandard",
                "syntax": "[ <box> | border | padding | content ]#",
                "description": "Specifies the mask positioning area.",
                "restrictions": [
                    "box"
                ]
            },
            {
                name: "-webkit-mask-repeat",
                browsers: [
                    "C",
                    "O15",
                    "S4"
                ],
                "status": "nonstandard",
                "syntax": "<repeat-style>#",
                "description": "Specifies how mask layer images are tiled after they have been sized and positioned.",
                "restrictions": [
                    "repeat"
                ]
            },
            {
                name: "-webkit-mask-size",
                browsers: [
                    "C",
                    "O15",
                    "S4"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "Resolved by using the image’s intrinsic ratio and the size of the other dimension, or failing that, using the image’s intrinsic size, or failing that, treating it as 100%."
                    },
                    {
                        name: "contain",
                        "description": "Scale the image, while preserving its intrinsic aspect ratio (if any), to the largest size such that both its width and its height can fit inside the background positioning area."
                    },
                    {
                        name: "cover",
                        "description": "Scale the image, while preserving its intrinsic aspect ratio (if any), to the smallest size such that both its width and its height can completely cover the background positioning area."
                    }
                ],
                "status": "nonstandard",
                "syntax": "<bg-size>#",
                "description": "Specifies the size of the mask layer images.",
                "restrictions": [
                    "length",
                    "percentage",
                    "enum"
                ]
            },
            {
                name: "-webkit-nbsp-mode",
                browsers: [
                    "C",
                    "S3"
                ],
                values: [
                    {
                        name: "normal"
                    },
                    {
                        name: "space"
                    }
                ],
                "description": "Defines the behavior of nonbreaking spaces within text."
            },
            {
                name: "-webkit-overflow-scrolling",
                browsers: [
                    "C",
                    "S5"
                ],
                values: [
                    {
                        name: "auto"
                    },
                    {
                        name: "touch"
                    }
                ],
                "status": "nonstandard",
                "syntax": "auto | touch",
                "description": "Specifies whether to use native-style scrolling in an overflow:scroll element."
            },
            {
                name: "-webkit-padding-start",
                browsers: [
                    "C",
                    "S3"
                ],
                "restrictions": [
                    "percentage",
                    "length"
                ]
            },
            {
                name: "-webkit-perspective",
                browsers: [
                    "C",
                    "S4"
                ],
                values: [
                    {
                        name: "none",
                        "description": "No perspective transform is applied."
                    }
                ],
                "description": "Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.",
                "restrictions": [
                    "length"
                ]
            },
            {
                name: "-webkit-perspective-origin",
                browsers: [
                    "C",
                    "S4"
                ],
                "description": "Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.",
                "restrictions": [
                    "position",
                    "percentage",
                    "length"
                ]
            },
            {
                name: "-webkit-region-fragment",
                browsers: [
                    "S7"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "Content flows as it would in a regular content box."
                    },
                    {
                        name: "break"
                    }
                ],
                "description": "The 'region-fragment' property controls the behavior of the last region associated with a named flow.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-webkit-tap-highlight-color",
                browsers: [
                    "E",
                    "C",
                    "S3.1"
                ],
                "status": "nonstandard",
                "syntax": "<color>",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "-webkit-text-fill-color",
                browsers: [
                    "E12",
                    "FF49",
                    "S",
                    "C",
                    "O"
                ],
                "status": "nonstandard",
                "syntax": "<color>",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "-webkit-text-size-adjust",
                browsers: [
                    "E",
                    "C",
                    "S3"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "Renderers must use the default size adjustment when displaying on a small device."
                    },
                    {
                        name: "none",
                        "description": "Renderers must not do size adjustment when displaying on a small device."
                    }
                ],
                "description": "Specifies a size adjustment for displaying text content in mobile browsers.",
                "restrictions": [
                    "percentage"
                ]
            },
            {
                name: "-webkit-text-stroke",
                browsers: [
                    "E15",
                    "FF49",
                    "S3.1",
                    "C4",
                    "O15"
                ],
                "status": "nonstandard",
                "syntax": "<length> || <color>",
                "restrictions": [
                    "length",
                    "line-width",
                    "color",
                    "percentage"
                ]
            },
            {
                name: "-webkit-text-stroke-color",
                browsers: [
                    "E15",
                    "FF49",
                    "S",
                    "C",
                    "O"
                ],
                "status": "nonstandard",
                "syntax": "<color>",
                "restrictions": [
                    "color"
                ]
            },
            {
                name: "-webkit-text-stroke-width",
                browsers: [
                    "E15",
                    "FF49",
                    "S",
                    "C",
                    "O"
                ],
                "status": "nonstandard",
                "syntax": "<length>",
                "restrictions": [
                    "length",
                    "line-width",
                    "percentage"
                ]
            },
            {
                name: "-webkit-touch-callout",
                browsers: [
                    "S4"
                ],
                values: [
                    {
                        name: "none"
                    }
                ],
                "status": "nonstandard",
                "syntax": "default | none",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-webkit-transform",
                browsers: [
                    "C",
                    "O12",
                    "S3.1"
                ],
                values: [
                    {
                        name: "matrix()"
                    },
                    {
                        name: "matrix3d()"
                    },
                    {
                        name: "none"
                    },
                    {
                        name: "perspective()"
                    },
                    {
                        name: "rotate()"
                    },
                    {
                        name: "rotate3d()"
                    },
                    {
                        name: "rotateX('angle')"
                    },
                    {
                        name: "rotateY('angle')"
                    },
                    {
                        name: "rotateZ('angle')"
                    },
                    {
                        name: "scale()"
                    },
                    {
                        name: "scale3d()"
                    },
                    {
                        name: "scaleX()"
                    },
                    {
                        name: "scaleY()"
                    },
                    {
                        name: "scaleZ()"
                    },
                    {
                        name: "skew()"
                    },
                    {
                        name: "skewX()"
                    },
                    {
                        name: "skewY()"
                    },
                    {
                        name: "translate()"
                    },
                    {
                        name: "translate3d()"
                    },
                    {
                        name: "translateX()"
                    },
                    {
                        name: "translateY()"
                    },
                    {
                        name: "translateZ()"
                    }
                ],
                "description": "A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-webkit-transform-origin",
                browsers: [
                    "C",
                    "O15",
                    "S3.1"
                ],
                "description": "Establishes the origin of transformation for an element.",
                "restrictions": [
                    "position",
                    "length",
                    "percentage"
                ]
            },
            {
                name: "-webkit-transform-origin-x",
                browsers: [
                    "C",
                    "S3.1"
                ],
                "description": "The x coordinate of the origin for transforms applied to an element with respect to its border box.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "-webkit-transform-origin-y",
                browsers: [
                    "C",
                    "S3.1"
                ],
                "description": "The y coordinate of the origin for transforms applied to an element with respect to its border box.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "-webkit-transform-origin-z",
                browsers: [
                    "C",
                    "S4"
                ],
                "description": "The z coordinate of the origin for transforms applied to an element with respect to its border box.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "-webkit-transform-style",
                browsers: [
                    "C",
                    "S4"
                ],
                values: [
                    {
                        name: "flat"
                    }
                ],
                "description": "Defines how nested elements are rendered in 3D space.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-webkit-transition",
                browsers: [
                    "C",
                    "O12",
                    "S5"
                ],
                values: [
                    {
                        name: "all",
                        "description": "Every property that is able to undergo a transition will do so."
                    },
                    {
                        name: "none",
                        "description": "No property will transition."
                    }
                ],
                "description": "Shorthand property combines four of the transition properties into a single property.",
                "restrictions": [
                    "time",
                    "property",
                    "timing-function",
                    "enum"
                ]
            },
            {
                name: "-webkit-transition-delay",
                browsers: [
                    "C",
                    "O12",
                    "S5"
                ],
                "description": "Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.",
                "restrictions": [
                    "time"
                ]
            },
            {
                name: "-webkit-transition-duration",
                browsers: [
                    "C",
                    "O12",
                    "S5"
                ],
                "description": "Specifies how long the transition from the old value to the new value should take.",
                "restrictions": [
                    "time"
                ]
            },
            {
                name: "-webkit-transition-property",
                browsers: [
                    "C",
                    "O12",
                    "S5"
                ],
                values: [
                    {
                        name: "all",
                        "description": "Every property that is able to undergo a transition will do so."
                    },
                    {
                        name: "none",
                        "description": "No property will transition."
                    }
                ],
                "description": "Specifies the name of the CSS property to which the transition is applied.",
                "restrictions": [
                    "property"
                ]
            },
            {
                name: "-webkit-transition-timing-function",
                browsers: [
                    "C",
                    "O12",
                    "S5"
                ],
                "description": "Describes how the intermediate values used during a transition will be calculated.",
                "restrictions": [
                    "timing-function"
                ]
            },
            {
                name: "-webkit-user-drag",
                browsers: [
                    "S3"
                ],
                values: [
                    {
                        name: "auto"
                    },
                    {
                        name: "element"
                    },
                    {
                        name: "none"
                    }
                ],
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-webkit-user-modify",
                browsers: [
                    "C",
                    "S3"
                ],
                values: [
                    {
                        name: "read-only"
                    },
                    {
                        name: "read-write"
                    },
                    {
                        name: "read-write-plaintext-only"
                    }
                ],
                "status": "nonstandard",
                "syntax": "read-only | read-write | read-write-plaintext-only",
                "description": "Determines whether a user can edit the content of an element.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "-webkit-user-select",
                browsers: [
                    "C",
                    "S3"
                ],
                values: [
                    {
                        name: "auto"
                    },
                    {
                        name: "none"
                    },
                    {
                        name: "text"
                    }
                ],
                "description": "Controls the appearance of selection.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "white-space",
                values: [
                    {
                        name: "normal",
                        "description": "Sets 'white-space-collapsing' to 'collapse' and 'text-wrap' to 'normal'."
                    },
                    {
                        name: "nowrap",
                        "description": "Sets 'white-space-collapsing' to 'collapse' and 'text-wrap' to 'none'."
                    },
                    {
                        name: "pre"
                    },
                    {
                        name: "pre-line"
                    },
                    {
                        name: "pre-wrap"
                    }
                ],
                "syntax": "normal | pre | nowrap | pre-wrap | pre-line",
                "description": "Shorthand property for the 'white-space-collapsing' and 'text-wrap' properties.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "widows",
                browsers: [
                    "E12",
                    "C25",
                    "IE8",
                    "O9.2"
                ],
                "syntax": "<integer>",
                "description": "Specifies the minimum number of line boxes of a block container that must be left in a fragment after a break.",
                "restrictions": [
                    "integer"
                ]
            },
            {
                name: "width",
                values: [
                    {
                        name: "auto",
                        "description": "The width depends on the values of other properties."
                    },
                    {
                        name: "fit-content"
                    },
                    {
                        name: "max-content",
                        "description": "Use the max-content inline size or max-content block size, as appropriate to the writing mode."
                    },
                    {
                        name: "min-content",
                        "description": "Use the min-content inline size or min-content block size, as appropriate to the writing mode."
                    }
                ],
                "syntax": "<viewport-length>{1,2}",
                "description": "Specifies the width of the content area, padding area or border area (depending on 'box-sizing') of certain boxes.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "will-change",
                browsers: [
                    "FF36",
                    "S9.1",
                    "C36",
                    "O24"
                ],
                values: [
                    {
                        name: "auto",
                        "description": "Expresses no particular intent."
                    },
                    {
                        name: "contents",
                        "description": "Indicates that the author expects to animate or change something about the element’s contents in the near future."
                    },
                    {
                        name: "scroll-position"
                    }
                ],
                "syntax": "auto | <animateable-feature>#",
                "description": "Provides a rendering hint to the user agent, stating what kinds of changes the author expects to perform on the element.",
                "restrictions": [
                    "enum",
                    "identifier"
                ]
            },
            {
                name: "word-break",
                values: [
                    {
                        name: "break-all"
                    },
                    {
                        name: "keep-all",
                        "description": "Block characters can no longer create implied break points."
                    },
                    {
                        name: "normal",
                        "description": "Breaks non-CJK scripts according to their own rules."
                    }
                ],
                "syntax": "normal | break-all | keep-all | break-word",
                "description": "Specifies line break opportunities for non-CJK scripts.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "word-spacing",
                values: [
                    {
                        name: "normal",
                        "description": "No additional spacing is applied. Computes to zero."
                    }
                ],
                "syntax": "normal | <length-percentage>",
                "description": "Specifies additional spacing between “words”.",
                "restrictions": [
                    "length",
                    "percentage"
                ]
            },
            {
                name: "word-wrap",
                values: [
                    {
                        name: "break-word",
                        "description": "An otherwise unbreakable sequence of characters may be broken at an arbitrary point if there are no otherwise-acceptable break points in the line."
                    },
                    {
                        name: "normal",
                        "description": "Lines may break only at allowed break points."
                    }
                ],
                "syntax": "normal | break-word",
                "description": "Specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "writing-mode",
                values: [
                    {
                        name: "horizontal-tb"
                    },
                    {
                        name: "sideways-lr"
                    },
                    {
                        name: "sideways-rl"
                    },
                    {
                        name: "vertical-lr"
                    },
                    {
                        name: "vertical-rl"
                    }
                ],
                "syntax": "horizontal-tb | vertical-rl | vertical-lr | sideways-rl | sideways-lr",
                "description": "This is a shorthand property for both 'direction' and 'block-progression'.",
                "restrictions": [
                    "enum"
                ]
            },
            {
                name: "z-index",
                values: [
                    {
                        name: "auto",
                        "description": "The stack level of the generated box in the current stacking context is 0. The box does not establish a new stacking context unless it is the root element."
                    }
                ],
                "syntax": "auto | <integer>",
                "description": "For a positioned box, the 'z-index' property specifies the stack level of the box in the current stacking context and whether the box establishes a local stacking context.",
                "restrictions": [
                    "integer"
                ]
            },
            {
                name: "zoom",
                browsers: [
                    "E12",
                    "S4",
                    "C",
                    "IE5.5",
                    "O15"
                ],
                values: [
                    {
                        name: "normal"
                    }
                ],
                "syntax": "auto | <number> | <percentage>",
                "description": "Non-standard. Specifies the magnification scale of the object. See 'transform: scale()' for a standards-based alternative.",
                "restrictions": [
                    "enum",
                    "integer",
                    "number",
                    "percentage"
                ]
            },
            {
                name: "-ms-ime-align",
                "status": "nonstandard",
                "syntax": "auto | after",
                "description": "Aligns the Input Method Editor (IME) candidate window box relative to the element on which the IME composition is active."
            },
            {
                name: "-moz-binding",
                "status": "nonstandard",
                "syntax": "<url> | none",
                browsers: [
                    "FF"
                ],
                "description": "The -moz-binding CSS property is used by Mozilla-based applications to attach an XBL binding to a DOM element."
            },
            {
                name: "-moz-context-properties",
                "status": "nonstandard",
                "syntax": "none | [ fill | fill-opacity | stroke | stroke-opacity ]#",
                browsers: [
                    "FF55"
                ],
                "description": "If you reference an SVG image in a webpage (such as with the <img> element or as a background image), the SVG image can coordinate with the embedding element (its context) to have the image adopt property values set on the embedding element. To do this the embedding element needs to list the properties that are to be made available to the image by listing them as values of the -moz-context-properties property, and the image needs to opt in to using those properties by using values such as the context-fill value.\n\nThis feature is available since Firefox 55, but is only currently supported with SVG images loaded via chrome:// or resource:// URLs. To experiment with the feature in SVG on the Web it is necessary to set the svg.context-properties.content.enabled pref to true."
            },
            {
                name: "-moz-float-edge",
                "status": "nonstandard",
                "syntax": "border-box | content-box | margin-box | padding-box",
                "description": "The non-standard -moz-float-edge CSS property specifies whether the height and width properties of the element include the margin, border, or padding thickness."
            },
            {
                name: "-moz-force-broken-image-icon",
                "status": "nonstandard",
                "syntax": "<integer>",
                "description": "The -moz-force-broken-image-icon extended CSS property can be used to force the broken image icon to be shown even when a broken image has an alt attribute."
            },
            {
                name: "-moz-image-region",
                "status": "nonstandard",
                "syntax": "<shape> | auto",
                browsers: [
                    "FF"
                ],
                "description": "For certain XUL elements and pseudo-elements that use an image from the list-style-image property, this property specifies a region of the image that is used in place of the whole image. This allows elements to use different pieces of the same image to improve performance."
            },
            {
                name: "-moz-orient",
                "status": "nonstandard",
                "syntax": "inline | block | horizontal | vertical",
                browsers: [
                    "FF6"
                ],
                "description": "The -moz-orient CSS property specifies the orientation of the element to which it's applied."
            },
            {
                name: "-moz-outline-radius",
                "status": "nonstandard",
                "syntax": "<outline-radius>{1,4} [ / <outline-radius>{1,4} ]?",
                browsers: [
                    "FF1.5"
                ],
                "description": "In Mozilla applications like Firefox, the -moz-outline-radius CSS property can be used to give an element's outline rounded corners."
            },
            {
                name: "-moz-outline-radius-bottomleft",
                "status": "nonstandard",
                "syntax": "<outline-radius>",
                "description": "In Mozilla applications, the -moz-outline-radius-bottomleft CSS property can be used to round the bottom-left corner of an element's outline."
            },
            {
                name: "-moz-outline-radius-bottomright",
                "status": "nonstandard",
                "syntax": "<outline-radius>",
                "description": "In Mozilla applications, the -moz-outline-radius-bottomright CSS property can be used to round the bottom-right corner of an element's outline."
            },
            {
                name: "-moz-outline-radius-topleft",
                "status": "nonstandard",
                "syntax": "<outline-radius>",
                "description": "In Mozilla applications, the -moz-outline-radius-topleft CSS property can be used to round the top-left corner of an element's outline."
            },
            {
                name: "-moz-outline-radius-topright",
                "status": "nonstandard",
                "syntax": "<outline-radius>",
                "description": "In Mozilla applications, the -moz-outline-radius-topright CSS property can be used to round the top-right corner of an element's outline."
            },
            {
                name: "-moz-stack-sizing",
                "status": "nonstandard",
                "syntax": "ignore | stretch-to-fit",
                "description": "-moz-stack-sizing is an extended CSS property. Normally, a stack will change its size so that all of its child elements are completely visible. For example, moving a child of the stack far to the right will widen the stack so the child remains visible."
            },
            {
                name: "-moz-text-blink",
                "status": "nonstandard",
                "syntax": "none | blink",
                browsers: [
                    "FF6"
                ],
                "description": "The -moz-text-blink non-standard Mozilla CSS extension specifies the blink mode."
            },
            {
                name: "-moz-user-input",
                "status": "nonstandard",
                "syntax": "auto | none | enabled | disabled",
                browsers: [
                    "FF"
                ],
                "description": "In Mozilla applications, -moz-user-input determines if an element will accept user input."
            },
            {
                name: "-moz-user-modify",
                "status": "nonstandard",
                "syntax": "read-only | read-write | write-only",
                "description": "The -moz-user-modify property has no effect. It was originally planned to determine whether or not the content of an element can be edited by a user."
            },
            {
                name: "-moz-window-dragging",
                "status": "nonstandard",
                "syntax": "drag | no-drag",
                "description": "The -moz-window-dragging CSS property specifies whether a window is draggable or not. It only works in Chrome code, and only on Mac OS X."
            },
            {
                name: "-moz-window-shadow",
                "status": "nonstandard",
                "syntax": "default | menu | tooltip | sheet | none",
                "description": "The -moz-window-shadow CSS property specifies whether a window will have a shadow. It only works on Mac OS X."
            },
            {
                name: "-webkit-border-before",
                "status": "nonstandard",
                "syntax": "<'border-width'> || <'border-style'> || <'color'>",
                browsers: [
                    "C",
                    "O"
                ],
                "description": "The -webkit-border-before CSS property is a shorthand property for setting the individual logical block start border property values in a single place in the style sheet."
            },
            {
                name: "-webkit-border-before-color",
                "status": "nonstandard",
                "syntax": "<'color'>",
                "description": "The -webkit-border-before-color CSS property sets the color of the individual logical block start border in a single place in the style sheet."
            },
            {
                name: "-webkit-border-before-style",
                "status": "nonstandard",
                "syntax": "<'border-style'>",
                "description": "The -webkit-border-before-style CSS property sets the style of the individual logical block start border in a single place in the style sheet."
            },
            {
                name: "-webkit-border-before-width",
                "status": "nonstandard",
                "syntax": "<'border-width'>",
                "description": "The -webkit-border-before-width CSS property sets the width of the individual logical block start border in a single place in the style sheet."
            },
            {
                name: "-webkit-mask",
                "status": "nonstandard",
                "syntax": "[ <mask-reference> || <position> [ / <bg-size> ]? || <repeat-style> || [ <box> | border | padding | content | text ] || [ <box> | border | padding | content ] ]#",
                "description": "The mask CSS property alters the visibility of an element by either partially or fully hiding it. This is accomplished by either masking or clipping the image at specific points."
            },
            {
                name: "-webkit-mask-attachment",
                "status": "nonstandard",
                "syntax": "<attachment>#",
                browsers: [
                    "S4",
                    "C"
                ],
                "description": "If a -webkit-mask-image is specified, -webkit-mask-attachment determines whether the mask image's position is fixed within the viewport, or scrolls along with its containing block."
            },
            {
                name: "-webkit-mask-composite",
                "status": "nonstandard",
                "syntax": "<composite-style>#",
                browsers: [
                    "E18",
                    "S4",
                    "C1"
                ],
                "description": "The -webkit-mask-composite property specifies the manner in which multiple mask images applied to the same element are composited with one another. Mask images are composited in the opposite order that they are declared with the -webkit-mask-image property."
            },
            {
                name: "-webkit-mask-position",
                "status": "nonstandard",
                "syntax": "<position>#",
                "description": "The mask-position CSS property sets the initial position, relative to the mask position layer defined by mask-origin, for each defined mask image."
            },
            {
                name: "-webkit-mask-position-x",
                "status": "nonstandard",
                "syntax": "[ <length-percentage> | left | center | right ]#",
                browsers: [
                    "E18",
                    "S4",
                    "C1"
                ],
                "description": "The -webkit-mask-position-x CSS property sets the initial horizontal position of a mask image."
            },
            {
                name: "-webkit-mask-position-y",
                "status": "nonstandard",
                "syntax": "[ <length-percentage> | top | center | bottom ]#",
                browsers: [
                    "E18",
                    "S4",
                    "C1"
                ],
                "description": "The -webkit-mask-position-y CSS property sets the initial vertical position of a mask image."
            },
            {
                name: "-webkit-mask-repeat-x",
                "status": "nonstandard",
                "syntax": "repeat | no-repeat | space | round",
                browsers: [
                    "E18",
                    "C",
                    "O"
                ],
                "description": "The -webkit-mask-repeat-x property specifies whether and how a mask image is repeated (tiled) horizontally."
            },
            {
                name: "-webkit-mask-repeat-y",
                "status": "nonstandard",
                "syntax": "repeat | no-repeat | space | round",
                browsers: [
                    "E18",
                    "C",
                    "O"
                ],
                "description": "The -webkit-mask-repeat-y property specifies whether and how a mask image is repeated (tiled) vertically."
            },
            {
                name: "appearance",
                "status": "experimental",
                "syntax": "auto | none",
                browsers: [
                    "E12",
                    "FF1",
                    "S3",
                    "C1",
                    "O15"
                ],
                "description": "Changes the appearance of buttons and other controls to resemble native controls."
            },
            {
                name: "azimuth",
                "status": "obsolete",
                "syntax": "<angle> | [ [ left-side | far-left | left | center-left | center | center-right | right | far-right | right-side ] || behind ] | leftwards | rightwards",
                "description": "In combination with elevation, the azimuth CSS property enables different audio sources to be positioned spatially for aural presentation. This is important in that it provides a natural way to tell several voices apart, as each can be positioned to originate at a different location on the sound stage. Stereo output produce a lateral sound stage, while binaural headphones and multi-speaker setups allow for a fully three-dimensional stage."
            },
            {
                name: "backdrop-filter",
                "status": "experimental",
                "syntax": "none | <filter-function-list>",
                browsers: [
                    "E17",
                    "S9",
                    "C47",
                    "O34"
                ],
                "description": "The backdrop-filter CSS property lets you apply graphical effects such as blurring or color shifting to the area behind an element. Because it applies to everything behind the element, to see the effect you must make the element or its background at least partially transparent."
            },
            {
                name: "border-end-end-radius",
                "syntax": "<length-percentage>{1,2}",
                "description": "The border-end-end-radius CSS property defines a logical border radius on an element, which maps to a physical border radius that depends on on the element's writing-mode, direction, and text-orientation."
            },
            {
                name: "border-end-start-radius",
                "syntax": "<length-percentage>{1,2}",
                "description": "The border-end-start-radius CSS property defines a logical border radius on an element, which maps to a physical border radius depending on the element's writing-mode, direction, and text-orientation."
            },
            {
                name: "border-start-end-radius",
                "syntax": "<length-percentage>{1,2}",
                "description": "The border-start-end-radius CSS property defines a logical border radius on an element, which maps to a physical border radius depending on the element's writing-mode, direction, and text-orientation."
            },
            {
                name: "border-start-start-radius",
                "syntax": "<length-percentage>{1,2}",
                "description": "The border-start-start-radius CSS property defines a logical border radius on an element, which maps to a physical border radius that depends on the element's writing-mode, direction, and text-orientation."
            },
            {
                name: "box-align",
                "status": "nonstandard",
                "syntax": "start | center | end | baseline | stretch",
                browsers: [
                    "E",
                    "FF49",
                    "S3",
                    "C",
                    "O"
                ],
                "description": "The box-align CSS property specifies how an element aligns its contents across its layout in a perpendicular direction. The effect of the property is only visible if there is extra space in the box."
            },
            {
                name: "box-direction",
                "status": "nonstandard",
                "syntax": "normal | reverse | inherit",
                browsers: [
                    "E12",
                    "FF",
                    "S3",
                    "C",
                    "O"
                ],
                "description": "The box-direction CSS property specifies whether a box lays out its contents normally (from the top or left edge), or in reverse (from the bottom or right edge)."
            },
            {
                name: "box-flex",
                "status": "nonstandard",
                "syntax": "<number>",
                browsers: [
                    "E12",
                    "FF",
                    "S3",
                    "C",
                    "O"
                ],
                "description": "The -moz-box-flex and -webkit-box-flex CSS properties specify how a -moz-box or -webkit-box grows to fill the box that contains it, in the direction of the containing box's layout."
            },
            {
                name: "box-flex-group",
                "status": "nonstandard",
                "syntax": "<integer>",
                browsers: [
                    "S3",
                    "C",
                    "O"
                ],
                "description": "The box-flex-group CSS property assigns the flexbox's child elements to a flex group."
            },
            {
                name: "box-lines",
                "status": "nonstandard",
                "syntax": "single | multiple",
                browsers: [
                    "S3",
                    "C",
                    "O"
                ],
                "description": "The box-lines CSS property determines whether the box may have a single or multiple lines (rows for horizontally oriented boxes, columns for vertically oriented boxes)."
            },
            {
                name: "box-ordinal-group",
                "status": "nonstandard",
                "syntax": "<integer>",
                browsers: [
                    "E",
                    "FF",
                    "S3",
                    "C",
                    "O"
                ],
                "description": "The box-ordinal-group CSS property assigns the flexbox's child elements to an ordinal group."
            },
            {
                name: "box-orient",
                "status": "nonstandard",
                "syntax": "horizontal | vertical | inline-axis | block-axis | inherit",
                browsers: [
                    "E12",
                    "FF",
                    "S3",
                    "C",
                    "O"
                ],
                "description": "The box-orient CSS property specifies whether an element lays out its contents horizontally or vertically."
            },
            {
                name: "box-pack",
                "status": "nonstandard",
                "syntax": "start | center | end | justify",
                browsers: [
                    "E12",
                    "FF",
                    "S3",
                    "C",
                    "O"
                ],
                "description": "The -moz-box-pack and -webkit-box-pack CSS properties specify how a -moz-box or -webkit-box packs its contents in the direction of its layout. The effect of this is only visible if there is extra space in the box."
            },
            {
                name: "color-adjust",
                "syntax": "economy | exact",
                browsers: [
                    "FF48",
                    "S6",
                    "C49",
                    "O15"
                ],
                "description": "The color-adjust property is a non-standard CSS extension that can be used to force printing of background colors and images in browsers based on the WebKit engine."
            },
            {
                name: "font-optical-sizing",
                "syntax": "auto | none",
                browsers: [
                    "FF62"
                ],
                "description": "The font-optical-sizing CSS property allows developers to control whether browsers render text with slightly differing visual representations to optimize viewing at different sizes, or not. This only works for fonts that have an optical size variation axis."
            },
            {
                name: "font-variation-settings",
                "syntax": "normal | [ <string> <number> ]#",
                browsers: [
                    "E17",
                    "FF62",
                    "S11",
                    "C62",
                    "O49"
                ],
                "description": "The font-variation-settings CSS property provides low-level control over OpenType or TrueType font variations, by specifying the four letter axis names of the features you want to vary, along with their variation values."
            },
            {
                name: "gap",
                "syntax": "<'row-gap'> <'column-gap'>?",
                browsers: [
                    "E16",
                    "FF63",
                    "S10.1",
                    "C66",
                    "O53"
                ],
                "description": "The gap CSS property is a shorthand property for row-gap and column-gap specifying the gutters between grid rows and columns."
            },
            {
                name: "hanging-punctuation",
                "syntax": "none | [ first || [ force-end | allow-end ] || last ]",
                browsers: [
                    "S10"
                ],
                "description": "The hanging-punctuation CSS property specifies whether a punctuation mark should hang at the start or end of a line of text. Hanging punctuation may be placed outside the line box."
            },
            {
                name: "image-resolution",
                "status": "experimental",
                "syntax": "[ from-image || <resolution> ] && snap?",
                "description": "The image-resolution property specifies the intrinsic resolution of all raster images used in or on the element. It affects both content images (e.g. replaced elements and generated content) and decorative images (such as background-image). The intrinsic resolution of an image is used to determine the image’s intrinsic dimensions."
            },
            {
                name: "initial-letter",
                "status": "experimental",
                "syntax": "normal | [ <number> <integer>? ]",
                browsers: [
                    "S9"
                ],
                "description": "The initial-letter CSS property specifies styling for dropped, raised, and sunken initial letters."
            },
            {
                name: "initial-letter-align",
                "status": "experimental",
                "syntax": "[ auto | alphabetic | hanging | ideographic ]",
                "description": "The initial-letter-align CSS property specifies the alignment of initial letters within a paragraph."
            },
            {
                name: "inset",
                "syntax": "<'top'>{1,4}",
                "description": "The inset CSS property defines the logical block and inline start and end offsets of an element, which map to physical offsets depending on the element's writing mode, directionality, and text orientation. It corresponds to the top and bottom, or right and left properties depending on the values defined for writing-mode, direction, and text-orientation."
            },
            {
                name: "inset-block",
                "syntax": "<'top'>{1,2}",
                "description": "The inset-block CSS property defines the logical block start and end offsets of an element, which maps to physical offsets depending on the element's writing mode, directionality, and text orientation. It corresponds to the top and bottom, or right and left properties depending on the values defined for writing-mode, direction, and text-orientation."
            },
            {
                name: "inset-block-end",
                "syntax": "<'top'>",
                browsers: [
                    "FF63"
                ],
                "description": "The inset-block-end CSS property defines the logical block end offset of an element, which maps to a physical offset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation."
            },
            {
                name: "inset-block-start",
                "syntax": "<'top'>",
                browsers: [
                    "FF63"
                ],
                "description": "The inset-block-start CSS property defines the logical block start offset of an element, which maps to a physical offset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation."
            },
            {
                name: "inset-inline",
                "syntax": "<'top'>{1,2}",
                "description": "The inset-inline CSS property defines the logical block start and end offsets of an element, which maps to physical offsets depending on the element's writing mode, directionality, and text orientation. It corresponds to the top and bottom, or right and left properties depending on the values defined for writing-mode, direction, and text-orientation."
            },
            {
                name: "inset-inline-end",
                "syntax": "<'top'>",
                browsers: [
                    "FF63"
                ],
                "description": "The inset-inline-end CSS property defines the logical inline end inset of an element, which maps to a physical inset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation."
            },
            {
                name: "inset-inline-start",
                "syntax": "<'top'>",
                browsers: [
                    "FF63"
                ],
                "description": "The inset-inline-start CSS property defines the logical inline start inset of an element, which maps to a physical offset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation."
            },
            {
                name: "line-clamp",
                "status": "experimental",
                "syntax": "none | <integer>",
                "description": "The line-clamp property allows limiting the contents of a block container to the specified number of lines; remaining content is fragmented away and neither rendered nor measured. Optionally, it also allows inserting content into the last line box to indicate the continuity of truncated/interrupted content."
            },
            {
                name: "mask",
                "syntax": "<mask-layer>#",
                browsers: [
                    "E12",
                    "FF",
                    "S4",
                    "C1",
                    "O"
                ],
                "description": "The mask CSS property alters the visibility of an element by either partially or fully hiding it. This is accomplished by either masking or clipping the image at specific points."
            },
            {
                name: "mask-border",
                "status": "experimental",
                "syntax": "<'mask-border-source'> || <'mask-border-slice'> [ / <'mask-border-width'>? [ / <'mask-border-outset'> ]? ]? || <'mask-border-repeat'> || <'mask-border-mode'>",
                "description": "The mask-border CSS property lets you create a mask along the edge of an element's border.\n\nThis property is a shorthand for mask-border-source, mask-border-slice, mask-border-width, mask-border-outset, mask-border-repeat, and mask-border-mode. As with all shorthand properties, any omitted sub-values will be set to their initial value."
            },
            {
                name: "mask-border-mode",
                "status": "experimental",
                "syntax": "luminance | alpha",
                "description": "The mask-border-mode CSS property specifies the blending mode used in a mask border."
            },
            {
                name: "mask-border-outset",
                "status": "experimental",
                "syntax": "[ <length> | <number> ]{1,4}",
                "description": "The mask-border-outset CSS property specifies the distance by which an element's mask border is set out from its border box."
            },
            {
                name: "mask-border-repeat",
                "status": "experimental",
                "syntax": "[ stretch | repeat | round | space ]{1,2}",
                "description": "The mask-border-repeat CSS property defines how the edge regions of a source image are adjusted to fit the dimensions of an element's mask border."
            },
            {
                name: "mask-border-slice",
                "status": "experimental",
                "syntax": "<number-percentage>{1,4} fill?",
                "description": "The mask-border-slice CSS property divides the image specified by mask-border-source into regions. These regions are used to form the components of an element's mask border."
            },
            {
                name: "mask-border-source",
                "status": "experimental",
                "syntax": "none | <image>",
                "description": "The mask-border-source CSS property specifies the source image used to create an element's mask border.\n\nThe mask-border-slice property is used to divide the source image into regions, which are then dynamically applied to the final mask border."
            },
            {
                name: "mask-border-width",
                "status": "experimental",
                "syntax": "[ <length-percentage> | <number> | auto ]{1,4}",
                "description": "The mask-border-width CSS property specifies the width of an element's mask border."
            },
            {
                name: "mask-clip",
                "syntax": "[ <geometry-box> | no-clip ]#",
                browsers: [
                    "FF53",
                    "S",
                    "C",
                    "O"
                ],
                "description": "The mask-clip CSS property determines the area, which is affected by a mask. The painted content of an element must be restricted to this area."
            },
            {
                name: "mask-composite",
                "syntax": "<compositing-operator>#",
                browsers: [
                    "E18",
                    "FF53"
                ],
                "description": "The mask-composite CSS property represents a compositing operation used on the current mask layer with the mask layers below it."
            },
            {
                name: "max-lines",
                "status": "experimental",
                "syntax": "none | <integer>",
                "description": "The max-liens property forces a break after a set number of lines"
            },
            {
                name: "offset-position",
                "status": "experimental",
                "syntax": "auto | <position>",
                "description": "Specifies the initial position of the offset path. If position is specified with static, offset-position would be ignored."
            },
            {
                name: "overflow-anchor",
                "status": "experimental",
                "syntax": "auto | none",
                browsers: [
                    "C56",
                    "O43"
                ],
                "description": "The overflow-anchor CSS property provides a way to opt out browser scroll anchoring behavior which adjusts scroll position to minimize content shifts."
            },
            {
                name: "overflow-block",
                "status": "experimental",
                "syntax": "<'overflow'>",
                "description": "The overflow-block CSS media feature can be used to test how the output device handles content that overflows the initial containing block along the block axis."
            },
            {
                name: "overflow-clip-box",
                "status": "nonstandard",
                "syntax": "padding-box | content-box",
                browsers: [
                    "FF29"
                ],
                "description": "The overflow-clip-box CSS property specifies relative to which box the clipping happens when there is an overflow. It is short hand for the overflow-clip-box-inline and overflow-clip-box-block properties."
            },
            {
                name: "overflow-inline",
                "status": "experimental",
                "syntax": "<'overflow'>",
                "description": "The overflow-inline CSS media feature can be used to test how the output device handles content that overflows the initial containing block along the inline axis."
            },
            {
                name: "overscroll-behavior",
                "status": "nonstandard",
                "syntax": "[ contain | none | auto ]{1,2}",
                browsers: [
                    "E18",
                    "FF59",
                    "C63",
                    "O50"
                ],
                "description": "The overscroll-behavior CSS property is shorthand for the overscroll-behavior-x and overscroll-behavior-y properties, which allow you to control the browser's scroll overflow behavior — what happens when the boundary of a scrolling area is reached."
            },
            {
                name: "overscroll-behavior-x",
                "status": "nonstandard",
                "syntax": "contain | none | auto",
                browsers: [
                    "E18",
                    "FF59",
                    "C63",
                    "O50"
                ],
                "description": "The overscroll-behavior-x CSS property is allows you to control the browser's scroll overflow behavior — what happens when the boundary of a scrolling area is reached — in the x axis direction."
            },
            {
                name: "overscroll-behavior-y",
                "status": "nonstandard",
                "syntax": "contain | none | auto",
                browsers: [
                    "E18",
                    "FF59",
                    "C63",
                    "O50"
                ],
                "description": "The overscroll-behavior-y CSS property is allows you to control the browser's scroll overflow behavior — what happens when the boundary of a scrolling area is reached — in the y axis direction."
            },
            {
                name: "place-content",
                "syntax": "<'align-content'> <'justify-content'>?",
                browsers: [
                    "FF60",
                    "S",
                    "C59",
                    "O"
                ],
                "description": "The place-content CSS shorthand property sets both the align-content and justify-content properties."
            },
            {
                name: "place-items",
                "syntax": "<'align-items'> <'justify-items'>?",
                browsers: [
                    "FF45",
                    "C59"
                ],
                "description": "The CSS place-items shorthand property sets both the align-items and justify-items properties. The first value is the align-items property value, the second the justify-items one. If the second value is not present, the first value is also used for it."
            },
            {
                name: "rotate",
                "syntax": "none | [ x | y | z | <number>{3} ]? && <angle>",
                browsers: [
                    "FF60",
                    "C"
                ],
                "description": "The rotate CSS property allows you to specify rotation transforms individually and independently of the transform property. This maps better to typical user interface usage, and saves having to remember the exact order of transform functions to specify in the transform value."
            },
            {
                name: "row-gap",
                "syntax": "normal | <length-percentage>",
                browsers: [
                    "E16",
                    "FF63",
                    "S10.1",
                    "C66",
                    "O53"
                ],
                "description": "The row-gap CSS property specifies the gutter between grid rows."
            },
            {
                name: "ruby-merge",
                "status": "experimental",
                "syntax": "separate | collapse | auto",
                "description": "This property controls how ruby annotation boxes should be rendered when there are more than one in a ruby container box: whether each pair should be kept separate, the annotations should be collapsed and rendered as a group, or the separation should be determined based on the space available."
            },
            {
                name: "scale",
                "syntax": "none | <number>{1,3}",
                browsers: [
                    "FF60",
                    "C"
                ],
                "description": "The scale CSS property allows you to specify scale transforms individually and independently of the transform property. This maps better to typical user interface usage, and saves having to remember the exact order of transform functions to specify in the transform value."
            },
            {
                name: "scrollbar-color",
                "syntax": "auto | dark | light | <color>{2}",
                browsers: [
                    "FF64"
                ],
                "description": "The scrollbar-color CSS property sets the color of the scrollbar track and thumb."
            },
            {
                name: "scrollbar-width",
                "syntax": "auto | thin | none | <length>",
                browsers: [
                    "FF64"
                ],
                "description": "The scrollbar-width property allows the author to set the maximum thickness of an element’s scrollbars when they are shown. "
            },
            {
                name: "scroll-margin",
                "syntax": "[ auto | <length> ]{1,4}",
                browsers: [
                    "S11",
                    "C69",
                    "O56"
                ],
                "description": "The scroll-margin property is a shorthand property which sets all of the scroll-margin longhands, assigning values much like the margin property does for the margin-* longhands."
            },
            {
                name: "scroll-margin-block",
                "syntax": "[ auto | <length> ]{1,2}",
                browsers: [
                    "C69",
                    "O56"
                ],
                "description": "The scroll-margin-block property is a shorthand property which sets the scroll-margin longhands in the block dimension."
            },
            {
                name: "scroll-margin-block-start",
                "syntax": "auto | <length> ",
                browsers: [
                    "S11",
                    "C69",
                    "O56"
                ],
                "description": "The scroll-margin-block-start property defines the margin of the scroll snap area at the start of the block dimension that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container’s coordinate space), then adding the specified outsets."
            },
            {
                name: "scroll-margin-block-end",
                "syntax": "auto | <length>",
                browsers: [
                    "S11",
                    "C69",
                    "O56"
                ],
                "description": "The scroll-margin-block-end property defines the margin of the scroll snap area at the end of the block dimension that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container’s coordinate space), then adding the specified outsets."
            },
            {
                name: "scroll-margin-bottom",
                "syntax": "auto | <length>",
                browsers: [
                    "S11",
                    "C69",
                    "O56"
                ],
                "description": "The scroll-margin-bottom property defines the bottom margin of the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container’s coordinate space), then adding the specified outsets."
            },
            {
                name: "scroll-margin-inline",
                "syntax": "[auto | <length> ]{1,2}",
                "description": "The scroll-margin-inline property is a shorthand property which sets the scroll-margin longhands in the inline dimension."
            },
            {
                name: "scroll-margin-inline-start",
                "syntax": "auto | <length>",
                browsers: [
                    "S11",
                    "C69",
                    "O56"
                ],
                "description": "The scroll-margin-inline-start property defines the margin of the scroll snap area at the start of the inline dimension that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container’s coordinate space), then adding the specified outsets."
            },
            {
                name: "scroll-margin-inline-end",
                "syntax": "auto | <length>",
                browsers: [
                    "S11",
                    "C69",
                    "O56"
                ],
                "description": "The scroll-margin-inline-end property defines the margin of the scroll snap area at the end of the inline dimension that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container’s coordinate space), then adding the specified outsets."
            },
            {
                name: "scroll-margin-left",
                "syntax": "auto | <length>",
                browsers: [
                    "S11",
                    "C69",
                    "O56"
                ],
                "description": "The scroll-margin-left property defines the left margin of the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container’s coordinate space), then adding the specified outsets."
            },
            {
                name: "scroll-margin-right",
                "syntax": "auto | <length>",
                browsers: [
                    "S11",
                    "C69",
                    "O56"
                ],
                "description": "The scroll-margin-right property defines the right margin of the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container’s coordinate space), then adding the specified outsets."
            },
            {
                name: "scroll-margin-top",
                "syntax": "auto | <length>",
                browsers: [
                    "S11",
                    "C69",
                    "O56"
                ],
                "description": "The scroll-margin-top property defines the top margin of the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container’s coordinate space), then adding the specified outsets."
            },
            {
                name: "scroll-padding",
                "syntax": "[ auto | <length> | <percentage> ]{1,4}",
                browsers: [
                    "S11",
                    "C69",
                    "O56"
                ],
                "description": "The scroll-padding property is a shorthand property which sets all of the scroll-padding longhands, assigning values much like the padding property does for the padding-* longhands."
            },
            {
                name: "scroll-padding-block",
                "syntax": "[auto | <length> | <percentage> ]{1,2}",
                browsers: [
                    "C69",
                    "O56"
                ],
                "description": "The scroll-padding-block property is a shorthand property which sets the scroll-padding longhands for the block dimension."
            },
            {
                name: "scroll-padding-block-start",
                "syntax": "auto | <length> | <percentage>",
                browsers: [
                    "S11",
                    "C69",
                    "O56"
                ],
                "description": "The scroll-padding-block-start property defines offsets for the start edge in the block dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."
            },
            {
                name: "scroll-padding-block-end",
                "syntax": "auto | <length> | <percentage>",
                browsers: [
                    "S11",
                    "C69",
                    "O56"
                ],
                "description": "The scroll-padding-block-end property defines offsets for the end edge in the block dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."
            },
            {
                name: "scroll-padding-bottom",
                "syntax": "auto | <length> | <percentage>",
                browsers: [
                    "S11",
                    "C69",
                    "O56"
                ],
                "description": "The scroll-padding-bottom property defines offsets for the bottom of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."
            },
            {
                name: "scroll-padding-inline",
                "syntax": "[auto | <length> | <percentage> ]{1,2}",
                browsers: [
                    "C69",
                    "O56"
                ],
                "description": "The scroll-padding-inline property is a shorthand property which sets the scroll-padding longhands for the inline dimension."
            },
            {
                name: "scroll-padding-inline-start",
                "syntax": "auto | <length> | <percentage>",
                browsers: [
                    "S11",
                    "C69",
                    "O56"
                ],
                "description": "The scroll-padding-inline-start property defines offsets for the start edge in the inline dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."
            },
            {
                name: "scroll-padding-inline-end",
                "syntax": "auto | <length> | <percentage>",
                browsers: [
                    "S11",
                    "C69",
                    "O56"
                ],
                "description": "The scroll-padding-inline-end property defines offsets for the end edge in the inline dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."
            },
            {
                name: "scroll-padding-left",
                "syntax": "auto | <length> | <percentage>",
                browsers: [
                    "S11",
                    "C69",
                    "O56"
                ],
                "description": "The scroll-padding-left property defines offsets for the left of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."
            },
            {
                name: "scroll-padding-right",
                "syntax": "auto | <length> | <percentage>",
                browsers: [
                    "S11",
                    "C69",
                    "O56"
                ],
                "description": "The scroll-padding-right property defines offsets for the right of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."
            },
            {
                name: "scroll-padding-top",
                "syntax": "auto | <length> | <percentage>",
                browsers: [
                    "S11",
                    "C69",
                    "O56"
                ],
                "description": "The scroll-padding-top property defines offsets for the top of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."
            },
            {
                name: "scroll-snap-align",
                "syntax": "[ none | start | end | center ]{1,2}",
                browsers: [
                    "S11",
                    "C69",
                    "O56"
                ],
                "description": "The scroll-snap-align property specifies the box’s snap position as an alignment of its snap area (as the alignment subject) within its snap container’s snapport (as the alignment container). The two values specify the snapping alignment in the block axis and inline axis, respectively. If only one value is specified, the second value defaults to the same value."
            },
            {
                name: "scroll-snap-stop",
                "syntax": "normal | always",
                "description": "The scroll-snap-stop CSS property defines whether the scroll container is allowed to \"pass over\" possible snap positions."
            },
            {
                name: "scroll-snap-type-x",
                "status": "nonstandard",
                "syntax": "none | mandatory | proximity",
                browsers: [
                    "FF39",
                    "S9"
                ],
                "description": "The scroll-snap-type-x CSS property defines how strictly snap points are enforced on the horizontal axis of the scroll container in case there is one.\n\nSpecifying any precise animations or physics used to enforce those snap points is not covered by this property but instead left up to the user agent."
            },
            {
                name: "scroll-snap-type-y",
                "status": "nonstandard",
                "syntax": "none | mandatory | proximity",
                browsers: [
                    "FF39"
                ],
                "description": "The scroll-snap-type-y CSS property defines how strictly snap points are enforced on the vertical axis of the scroll container in case there is one.\n\nSpecifying any precise animations or physics used to enforce those snap points is not covered by this property but instead left up to the user agent."
            },
            {
                name: "text-combine-upright",
                "syntax": "none | all | [ digits <integer>? ]",
                "description": "The text-combine-upright CSS property specifies the combination of multiple characters into the space of a single character. If the combined text is wider than 1em, the user agent must fit the contents within 1em. The resulting composition is treated as a single upright glyph for layout and decoration. This property only has an effect in vertical writing modes.\n\nThis is used to produce an effect that is known as tate-chū-yoko (縦中横) in Japanese, or as 直書橫向 in Chinese."
            },
            {
                name: "text-decoration-skip",
                "status": "experimental",
                "syntax": "none | [ objects || [ spaces | [ leading-spaces || trailing-spaces ] ] || edges || box-decoration ]",
                browsers: [
                    "S8",
                    "C57",
                    "O44"
                ],
                "description": "The text-decoration-skip CSS property specifies what parts of the element’s content any text decoration affecting the element must skip over. It controls all text decoration lines drawn by the element and also any text decoration lines drawn by its ancestors."
            },
            {
                name: "text-decoration-skip-ink",
                "status": "experimental",
                "syntax": "auto | none",
                browsers: [
                    "C64",
                    "O50"
                ],
                "description": "The text-decoration-skip-ink CSS property specifies how overlines and underlines are drawn when they pass over glyph ascenders and descenders."
            },
            {
                name: "text-emphasis",
                "syntax": "<'text-emphasis-style'> || <'text-emphasis-color'>",
                browsers: [
                    "FF46",
                    "S",
                    "C25",
                    "O15"
                ],
                "description": "The text-emphasis CSS property is a shorthand property for setting text-emphasis-style and text-emphasis-color in one declaration. This property will apply the specified emphasis mark to each character of the element's text, except separator characters, like spaces,  and control characters."
            },
            {
                name: "text-emphasis-color",
                "syntax": "<color>",
                browsers: [
                    "FF46",
                    "S",
                    "C25",
                    "O15"
                ],
                "description": "The text-emphasis-color CSS property defines the color used to draw emphasis marks on text being rendered in the HTML document. This value can also be set and reset using the text-emphasis shorthand."
            },
            {
                name: "text-emphasis-position",
                "syntax": "[ over | under ] && [ right | left ]",
                browsers: [
                    "FF46",
                    "S",
                    "C",
                    "O"
                ],
                "description": "The text-emphasis-position CSS property describes where emphasis marks are drawn at. The effect of emphasis marks on the line height is the same as for ruby text: if there isn't enough place, the line height is increased."
            },
            {
                name: "text-emphasis-style",
                "syntax": "none | [ [ filled | open ] || [ dot | circle | double-circle | triangle | sesame ] ] | <string>",
                browsers: [
                    "FF46",
                    "S",
                    "C25",
                    "O15"
                ],
                "description": "The text-emphasis-style CSS property defines the type of emphasis used. It can also be set, and reset, using the text-emphasis shorthand."
            },
            {
                name: "text-size-adjust",
                "status": "experimental",
                "syntax": "none | auto | <percentage>",
                browsers: [
                    "E12",
                    "C54",
                    "O42"
                ],
                "description": "The text-size-adjust CSS property controls the text inflation algorithm used on some smartphones and tablets. Other browsers will ignore this property."
            },
            {
                name: "transform-box",
                "syntax": "border-box | fill-box | view-box",
                browsers: [
                    "FF55",
                    "C64",
                    "O51"
                ],
                "description": "The transform-box CSS property defines the layout box to which the transform and transform-origin properties relate."
            },
            {
                name: "translate",
                "syntax": "none | <length-percentage> [ <length-percentage> <length>? ]?",
                browsers: [
                    "FF60",
                    "C"
                ],
                "description": "The translate CSS property allows you to specify translation transforms individually and independently of the transform property. This maps better to typical user interface usage, and saves having to remember the exact order of transform functions to specify in the transform value."
            },
            {
                name: "speak-as",
                "syntax": "auto | bullets | numbers | words | spell-out | <counter-style-name>",
                "description": "The speak-as descriptor specifies how a counter symbol constructed with a given @counter-style will be represented in the spoken form. For example, an author can specify a counter symbol to be either spoken as its numerical value or just represented with an audio cue."
            },
            {
                name: "font-display",
                "status": "experimental",
                "syntax": "[ auto | block | swap | fallback | optional ]",
                "description": "The font-display descriptor determines how a font face is displayed based on whether and when it is downloaded and ready to use."
            },
            {
                name: "bleed",
                "status": "experimental",
                "syntax": "auto | <length>",
                "description": "The bleed CSS at-rule descriptor, used with the @page at-rule, specifies the extent of the page bleed area outside the page box. This property only has effect if crop marks are enabled using the marks property."
            },
            {
                name: "marks",
                "status": "experimental",
                "syntax": "none | [ crop || cross ]",
                "description": "The marks CSS at-rule descriptor, used with the @page at-rule, adds crop and/or cross marks to the presentation of the document. Crop marks indicate where the page should be cut. Cross marks are used to align sheets."
            },
            {
                name: "max-zoom",
                "syntax": "auto | <number> | <percentage>",
                "description": "The max-zoom CSS descriptor sets the maximum zoom factor of a document defined by the @viewport at-rule. The browser will not zoom in any further than this, whether automatically or at the user's request.\n\nA zoom factor of 1.0 or 100% corresponds to no zooming. Larger values are zoomed in. Smaller values are zoomed out."
            },
            {
                name: "min-zoom",
                "syntax": "auto | <number> | <percentage>",
                "description": "The min-zoom CSS descriptor sets the minimum zoom factor of a document defined by the @viewport at-rule. The browser will not zoom out any further than this, whether automatically or at the user's request.\n\nA zoom factor of 1.0 or 100% corresponds to no zooming. Larger values are zoomed in. Smaller values are zoomed out."
            },
            {
                name: "orientation",
                "syntax": "auto | portrait | landscape",
                "description": "The orientation CSS @media media feature can be used to apply styles based on the orientation of the viewport (or the page box, for paged media)."
            },
            {
                name: "user-zoom",
                "syntax": "zoom | fixed",
                "description": "The user-zoom CSS descriptor controls whether or not the user can change the zoom factor of a document defined by @viewport."
            }
        ],
        "atDirectives": [
            {
                name: "@charset",
                browsers: [
                    "FF1.5",
                    "S4",
                    "C2",
                    "IE5.5",
                    "O9"
                ],
                "description": "Defines character set of the document."
            },
            {
                name: "@counter-style",
                browsers: [
                    "FF33"
                ],
                "description": "Defines a custom counter style."
            },
            {
                name: "@font-face",
                "description": "Allows for linking to fonts that are automatically activated when needed. This permits authors to work around the limitation of 'web-safe' fonts, allowing for consistent rendering independent of the fonts available in a given user's environment."
            },
            {
                name: "@font-feature-values",
                browsers: [
                    "FF34",
                    "S9.1"
                ],
                "description": "Defines named values for the indices used to select alternate glyphs for a given font family."
            },
            {
                name: "@import",
                "description": "Includes content of another file."
            },
            {
                name: "@keyframes",
                "description": "Defines set of animation key frames."
            },
            {
                name: "@media",
                "description": "Defines a stylesheet for a particular media type."
            },
            {
                name: "@-moz-document",
                browsers: [
                    "FF1.8"
                ],
                "description": "Gecko-specific at-rule that restricts the style rules contained within it based on the URL of the document."
            },
            {
                name: "@-moz-keyframes",
                browsers: [
                    "FF5"
                ],
                "description": "Defines set of animation key frames."
            },
            {
                name: "@-ms-viewport",
                browsers: [
                    "E",
                    "IE10"
                ],
                "description": "Specifies the size, zoom factor, and orientation of the viewport."
            },
            {
                name: "@namespace",
                "description": "Declares a prefix and associates it with a namespace name."
            },
            {
                name: "@-o-keyframes",
                browsers: [
                    "O12"
                ],
                "description": "Defines set of animation key frames."
            },
            {
                name: "@-o-viewport",
                browsers: [
                    "O11"
                ],
                "description": "Specifies the size, zoom factor, and orientation of the viewport."
            },
            {
                name: "@page",
                browsers: [
                    "E",
                    "FF19",
                    "C2",
                    "IE8",
                    "O6"
                ],
                "description": "Directive defines various page parameters."
            },
            {
                name: "@supports",
                browsers: [
                    "E12",
                    "FF22",
                    "S9",
                    "C28",
                    "O12.1"
                ],
                "description": "A conditional group rule whose condition tests whether the user agent supports CSS property:value pairs."
            },
            {
                name: "@-webkit-keyframes",
                browsers: [
                    "C",
                    "S4"
                ],
                "description": "Defines set of animation key frames."
            }
        ],
        "pseudoClasses": [
            {
                name: ":active",
                "description": "Applies while an element is being activated by the user. For example, between the times the user presses the mouse button and releases it."
            },
            {
                name: ":any-link",
                browsers: [
                    "FF50",
                    "S",
                    "C",
                    "O"
                ],
                "description": "Represents an element that acts as the source anchor of a hyperlink. Applies to both visited and unvisited links."
            },
            {
                name: ":checked",
                "description": "Radio and checkbox elements can be toggled by the user. Some menu items are 'checked' when the user selects them. When such elements are toggled 'on' the :checked pseudo-class applies."
            },
            {
                name: ":corner-present",
                browsers: [
                    "C",
                    "S5"
                ],
                "description": "Non-standard. Indicates whether or not a scrollbar corner is present."
            },
            {
                name: ":decrement",
                browsers: [
                    "C",
                    "S5"
                ],
                "description": "Non-standard. Applies to buttons and track pieces. Indicates whether or not the button or track piece will decrement the view’s position when used."
            },
            {
                name: ":default",
                browsers: [
                    "FF4",
                    "S5",
                    "C10",
                    "O10"
                ],
                "description": "Applies to the one or more UI elements that are the default among a set of similar elements. Typically applies to context menu items, buttons, and select lists/menus."
            },
            {
                name: ":disabled",
                "description": "Represents user interface elements that are in a disabled state; such elements have a corresponding enabled state."
            },
            {
                name: ":double-button",
                browsers: [
                    "C",
                    "S5"
                ],
                "description": "Non-standard. Applies to buttons and track pieces. Applies when both buttons are displayed together at the same end of the scrollbar."
            },
            {
                name: ":empty",
                "description": "Represents an element that has no children at all."
            },
            {
                name: ":enabled",
                "description": "Represents user interface elements that are in an enabled state; such elements have a corresponding disabled state."
            },
            {
                name: ":end",
                browsers: [
                    "C",
                    "S5"
                ],
                "description": "Non-standard. Applies to buttons and track pieces. Indicates whether the object is placed after the thumb."
            },
            {
                name: ":first",
                browsers: [
                    "E",
                    "IE8",
                    "O9.2"
                ],
                "description": "When printing double-sided documents, the page boxes on left and right pages may be different. This can be expressed through CSS pseudo-classes defined in the  page context."
            },
            {
                name: ":first-child",
                "description": "Same as :nth-child(1). Represents an element that is the first child of some other element."
            },
            {
                name: ":first-of-type",
                "description": "Same as :nth-of-type(1). Represents an element that is the first sibling of its type in the list of children of its parent element."
            },
            {
                name: ":focus",
                "description": "Applies while an element has the focus (accepts keyboard or mouse events, or other forms of input)."
            },
            {
                name: ":fullscreen",
                browsers: [
                    "E12",
                    "FF64",
                    "S6",
                    "C15",
                    "IE11"
                ],
                "description": "Matches any element that has its fullscreen flag set."
            },
            {
                name: ":future",
                browsers: [
                    "C",
                    "O16",
                    "S6"
                ],
                "description": "Represents any element that is defined to occur entirely after a :current element."
            },
            {
                name: ":horizontal",
                browsers: [
                    "C",
                    "S5"
                ],
                "description": "Non-standard. Applies to any scrollbar pieces that have a horizontal orientation."
            },
            {
                name: ":host",
                browsers: [
                    "FF63",
                    "S",
                    "C",
                    "O"
                ],
                "description": "When evaluated in the context of a shadow tree, matches the shadow tree’s host element."
            },
            {
                name: ":host()",
                browsers: [
                    "C35",
                    "O22"
                ],
                "description": "When evaluated in the context of a shadow tree, it matches the shadow tree’s host element if the host element, in its normal context, matches the selector argument."
            },
            {
                name: ":host-context()",
                browsers: [
                    "C35",
                    "O22"
                ],
                "description": "Tests whether there is an ancestor, outside the shadow tree, which matches a particular selector."
            },
            {
                name: ":hover",
                "description": "Applies while the user designates an element with a pointing device, but does not necessarily activate it. For example, a visual user agent could apply this pseudo-class when the cursor (mouse pointer) hovers over a box generated by the element."
            },
            {
                name: ":increment",
                browsers: [
                    "C",
                    "S5"
                ],
                "description": "Non-standard. Applies to buttons and track pieces. Indicates whether or not the button or track piece will increment the view’s position when used."
            },
            {
                name: ":indeterminate",
                "description": "Applies to UI elements whose value is in an indeterminate state."
            },
            {
                name: ":in-range",
                browsers: [
                    "E",
                    "FF29",
                    "S",
                    "C10",
                    "O11"
                ],
                "description": "Used in conjunction with the min and max attributes, whether on a range input, a number field, or any other types that accept those attributes."
            },
            {
                name: ":invalid",
                "description": "An element is :valid or :invalid when it is, respectively, valid or invalid with respect to data validity semantics defined by a different specification."
            },
            {
                name: ":lang()",
                browsers: [
                    "E",
                    "C",
                    "FF1",
                    "IE8",
                    "O8",
                    "S3"
                ],
                "description": "Represents an element that is in language specified."
            },
            {
                name: ":last-child",
                "description": "Same as :nth-last-child(1). Represents an element that is the last child of some other element."
            },
            {
                name: ":last-of-type",
                "description": "Same as :nth-last-of-type(1). Represents an element that is the last sibling of its type in the list of children of its parent element."
            },
            {
                name: ":left",
                browsers: [
                    "E",
                    "IE8",
                    "O9.2"
                ],
                "description": "When printing double-sided documents, the page boxes on left and right pages may be different. This can be expressed through CSS pseudo-classes defined in the  page context."
            },
            {
                name: ":link",
                "description": "Applies to links that have not yet been visited."
            },
            {
                name: ":matches()",
                browsers: [
                    "S9"
                ],
                "description": "Takes a selector list as its argument. It represents an element that is represented by its argument."
            },
            {
                name: ":-moz-any()",
                browsers: [
                    "FF4"
                ],
                "description": "Represents an element that is represented by the selector list passed as its argument. Standardized as :matches()."
            },
            {
                name: ":-moz-any-link",
                browsers: [
                    "FF1"
                ],
                "description": "Represents an element that acts as the source anchor of a hyperlink. Applies to both visited and unvisited links."
            },
            {
                name: ":-moz-broken",
                browsers: [
                    "FF3"
                ],
                "description": "Non-standard. Matches elements representing broken images."
            },
            {
                name: ":-moz-drag-over",
                browsers: [
                    "FF1"
                ],
                "description": "Non-standard. Matches elements when a drag-over event applies to it."
            },
            {
                name: ":-moz-first-node",
                browsers: [
                    "FF1"
                ],
                "description": "Non-standard. Represents an element that is the first child node of some other element."
            },
            {
                name: ":-moz-focusring",
                browsers: [
                    "FF4"
                ],
                "description": "Non-standard. Matches an element that has focus and focus ring drawing is enabled in the browser."
            },
            {
                name: ":-moz-full-screen",
                browsers: [
                    "FF9"
                ],
                "description": "Matches any element that has its fullscreen flag set. Standardized as :fullscreen."
            },
            {
                name: ":-moz-last-node",
                browsers: [
                    "FF1"
                ],
                "description": "Non-standard. Represents an element that is the last child node of some other element."
            },
            {
                name: ":-moz-loading",
                browsers: [
                    "FF3"
                ],
                "description": "Non-standard. Matches elements, such as images, that haven’t started loading yet."
            },
            {
                name: ":-moz-only-whitespace",
                browsers: [
                    "FF"
                ],
                "description": "The same as :empty, except that it additionally matches elements that only contain code points affected by whitespace processing. Standardized as :blank."
            },
            {
                name: ":-moz-placeholder",
                browsers: [
                    "FF4"
                ],
                "description": "Deprecated. Represents placeholder text in an input field. Use ::-moz-placeholder for Firefox 19+."
            },
            {
                name: ":-moz-submit-invalid",
                browsers: [
                    "FF4"
                ],
                "description": "Non-standard. Represents any submit button when the contents of the associated form are not valid."
            },
            {
                name: ":-moz-suppressed",
                browsers: [
                    "FF3"
                ],
                "description": "Non-standard. Matches elements representing images that have been blocked from loading."
            },
            {
                name: ":-moz-ui-invalid",
                browsers: [
                    "FF4"
                ],
                "description": "Non-standard. Represents any validated form element whose value isn't valid "
            },
            {
                name: ":-moz-ui-valid",
                browsers: [
                    "FF4"
                ],
                "description": "Non-standard. Represents any validated form element whose value is valid "
            },
            {
                name: ":-moz-user-disabled",
                browsers: [
                    "FF3"
                ],
                "description": "Non-standard. Matches elements representing images that have been disabled due to the user’s preferences."
            },
            {
                name: ":-moz-window-inactive",
                browsers: [
                    "FF4"
                ],
                "description": "Non-standard. Matches elements in an inactive window."
            },
            {
                name: ":-ms-fullscreen",
                browsers: [
                    "IE11"
                ],
                "description": "Matches any element that has its fullscreen flag set."
            },
            {
                name: ":-ms-input-placeholder",
                browsers: [
                    "IE10"
                ],
                "description": "Represents placeholder text in an input field. Note: for Edge use the pseudo-element ::-ms-input-placeholder. Standardized as ::placeholder."
            },
            {
                name: ":-ms-keyboard-active",
                browsers: [
                    "IE10"
                ],
                "description": "Windows Store apps only. Applies one or more styles to an element when it has focus and the user presses the space bar."
            },
            {
                name: ":-ms-lang()",
                browsers: [
                    "E",
                    "IE10"
                ],
                "description": "Represents an element that is in the language specified. Accepts a comma separated list of language tokens."
            },
            {
                name: ":no-button",
                browsers: [
                    "C",
                    "S5"
                ],
                "description": "Non-standard. Applies to track pieces. Applies when there is no button at that end of the track."
            },
            {
                name: ":not()",
                browsers: [
                    "E",
                    "C",
                    "FF1",
                    "IE9",
                    "O9.5",
                    "S2"
                ],
                "description": "The negation pseudo-class, :not(X), is a functional notation taking a simple selector (excluding the negation pseudo-class itself) as an argument. It represents an element that is not represented by its argument."
            },
            {
                name: ":nth-child()",
                browsers: [
                    "E",
                    "C",
                    "FF3.5",
                    "IE9",
                    "O9.5",
                    "S3.1"
                ],
                "description": "Represents an element that has an+b-1 siblings before it in the document tree, for any positive integer or zero value of n, and has a parent element."
            },
            {
                name: ":nth-last-child()",
                browsers: [
                    "E",
                    "C",
                    "FF3.5",
                    "IE9",
                    "O9.5",
                    "S3.1"
                ],
                "description": "Represents an element that has an+b-1 siblings after it in the document tree, for any positive integer or zero value of n, and has a parent element."
            },
            {
                name: ":nth-last-of-type()",
                browsers: [
                    "E",
                    "C",
                    "FF3.5",
                    "IE9",
                    "O9.5",
                    "S3.1"
                ],
                "description": "Represents an element that has an+b-1 siblings with the same expanded element name after it in the document tree, for any zero or positive integer value of n, and has a parent element."
            },
            {
                name: ":nth-of-type()",
                browsers: [
                    "E",
                    "C",
                    "FF3.5",
                    "IE9",
                    "O9.5",
                    "S3.1"
                ],
                "description": "Represents an element that has an+b-1 siblings with the same expanded element name before it in the document tree, for any zero or positive integer value of n, and has a parent element."
            },
            {
                name: ":only-child",
                "description": "Represents an element that has a parent element and whose parent element has no other element children. Same as :first-child:last-child or :nth-child(1):nth-last-child(1), but with a lower specificity."
            },
            {
                name: ":only-of-type",
                "description": "Matches every element that is the only child of its type, of its parent. Same as :first-of-type:last-of-type or :nth-of-type(1):nth-last-of-type(1), but with a lower specificity."
            },
            {
                name: ":optional",
                "description": "A form element is :required or :optional if a value for it is, respectively, required or optional before the form it belongs to is submitted. Elements that are not form elements are neither required nor optional."
            },
            {
                name: ":out-of-range",
                browsers: [
                    "E",
                    "FF29",
                    "S",
                    "C10",
                    "O11"
                ],
                "description": "Used in conjunction with the min and max attributes, whether on a range input, a number field, or any other types that accept those attributes."
            },
            {
                name: ":past",
                browsers: [
                    "C",
                    "O16",
                    "S6"
                ],
                "description": "Represents any element that is defined to occur entirely prior to a :current element."
            },
            {
                name: ":read-only",
                browsers: [
                    "E",
                    "FF",
                    "S",
                    "C",
                    "O"
                ],
                "description": "An element whose contents are not user-alterable is :read-only. However, elements whose contents are user-alterable (such as text input fields) are considered to be in a :read-write state. In typical documents, most elements are :read-only."
            },
            {
                name: ":read-write",
                browsers: [
                    "E",
                    "FF",
                    "S",
                    "C",
                    "O"
                ],
                "description": "An element whose contents are not user-alterable is :read-only. However, elements whose contents are user-alterable (such as text input fields) are considered to be in a :read-write state. In typical documents, most elements are :read-only."
            },
            {
                name: ":required",
                "description": "A form element is :required or :optional if a value for it is, respectively, required or optional before the form it belongs to is submitted. Elements that are not form elements are neither required nor optional."
            },
            {
                name: ":right",
                browsers: [
                    "E",
                    "IE8",
                    "O9.2"
                ],
                "description": "When printing double-sided documents, the page boxes on left and right pages may be different. This can be expressed through CSS pseudo-classes defined in the  page context."
            },
            {
                name: ":root",
                browsers: [
                    "FF1",
                    "S1",
                    "C1",
                    "IE9",
                    "O9.5"
                ],
                "description": "Represents an element that is the root of the document. In HTML 4, this is always the HTML element."
            },
            {
                name: ":scope",
                browsers: [
                    "FF32",
                    "S7",
                    "O15"
                ],
                "description": "Represents any element that is in the contextual reference element set."
            },
            {
                name: ":single-button",
                browsers: [
                    "C",
                    "S5"
                ],
                "description": "Non-standard. Applies to buttons and track pieces. Applies when both buttons are displayed separately at either end of the scrollbar."
            },
            {
                name: ":start",
                browsers: [
                    "C",
                    "S5"
                ],
                "description": "Non-standard. Applies to buttons and track pieces. Indicates whether the object is placed before the thumb."
            },
            {
                name: ":target",
                "description": "Some URIs refer to a location within a resource. This kind of URI ends with a 'number sign' (#) followed by an anchor identifier (called the fragment identifier)."
            },
            {
                name: ":valid",
                "description": "An element is :valid or :invalid when it is, respectively, valid or invalid with respect to data validity semantics defined by a different specification."
            },
            {
                name: ":vertical",
                browsers: [
                    "C",
                    "S5"
                ],
                "description": "Non-standard. Applies to any scrollbar pieces that have a vertical orientation."
            },
            {
                name: ":visited",
                "description": "Applies once the link has been visited by the user."
            },
            {
                name: ":-webkit-any()",
                browsers: [
                    "C",
                    "S5"
                ],
                "description": "Represents an element that is represented by the selector list passed as its argument. Standardized as :matches()."
            },
            {
                name: ":-webkit-full-screen",
                browsers: [
                    "C",
                    "S6"
                ],
                "description": "Matches any element that has its fullscreen flag set. Standardized as :fullscreen."
            },
            {
                name: ":window-inactive",
                browsers: [
                    "C",
                    "S3"
                ],
                "description": "Non-standard. Applies to all scrollbar pieces. Indicates whether or not the window containing the scrollbar is currently active."
            },
            {
                name: ":blank",
                "status": "experimental",
                "description": "The :blank CSS pseudo-class selects empty user input elements (eg. <input> or <textarea>)."
            },
            {
                name: ":defined",
                "status": "experimental",
                browsers: [
                    "FF63",
                    "S",
                    "C",
                    "O"
                ],
                "description": "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)."
            },
            {
                name: ":dir",
                browsers: [
                    "FF49"
                ],
                "description": "The :dir() CSS pseudo-class matches elements based on the directionality of the text contained in them."
            },
            {
                name: ":focus-within",
                "status": "experimental",
                browsers: [
                    "FF52",
                    "S10.1",
                    "C60",
                    "O47"
                ],
                "description": "The :focus-within pseudo-class applies to any element for which the :focus pseudo class applies as well as to an element whose descendant in the flat tree (including non-element nodes, such as text nodes) matches the conditions for matching :focus."
            },
            {
                name: ":has",
                "status": "experimental",
                "description": ":The :has() CSS pseudo-class represents an element if any of the selectors passed as parameters (relative to the :scope of the given element), match at least one element."
            },
            {
                name: ":is",
                "status": "experimental",
                "description": "The :is() CSS pseudo-class function takes a selector list as its argument, and selects any element that can be selected by one of the selectors in that list. This is useful for writing large selectors in a more compact form."
            },
            {
                name: ":placeholder-shown",
                "status": "experimental",
                browsers: [
                    "FF51",
                    "S9",
                    "C47",
                    "IE10",
                    "O34"
                ],
                "description": "The :placeholder-shown CSS pseudo-class represents any <input> or <textarea> element that is currently displaying placeholder text."
            },
            {
                name: ":where",
                "status": "experimental",
                "description": "The :where() CSS pseudo-class function takes a selector list as its argument, and selects any element that can be selected by one of the selectors in that list."
            }
        ],
        "pseudoElements": [
            {
                name: "::after",
                "description": "Represents a styleable child pseudo-element immediately after the originating element’s actual content."
            },
            {
                name: "::backdrop",
                browsers: [
                    "E",
                    "FF47",
                    "C37",
                    "IE11"
                ],
                "description": "Used to create a backdrop that hides the underlying document for an element in a top layer (such as an element that is displayed fullscreen)."
            },
            {
                name: "::before",
                "description": "Represents a styleable child pseudo-element immediately before the originating element’s actual content."
            },
            {
                name: "::content",
                browsers: [
                    "C35",
                    "O22"
                ],
                "description": "Deprecated. Matches the distribution list itself, on elements that have one. Use ::slotted for forward compatibility."
            },
            {
                name: "::cue",
                browsers: [
                    "FF55",
                    "C"
                ]
            },
            {
                name: "::cue()",
                browsers: [
                    "C",
                    "O16",
                    "S6"
                ]
            },
            {
                name: "::cue-region",
                browsers: [
                    "C",
                    "O16",
                    "S6"
                ]
            },
            {
                name: "::cue-region()",
                browsers: [
                    "C",
                    "O16",
                    "S6"
                ]
            },
            {
                name: "::first-letter",
                "description": "Represents the first letter of an element, if it is not preceded by any other content (such as images or inline tables) on its line."
            },
            {
                name: "::first-line",
                "description": "Describes the contents of the first formatted line of its originating element."
            },
            {
                name: "::-moz-focus-inner",
                browsers: [
                    "FF4"
                ]
            },
            {
                name: "::-moz-focus-outer",
                browsers: [
                    "FF4"
                ]
            },
            {
                name: "::-moz-list-bullet",
                browsers: [
                    "FF1"
                ],
                "description": "Used to style the bullet of a list element. Similar to the standardized ::marker."
            },
            {
                name: "::-moz-list-number",
                browsers: [
                    "FF1"
                ],
                "description": "Used to style the numbers of a list element. Similar to the standardized ::marker."
            },
            {
                name: "::-moz-placeholder",
                browsers: [
                    "FF19"
                ],
                "description": "Represents placeholder text in an input field"
            },
            {
                name: "::-moz-progress-bar",
                browsers: [
                    "FF9"
                ],
                "description": "Represents the bar portion of a progress bar."
            },
            {
                name: "::-moz-selection",
                browsers: [
                    "FF1"
                ],
                "description": "Represents the portion of a document that has been highlighted by the user."
            },
            {
                name: "::-ms-backdrop",
                browsers: [
                    "IE11"
                ],
                "description": "Used to create a backdrop that hides the underlying document for an element in a top layer (such as an element that is displayed fullscreen)."
            },
            {
                name: "::-ms-browse",
                browsers: [
                    "E",
                    "IE10"
                ],
                "description": "Represents the browse button of an input type=file control."
            },
            {
                name: "::-ms-check",
                browsers: [
                    "E",
                    "IE10"
                ],
                "description": "Represents the check of a checkbox or radio button input control."
            },
            {
                name: "::-ms-clear",
                browsers: [
                    "E",
                    "IE10"
                ],
                "description": "Represents the clear button of a text input control"
            },
            {
                name: "::-ms-expand",
                browsers: [
                    "E",
                    "IE10"
                ],
                "description": "Represents the drop-down button of a select control."
            },
            {
                name: "::-ms-fill",
                browsers: [
                    "E",
                    "IE10"
                ],
                "description": "Represents the bar portion of a progress bar."
            },
            {
                name: "::-ms-fill-lower",
                browsers: [
                    "E",
                    "IE"
                ],
                "description": "Represents the portion of the slider track from its smallest value up to the value currently selected by the thumb. In a left-to-right layout, this is the portion of the slider track to the left of the thumb."
            },
            {
                name: "::-ms-fill-upper",
                browsers: [
                    "E",
                    "IE"
                ],
                "description": "Represents the portion of the slider track from the value currently selected by the thumb up to the slider's largest value. In a left-to-right layout, this is the portion of the slider track to the right of the thumb."
            },
            {
                name: "::-ms-reveal",
                browsers: [
                    "E",
                    "IE10"
                ],
                "description": "Represents the password reveal button of an input type=password control."
            },
            {
                name: "::-ms-thumb",
                browsers: [
                    "E",
                    "IE10"
                ],
                "description": "Represents the portion of range input control (also known as a slider control) that the user drags."
            },
            {
                name: "::-ms-ticks-after",
                browsers: [
                    "E",
                    "IE10"
                ],
                "description": "Represents the tick marks of a slider that begin just after the thumb and continue up to the slider's largest value. In a left-to-right layout, these are the ticks to the right of the thumb."
            },
            {
                name: "::-ms-ticks-before",
                browsers: [
                    "E",
                    "IE10"
                ],
                "description": "Represents the tick marks of a slider that represent its smallest values up to the value currently selected by the thumb. In a left-to-right layout, these are the ticks to the left of the thumb."
            },
            {
                name: "::-ms-tooltip",
                browsers: [
                    "E",
                    "IE10"
                ],
                "description": "Represents the tooltip of a slider (input type=range)."
            },
            {
                name: "::-ms-track",
                browsers: [
                    "E",
                    "IE10"
                ],
                "description": "Represents the track of a slider."
            },
            {
                name: "::-ms-value",
                browsers: [
                    "E16",
                    "IE10"
                ],
                "description": "Represents the content of a text or password input control, or a select control."
            },
            {
                name: "::selection",
                "description": "Represents the portion of a document that has been highlighted by the user."
            },
            {
                name: "::shadow",
                browsers: [
                    "C35",
                    "O22"
                ],
                "description": "Matches the shadow root if an element has a shadow tree."
            },
            {
                name: "::-webkit-file-upload-button",
                browsers: [
                    "S",
                    "C",
                    "O"
                ]
            },
            {
                name: "::-webkit-inner-spin-button",
                browsers: [
                    "S",
                    "C",
                    "O"
                ]
            },
            {
                name: "::-webkit-input-placeholder",
                browsers: [
                    "C",
                    "S4"
                ]
            },
            {
                name: "::-webkit-keygen-select",
                browsers: [
                    "C",
                    "O",
                    "S6"
                ]
            },
            {
                name: "::-webkit-meter-bar",
                browsers: [
                    "S",
                    "C",
                    "O"
                ]
            },
            {
                name: "::-webkit-meter-even-less-good-value",
                browsers: [
                    "S",
                    "C",
                    "O"
                ]
            },
            {
                name: "::-webkit-meter-optimum-value",
                browsers: [
                    "S",
                    "C",
                    "O"
                ]
            },
            {
                name: "::-webkit-meter-suboptimal-value",
                browsers: [
                    "E13",
                    "C",
                    "O15",
                    "S6"
                ]
            },
            {
                name: "::-webkit-outer-spin-button",
                browsers: [
                    "S",
                    "C",
                    "O"
                ]
            },
            {
                name: "::-webkit-progress-bar",
                browsers: [
                    "S",
                    "C",
                    "O"
                ]
            },
            {
                name: "::-webkit-progress-inner-element",
                browsers: [
                    "S",
                    "C",
                    "O"
                ]
            },
            {
                name: "::-webkit-progress-value",
                browsers: [
                    "S",
                    "C",
                    "O"
                ]
            },
            {
                name: "::-webkit-resizer",
                browsers: [
                    "S",
                    "C",
                    "O15"
                ]
            },
            {
                name: "::-webkit-scrollbar",
                browsers: [
                    "S",
                    "C",
                    "O15"
                ]
            },
            {
                name: "::-webkit-scrollbar-button",
                browsers: [
                    "S",
                    "C",
                    "O15"
                ]
            },
            {
                name: "::-webkit-scrollbar-corner",
                browsers: [
                    "S",
                    "C",
                    "O15"
                ]
            },
            {
                name: "::-webkit-scrollbar-thumb",
                browsers: [
                    "S",
                    "C",
                    "O15"
                ]
            },
            {
                name: "::-webkit-scrollbar-track",
                browsers: [
                    "S",
                    "C",
                    "O15"
                ]
            },
            {
                name: "::-webkit-scrollbar-track-piece",
                browsers: [
                    "S",
                    "C",
                    "O15"
                ]
            },
            {
                name: "::-webkit-search-cancel-button",
                browsers: [
                    "S",
                    "C"
                ]
            },
            {
                name: "::-webkit-search-decoration",
                browsers: [
                    "C",
                    "S4"
                ]
            },
            {
                name: "::-webkit-search-results-button",
                browsers: [
                    "S",
                    "C"
                ]
            },
            {
                name: "::-webkit-search-results-decoration",
                browsers: [
                    "C",
                    "S4"
                ]
            },
            {
                name: "::-webkit-slider-runnable-track",
                browsers: [
                    "C",
                    "O",
                    "S6"
                ]
            },
            {
                name: "::-webkit-slider-thumb",
                browsers: [
                    "C",
                    "O",
                    "S6"
                ]
            },
            {
                name: "::-webkit-textfield-decoration-container",
                browsers: [
                    "C",
                    "O",
                    "S6"
                ]
            },
            {
                name: "::-webkit-validation-bubble",
                browsers: [
                    "C",
                    "O",
                    "S6"
                ]
            },
            {
                name: "::-webkit-validation-bubble-arrow",
                browsers: [
                    "C",
                    "O",
                    "S6"
                ]
            },
            {
                name: "::-webkit-validation-bubble-arrow-clipper",
                browsers: [
                    "C",
                    "O",
                    "S6"
                ]
            },
            {
                name: "::-webkit-validation-bubble-heading",
                browsers: [
                    "C",
                    "O",
                    "S6"
                ]
            },
            {
                name: "::-webkit-validation-bubble-message",
                browsers: [
                    "C",
                    "O",
                    "S6"
                ]
            },
            {
                name: "::-webkit-validation-bubble-text-block",
                browsers: [
                    "C",
                    "O",
                    "S6"
                ]
            },
            {
                name: "::-moz-range-progress",
                "status": "nonstandard",
                browsers: [
                    "FF"
                ],
                "description": "The ::-moz-range-progress CSS pseudo-element is a Mozilla extension that represents the lower portion of the track (i.e., groove) in which the indicator slides in an <input> of type=\"range\". This portion corresponds to values lower than the value currently selected by the thumb (i.e., virtual knob)."
            },
            {
                name: "::-moz-range-thumb",
                "status": "nonstandard",
                browsers: [
                    "FF"
                ],
                "description": "The ::-moz-range-thumb CSS pseudo-element is a Mozilla extension that represents the thumb (i.e., virtual knob) of an <input> of type=\"range\". The user can move the thumb along the input's track to alter its numerical value."
            },
            {
                name: "::-moz-range-track",
                "status": "nonstandard",
                browsers: [
                    "FF"
                ],
                "description": "The ::-moz-range-track CSS pseudo-element is a Mozilla extension that represents the track (i.e., groove) in which the indicator slides in an <input> of type=\"range\"."
            },
            {
                name: "::-webkit-progress-inner-value",
                "status": "nonstandard",
                "description": "The ::-webkit-progress-value CSS pseudo-element represents the filled-in portion of the bar of a <progress> element. It is a child of the ::-webkit-progress-bar pseudo-element.\n\nIn order to let ::-webkit-progress-value take effect, -webkit-appearance needs to be set to none on the <progress> element."
            },
            {
                name: "::grammar-error",
                "status": "experimental",
                "description": "The ::grammar-error CSS pseudo-element represents a text segment which the user agent has flagged as grammatically incorrect."
            },
            {
                name: "::placeholder",
                browsers: [
                    "E",
                    "FF51",
                    "S10.1",
                    "C57",
                    "O44"
                ],
                "description": "The ::placeholder CSS pseudo-element represents the placeholder text of a form element."
            },
            {
                name: "::slotted",
                browsers: [
                    "FF63",
                    "S",
                    "C50",
                    "O37"
                ],
                "description": "The :slotted() CSS pseudo-element represents any element that has been placed into a slot inside an HTML template."
            },
            {
                name: "::spelling-error",
                "status": "experimental",
                "description": "The ::spelling-error CSS pseudo-element represents a text segment which the user agent has flagged as incorrectly spelled."
            }
        ]
    };
    exports.descriptions = {
        "100": "Thin",
        "200": "Extra Light (Ultra Light)",
        "300": "Light",
        "400": "Normal",
        "500": "Medium",
        "600": "Semi Bold (Demi Bold)",
        "700": "Bold",
        "800": "Extra Bold (Ultra Bold)",
        "900": "Black (Heavy)",
        "self-end": "The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis.",
        "self-start": "The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis..",
        "alternate": "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.",
        "alternate-reverse": "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.",
        "backwards": "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'.",
        "forwards": "The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes.",
        "paused": "A running animation will be paused.",
        "running": "Resume playback of a paused animation.",
        "multiply": "The source color is multiplied by the destination color and replaces the destination.",
        "screen": "Multiplies the complements of the backdrop and source color values, then complements the result.",
        "overlay": "Multiplies or screens the colors, depending on the backdrop color value.",
        "darken": "Selects the darker of the backdrop and source colors.",
        "lighten": "Selects the lighter of the backdrop and source colors.",
        "color-dodge": "Brightens the backdrop color to reflect the source color.",
        "color-burn": "Darkens the backdrop color to reflect the source color.",
        "hard-light": "Multiplies or screens the colors, depending on the source color value.",
        "soft-light": "Darkens or lightens the colors, depending on the source color value.",
        "difference": "Subtracts the darker of the two constituent colors from the lighter color..",
        "exclusion": "Produces an effect similar to that of the Difference mode but lower in contrast.",
        "hue": "Creates a color with the hue of the source color and the saturation and luminosity of the backdrop color.",
        "saturation": "Creates a color with the saturation of the source color and the hue and luminosity of the backdrop color.",
        "color": "Creates a color with the hue and saturation of the source color and the luminosity of the backdrop color.",
        "luminosity": "Creates a color with the luminosity of the source color and the hue and saturation of the backdrop color.",
        "repeat": "The image is tiled (repeated) to fill the area.",
        "clone": "Each box is independently wrapped with the border and padding.",
        "slice": "The effect is as though the element were rendered with no breaks present, and then sliced by the breaks afterward.",
        "inset": "Changes the drop shadow from an outer shadow (one that shadows the box onto the canvas, as if it were lifted above the canvas) to an inner shadow (one that shadows the canvas onto the box, as if the box were cut out of the canvas and shifted behind it).",
        "border-box": "The specified width and height (and respective min/max properties) on this element determine the border box of the element.",
        "content-box": "Behavior of width and height as specified by CSS2.1. The specified width and height (and respective min/max properties) apply to the width and height respectively of the content box of the element.",
        "rect()": "Specifies offsets from the edges of the border box.",
        "evenodd": "Determines the ‘insideness’ of a point on the canvas by drawing a ray from that point to infinity in any direction and counting the number of path segments from the given shape that the ray crosses.",
        "nonzero": "Determines the ‘insideness’ of a point on the canvas by drawing a ray from that point to infinity in any direction and then examining the places where a segment of the shape crosses the ray.",
        "linearRGB": "Color operations should occur in the linearized RGB color space.",
        "sRGB": "Color operations should occur in the sRGB color space.",
        "balance": "Balance content equally between columns, if possible.",
        "size": "For properties that can have effects on more than just an element and its descendants, those effects don't escape the containing element.",
        "layout": "Turns on layout containment for the element.",
        "paint": "Turns on paint containment for the element.",
        "attr()": "The attr(n) function returns as a string the value of attribute n for the subject of the selector.",
        "counter(name)": "Counters are denoted by identifiers (see the 'counter-increment' and 'counter-reset' properties).",
        "alias": "Indicates an alias of/shortcut to something is to be created. Often rendered as an arrow with a small curved arrow next to it.",
        "all-scroll": "Indicates that the something can be scrolled in any direction. Often rendered as arrows pointing up, down, left, and right with a dot in the middle.",
        "cell": "Indicates that a cell or set of cells may be selected. Often rendered as a thick plus-sign with a dot in the middle.",
        "col-resize": "Indicates that the item/column can be resized horizontally. Often rendered as arrows pointing left and right with a vertical bar separating them.",
        "context-menu": "A context menu is available for the object under the cursor. Often rendered as an arrow with a small menu-like graphic next to it.",
        "copy": "Indicates something is to be copied. Often rendered as an arrow with a small plus sign next to it.",
        "crosshair": "A simple crosshair (e.g., short line segments resembling a '+' sign). Often used to indicate a two dimensional bitmap selection mode.",
        "e-resize": "Indicates that east edge is to be moved.",
        "ew-resize": "Indicates a bidirectional east-west resize cursor.",
        "grab": "Indicates that something can be grabbed.",
        "grabbing": "Indicates that something is being grabbed.",
        "help": "Help is available for the object under the cursor. Often rendered as a question mark or a balloon.",
        "move": "Indicates something is to be moved.",
        "-moz-grab": "Indicates that something can be grabbed.",
        "-moz-grabbing": "Indicates that something is being grabbed.",
        "-moz-zoom-in": "Indicates that something can be zoomed (magnified) in.",
        "-moz-zoom-out": "Indicates that something can be zoomed (magnified) out.",
        "ne-resize": "Indicates that movement starts from north-east corner.",
        "nesw-resize": "Indicates a bidirectional north-east/south-west cursor.",
        "no-drop": "Indicates that the dragged item cannot be dropped at the current cursor location. Often rendered as a hand or pointer with a small circle with a line through it.",
        "not-allowed": "Indicates that the requested action will not be carried out. Often rendered as a circle with a line through it.",
        "n-resize": "Indicates that north edge is to be moved.",
        "ns-resize": "Indicates a bidirectional north-south cursor.",
        "nw-resize": "Indicates that movement starts from north-west corner.",
        "nwse-resize": "Indicates a bidirectional north-west/south-east cursor.",
        "pointer": "The cursor is a pointer that indicates a link.",
        "progress": "A progress indicator. The program is performing some processing, but is different from 'wait' in that the user may still interact with the program. Often rendered as a spinning beach ball, or an arrow with a watch or hourglass.",
        "row-resize": "Indicates that the item/row can be resized vertically. Often rendered as arrows pointing up and down with a horizontal bar separating them.",
        "se-resize": "Indicates that movement starts from south-east corner.",
        "s-resize": "Indicates that south edge is to be moved.",
        "sw-resize": "Indicates that movement starts from south-west corner.",
        "vertical-text": "Indicates vertical-text that may be selected. Often rendered as a horizontal I-beam.",
        "wait": "Indicates that the program is busy and the user should wait. Often rendered as a watch or hourglass.",
        "-webkit-grab": "Indicates that something can be grabbed.",
        "-webkit-grabbing": "Indicates that something is being grabbed.",
        "-webkit-zoom-in": "Indicates that something can be zoomed (magnified) in.",
        "-webkit-zoom-out": "Indicates that something can be zoomed (magnified) out.",
        "w-resize": "Indicates that west edge is to be moved.",
        "zoom-in": "Indicates that something can be zoomed (magnified) in.",
        "zoom-out": "Indicates that something can be zoomed (magnified) out.",
        "ltr": "Left-to-right direction.",
        "rtl": "Right-to-left direction.",
        "block": "The element generates a block-level box",
        "flex": "The element generates a principal flex container box and establishes a flex formatting context.",
        "flexbox": "The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'.",
        "flow-root": "The element generates a block container box, and lays out its contents using flow layout.",
        "grid": "The element generates a principal grid container box, and establishes a grid formatting context.",
        "inline-block": "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.",
        "inline-flex": "Inline-level flex container.",
        "inline-flexbox": "Inline-level flex container. Standardized as 'inline-flex'",
        "inline-table": "Inline-level table wrapper box containing table box.",
        "list-item": "One or more block boxes and one marker box.",
        "-moz-box": "The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'.",
        "-moz-inline-box": "Inline-level flex container. Standardized as 'inline-flex'",
        "-ms-flexbox": "The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'.",
        "-ms-grid": "The element generates a principal grid container box, and establishes a grid formatting context.",
        "-ms-inline-flexbox": "Inline-level flex container. Standardized as 'inline-flex'",
        "-ms-inline-grid": "Inline-level grid container.",
        "run-in": "The element generates a run-in box. Run-in elements act like inlines or blocks, depending on the surrounding elements.",
        "table": "The element generates a principal table wrapper box containing an additionally-generated table box, and establishes a table formatting context.",
        "-webkit-box": "The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'.",
        "-webkit-flex": "The element lays out its contents using flow layout (block-and-inline layout).",
        "-webkit-inline-box": "Inline-level flex container. Standardized as 'inline-flex'",
        "-webkit-inline-flex": "Inline-level flex container.",
        "hide": "No borders or backgrounds are drawn around/behind empty cells.",
        "show": "Borders and backgrounds are drawn around/behind empty cells (like normal cells).",
        "accumulate": "If the ancestor container element has a property of new, then all graphics elements within the current container are rendered both on the parent's background image and onto the target.",
        "new": "Create a new background image canvas. All children of the current container element can access the background, and they will be rendered onto both the parent's background image canvas in addition to the target device.",
        "blur()": "Applies a Gaussian blur to the input image.",
        "brightness()": "Applies a linear multiplier to input image, making it appear more or less bright.",
        "contrast()": "Adjusts the contrast of the input.",
        "drop-shadow()": "Applies a drop shadow effect to the input image.",
        "grayscale()": "Converts the input image to grayscale.",
        "hue-rotate()": "Applies a hue rotation on the input image. ",
        "invert()": "Inverts the samples in the input image.",
        "opacity()": "Applies transparency to the samples in the input image.",
        "saturate()": "Saturates the input image.",
        "sepia()": "Converts the input image to sepia.",
        "column-reverse": "Same as 'column', except the main-start and main-end directions are swapped.",
        "row-reverse": "Same as 'row', except the main-start and main-end directions are swapped.",
        "wrap-reverse": "Same as 'wrap', except the cross-start and cross-end directions are swapped.",
        "inline-end": "A keyword indicating that the element must float on the end side of its containing block. That is the right side with ltr scripts, and the left side with rtl scripts.",
        "inline-start": "A keyword indicating that the element must float on the start side of its containing block. That is the left side with ltr scripts, and the right side with rtl scripts.",
        "bold": "Same as 700",
        "bolder": "Specifies the weight of the face bolder than the inherited value.",
        "caption": "The font used for captioned controls (e.g., buttons, drop-downs, etc.).",
        "lighter": "Specifies the weight of the face lighter than the inherited value.",
        "menu": "The font used in menus (e.g., dropdown menus and menu lists).",
        "message-box": "The font used in dialog boxes.",
        "small-caption": "The font used for labeling small controls.",
        "status-bar": "The font used in window status bars.",
        "\"aalt\"": "Access All Alternates.",
        "\"abvf\"": "Above-base Forms. Required in Khmer script.",
        "\"abvm\"": "Above-base Mark Positioning. Required in Indic scripts.",
        "\"abvs\"": "Above-base Substitutions. Required in Indic scripts.",
        "\"afrc\"": "Alternative Fractions.",
        "\"akhn\"": "Akhand. Required in most Indic scripts.",
        "\"blwf\"": "Below-base Form. Required in a number of Indic scripts.",
        "\"blwm\"": "Below-base Mark Positioning. Required in Indic scripts.",
        "\"blws\"": "Below-base Substitutions. Required in Indic scripts.",
        "\"calt\"": "Contextual Alternates.",
        "\"case\"": "Case-Sensitive Forms. Applies only to European scripts; particularly prominent in Spanish-language setting.",
        "\"ccmp\"": "Glyph Composition/Decomposition.",
        "\"cfar\"": "Conjunct Form After Ro. Required in Khmer scripts.",
        "\"cjct\"": "Conjunct Forms. Required in Indic scripts that show similarity to Devanagari.",
        "\"clig\"": "Contextual Ligatures.",
        "\"cpct\"": "Centered CJK Punctuation. Used primarily in Chinese fonts.",
        "\"cpsp\"": "Capital Spacing. Should not be used in connecting scripts (e.g. most Arabic).",
        "\"cswh\"": "Contextual Swash.",
        "\"curs\"": "Cursive Positioning. Can be used in any cursive script.",
        "\"c2pc\"": "Petite Capitals From Capitals. Applies only to bicameral scripts.",
        "\"dist\"": "Distances. Required in Indic scripts.",
        "\"dnom\"": "Denominators.",
        "\"dtls\"": "Dotless Forms. Applied to math formula layout.",
        "\"expt\"": "Expert Forms. Applies only to Japanese.",
        "\"falt\"": "Final Glyph on Line Alternates. Can be used in any cursive script.",
        "\"fin2\"": "Terminal Form #2. Used only with the Syriac script.",
        "\"fin3\"": "Terminal Form #3. Used only with the Syriac script.",
        "\"fina\"": "Terminal Forms. Can be used in any alphabetic script.",
        "\"flac\"": "Flattened ascent forms. Applied to math formula layout.",
        "\"frac\"": "Fractions.",
        "\"fwid\"": "Full Widths. Applies to any script which can use monospaced forms.",
        "\"half\"": "Half Forms. Required in Indic scripts that show similarity to Devanagari.",
        "\"haln\"": "Halant Forms. Required in Indic scripts.",
        "\"halt\"": "Alternate Half Widths. Used only in CJKV fonts.",
        "\"hist\"": "Historical Forms.",
        "\"hkna\"": "Horizontal Kana Alternates. Applies only to fonts that support kana (hiragana and katakana).",
        "\"hlig\"": "Historical Ligatures.",
        "\"hngl\"": "Hangul. Korean only.",
        "\"hojo\"": "Hojo Kanji Forms (JIS X 0212-1990 Kanji Forms). Used only with Kanji script.",
        "\"hwid\"": "Half Widths. Generally used only in CJKV fonts.",
        "\"init\"": "Initial Forms. Can be used in any alphabetic script.",
        "\"isol\"": "Isolated Forms. Can be used in any cursive script.",
        "\"ital\"": "Italics. Applies mostly to Latin; note that many non-Latin fonts contain Latin as well.",
        "\"jalt\"": "Justification Alternates. Can be used in any cursive script.",
        "\"jp78\"": "JIS78 Forms. Applies only to Japanese.",
        "\"jp83\"": "JIS83 Forms. Applies only to Japanese.",
        "\"jp90\"": "JIS90 Forms. Applies only to Japanese.",
        "\"jp04\"": "JIS2004 Forms. Applies only to Japanese.",
        "\"lfbd\"": "Left Bounds.",
        "\"ljmo\"": "Leading Jamo Forms. Required for Hangul script when Ancient Hangul writing system is supported.",
        "\"locl\"": "Localized Forms.",
        "\"ltra\"": "Left-to-right glyph alternates.",
        "\"ltrm\"": "Left-to-right mirrored forms.",
        "\"mark\"": "Mark Positioning.",
        "\"med2\"": "Medial Form #2. Used only with the Syriac script.",
        "\"medi\"": "Medial Forms.",
        "\"mgrk\"": "Mathematical Greek.",
        "\"mkmk\"": "Mark to Mark Positioning.",
        "\"nalt\"": "Alternate Annotation Forms.",
        "\"nlck\"": "NLC Kanji Forms. Used only with Kanji script.",
        "\"nukt\"": "Nukta Forms. Required in Indic scripts..",
        "\"numr\"": "Numerators.",
        "\"opbd\"": "Optical Bounds.",
        "\"ordn\"": "Ordinals. Applies mostly to Latin script.",
        "\"ornm\"": "Ornaments.",
        "\"palt\"": "Proportional Alternate Widths. Used mostly in CJKV fonts.",
        "\"pcap\"": "Petite Capitals.",
        "\"pkna\"": "Proportional Kana. Generally used only in Japanese fonts.",
        "\"pnum\"": "Proportional Figures.",
        "\"pref\"": "Pre-base Forms. Required in Khmer and Myanmar (Burmese) scripts and southern Indic scripts that may display a pre-base form of Ra.",
        "\"pres\"": "Pre-base Substitutions. Required in Indic scripts.",
        "\"pstf\"": "Post-base Forms. Required in scripts of south and southeast Asia that have post-base forms for consonants eg: Gurmukhi, Malayalam, Khmer.",
        "\"psts\"": "Post-base Substitutions.",
        "\"pwid\"": "Proportional Widths.",
        "\"qwid\"": "Quarter Widths. Generally used only in CJKV fonts.",
        "\"rand\"": "Randomize.",
        "\"rclt\"": "Required Contextual Alternates. May apply to any script, but is especially important for many styles of Arabic.",
        "\"rlig\"": "Required Ligatures. Applies to Arabic and Syriac. May apply to some other scripts.",
        "\"rkrf\"": "Rakar Forms. Required in Devanagari and Gujarati scripts.",
        "\"rphf\"": "Reph Form. Required in Indic scripts. E.g. Devanagari, Kannada.",
        "\"rtbd\"": "Right Bounds.",
        "\"rtla\"": "Right-to-left alternates.",
        "\"rtlm\"": "Right-to-left mirrored forms.",
        "\"ruby\"": "Ruby Notation Forms. Applies only to Japanese.",
        "\"salt\"": "Stylistic Alternates.",
        "\"sinf\"": "Scientific Inferiors.",
        "\"size\"": "Optical size.",
        "\"smpl\"": "Simplified Forms. Applies only to Chinese and Japanese.",
        "\"ssty\"": "Math script style alternates.",
        "\"stch\"": "Stretching Glyph Decomposition.",
        "\"subs\"": "Subscript.",
        "\"sups\"": "Superscript.",
        "\"titl\"": "Titling.",
        "\"tjmo\"": "Trailing Jamo Forms. Required for Hangul script when Ancient Hangul writing system is supported.",
        "\"tnam\"": "Traditional Name Forms. Applies only to Japanese.",
        "\"trad\"": "Traditional Forms. Applies only to Chinese and Japanese.",
        "\"twid\"": "Third Widths. Generally used only in CJKV fonts.",
        "\"unic\"": "Unicase.",
        "\"valt\"": "Alternate Vertical Metrics. Applies only to scripts with vertical writing modes.",
        "\"vatu\"": "Vattu Variants. Used for Indic scripts. E.g. Devanagari.",
        "\"vert\"": "Vertical Alternates. Applies only to scripts with vertical writing modes.",
        "\"vhal\"": "Alternate Vertical Half Metrics. Used only in CJKV fonts.",
        "\"vjmo\"": "Vowel Jamo Forms. Required for Hangul script when Ancient Hangul writing system is supported.",
        "\"vkna\"": "Vertical Kana Alternates. Applies only to fonts that support kana (hiragana and katakana).",
        "\"vkrn\"": "Vertical Kerning.",
        "\"vpal\"": "Proportional Alternate Vertical Metrics. Used mostly in CJKV fonts.",
        "\"vrt2\"": "Vertical Alternates and Rotation. Applies only to scripts with vertical writing modes.",
        "\"zero\"": "Slashed Zero.",
        "narrower": "Indicates a narrower value relative to the width of the parent element.",
        "wider": "Indicates a wider value relative to the width of the parent element.",
        "weight": "Allow synthetic bold faces.",
        "annotation()": "Enables display of alternate annotation forms.",
        "character-variant()": "Enables display of specific character variants.",
        "historical-forms": "Enables display of historical forms.",
        "ornaments()": "Enables replacement of default glyphs with ornaments, if provided in the font.",
        "styleset()": "Enables display with stylistic sets.",
        "stylistic()": "Enables display of stylistic alternates.",
        "swash()": "Enables display of swash glyphs.",
        "all-petite-caps": "Enables display of petite capitals for both upper and lowercase letters.",
        "all-small-caps": "Enables display of small capitals for both upper and lowercase letters.",
        "petite-caps": "Enables display of petite capitals.",
        "titling-caps": "Enables display of titling capitals.",
        "unicase": "Enables display of mixture of small capitals for uppercase letters with normal lowercase letters.",
        "full-width": "Enables rendering of full-width variants.",
        "jis04": "Enables rendering of JIS04 forms.",
        "jis78": "Enables rendering of JIS78 forms.",
        "jis83": "Enables rendering of JIS83 forms.",
        "jis90": "Enables rendering of JIS90 forms.",
        "proportional-width": "Enables rendering of proportionally-spaced variants.",
        "simplified": "Enables rendering of simplified forms.",
        "traditional": "Enables rendering of traditional forms.",
        "additional-ligatures": "Enables display of additional ligatures.",
        "common-ligatures": "Enables display of common ligatures.",
        "contextual": "Enables display of contextual alternates.",
        "discretionary-ligatures": "Enables display of discretionary ligatures.",
        "historical-ligatures": "Enables display of historical ligatures.",
        "no-additional-ligatures": "Disables display of additional ligatures.",
        "no-common-ligatures": "Disables display of common ligatures.",
        "no-contextual": "Disables display of contextual alternates.",
        "no-discretionary-ligatures": "Disables display of discretionary ligatures.",
        "no-historical-ligatures": "Disables display of historical ligatures.",
        "diagonal-fractions": "Enables display of lining diagonal fractions.",
        "lining-nums": "Enables display of lining numerals.",
        "oldstyle-nums": "Enables display of old-style numerals.",
        "ordinal": "Enables display of letter forms used with ordinal numbers.",
        "proportional-nums": "Enables display of proportional numerals.",
        "slashed-zero": "Enables display of slashed zeros.",
        "stacked-fractions": "Enables display of lining stacked fractions.",
        "tabular-nums": "Enables display of tabular numerals.",
        "span": "Contributes a grid span to the grid item’s placement such that the corresponding edge of the grid item’s grid area is N lines from its opposite edge.",
        "minmax()": "Defines a size range greater than or equal to min and less than or equal to max.",
        "dense": "If specified, the auto-placement algorithm uses a “dense” packing algorithm, which attempts to fill in holes earlier in the grid if smaller items come up later.",
        "fit-content": "Use the fit-content inline size or fit-content block size, as appropriate to the writing mode.",
        "manual": "Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities",
        "flip": "After rotating by the precededing angle, the image is flipped horizontally. Defaults to 0deg if the angle is ommitted.",
        "from-image": "If the image has an orientation specified in its metadata, such as EXIF, this value computes to the angle that the metadata specifies is necessary to correctly orient the image.",
        "crisp-edges": "The image must be scaled with an algorithm that preserves contrast and edges in the image, and which does not smooth colors or introduce blur to the image in the process.",
        "optimizeQuality": "Deprecated.",
        "pixelated": "When scaling the image up, the 'nearest neighbor' or similar algorithm must be used, so that the image appears to be simply composed of very large pixels.",
        "active": "The input method editor is initially active; text entry is performed using it unless the user specifically dismisses it.",
        "disabled": "The input method editor is disabled and may not be activated by the user.",
        "inactive": "The input method editor is initially inactive, but the user may activate it if they wish.",
        "safe": "If the size of the item overflows the alignment container, the item is instead aligned as if the alignment mode were start.",
        "unsafe": "Regardless of the relative sizes of the item and alignment container, the given alignment value is honored.",
        "space-evenly": "The items are evenly distributed within the alignment container along the main axis.",
        "circle": "A hollow circle.",
        "disc": "A filled circle.",
        "inside": "The marker box is outside the principal block box, as described in the section on the ::marker pseudo-element below.",
        "outside": "The ::marker pseudo-element is an inline element placed immediately before all ::before pseudo-elements in the principal block box, after which the element's content flows.",
        "symbols()": "Allows a counter style to be defined inline.",
        "path()": "Defines an SVG path as a string, with optional 'fill-rule' as the first argument.",
        "block-axis": "Elements are oriented along the box's axis.",
        "inline-axis": "Elements are oriented vertically.",
        "padding-box": "The specified width and height (and respective min/max properties) on this element determine the padding box of the element.",
        "line-through": "Each line of text has a line through the middle.",
        "overline": "Each line of text has a line above it.",
        "underline": "Each line of text is underlined.",
        "dashed": "Produces a dashed line style.",
        "dotted": "Produces a dotted line.",
        "double": "Produces a double line.",
        "solid": "Produces a solid line.",
        "wavy": "Produces a wavy line.",
        "matrix()": "Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]",
        "matrix3d()": "Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order.",
        "perspective": "Specifies a perspective projection matrix.",
        "rotate()": "Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property.",
        "rotate3d()": "Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters.",
        "rotateX('angle')": "Specifies a clockwise rotation by the given angle about the X axis.",
        "rotateY('angle')": "Specifies a clockwise rotation by the given angle about the Y axis.",
        "rotateZ('angle')": "Specifies a clockwise rotation by the given angle about the Z axis.",
        "scale()": "Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first.",
        "scale3d()": "Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters.",
        "scaleX()": "Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter.",
        "scaleY()": "Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter.",
        "scaleZ()": "Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter.",
        "skew()": "Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis).",
        "skewX()": "Specifies a skew transformation along the X axis by the given angle.",
        "skewY()": "Specifies a skew transformation along the Y axis by the given angle.",
        "translate()": "Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter.",
        "translate3d()": "Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively.",
        "translateX()": "Specifies a translation by the given amount in the X direction.",
        "translateY()": "Specifies a translation by the given amount in the Y direction.",
        "translateZ()": "Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0.",
        "false": "The element does not contain an accelerator key sequence.",
        "true": "The element contains an accelerator key sequence.",
        "bt": "Bottom-to-top block flow. Layout is horizontal.",
        "lr": "Left-to-right direction. The flow orientation is vertical.",
        "rl": "Right-to-left direction. The flow orientation is vertical.",
        "tb": "Top-to-bottom direction. The flow orientation is horizontal.",
        "zoom": "The element is zoomable.",
        "no-limit": "There is no limit.",
        "mode": "Any of the range of mode values available to the -ms-layout-grid-mode property.",
        "type": "Any of the range of type values available to the -ms-layout-grid-type property.",
        "-ms-autohiding-scrollbar": "Indicates the element displays auto-hiding scrollbars during mouse interactions and panning indicators during touch and keyboard interactions.",
        "scrollbar": "Scrollbars are typically narrow strips inserted on one or two edges of an element and which often have arrows to click on and a \"thumb\" to drag up and down (or left and right) to move the contents of the element.",
        "ideograph-alpha": "Creates 1/4em extra spacing between runs of ideographic letters and non-ideographic letters, such as Latin-based, Cyrillic, Greek, Arabic or Hebrew.",
        "ideograph-numeric": "Creates 1/4em extra spacing between runs of ideographic letters and numeric glyphs.",
        "ideograph-parenthesis": "Creates extra spacing between normal (non wide) parenthesis and ideographs.",
        "ideograph-space": "Extends the width of the space character while surrounded by ideographs.",
        "punctuation": "Creates extra non-breaking spacing around punctuation as required by language-specific typographic conventions.",
        "digits": "Attempt to typeset horizontally each maximal sequence of consecutive ASCII digits (U+0030–U+0039) that has as many or fewer characters than the specified integer such that it takes up the space of a single character within the vertical line box.",
        "inter-cluster": "Justification primarily changes spacing at word separators and at grapheme cluster boundaries in clustered scripts. This value is typically used for Southeast Asian scripts such as Thai.",
        "inter-ideograph": "Justification primarily changes spacing at word separators and at inter-graphemic boundaries in scripts that use no word spaces. This value is typically used for CJK languages.",
        "inter-word": "Justification primarily changes spacing at word separators. This value is typically used for languages that separate words using spaces, like English or (sometimes) Korean.",
        "kashida": "Justification primarily stretches Arabic and related scripts through the use of kashida or other calligraphic elongation.",
        "clip": "Clip inline content that overflows. Characters may be only partially rendered.",
        "ellipsis": "Render an ellipsis character (U+2026) to represent clipped inline content.",
        "over": "The underline is aligned with the 'top' (right in vertical writing) edge of the element's em-box. In this mode, an overline also switches sides.",
        "under": "The underline is aligned with the 'bottom' (left in vertical writing) edge of the element's em-box. In this case the underline usually does not cross the descenders. This is sometimes called 'accounting' underline.",
        "grippers": "Grippers are always on.",
        "break-all": "Lines may break between any two grapheme clusters for non-CJK scripts.",
        "clear": "Inline flow content can only wrap on top and bottom of the exclusion and must leave the areas to the start and end edges of the exclusion box empty.",
        "maximum": "Inline flow content can wrap on the side of the exclusion with the largest available space for the given line, and must leave the other side of the exclusion empty.",
        "minimum": "Inline flow content can flow around the edge of the exclusion with the smallest available space within the flow content’s containing block, and must leave the other edge of the exclusion empty.",
        "current": "Indicates that the user agent should target the frame that the element is in.",
        "root": "Indicates that the user agent should target the full window.",
        "scale-down": "Size the content as if ‘none’ or ‘contain’ were specified, whichever would result in a smaller concrete object size.",
        "invert": "Performs a color inversion on the pixels on the screen.",
        "-moz-hidden-unscrollable": "Same as the standardized 'clip', except doesn’t establish a block formatting context.",
        "painted": "The given element can be the target element for pointer events when the pointer is over a \"painted\" area. ",
        "visibleFill": "The given element can be the target element for pointer events when the ‘visibility’ property is set to visible and when the pointer is over the interior of the element.",
        "visiblePainted": "The given element can be the target element for pointer events when the ‘visibility’ property is set to visible and when the pointer is over a ‘painted’ area.",
        "visibleStroke": "The given element can be the target element for pointer events when the ‘visibility’ property is set to visible and when the pointer is over the perimeter of the element.",
        "absolute": "The box's position (and possibly size) is specified with the 'top', 'right', 'bottom', and 'left' properties. These properties specify offsets with respect to the box's 'containing block'.",
        "-ms-page": "The box's position is calculated according to the 'absolute' model.",
        "relative": "The box's position is calculated according to the normal flow (this is called the position in normal flow). Then the box is offset relative to its normal position.",
        "static": "The box is a normal box, laid out according to the normal flow. The 'top', 'right', 'bottom', and 'left' properties do not apply.",
        "sticky": "The box's position is calculated according to the normal flow. Then the box is offset relative to its flow root and containing block and in all cases, including table elements, does not affect the position of any following boxes.",
        "-webkit-sticky": "The box's position is calculated according to the normal flow. Then the box is offset relative to its flow root and containing block and in all cases, including table elements, does not affect the position of any following boxes.",
        "distribute-letter": "If the width of the ruby text is smaller than that of the base, then the ruby text contents are evenly distributed across the width of the base, with the first and last ruby text glyphs lining up with the corresponding first and last base glyphs. If the width of the ruby text is at least the width of the base, then the letters of the base are evenly distributed across the width of the ruby text.",
        "distribute-space": "If the width of the ruby text is smaller than that of the base, then the ruby text contents are evenly distributed across the width of the base, with a certain amount of white space preceding the first and following the last character in the ruby text. That amount of white space is normally equal to half the amount of inter-character space of the ruby text.",
        "line-edge": "If the ruby text is not adjacent to a line edge, it is aligned as in 'auto'. If it is adjacent to a line edge, then it is still aligned as in auto, but the side of the ruby text that touches the end of the line is lined up with the corresponding edge of the base.",
        "after": "The ruby text appears after the base. This is a relatively rare setting used in ideographic East Asian writing systems, most easily found in educational text.",
        "before": "The ruby text appears before the base. This is the most common setting used in ideographic East Asian writing systems.",
        "attr(x)": "The value of attribute 'x' is a string value. The string value is evaluated as a <number> to determine the number of ruby base elements to be spanned by the annotation element.",
        "smooth": "Scrolls in a smooth fashion using a user-agent-defined timing function and time period.",
        "margin-box": "The background is painted within (clipped to) the margin box.",
        "crispEdges": "Emphasize the contrast between clean edges of artwork over rendering speed and geometric precision.",
        "format()": "Optional hint describing the format of the font resource.",
        "local()": "Format-specific string that identifies a locally available copy of a given font.",
        "butt": "Indicates that the stroke for each subpath does not extend beyond its two endpoints.",
        "bevel": "Indicates that a bevelled corner is to be used to join path segments.",
        "miter": "Indicates that a sharp corner is to be used to join path segments.",
        "additive": "Represents “sign-value” numbering systems, which, rather than using reusing digits in different positions to change their value, define additional digits with much larger values, so that the value of the number can be obtained by adding all the digits together.",
        "cyclic": "Cycles repeatedly through its provided symbols, looping back to the beginning when it reaches the end of the list.",
        "extends": "Use the algorithm of another counter style, but alter other aspects.",
        "numeric": "interprets the list of counter symbols as digits to a \"place-value\" numbering system, similar to the default 'decimal' counter style.",
        "symbolic": "Cycles repeatedly through its provided symbols, doubling, tripling, etc. the symbols on each successive pass through the list.",
        "sideways": "This value is equivalent to 'sideways-right' in 'vertical-rl' writing mode and equivalent to 'sideways-left' in 'vertical-lr' writing mode.",
        "sideways-right": "In vertical writing modes, this causes text to be set as if in a horizontal layout, but rotated 90° clockwise.",
        "upright": "In vertical writing modes, characters from horizontal-only scripts are rendered upright, i.e. in their standard horizontal orientation.",
        "optimizeLegibility": "Indicates that the user agent shall emphasize legibility over rendering speed and geometric precision.",
        "capitalize": "Puts the first typographic letter unit of each word in titlecase.",
        "lowercase": "Puts all letters in lowercase.",
        "uppercase": "Puts all letters in uppercase.",
        "perspective()": "Specifies a perspective projection matrix.",
        "flat": "All children of this element are rendered flattened into the 2D plane of the element.",
        "preserve-3d": "Flattening is not performed, so children maintain their position in 3D space.",
        "bidi-override": "Inside the element, reordering is strictly in sequence according to the 'direction' property; the implicit part of the bidirectional algorithm is ignored.",
        "embed": "If the element is inline-level, this value opens an additional level of embedding with respect to the bidirectional algorithm. The direction of this embedding level is given by the 'direction' property.",
        "isolate-override": "This combines the isolation behavior of 'isolate' with the directional override behavior of 'bidi-override'",
        "plaintext": "For the purposes of the Unicode bidirectional algorithm, the base directionality of each bidi paragraph for which the element forms the containing block is determined not by the element's computed 'direction'.",
        "U+26": "Ampersand.",
        "U+20-24F, U+2B0-2FF, U+370-4FF, U+1E00-1EFF, U+2000-20CF, U+2100-23FF, U+2500-26FF, U+E000-F8FF, U+FB00–FB4F": "WGL4 character set (Pan-European).",
        "U+20-17F, U+2B0-2FF, U+2000-206F, U+20A0-20CF, U+2100-21FF, U+2600-26FF": "The Multilingual European Subset No. 1. Latin. Covers ~44 languages.",
        "U+20-2FF, U+370-4FF, U+1E00-20CF, U+2100-23FF, U+2500-26FF, U+FB00-FB4F, U+FFF0-FFFD": "The Multilingual European Subset No. 2. Latin, Greek, and Cyrillic. Covers ~128 language.",
        "U+20-4FF, U+530-58F, U+10D0-10FF, U+1E00-23FF, U+2440-245F, U+2500-26FF, U+FB00-FB4F, U+FE20-FE2F, U+FFF0-FFFD": "The Multilingual European Subset No. 3. Covers all characters belonging to European scripts.",
        "U+00-7F": "Basic Latin (ASCII).",
        "U+80-FF": "Latin-1 Supplement. Accented characters for Western European languages, common punctuation characters, multiplication and division signs.",
        "U+100-17F": "Latin Extended-A. Accented characters for for Czech, Dutch, Polish, and Turkish.",
        "U+180-24F": "Latin Extended-B. Croatian, Slovenian, Romanian, Non-European and historic latin, Khoisan, Pinyin, Livonian, Sinology.",
        "U+1E00-1EFF": "Latin Extended Additional. Vietnamese, German captial sharp s, Medievalist, Latin general use.",
        "U+250-2AF": "International Phonetic Alphabet Extensions.",
        "U+370-3FF": "Greek and Coptic.",
        "U+1F00-1FFF": "Greek Extended. Accented characters for polytonic Greek.",
        "U+400-4FF": "Cyrillic.",
        "U+500-52F": "Cyrillic Supplement. Extra letters for Komi, Khanty, Chukchi, Mordvin, Kurdish, Aleut, Chuvash, Abkhaz, Azerbaijani, and Orok.",
        "U+00-52F, U+1E00-1FFF, U+2200–22FF": "Latin, Greek, Cyrillic, some punctuation and symbols.",
        "U+530–58F": "Armenian.",
        "U+590–5FF": "Hebrew.",
        "U+600–6FF": "Arabic.",
        "U+750–77F": "Arabic Supplement. Additional letters for African languages, Khowar, Torwali, Burushaski, and early Persian.",
        "U+8A0–8FF": "Arabic Extended-A. Additional letters for African languages, European and Central Asian languages, Rohingya, Tamazight, Arwi, and Koranic annotation signs.",
        "U+700–74F": "Syriac.",
        "U+900–97F": "Devanagari.",
        "U+980–9FF": "Bengali.",
        "U+A00–A7F": "Gurmukhi.",
        "U+A80–AFF": "Gujarati.",
        "U+B00–B7F": "Oriya.",
        "U+B80–BFF": "Tamil.",
        "U+C00–C7F": "Telugu.",
        "U+C80–CFF": "Kannada.",
        "U+D00–D7F": "Malayalam.",
        "U+D80–DFF": "Sinhala.",
        "U+118A0–118FF": "Warang Citi.",
        "U+E00–E7F": "Thai.",
        "U+1A20–1AAF": "Tai Tham.",
        "U+AA80–AADF": "Tai Viet.",
        "U+E80–EFF": "Lao.",
        "U+F00–FFF": "Tibetan.",
        "U+1000–109F": "Myanmar (Burmese).",
        "U+10A0–10FF": "Georgian.",
        "U+1200–137F": "Ethiopic.",
        "U+1380–139F": "Ethiopic Supplement. Extra Syllables for Sebatbeit, and Tonal marks",
        "U+2D80–2DDF": "Ethiopic Extended. Extra Syllables for Me'en, Blin, and Sebatbeit.",
        "U+AB00–AB2F": "Ethiopic Extended-A. Extra characters for Gamo-Gofa-Dawro, Basketo, and Gumuz.",
        "U+1780–17FF": "Khmer.",
        "U+1800–18AF": "Mongolian.",
        "U+1B80–1BBF": "Sundanese.",
        "U+1CC0–1CCF": "Sundanese Supplement. Punctuation.",
        "U+4E00–9FD5": "CJK (Chinese, Japanese, Korean) Unified Ideographs. Most common ideographs for modern Chinese and Japanese.",
        "U+3400–4DB5": "CJK Unified Ideographs Extension A. Rare ideographs.",
        "U+2F00–2FDF": "Kangxi Radicals.",
        "U+2E80–2EFF": "CJK Radicals Supplement. Alternative forms of Kangxi Radicals.",
        "U+1100–11FF": "Hangul Jamo.",
        "U+AC00–D7AF": "Hangul Syllables.",
        "U+3040–309F": "Hiragana.",
        "U+30A0–30FF": "Katakana.",
        "U+A5, U+4E00-9FFF, U+30??, U+FF00-FF9F": "Japanese Kanji, Hiragana and Katakana characters plus Yen/Yuan symbol.",
        "U+A4D0–A4FF": "Lisu.",
        "U+A000–A48F": "Yi Syllables.",
        "U+A490–A4CF": "Yi Radicals.",
        "U+2000-206F": "General Punctuation.",
        "U+3000–303F": "CJK Symbols and Punctuation.",
        "U+2070–209F": "Superscripts and Subscripts.",
        "U+20A0–20CF": "Currency Symbols.",
        "U+2100–214F": "Letterlike Symbols.",
        "U+2150–218F": "Number Forms.",
        "U+2190–21FF": "Arrows.",
        "U+2200–22FF": "Mathematical Operators.",
        "U+2300–23FF": "Miscellaneous Technical.",
        "U+E000-F8FF": "Private Use Area.",
        "U+FB00–FB4F": "Alphabetic Presentation Forms. Ligatures for latin, Armenian, and Hebrew.",
        "U+FB50–FDFF": "Arabic Presentation Forms-A. Contextual forms / ligatures for Persian, Urdu, Sindhi, Central Asian languages, etc, Arabic pedagogical symbols, word ligatures.",
        "U+1F600–1F64F": "Emoji: Emoticons.",
        "U+2600–26FF": "Emoji: Miscellaneous Symbols.",
        "U+1F300–1F5FF": "Emoji: Miscellaneous Symbols and Pictographs.",
        "U+1F900–1F9FF": "Emoji: Supplemental Symbols and Pictographs.",
        "U+1F680–1F6FF": "Emoji: Transport and Map Symbols.",
        "text-bottom": "Align the bottom of the box with the after-edge of the parent element's font.",
        "text-top": "Align the top of the box with the before-edge of the parent element's font.",
        "break": "If the content fits within the CSS Region, then this property has no effect.",
        "pre": "Sets 'white-space-collapsing' to 'preserve' and 'text-wrap' to 'none'.",
        "pre-line": "Sets 'white-space-collapsing' to 'preserve-breaks' and 'text-wrap' to 'normal'.",
        "pre-wrap": "Sets 'white-space-collapsing' to 'preserve' and 'text-wrap' to 'normal'.",
        "scroll-position": "Indicates that the author expects to animate or change the scroll position of the element in the near future.",
        "horizontal-tb": "Top-to-bottom block flow direction. The writing mode is horizontal.",
        "sideways-lr": "Left-to-right block flow direction. The writing mode is vertical, while the typographic mode is horizontal.",
        "sideways-rl": "Right-to-left block flow direction. The writing mode is vertical, while the typographic mode is horizontal.",
        "vertical-lr": "Left-to-right block flow direction. The writing mode is vertical.",
        "vertical-rl": "Right-to-left block flow direction. The writing mode is vertical."
    };
});

(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/utils/objects',["require", "exports"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    function values(obj) {
        return Object.keys(obj).map(function (k) { return obj[k]; });
    }
    exports.values = values;
});

(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/languageFacts/dataManager',["require", "exports", "../utils/objects"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    var objects = require("../utils/objects");
    var CSSDataManager = /** @class */ (function () {
        function CSSDataManager(dataProviders) {
            this.dataProviders = dataProviders;
            this._propertySet = {};
            this._atDirectiveSet = {};
            this._pseudoClassSet = {};
            this._pseudoElementSet = {};
            this._properties = [];
            this._atDirectives = [];
            this._pseudoClasses = [];
            this._pseudoElements = [];
            this.collectData();
        }
        CSSDataManager.prototype.addDataProviders = function (providers) {
            this.dataProviders = this.dataProviders.concat(providers);
            this.collectData();
        };
        /**
         * Collect all data  & handle duplicates
         */
        CSSDataManager.prototype.collectData = function () {
            var _this = this;
            this.dataProviders.forEach(function (provider) {
                provider.provideProperties().forEach(function (p) {
                    if (!_this._propertySet[p.name]) {
                        _this._propertySet[p.name] = p;
                    }
                });
                provider.provideAtDirectives().forEach(function (p) {
                    if (!_this._atDirectiveSet[p.name]) {
                        _this._atDirectiveSet[p.name] = p;
                    }
                });
                provider.providePseudoClasses().forEach(function (p) {
                    if (!_this._pseudoClassSet[p.name]) {
                        _this._pseudoClassSet[p.name] = p;
                    }
                });
                provider.providePseudoElements().forEach(function (p) {
                    if (!_this._pseudoElementSet[p.name]) {
                        _this._pseudoElementSet[p.name] = p;
                    }
                });
            });
            this._properties = objects.values(this._propertySet);
            this._atDirectives = objects.values(this._atDirectiveSet);
            this._pseudoClasses = objects.values(this._pseudoClassSet);
            this._pseudoElements = objects.values(this._pseudoElementSet);
        };
        CSSDataManager.prototype.getProperty = function (name) { return this._propertySet[name]; };
        CSSDataManager.prototype.getAtDirective = function (name) { return this._atDirectiveSet[name]; };
        CSSDataManager.prototype.getPseudoClass = function (name) { return this._pseudoClassSet[name]; };
        CSSDataManager.prototype.getPseudoElement = function (name) { return this._pseudoElementSet[name]; };
        CSSDataManager.prototype.getProperties = function (majorBrowserSupport) {
            if (majorBrowserSupport === void 0) { majorBrowserSupport = true; }
            if (!majorBrowserSupport) {
                return this._properties;
            }
            else {
                return this._properties.filter(supportedInMoreThanOneBrowser);
            }
        };
        CSSDataManager.prototype.getAtDirectives = function (majorBrowserSupport) {
            if (majorBrowserSupport === void 0) { majorBrowserSupport = true; }
            if (!majorBrowserSupport) {
                return this._atDirectives;
            }
            else {
                return this._atDirectives.filter(supportedInMoreThanOneBrowser);
            }
        };
        CSSDataManager.prototype.getPseudoClasses = function (majorBrowserSupport) {
            if (majorBrowserSupport === void 0) { majorBrowserSupport = true; }
            if (!majorBrowserSupport) {
                return this._pseudoClasses;
            }
            else {
                return this._pseudoClasses.filter(supportedInMoreThanOneBrowser);
            }
        };
        CSSDataManager.prototype.getPseudoElements = function (majorBrowserSupport) {
            if (majorBrowserSupport === void 0) { majorBrowserSupport = true; }
            if (!majorBrowserSupport) {
                return this._pseudoElements;
            }
            else {
                return this._pseudoElements.filter(supportedInMoreThanOneBrowser);
            }
        };
        CSSDataManager.prototype.isKnownProperty = function (name) {
            return name.toLowerCase() in this._propertySet;
        };
        CSSDataManager.prototype.isStandardProperty = function (name) {
            return this.isKnownProperty(name) &&
                (!this._propertySet[name.toLowerCase()].status || this._propertySet[name.toLowerCase()].status === 'standard');
        };
        return CSSDataManager;
    }());
    exports.CSSDataManager = CSSDataManager;
    function supportedInMoreThanOneBrowser(entry) {
        if (!entry.browsers) {
            return true;
        }
        return entry.browsers.length > 1;
    }
    exports.supportedInMoreThanOneBrowser = supportedInMoreThanOneBrowser;
});

(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/languageFacts/dataProvider',["require", "exports"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    var CSSDataProvider = /** @class */ (function () {
        /**
         * Currently, unversioned data uses the V1 implementation
         * In the future when the provider handles multiple versions of HTML custom data,
         * use the latest implementation for unversioned data
         */
        function CSSDataProvider(data) {
            this._properties = [];
            this._atDirectives = [];
            this._pseudoClasses = [];
            this._pseudoElements = [];
            this.addData(data);
        }
        CSSDataProvider.prototype.provideProperties = function () {
            return this._properties;
        };
        CSSDataProvider.prototype.provideAtDirectives = function () {
            return this._atDirectives;
        };
        CSSDataProvider.prototype.providePseudoClasses = function () {
            return this._pseudoClasses;
        };
        CSSDataProvider.prototype.providePseudoElements = function () {
            return this._pseudoElements;
        };
        CSSDataProvider.prototype.addData = function (data) {
            if (data.properties) {
                this._properties = this._properties.concat(data.properties);
            }
            if (data.atDirectives) {
                this._atDirectives = this._atDirectives.concat(data.atDirectives);
            }
            if (data.pseudoClasses) {
                this._pseudoClasses = this._pseudoClasses.concat(data.pseudoClasses);
            }
            if (data.pseudoElements) {
                this._pseudoElements = this._pseudoElements.concat(data.pseudoElements);
            }
        };
        return CSSDataProvider;
    }());
    exports.CSSDataProvider = CSSDataProvider;
});

(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/languageFacts/entry',["require", "exports"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.browserNames = {
        E: 'Edge',
        FF: 'Firefox',
        S: 'Safari',
        C: 'Chrome',
        IE: 'IE',
        O: 'Opera'
    };
    function getEntryStatus(status) {
        switch (status) {
            case 'experimental':
                return '⚠️ Property is experimental. Be cautious when using it.️\n\n';
            case 'nonstandard':
                return '🚨️ Property is nonstandard. Avoid using it.\n\n';
            case 'obsolete':
                return '🚨️️️ Property is obsolete. Avoid using it.\n\n';
            default:
                return '';
        }
    }
    function getEntryDescription(entry) {
        if (!entry.description || entry.description === '') {
            return null;
        }
        var result = '';
        if (entry.status) {
            result += getEntryStatus(entry.status);
        }
        result += entry.description;
        var browserLabel = getBrowserLabel(entry.browsers);
        if (browserLabel) {
            result += '\n(' + browserLabel + ')';
        }
        if ('syntax' in entry) {
            result += "\n\nSyntax: " + entry.syntax;
        }
        return result;
    }
    exports.getEntryDescription = getEntryDescription;
    /**
     * Input is like `["E12","FF49","C47","IE","O"]`
     * Output is like `Edge 12, Firefox 49, Chrome 47, IE, Opera`
     */
    function getBrowserLabel(browsers) {
        if (!browsers || browsers.length === 0) {
            return null;
        }
        return browsers
            .map(function (b) {
            var result = '';
            var matches = b.match(/([A-Z]+)(\d+)?/);
            var name = matches[1];
            var version = matches[2];
            if (name in exports.browserNames) {
                result += exports.browserNames[name];
            }
            if (version) {
                result += ' ' + version;
            }
            return result;
        })
            .join(', ');
    }
    exports.getBrowserLabel = getBrowserLabel;
});

/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/
(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/languageFacts/colors',["require", "exports", "../parser/cssNodes", "vscode-nls"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var nodes = require("../parser/cssNodes");
    var nls = require("vscode-nls");
    var localize = nls.loadMessageBundle();
    exports.colorFunctions = [
        { func: 'rgb($red, $green, $blue)', desc: localize('css.builtin.rgb', 'Creates a Color from red, green, and blue values.') },
        { func: 'rgba($red, $green, $blue, $alpha)', desc: localize('css.builtin.rgba', 'Creates a Color from red, green, blue, and alpha values.') },
        { func: 'hsl($hue, $saturation, $lightness)', desc: localize('css.builtin.hsl', 'Creates a Color from hue, saturation, and lightness values.') },
        { func: 'hsla($hue, $saturation, $lightness, $alpha)', desc: localize('css.builtin.hsla', 'Creates a Color from hue, saturation, lightness, and alpha values.') }
    ];
    exports.colors = {
        aliceblue: '#f0f8ff',
        antiquewhite: '#faebd7',
        aqua: '#00ffff',
        aquamarine: '#7fffd4',
        azure: '#f0ffff',
        beige: '#f5f5dc',
        bisque: '#ffe4c4',
        black: '#000000',
        blanchedalmond: '#ffebcd',
        blue: '#0000ff',
        blueviolet: '#8a2be2',
        brown: '#a52a2a',
        burlywood: '#deb887',
        cadetblue: '#5f9ea0',
        chartreuse: '#7fff00',
        chocolate: '#d2691e',
        coral: '#ff7f50',
        cornflowerblue: '#6495ed',
        cornsilk: '#fff8dc',
        crimson: '#dc143c',
        cyan: '#00ffff',
        darkblue: '#00008b',
        darkcyan: '#008b8b',
        darkgoldenrod: '#b8860b',
        darkgray: '#a9a9a9',
        darkgrey: '#a9a9a9',
        darkgreen: '#006400',
        darkkhaki: '#bdb76b',
        darkmagenta: '#8b008b',
        darkolivegreen: '#556b2f',
        darkorange: '#ff8c00',
        darkorchid: '#9932cc',
        darkred: '#8b0000',
        darksalmon: '#e9967a',
        darkseagreen: '#8fbc8f',
        darkslateblue: '#483d8b',
        darkslategray: '#2f4f4f',
        darkslategrey: '#2f4f4f',
        darkturquoise: '#00ced1',
        darkviolet: '#9400d3',
        deeppink: '#ff1493',
        deepskyblue: '#00bfff',
        dimgray: '#696969',
        dimgrey: '#696969',
        dodgerblue: '#1e90ff',
        firebrick: '#b22222',
        floralwhite: '#fffaf0',
        forestgreen: '#228b22',
        fuchsia: '#ff00ff',
        gainsboro: '#dcdcdc',
        ghostwhite: '#f8f8ff',
        gold: '#ffd700',
        goldenrod: '#daa520',
        gray: '#808080',
        grey: '#808080',
        green: '#008000',
        greenyellow: '#adff2f',
        honeydew: '#f0fff0',
        hotpink: '#ff69b4',
        indianred: '#cd5c5c',
        indigo: '#4b0082',
        ivory: '#fffff0',
        khaki: '#f0e68c',
        lavender: '#e6e6fa',
        lavenderblush: '#fff0f5',
        lawngreen: '#7cfc00',
        lemonchiffon: '#fffacd',
        lightblue: '#add8e6',
        lightcoral: '#f08080',
        lightcyan: '#e0ffff',
        lightgoldenrodyellow: '#fafad2',
        lightgray: '#d3d3d3',
        lightgrey: '#d3d3d3',
        lightgreen: '#90ee90',
        lightpink: '#ffb6c1',
        lightsalmon: '#ffa07a',
        lightseagreen: '#20b2aa',
        lightskyblue: '#87cefa',
        lightslategray: '#778899',
        lightslategrey: '#778899',
        lightsteelblue: '#b0c4de',
        lightyellow: '#ffffe0',
        lime: '#00ff00',
        limegreen: '#32cd32',
        linen: '#faf0e6',
        magenta: '#ff00ff',
        maroon: '#800000',
        mediumaquamarine: '#66cdaa',
        mediumblue: '#0000cd',
        mediumorchid: '#ba55d3',
        mediumpurple: '#9370d8',
        mediumseagreen: '#3cb371',
        mediumslateblue: '#7b68ee',
        mediumspringgreen: '#00fa9a',
        mediumturquoise: '#48d1cc',
        mediumvioletred: '#c71585',
        midnightblue: '#191970',
        mintcream: '#f5fffa',
        mistyrose: '#ffe4e1',
        moccasin: '#ffe4b5',
        navajowhite: '#ffdead',
        navy: '#000080',
        oldlace: '#fdf5e6',
        olive: '#808000',
        olivedrab: '#6b8e23',
        orange: '#ffa500',
        orangered: '#ff4500',
        orchid: '#da70d6',
        palegoldenrod: '#eee8aa',
        palegreen: '#98fb98',
        paleturquoise: '#afeeee',
        palevioletred: '#d87093',
        papayawhip: '#ffefd5',
        peachpuff: '#ffdab9',
        peru: '#cd853f',
        pink: '#ffc0cb',
        plum: '#dda0dd',
        powderblue: '#b0e0e6',
        purple: '#800080',
        red: '#ff0000',
        rebeccapurple: '#663399',
        rosybrown: '#bc8f8f',
        royalblue: '#4169e1',
        saddlebrown: '#8b4513',
        salmon: '#fa8072',
        sandybrown: '#f4a460',
        seagreen: '#2e8b57',
        seashell: '#fff5ee',
        sienna: '#a0522d',
        silver: '#c0c0c0',
        skyblue: '#87ceeb',
        slateblue: '#6a5acd',
        slategray: '#708090',
        slategrey: '#708090',
        snow: '#fffafa',
        springgreen: '#00ff7f',
        steelblue: '#4682b4',
        tan: '#d2b48c',
        teal: '#008080',
        thistle: '#d8bfd8',
        tomato: '#ff6347',
        turquoise: '#40e0d0',
        violet: '#ee82ee',
        wheat: '#f5deb3',
        white: '#ffffff',
        whitesmoke: '#f5f5f5',
        yellow: '#ffff00',
        yellowgreen: '#9acd32'
    };
    exports.colorKeywords = {
        'currentColor': 'The value of the \'color\' property. The computed value of the \'currentColor\' keyword is the computed value of the \'color\' property. If the \'currentColor\' keyword is set on the \'color\' property itself, it is treated as \'color:inherit\' at parse time.',
        'transparent': 'Fully transparent. This keyword can be considered a shorthand for rgba(0,0,0,0) which is its computed value.',
    };
    function getNumericValue(node, factor) {
        var val = node.getText();
        var m = val.match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/);
        if (m) {
            if (m[2]) {
                factor = 100.0;
            }
            var result = parseFloat(m[1]) / factor;
            if (result >= 0 && result <= 1) {
                return result;
            }
        }
        throw new Error();
    }
    function getAngle(node) {
        var val = node.getText();
        var m = val.match(/^([-+]?[0-9]*\.?[0-9]+)(deg)?$/);
        if (m) {
            return parseFloat(val) % 360;
        }
        throw new Error();
    }
    function isColorConstructor(node) {
        var name = node.getName();
        if (!name) {
            return false;
        }
        return /^(rgb|rgba|hsl|hsla)$/gi.test(name);
    }
    exports.isColorConstructor = isColorConstructor;
    /**
     * Returns true if the node is a color value - either
     * defined a hex number, as rgb or rgba function, or
     * as color name.
     */
    function isColorValue(node) {
        if (node.type === nodes.NodeType.HexColorValue) {
            return true;
        }
        else if (node.type === nodes.NodeType.Function) {
            return isColorConstructor(node);
        }
        else if (node.type === nodes.NodeType.Identifier) {
            if (node.parent && node.parent.type !== nodes.NodeType.Term) {
                return false;
            }
            var candidateColor = node.getText().toLowerCase();
            if (candidateColor === 'none') {
                return false;
            }
            if (exports.colors[candidateColor]) {
                return true;
            }
        }
        return false;
    }
    exports.isColorValue = isColorValue;
    var Digit0 = 48;
    var Digit9 = 57;
    var A = 65;
    var F = 70;
    var a = 97;
    var f = 102;
    function hexDigit(charCode) {
        if (charCode < Digit0) {
            return 0;
        }
        if (charCode <= Digit9) {
            return charCode - Digit0;
        }
        if (charCode < a) {
            charCode += (a - A);
        }
        if (charCode >= a && charCode <= f) {
            return charCode - a + 10;
        }
        return 0;
    }
    exports.hexDigit = hexDigit;
    function colorFromHex(text) {
        if (text[0] !== '#') {
            return null;
        }
        switch (text.length) {
            case 4:
                return {
                    red: (hexDigit(text.charCodeAt(1)) * 0x11) / 255.0,
                    green: (hexDigit(text.charCodeAt(2)) * 0x11) / 255.0,
                    blue: (hexDigit(text.charCodeAt(3)) * 0x11) / 255.0,
                    alpha: 1
                };
            case 5:
                return {
                    red: (hexDigit(text.charCodeAt(1)) * 0x11) / 255.0,
                    green: (hexDigit(text.charCodeAt(2)) * 0x11) / 255.0,
                    blue: (hexDigit(text.charCodeAt(3)) * 0x11) / 255.0,
                    alpha: (hexDigit(text.charCodeAt(4)) * 0x11) / 255.0,
                };
            case 7:
                return {
                    red: (hexDigit(text.charCodeAt(1)) * 0x10 + hexDigit(text.charCodeAt(2))) / 255.0,
                    green: (hexDigit(text.charCodeAt(3)) * 0x10 + hexDigit(text.charCodeAt(4))) / 255.0,
                    blue: (hexDigit(text.charCodeAt(5)) * 0x10 + hexDigit(text.charCodeAt(6))) / 255.0,
                    alpha: 1
                };
            case 9:
                return {
                    red: (hexDigit(text.charCodeAt(1)) * 0x10 + hexDigit(text.charCodeAt(2))) / 255.0,
                    green: (hexDigit(text.charCodeAt(3)) * 0x10 + hexDigit(text.charCodeAt(4))) / 255.0,
                    blue: (hexDigit(text.charCodeAt(5)) * 0x10 + hexDigit(text.charCodeAt(6))) / 255.0,
                    alpha: (hexDigit(text.charCodeAt(7)) * 0x10 + hexDigit(text.charCodeAt(8))) / 255.0
                };
        }
        return null;
    }
    exports.colorFromHex = colorFromHex;
    function colorFrom256RGB(red, green, blue, alpha) {
        if (alpha === void 0) { alpha = 1.0; }
        return {
            red: red / 255.0,
            green: green / 255.0,
            blue: blue / 255.0,
            alpha: alpha
        };
    }
    exports.colorFrom256RGB = colorFrom256RGB;
    function colorFromHSL(hue, sat, light, alpha) {
        if (alpha === void 0) { alpha = 1.0; }
        hue = hue / 60.0;
        if (sat === 0) {
            return { red: light, green: light, blue: light, alpha: alpha };
        }
        else {
            var hueToRgb = function (t1, t2, hue) {
                while (hue < 0) {
                    hue += 6;
                }
                while (hue >= 6) {
                    hue -= 6;
                }
                if (hue < 1) {
                    return (t2 - t1) * hue + t1;
                }
                if (hue < 3) {
                    return t2;
                }
                if (hue < 4) {
                    return (t2 - t1) * (4 - hue) + t1;
                }
                return t1;
            };
            var t2 = light <= 0.5 ? (light * (sat + 1)) : (light + sat - (light * sat));
            var t1 = light * 2 - t2;
            return { red: hueToRgb(t1, t2, hue + 2), green: hueToRgb(t1, t2, hue), blue: hueToRgb(t1, t2, hue - 2), alpha: alpha };
        }
    }
    exports.colorFromHSL = colorFromHSL;
    function hslFromColor(rgba) {
        var r = rgba.red;
        var g = rgba.green;
        var b = rgba.blue;
        var a = rgba.alpha;
        var max = Math.max(r, g, b);
        var min = Math.min(r, g, b);
        var h = 0;
        var s = 0;
        var l = (min + max) / 2;
        var chroma = max - min;
        if (chroma > 0) {
            s = Math.min((l <= 0.5 ? chroma / (2 * l) : chroma / (2 - (2 * l))), 1);
            switch (max) {
                case r:
                    h = (g - b) / chroma + (g < b ? 6 : 0);
                    break;
                case g:
                    h = (b - r) / chroma + 2;
                    break;
                case b:
                    h = (r - g) / chroma + 4;
                    break;
            }
            h *= 60;
            h = Math.round(h);
        }
        return { h: h, s: s, l: l, a: a };
    }
    exports.hslFromColor = hslFromColor;
    function getColorValue(node) {
        if (node.type === nodes.NodeType.HexColorValue) {
            var text = node.getText();
            return colorFromHex(text);
        }
        else if (node.type === nodes.NodeType.Function) {
            var functionNode = node;
            var name = functionNode.getName();
            var colorValues = functionNode.getArguments().getChildren();
            if (!name || colorValues.length < 3 || colorValues.length > 4) {
                return null;
            }
            try {
                var alpha = colorValues.length === 4 ? getNumericValue(colorValues[3], 1) : 1;
                if (name === 'rgb' || name === 'rgba') {
                    return {
                        red: getNumericValue(colorValues[0], 255.0),
                        green: getNumericValue(colorValues[1], 255.0),
                        blue: getNumericValue(colorValues[2], 255.0),
                        alpha: alpha
                    };
                }
                else if (name === 'hsl' || name === 'hsla') {
                    var h = getAngle(colorValues[0]);
                    var s = getNumericValue(colorValues[1], 100.0);
                    var l = getNumericValue(colorValues[2], 100.0);
                    return colorFromHSL(h, s, l, alpha);
                }
            }
            catch (e) {
                // parse error on numeric value
                return null;
            }
        }
        else if (node.type === nodes.NodeType.Identifier) {
            if (node.parent && node.parent.type !== nodes.NodeType.Term) {
                return null;
            }
            var term = node.parent;
            if (term.parent && term.parent.type === nodes.NodeType.BinaryExpression) {
                var expression = term.parent;
                if (expression.parent && expression.parent.type === nodes.NodeType.ListEntry && expression.parent.key === expression) {
                    return null;
                }
            }
            var candidateColor = node.getText().toLowerCase();
            if (candidateColor === 'none') {
                return null;
            }
            var colorHex = exports.colors[candidateColor];
            if (colorHex) {
                return colorFromHex(colorHex);
            }
        }
        return null;
    }
    exports.getColorValue = getColorValue;
});

(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/languageFacts/builtinData',["require", "exports"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.positionKeywords = {
        'bottom': 'Computes to ‘100%’ for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset.',
        'center': 'Computes to ‘50%’ (‘left 50%’) for the horizontal position if the horizontal position is not otherwise specified, or ‘50%’ (‘top 50%’) for the vertical position if it is.',
        'left': 'Computes to ‘0%’ for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset.',
        'right': 'Computes to ‘100%’ for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset.',
        'top': 'Computes to ‘0%’ for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset.'
    };
    exports.repeatStyleKeywords = {
        'no-repeat': 'Placed once and not repeated in this direction.',
        'repeat': 'Repeated in this direction as often as needed to cover the background painting area.',
        'repeat-x': 'Computes to ‘repeat no-repeat’.',
        'repeat-y': 'Computes to ‘no-repeat repeat’.',
        'round': 'Repeated as often as will fit within the background positioning area. If it doesn’t fit a whole number of times, it is rescaled so that it does.',
        'space': 'Repeated as often as will fit within the background positioning area without being clipped and then the images are spaced out to fill the area.'
    };
    exports.lineStyleKeywords = {
        'dashed': 'A series of square-ended dashes.',
        'dotted': 'A series of round dots.',
        'double': 'Two parallel solid lines with some space between them.',
        'groove': 'Looks as if it were carved in the canvas.',
        'hidden': 'Same as ‘none’, but has different behavior in the border conflict resolution rules for border-collapsed tables.',
        'inset': 'Looks as if the content on the inside of the border is sunken into the canvas.',
        'none': 'No border. Color and width are ignored.',
        'outset': 'Looks as if the content on the inside of the border is coming out of the canvas.',
        'ridge': 'Looks as if it were coming out of the canvas.',
        'solid': 'A single line segment.'
    };
    exports.lineWidthKeywords = ['medium', 'thick', 'thin'];
    exports.boxKeywords = {
        'border-box': 'The background is painted within (clipped to) the border box.',
        'content-box': 'The background is painted within (clipped to) the content box.',
        'padding-box': 'The background is painted within (clipped to) the padding box.'
    };
    exports.geometryBoxKeywords = {
        'margin-box': 'Uses the margin box as reference box.',
        'fill-box': 'Uses the object bounding box as reference box.',
        'stroke-box': 'Uses the stroke bounding box as reference box.',
        'view-box': 'Uses the nearest SVG viewport as reference box.'
    };
    exports.cssWideKeywords = {
        'initial': 'Represents the value specified as the property’s initial value.',
        'inherit': 'Represents the computed value of the property on the element’s parent.',
        'unset': 'Acts as either `inherit` or `initial`, depending on whether the property is inherited or not.'
    };
    exports.imageFunctions = {
        'url()': 'Reference an image file by URL',
        'image()': 'Provide image fallbacks and annotations.',
        '-webkit-image-set()': 'Provide multiple resolutions. Remember to use unprefixed image-set() in addition.',
        'image-set()': 'Provide multiple resolutions of an image and const the UA decide which is most appropriate in a given situation.',
        '-moz-element()': 'Use an element in the document as an image. Remember to use unprefixed element() in addition.',
        'element()': 'Use an element in the document as an image.',
        'cross-fade()': 'Indicates the two images to be combined and how far along in the transition the combination is.',
        '-webkit-gradient()': 'Deprecated. Use modern linear-gradient() or radial-gradient() instead.',
        '-webkit-linear-gradient()': 'Linear gradient. Remember to use unprefixed version in addition.',
        '-moz-linear-gradient()': 'Linear gradient. Remember to use unprefixed version in addition.',
        '-o-linear-gradient()': 'Linear gradient. Remember to use unprefixed version in addition.',
        'linear-gradient()': 'A linear gradient is created by specifying a straight gradient line, and then several colors placed along that line.',
        '-webkit-repeating-linear-gradient()': 'Repeating Linear gradient. Remember to use unprefixed version in addition.',
        '-moz-repeating-linear-gradient()': 'Repeating Linear gradient. Remember to use unprefixed version in addition.',
        '-o-repeating-linear-gradient()': 'RepeatingLinear gradient. Remember to use unprefixed version in addition.',
        'repeating-linear-gradient()': 'Same as linear-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop’s position and the first specified color-stop’s position.',
        '-webkit-radial-gradient()': 'Radial gradient. Remember to use unprefixed version in addition.',
        '-moz-radial-gradient()': 'Radial gradient. Remember to use unprefixed version in addition.',
        'radial-gradient()': 'Colors emerge from a single point and smoothly spread outward in a circular or elliptical shape.',
        '-webkit-repeating-radial-gradient()': 'Repeating radial gradient. Remember to use unprefixed version in addition.',
        '-moz-repeating-radial-gradient()': 'Repeating radial gradient. Remember to use unprefixed version in addition.',
        'repeating-radial-gradient()': 'Same as radial-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop’s position and the first specified color-stop’s position.'
    };
    exports.transitionTimingFunctions = {
        'ease': 'Equivalent to cubic-bezier(0.25, 0.1, 0.25, 1.0).',
        'ease-in': 'Equivalent to cubic-bezier(0.42, 0, 1.0, 1.0).',
        'ease-in-out': 'Equivalent to cubic-bezier(0.42, 0, 0.58, 1.0).',
        'ease-out': 'Equivalent to cubic-bezier(0, 0, 0.58, 1.0).',
        'linear': 'Equivalent to cubic-bezier(0.0, 0.0, 1.0, 1.0).',
        'step-end': 'Equivalent to steps(1, end).',
        'step-start': 'Equivalent to steps(1, start).',
        'steps()': 'The first parameter specifies the number of intervals in the function. The second parameter, which is optional, is either the value “start” or “end”.',
        'cubic-bezier()': 'Specifies a cubic-bezier curve. The four values specify points P1 and P2  of the curve as (x1, y1, x2, y2).',
        'cubic-bezier(0.6, -0.28, 0.735, 0.045)': 'Ease-in Back. Overshoots.',
        'cubic-bezier(0.68, -0.55, 0.265, 1.55)': 'Ease-in-out Back. Overshoots.',
        'cubic-bezier(0.175, 0.885, 0.32, 1.275)': 'Ease-out Back. Overshoots.',
        'cubic-bezier(0.6, 0.04, 0.98, 0.335)': 'Ease-in Circular. Based on half circle.',
        'cubic-bezier(0.785, 0.135, 0.15, 0.86)': 'Ease-in-out Circular. Based on half circle.',
        'cubic-bezier(0.075, 0.82, 0.165, 1)': 'Ease-out Circular. Based on half circle.',
        'cubic-bezier(0.55, 0.055, 0.675, 0.19)': 'Ease-in Cubic. Based on power of three.',
        'cubic-bezier(0.645, 0.045, 0.355, 1)': 'Ease-in-out Cubic. Based on power of three.',
        'cubic-bezier(0.215, 0.610, 0.355, 1)': 'Ease-out Cubic. Based on power of three.',
        'cubic-bezier(0.95, 0.05, 0.795, 0.035)': 'Ease-in Exponential. Based on two to the power ten.',
        'cubic-bezier(1, 0, 0, 1)': 'Ease-in-out Exponential. Based on two to the power ten.',
        'cubic-bezier(0.19, 1, 0.22, 1)': 'Ease-out Exponential. Based on two to the power ten.',
        'cubic-bezier(0.47, 0, 0.745, 0.715)': 'Ease-in Sine.',
        'cubic-bezier(0.445, 0.05, 0.55, 0.95)': 'Ease-in-out Sine.',
        'cubic-bezier(0.39, 0.575, 0.565, 1)': 'Ease-out Sine.',
        'cubic-bezier(0.55, 0.085, 0.68, 0.53)': 'Ease-in Quadratic. Based on power of two.',
        'cubic-bezier(0.455, 0.03, 0.515, 0.955)': 'Ease-in-out Quadratic. Based on power of two.',
        'cubic-bezier(0.25, 0.46, 0.45, 0.94)': 'Ease-out Quadratic. Based on power of two.',
        'cubic-bezier(0.895, 0.03, 0.685, 0.22)': 'Ease-in Quartic. Based on power of four.',
        'cubic-bezier(0.77, 0, 0.175, 1)': 'Ease-in-out Quartic. Based on power of four.',
        'cubic-bezier(0.165, 0.84, 0.44, 1)': 'Ease-out Quartic. Based on power of four.',
        'cubic-bezier(0.755, 0.05, 0.855, 0.06)': 'Ease-in Quintic. Based on power of five.',
        'cubic-bezier(0.86, 0, 0.07, 1)': 'Ease-in-out Quintic. Based on power of five.',
        'cubic-bezier(0.23, 1, 0.320, 1)': 'Ease-out Quintic. Based on power of five.'
    };
    exports.basicShapeFunctions = {
        'circle()': 'Defines a circle.',
        'ellipse()': 'Defines an ellipse.',
        'inset()': 'Defines an inset rectangle.',
        'polygon()': 'Defines a polygon.'
    };
    exports.units = {
        'length': ['em', 'rem', 'ex', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ch', 'vw', 'vh', 'vmin', 'vmax'],
        'angle': ['deg', 'rad', 'grad', 'turn'],
        'time': ['ms', 's'],
        'frequency': ['Hz', 'kHz'],
        'resolution': ['dpi', 'dpcm', 'dppx'],
        'percentage': ['%', 'fr']
    };
    exports.html5Tags = ['a', 'abbr', 'address', 'area', 'article', 'aside', 'audio', 'b', 'base', 'bdi', 'bdo', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption',
        'cite', 'code', 'col', 'colgroup', 'data', 'datalist', 'dd', 'del', 'details', 'dfn', 'dialog', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'figcaption', 'figure', 'footer',
        'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'iframe', 'img', 'input', 'ins', 'kbd', 'keygen', 'label', 'legend', 'li', 'link',
        'main', 'map', 'mark', 'menu', 'menuitem', 'meta', 'meter', 'nav', 'noscript', 'object', 'ol', 'optgroup', 'option', 'output', 'p', 'param', 'picture', 'pre', 'progress', 'q',
        'rb', 'rp', 'rt', 'rtc', 'ruby', 's', 'samp', 'script', 'section', 'select', 'small', 'source', 'span', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td',
        'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'title', 'tr', 'track', 'u', 'ul', 'const', 'video', 'wbr'];
    exports.svgElements = ['circle', 'clipPath', 'cursor', 'defs', 'desc', 'ellipse', 'feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting',
        'feDisplacementMap', 'feDistantLight', 'feDropShadow', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology',
        'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence', 'filter', 'foreignObject', 'g', 'hatch', 'hatchpath', 'image', 'line', 'linearGradient',
        'marker', 'mask', 'mesh', 'meshpatch', 'meshrow', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'set', 'solidcolor', 'stop', 'svg', 'switch',
        'symbol', 'text', 'textPath', 'tspan', 'use', 'view'];
    exports.pageBoxDirectives = [
        '@bottom-center', '@bottom-left', '@bottom-left-corner', '@bottom-right', '@bottom-right-corner',
        '@left-bottom', '@left-middle', '@left-top', '@right-bottom', '@right-middle', '@right-top',
        '@top-center', '@top-left', '@top-left-corner', '@top-right', '@top-right-corner'
    ];
});

(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/languageFacts/facts',["require", "exports", "../data/browsers", "./dataManager", "./dataProvider", "./entry", "./colors", "./builtinData", "./dataProvider", "./dataManager"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    function __export(m) {
        for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
    }
    Object.defineProperty(exports, "__esModule", { value: true });
    var browsers = require("../data/browsers");
    var dataManager_1 = require("./dataManager");
    var dataProvider_1 = require("./dataProvider");
    __export(require("./entry"));
    __export(require("./colors"));
    __export(require("./builtinData"));
    __export(require("./dataProvider"));
    __export(require("./dataManager"));
    exports.cssDataManager = new dataManager_1.CSSDataManager([
        new dataProvider_1.CSSDataProvider(browsers.cssData)
    ]);
});

(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/parser/cssParser',["require", "exports", "./cssScanner", "./cssNodes", "./cssErrors", "../languageFacts/facts"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    var cssScanner_1 = require("./cssScanner");
    var nodes = require("./cssNodes");
    var cssErrors_1 = require("./cssErrors");
    var languageFacts = require("../languageFacts/facts");
    /// <summary>
    /// A parser for the css core specification. See for reference:
    /// https://www.w3.org/TR/CSS21/grammar.html
    /// http://www.w3.org/TR/CSS21/syndata.html#tokenization
    /// </summary>
    var Parser = /** @class */ (function () {
        function Parser(scnr) {
            if (scnr === void 0) { scnr = new cssScanner_1.Scanner(); }
            this.keyframeRegex = /^@(\-(webkit|ms|moz|o)\-)?keyframes$/i;
            this.scanner = scnr;
            this.token = null;
            this.prevToken = null;
        }
        Parser.prototype.peekIdent = function (text) {
            return cssScanner_1.TokenType.Ident === this.token.type && text.length === this.token.text.length && text === this.token.text.toLowerCase();
        };
        Parser.prototype.peekKeyword = function (text) {
            return cssScanner_1.TokenType.AtKeyword === this.token.type && text.length === this.token.text.length && text === this.token.text.toLowerCase();
        };
        Parser.prototype.peekDelim = function (text) {
            return cssScanner_1.TokenType.Delim === this.token.type && text === this.token.text;
        };
        Parser.prototype.peek = function (type) {
            return type === this.token.type;
        };
        Parser.prototype.peekRegExp = function (type, regEx) {
            if (type !== this.token.type) {
                return false;
            }
            return regEx.test(this.token.text);
        };
        Parser.prototype.hasWhitespace = function () {
            return this.prevToken && (this.prevToken.offset + this.prevToken.len !== this.token.offset);
        };
        Parser.prototype.consumeToken = function () {
            this.prevToken = this.token;
            this.token = this.scanner.scan();
        };
        Parser.prototype.mark = function () {
            return {
                prev: this.prevToken,
                curr: this.token,
                pos: this.scanner.pos()
            };
        };
        Parser.prototype.restoreAtMark = function (mark) {
            this.prevToken = mark.prev;
            this.token = mark.curr;
            this.scanner.goBackTo(mark.pos);
        };
        Parser.prototype.try = function (func) {
            var pos = this.mark();
            var node = func();
            if (!node) {
                this.restoreAtMark(pos);
                return null;
            }
            return node;
        };
        Parser.prototype.acceptOneKeyword = function (keywords) {
            if (cssScanner_1.TokenType.AtKeyword === this.token.type) {
                for (var _i = 0, keywords_1 = keywords; _i < keywords_1.length; _i++) {
                    var keyword = keywords_1[_i];
                    if (keyword.length === this.token.text.length && keyword === this.token.text.toLowerCase()) {
                        this.consumeToken();
                        return true;
                    }
                }
            }
            return false;
        };
        Parser.prototype.accept = function (type) {
            if (type === this.token.type) {
                this.consumeToken();
                return true;
            }
            return false;
        };
        Parser.prototype.acceptIdent = function (text) {
            if (this.peekIdent(text)) {
                this.consumeToken();
                return true;
            }
            return false;
        };
        Parser.prototype.acceptKeyword = function (text) {
            if (this.peekKeyword(text)) {
                this.consumeToken();
                return true;
            }
            return false;
        };
        Parser.prototype.acceptDelim = function (text) {
            if (this.peekDelim(text)) {
                this.consumeToken();
                return true;
            }
            return false;
        };
        Parser.prototype.acceptUnquotedString = function () {
            var pos = this.scanner.pos();
            this.scanner.goBackTo(this.token.offset);
            var unquoted = this.scanner.scanUnquotedString();
            if (unquoted) {
                this.token = unquoted;
                this.consumeToken();
                return true;
            }
            this.scanner.goBackTo(pos);
            return false;
        };
        Parser.prototype.resync = function (resyncTokens, resyncStopTokens) {
            while (true) {
                if (resyncTokens && resyncTokens.indexOf(this.token.type) !== -1) {
                    this.consumeToken();
                    return true;
                }
                else if (resyncStopTokens && resyncStopTokens.indexOf(this.token.type) !== -1) {
                    return true;
                }
                else {
                    if (this.token.type === cssScanner_1.TokenType.EOF) {
                        return false;
                    }
                    this.token = this.scanner.scan();
                }
            }
        };
        Parser.prototype.createNode = function (nodeType) {
            return new nodes.Node(this.token.offset, this.token.len, nodeType);
        };
        Parser.prototype.create = function (ctor) {
            return new ctor(this.token.offset, this.token.len);
        };
        Parser.prototype.finish = function (node, error, resyncTokens, resyncStopTokens) {
            // parseNumeric misuses error for boolean flagging (however the real error mustn't be a false)
            // + nodelist offsets mustn't be modified, because there is a offset hack in rulesets for smartselection
            if (!(node instanceof nodes.Nodelist)) {
                if (error) {
                    this.markError(node, error, resyncTokens, resyncStopTokens);
                }
                // set the node end position
                if (this.prevToken !== null) {
                    // length with more elements belonging together
                    var prevEnd = this.prevToken.offset + this.prevToken.len;
                    node.length = prevEnd > node.offset ? prevEnd - node.offset : 0; // offset is taken from current token, end from previous: Use 0 for empty nodes
                }
            }
            return node;
        };
        Parser.prototype.markError = function (node, error, resyncTokens, resyncStopTokens) {
            if (this.token !== this.lastErrorToken) { // do not report twice on the same token
                node.addIssue(new nodes.Marker(node, error, nodes.Level.Error, null, this.token.offset, this.token.len));
                this.lastErrorToken = this.token;
            }
            if (resyncTokens || resyncStopTokens) {
                this.resync(resyncTokens, resyncStopTokens);
            }
        };
        Parser.prototype.parseStylesheet = function (textDocument) {
            var versionId = textDocument.version;
            var textProvider = function (offset, length) {
                if (textDocument.version !== versionId) {
                    throw new Error('Underlying model has changed, AST is no longer valid');
                }
                return textDocument.getText().substr(offset, length);
            };
            return this.internalParse(textDocument.getText(), this._parseStylesheet, textProvider);
        };
        Parser.prototype.internalParse = function (input, parseFunc, textProvider) {
            this.scanner.setSource(input);
            this.token = this.scanner.scan();
            var node = parseFunc.bind(this)();
            if (node) {
                if (textProvider) {
                    node.textProvider = textProvider;
                }
                else {
                    node.textProvider = function (offset, length) { return input.substr(offset, length); };
                }
            }
            return node;
        };
        Parser.prototype._parseStylesheet = function () {
            var node = this.create(nodes.Stylesheet);
            node.addChild(this._parseCharset());
            var inRecovery = false;
            do {
                var hasMatch = false;
                do {
                    hasMatch = false;
                    var statement = this._parseStylesheetStatement();
                    if (statement) {
                        node.addChild(statement);
                        hasMatch = true;
                        inRecovery = false;
                        if (!this.peek(cssScanner_1.TokenType.EOF) && this._needsSemicolonAfter(statement) && !this.accept(cssScanner_1.TokenType.SemiColon)) {
                            this.markError(node, cssErrors_1.ParseError.SemiColonExpected);
                        }
                    }
                    while (this.accept(cssScanner_1.TokenType.SemiColon) || this.accept(cssScanner_1.TokenType.CDO) || this.accept(cssScanner_1.TokenType.CDC)) {
                        // accept empty statements
                        hasMatch = true;
                        inRecovery = false;
                    }
                } while (hasMatch);
                if (this.peek(cssScanner_1.TokenType.EOF)) {
                    break;
                }
                if (!inRecovery) {
                    if (this.peek(cssScanner_1.TokenType.AtKeyword)) {
                        this.markError(node, cssErrors_1.ParseError.UnknownAtRule);
                    }
                    else {
                        this.markError(node, cssErrors_1.ParseError.RuleOrSelectorExpected);
                    }
                    inRecovery = true;
                }
                this.consumeToken();
            } while (!this.peek(cssScanner_1.TokenType.EOF));
            return this.finish(node);
        };
        Parser.prototype._parseStylesheetStatement = function (isNested) {
            if (isNested === void 0) { isNested = false; }
            if (this.peek(cssScanner_1.TokenType.AtKeyword)) {
                return this._parseStylesheetAtStatement(isNested);
            }
            return this._parseRuleset(isNested);
        };
        Parser.prototype._parseStylesheetAtStatement = function (isNested) {
            if (isNested === void 0) { isNested = false; }
            return this._parseImport()
                || this._parseMedia(isNested)
                || this._parsePage()
                || this._parseFontFace()
                || this._parseKeyframe()
                || this._parseSupports(isNested)
                || this._parseViewPort()
                || this._parseNamespace()
                || this._parseDocument()
                || this._parseUnknownAtRule();
        };
        Parser.prototype._tryParseRuleset = function (isNested) {
            var mark = this.mark();
            if (this._parseSelector(isNested)) {
                while (this.accept(cssScanner_1.TokenType.Comma) && this._parseSelector(isNested)) {
                    // loop
                }
                if (this.accept(cssScanner_1.TokenType.CurlyL)) {
                    this.restoreAtMark(mark);
                    return this._parseRuleset(isNested);
                }
            }
            this.restoreAtMark(mark);
            return null;
        };
        Parser.prototype._parseRuleset = function (isNested) {
            if (isNested === void 0) { isNested = false; }
            var node = this.create(nodes.RuleSet);
            var selectors = node.getSelectors();
            if (!selectors.addChild(this._parseSelector(isNested))) {
                return null;
            }
            while (this.accept(cssScanner_1.TokenType.Comma)) {
                if (!selectors.addChild(this._parseSelector(isNested))) {
                    return this.finish(node, cssErrors_1.ParseError.SelectorExpected);
                }
            }
            return this._parseBody(node, this._parseRuleSetDeclaration.bind(this));
        };
        Parser.prototype._parseRuleSetDeclaration = function () {
            // https://www.w3.org/TR/css-syntax-3/#consume-a-list-of-declarations0
            return this._parseAtApply()
                || this._tryParseCustomPropertyDeclaration()
                || this._parseDeclaration()
                || this._parseUnknownAtRule();
        };
        /**
         * Parses declarations like:
         *   @apply --my-theme;
         *
         * Follows https://tabatkins.github.io/specs/css-apply-rule/#using
         */
        Parser.prototype._parseAtApply = function () {
            if (!this.peekKeyword('@apply')) {
                return null;
            }
            var node = this.create(nodes.AtApplyRule);
            this.consumeToken();
            if (!node.setIdentifier(this._parseIdent([nodes.ReferenceType.Variable]))) {
                return this.finish(node, cssErrors_1.ParseError.IdentifierExpected);
            }
            return this.finish(node);
        };
        Parser.prototype._needsSemicolonAfter = function (node) {
            switch (node.type) {
                case nodes.NodeType.Keyframe:
                case nodes.NodeType.ViewPort:
                case nodes.NodeType.Media:
                case nodes.NodeType.Ruleset:
                case nodes.NodeType.Namespace:
                case nodes.NodeType.If:
                case nodes.NodeType.For:
                case nodes.NodeType.Each:
                case nodes.NodeType.While:
                case nodes.NodeType.MixinDeclaration:
                case nodes.NodeType.FunctionDeclaration:
                    return false;
                case nodes.NodeType.ExtendsReference:
                case nodes.NodeType.MixinContent:
                case nodes.NodeType.ReturnStatement:
                case nodes.NodeType.MediaQuery:
                case nodes.NodeType.Debug:
                case nodes.NodeType.Import:
                case nodes.NodeType.AtApplyRule:
                case nodes.NodeType.CustomPropertyDeclaration:
                    return true;
                case nodes.NodeType.VariableDeclaration:
                    return node.needsSemicolon;
                case nodes.NodeType.MixinReference:
                    return !node.getContent();
                case nodes.NodeType.Declaration:
                    return !node.getNestedProperties();
            }
            return false;
        };
        Parser.prototype._parseDeclarations = function (parseDeclaration) {
            var node = this.create(nodes.Declarations);
            if (!this.accept(cssScanner_1.TokenType.CurlyL)) {
                return null;
            }
            var decl = parseDeclaration();
            while (node.addChild(decl)) {
                if (this.peek(cssScanner_1.TokenType.CurlyR)) {
                    break;
                }
                if (this._needsSemicolonAfter(decl) && !this.accept(cssScanner_1.TokenType.SemiColon)) {
                    return this.finish(node, cssErrors_1.ParseError.SemiColonExpected, [cssScanner_1.TokenType.SemiColon, cssScanner_1.TokenType.CurlyR]);
                }
                while (this.accept(cssScanner_1.TokenType.SemiColon)) {
                    // accept empty statements
                }
                decl = parseDeclaration();
            }
            if (!this.accept(cssScanner_1.TokenType.CurlyR)) {
                return this.finish(node, cssErrors_1.ParseError.RightCurlyExpected, [cssScanner_1.TokenType.CurlyR, cssScanner_1.TokenType.SemiColon]);
            }
            return this.finish(node);
        };
        Parser.prototype._parseBody = function (node, parseDeclaration) {
            if (!node.setDeclarations(this._parseDeclarations(parseDeclaration))) {
                return this.finish(node, cssErrors_1.ParseError.LeftCurlyExpected, [cssScanner_1.TokenType.CurlyR, cssScanner_1.TokenType.SemiColon]);
            }
            return this.finish(node);
        };
        Parser.prototype._parseSelector = function (isNested) {
            var node = this.create(nodes.Selector);
            var hasContent = false;
            if (isNested) {
                // nested selectors can start with a combinator
                hasContent = node.addChild(this._parseCombinator());
            }
            while (node.addChild(this._parseSimpleSelector())) {
                hasContent = true;
                node.addChild(this._parseCombinator()); // optional
            }
            return hasContent ? this.finish(node) : null;
        };
        Parser.prototype._parseDeclaration = function (resyncStopTokens) {
            var node = this.create(nodes.Declaration);
            if (!node.setProperty(this._parseProperty())) {
                return null;
            }
            if (!this.accept(cssScanner_1.TokenType.Colon)) {
                return this.finish(node, cssErrors_1.ParseError.ColonExpected, [cssScanner_1.TokenType.Colon], resyncStopTokens);
            }
            node.colonPosition = this.prevToken.offset;
            if (!node.setValue(this._parseExpr())) {
                return this.finish(node, cssErrors_1.ParseError.PropertyValueExpected);
            }
            node.addChild(this._parsePrio());
            if (this.peek(cssScanner_1.TokenType.SemiColon)) {
                node.semicolonPosition = this.token.offset; // not part of the declaration, but useful information for code assist
            }
            return this.finish(node);
        };
        Parser.prototype._tryParseCustomPropertyDeclaration = function () {
            if (!this.peekRegExp(cssScanner_1.TokenType.Ident, /^--/)) {
                return null;
            }
            var node = this.create(nodes.CustomPropertyDeclaration);
            if (!node.setProperty(this._parseProperty())) {
                return null;
            }
            if (!this.accept(cssScanner_1.TokenType.Colon)) {
                return this.finish(node, cssErrors_1.ParseError.ColonExpected, [cssScanner_1.TokenType.Colon]);
            }
            node.colonPosition = this.prevToken.offset;
            var mark = this.mark();
            if (this.peek(cssScanner_1.TokenType.CurlyL)) {
                // try to parse it as nested declaration
                var propertySet = this.create(nodes.CustomPropertySet);
                var declarations = this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));
                if (propertySet.setDeclarations(declarations) && !declarations.isErroneous(true)) {
                    propertySet.addChild(this._parsePrio());
                    if (this.peek(cssScanner_1.TokenType.SemiColon)) {
                        this.finish(propertySet);
                        node.setPropertySet(propertySet);
                        node.semicolonPosition = this.token.offset; // not part of the declaration, but useful information for code assist
                        return this.finish(node);
                    }
                }
                this.restoreAtMark(mark);
            }
            // try tp parse as expression
            var expression = this._parseExpr();
            if (expression && !expression.isErroneous(true)) {
                this._parsePrio();
                if (this.peek(cssScanner_1.TokenType.SemiColon)) {
                    node.setValue(expression);
                    node.semicolonPosition = this.token.offset; // not part of the declaration, but useful information for code assist
                    return this.finish(node);
                }
            }
            this.restoreAtMark(mark);
            node.addChild(this._parseCustomPropertyValue());
            node.addChild(this._parsePrio());
            if (this.token.offset === node.colonPosition + 1) {
                return this.finish(node, cssErrors_1.ParseError.PropertyValueExpected);
            }
            return this.finish(node);
        };
        /**
         * Parse custom property values.
         *
         * Based on https://www.w3.org/TR/css-variables/#syntax
         *
         * This code is somewhat unusual, as the allowed syntax is incredibly broad,
         * parsing almost any sequence of tokens, save for a small set of exceptions.
         * Unbalanced delimitors, invalid tokens, and declaration
         * terminators like semicolons and !important directives (when not inside
         * of delimitors).
         */
        Parser.prototype._parseCustomPropertyValue = function () {
            var node = this.create(nodes.Node);
            var isTopLevel = function () { return curlyDepth === 0 && parensDepth === 0 && bracketsDepth === 0; };
            var curlyDepth = 0;
            var parensDepth = 0;
            var bracketsDepth = 0;
            done: while (true) {
                switch (this.token.type) {
                    case cssScanner_1.TokenType.SemiColon:
                        // A semicolon only ends things if we're not inside a delimitor.
                        if (isTopLevel()) {
                            break done;
                        }
                        break;
                    case cssScanner_1.TokenType.Exclamation:
                        // An exclamation ends the value if we're not inside delims.
                        if (isTopLevel()) {
                            break done;
                        }
                        break;
                    case cssScanner_1.TokenType.CurlyL:
                        curlyDepth++;
                        break;
                    case cssScanner_1.TokenType.CurlyR:
                        curlyDepth--;
                        if (curlyDepth < 0) {
                            // The property value has been terminated without a semicolon, and
                            // this is the last declaration in the ruleset.
                            if (parensDepth === 0 && bracketsDepth === 0) {
                                break done;
                            }
                            return this.finish(node, cssErrors_1.ParseError.LeftCurlyExpected);
                        }
                        break;
                    case cssScanner_1.TokenType.ParenthesisL:
                        parensDepth++;
                        break;
                    case cssScanner_1.TokenType.ParenthesisR:
                        parensDepth--;
                        if (parensDepth < 0) {
                            return this.finish(node, cssErrors_1.ParseError.LeftParenthesisExpected);
                        }
                        break;
                    case cssScanner_1.TokenType.BracketL:
                        bracketsDepth++;
                        break;
                    case cssScanner_1.TokenType.BracketR:
                        bracketsDepth--;
                        if (bracketsDepth < 0) {
                            return this.finish(node, cssErrors_1.ParseError.LeftSquareBracketExpected);
                        }
                        break;
                    case cssScanner_1.TokenType.BadString: // fall through
                        break done;
                    case cssScanner_1.TokenType.EOF:
                        // We shouldn't have reached the end of input, something is
                        // unterminated.
                        var error = cssErrors_1.ParseError.RightCurlyExpected;
                        if (bracketsDepth > 0) {
                            error = cssErrors_1.ParseError.RightSquareBracketExpected;
                        }
                        else if (parensDepth > 0) {
                            error = cssErrors_1.ParseError.RightParenthesisExpected;
                        }
                        return this.finish(node, error);
                }
                this.consumeToken();
            }
            return this.finish(node);
        };
        Parser.prototype._tryToParseDeclaration = function () {
            var mark = this.mark();
            if (this._parseProperty() && this.accept(cssScanner_1.TokenType.Colon)) {
                // looks like a declaration, go ahead
                this.restoreAtMark(mark);
                return this._parseDeclaration();
            }
            this.restoreAtMark(mark);
            return null;
        };
        Parser.prototype._parseProperty = function () {
            var node = this.create(nodes.Property);
            var mark = this.mark();
            if (this.acceptDelim('*') || this.acceptDelim('_')) {
                // support for  IE 5.x, 6 and 7 star hack: see http://en.wikipedia.org/wiki/CSS_filter#Star_hack
                if (this.hasWhitespace()) {
                    this.restoreAtMark(mark);
                    return null;
                }
            }
            if (node.setIdentifier(this._parsePropertyIdentifier())) {
                return this.finish(node);
            }
            return null;
        };
        Parser.prototype._parsePropertyIdentifier = function () {
            return this._parseIdent();
        };
        Parser.prototype._parseCharset = function () {
            if (!this.peek(cssScanner_1.TokenType.Charset)) {
                return null;
            }
            var node = this.create(nodes.Node);
            this.consumeToken(); // charset
            if (!this.accept(cssScanner_1.TokenType.String)) {
                return this.finish(node, cssErrors_1.ParseError.IdentifierExpected);
            }
            if (!this.accept(cssScanner_1.TokenType.SemiColon)) {
                return this.finish(node, cssErrors_1.ParseError.SemiColonExpected);
            }
            return this.finish(node);
        };
        Parser.prototype._parseImport = function () {
            if (!this.peekKeyword('@import')) {
                return null;
            }
            var node = this.create(nodes.Import);
            this.consumeToken(); // @import
            if (!node.addChild(this._parseURILiteral()) && !node.addChild(this._parseStringLiteral())) {
                return this.finish(node, cssErrors_1.ParseError.URIOrStringExpected);
            }
            if (!this.peek(cssScanner_1.TokenType.SemiColon) && !this.peek(cssScanner_1.TokenType.EOF)) {
                node.setMedialist(this._parseMediaQueryList());
            }
            return this.finish(node);
        };
        Parser.prototype._parseNamespace = function () {
            // http://www.w3.org/TR/css3-namespace/
            // namespace  : NAMESPACE_SYM S* [IDENT S*]? [STRING|URI] S* ';' S*
            if (!this.peekKeyword('@namespace')) {
                return null;
            }
            var node = this.create(nodes.Namespace);
            this.consumeToken(); // @namespace
            if (!node.addChild(this._parseURILiteral())) { // url literal also starts with ident
                node.addChild(this._parseIdent()); // optional prefix
                if (!node.addChild(this._parseURILiteral()) && !node.addChild(this._parseStringLiteral())) {
                    return this.finish(node, cssErrors_1.ParseError.URIExpected, [cssScanner_1.TokenType.SemiColon]);
                }
            }
            if (!this.accept(cssScanner_1.TokenType.SemiColon)) {
                return this.finish(node, cssErrors_1.ParseError.SemiColonExpected);
            }
            return this.finish(node);
        };
        Parser.prototype._parseFontFace = function () {
            if (!this.peekKeyword('@font-face')) {
                return null;
            }
            var node = this.create(nodes.FontFace);
            this.consumeToken(); // @font-face
            return this._parseBody(node, this._parseRuleSetDeclaration.bind(this));
        };
        Parser.prototype._parseViewPort = function () {
            if (!this.peekKeyword('@-ms-viewport') &&
                !this.peekKeyword('@-o-viewport') &&
                !this.peekKeyword('@viewport')) {
                return null;
            }
            var node = this.create(nodes.ViewPort);
            this.consumeToken(); // @-ms-viewport
            return this._parseBody(node, this._parseRuleSetDeclaration.bind(this));
        };
        Parser.prototype._parseKeyframe = function () {
            if (!this.peekRegExp(cssScanner_1.TokenType.AtKeyword, this.keyframeRegex)) {
                return null;
            }
            var node = this.create(nodes.Keyframe);
            var atNode = this.create(nodes.Node);
            this.consumeToken(); // atkeyword
            node.setKeyword(this.finish(atNode));
            if (atNode.getText() === '@-ms-keyframes') { // -ms-keyframes never existed
                this.markError(atNode, cssErrors_1.ParseError.UnknownKeyword);
            }
            if (!node.setIdentifier(this._parseKeyframeIdent())) {
                return this.finish(node, cssErrors_1.ParseError.IdentifierExpected, [cssScanner_1.TokenType.CurlyR]);
            }
            return this._parseBody(node, this._parseKeyframeSelector.bind(this));
        };
        Parser.prototype._parseKeyframeIdent = function () {
            return this._parseIdent([nodes.ReferenceType.Keyframe]);
        };
        Parser.prototype._parseKeyframeSelector = function () {
            var node = this.create(nodes.KeyframeSelector);
            if (!node.addChild(this._parseIdent()) && !this.accept(cssScanner_1.TokenType.Percentage)) {
                return null;
            }
            while (this.accept(cssScanner_1.TokenType.Comma)) {
                if (!node.addChild(this._parseIdent()) && !this.accept(cssScanner_1.TokenType.Percentage)) {
                    return this.finish(node, cssErrors_1.ParseError.PercentageExpected);
                }
            }
            return this._parseBody(node, this._parseRuleSetDeclaration.bind(this));
        };
        Parser.prototype._tryParseKeyframeSelector = function () {
            var node = this.create(nodes.KeyframeSelector);
            var pos = this.mark();
            if (!node.addChild(this._parseIdent()) && !this.accept(cssScanner_1.TokenType.Percentage)) {
                return null;
            }
            while (this.accept(cssScanner_1.TokenType.Comma)) {
                if (!node.addChild(this._parseIdent()) && !this.accept(cssScanner_1.TokenType.Percentage)) {
                    this.restoreAtMark(pos);
                    return null;
                }
            }
            if (!this.peek(cssScanner_1.TokenType.CurlyL)) {
                this.restoreAtMark(pos);
                return null;
            }
            return this._parseBody(node, this._parseRuleSetDeclaration.bind(this));
        };
        Parser.prototype._parseSupports = function (isNested) {
            if (isNested === void 0) { isNested = false; }
            // SUPPORTS_SYM S* supports_condition '{' S* ruleset* '}' S*
            if (!this.peekKeyword('@supports')) {
                return null;
            }
            var node = this.create(nodes.Supports);
            this.consumeToken(); // @supports
            node.addChild(this._parseSupportsCondition());
            return this._parseBody(node, this._parseSupportsDeclaration.bind(this, isNested));
        };
        Parser.prototype._parseSupportsDeclaration = function (isNested) {
            if (isNested === void 0) { isNested = false; }
            if (isNested) {
                // if nested, the body can contain rulesets, but also declarations
                return this._tryParseRuleset(true)
                    || this._tryToParseDeclaration()
                    || this._parseStylesheetStatement(true);
            }
            return this._parseStylesheetStatement(false);
        };
        Parser.prototype._parseSupportsCondition = function () {
            // supports_condition : supports_negation | supports_conjunction | supports_disjunction | supports_condition_in_parens ;
            // supports_condition_in_parens: ( '(' S* supports_condition S* ')' ) | supports_declaration_condition | general_enclosed ;
            // supports_negation: NOT S+ supports_condition_in_parens ;
            // supports_conjunction: supports_condition_in_parens ( S+ AND S+ supports_condition_in_parens )+;
            // supports_disjunction: supports_condition_in_parens ( S+ OR S+ supports_condition_in_parens )+;
            // supports_declaration_condition: '(' S* declaration ')';
            // general_enclosed: ( FUNCTION | '(' ) ( any | unused )* ')' ;
            var node = this.create(nodes.SupportsCondition);
            if (this.acceptIdent('not')) {
                node.addChild(this._parseSupportsConditionInParens());
            }
            else {
                node.addChild(this._parseSupportsConditionInParens());
                if (this.peekRegExp(cssScanner_1.TokenType.Ident, /^(and|or)$/i)) {
                    var text = this.token.text.toLowerCase();
                    while (this.acceptIdent(text)) {
                        node.addChild(this._parseSupportsConditionInParens());
                    }
                }
            }
            return this.finish(node);
        };
        Parser.prototype._parseSupportsConditionInParens = function () {
            var node = this.create(nodes.SupportsCondition);
            if (this.accept(cssScanner_1.TokenType.ParenthesisL)) {
                node.lParent = this.prevToken.offset;
                if (!node.addChild(this._tryToParseDeclaration())) {
                    if (!this._parseSupportsCondition()) {
                        return this.finish(node, cssErrors_1.ParseError.ConditionExpected);
                    }
                }
                if (!this.accept(cssScanner_1.TokenType.ParenthesisR)) {
                    return this.finish(node, cssErrors_1.ParseError.RightParenthesisExpected, [cssScanner_1.TokenType.ParenthesisR], []);
                }
                node.rParent = this.prevToken.offset;
                return this.finish(node);
            }
            else if (this.peek(cssScanner_1.TokenType.Ident)) {
                var pos = this.mark();
                this.consumeToken();
                if (!this.hasWhitespace() && this.accept(cssScanner_1.TokenType.ParenthesisL)) {
                    var openParentCount = 1;
                    while (this.token.type !== cssScanner_1.TokenType.EOF && openParentCount !== 0) {
                        if (this.token.type === cssScanner_1.TokenType.ParenthesisL) {
                            openParentCount++;
                        }
                        else if (this.token.type === cssScanner_1.TokenType.ParenthesisR) {
                            openParentCount--;
                        }
                        this.consumeToken();
                    }
                    return this.finish(node);
                }
                else {
                    this.restoreAtMark(pos);
                }
            }
            return this.finish(node, cssErrors_1.ParseError.LeftParenthesisExpected, [], [cssScanner_1.TokenType.ParenthesisL]);
        };
        Parser.prototype._parseMediaDeclaration = function (isNested) {
            if (isNested === void 0) { isNested = false; }
            if (isNested) {
                // if nested, the body can contain rulesets, but also declarations
                return this._tryParseRuleset(true)
                    || this._tryToParseDeclaration()
                    || this._parseStylesheetStatement(true);
            }
            return this._parseStylesheetStatement(false);
        };
        Parser.prototype._parseMedia = function (isNested) {
            if (isNested === void 0) { isNested = false; }
            // MEDIA_SYM S* media_query_list '{' S* ruleset* '}' S*
            // media_query_list : S* [media_query [ ',' S* media_query ]* ]?
            if (!this.peekKeyword('@media')) {
                return null;
            }
            var node = this.create(nodes.Media);
            this.consumeToken(); // @media
            if (!node.addChild(this._parseMediaQueryList())) {
                return this.finish(node, cssErrors_1.ParseError.MediaQueryExpected);
            }
            return this._parseBody(node, this._parseMediaDeclaration.bind(this, isNested));
        };
        Parser.prototype._parseMediaQueryList = function () {
            var node = this.create(nodes.Medialist);
            if (!node.addChild(this._parseMediaQuery([cssScanner_1.TokenType.CurlyL]))) {
                return this.finish(node, cssErrors_1.ParseError.MediaQueryExpected);
            }
            while (this.accept(cssScanner_1.TokenType.Comma)) {
                if (!node.addChild(this._parseMediaQuery([cssScanner_1.TokenType.CurlyL]))) {
                    return this.finish(node, cssErrors_1.ParseError.MediaQueryExpected);
                }
            }
            return this.finish(node);
        };
        Parser.prototype._parseMediaQuery = function (resyncStopToken) {
            // http://www.w3.org/TR/css3-mediaqueries/
            // media_query : [ONLY | NOT]? S* IDENT S* [ AND S* expression ]* | expression [ AND S* expression ]*
            // expression : '(' S* IDENT S* [ ':' S* expr ]? ')' S*
            var node = this.create(nodes.MediaQuery);
            var parseExpression = true;
            var hasContent = false;
            if (!this.peek(cssScanner_1.TokenType.ParenthesisL)) {
                if (this.acceptIdent('only') || this.acceptIdent('not')) {
                    // optional
                }
                if (!node.addChild(this._parseIdent())) {
                    return null;
                }
                hasContent = true;
                parseExpression = this.acceptIdent('and');
            }
            while (parseExpression) {
                if (!this.accept(cssScanner_1.TokenType.ParenthesisL)) {
                    if (hasContent) {
                        return this.finish(node, cssErrors_1.ParseError.LeftParenthesisExpected, [], resyncStopToken);
                    }
                    return null;
                }
                if (!node.addChild(this._parseMediaFeatureName())) {
                    return this.finish(node, cssErrors_1.ParseError.IdentifierExpected, [], resyncStopToken);
                }
                if (this.accept(cssScanner_1.TokenType.Colon)) {
                    if (!node.addChild(this._parseExpr())) {
                        return this.finish(node, cssErrors_1.ParseError.TermExpected, [], resyncStopToken);
                    }
                }
                if (!this.accept(cssScanner_1.TokenType.ParenthesisR)) {
                    return this.finish(node, cssErrors_1.ParseError.RightParenthesisExpected, [], resyncStopToken);
                }
                parseExpression = this.acceptIdent('and');
            }
            return this.finish(node);
        };
        Parser.prototype._parseMediaFeatureName = function () {
            return this._parseIdent();
        };
        Parser.prototype._parseMedium = function () {
            var node = this.create(nodes.Node);
            if (node.addChild(this._parseIdent())) {
                return this.finish(node);
            }
            else {
                return null;
            }
        };
        Parser.prototype._parsePageDeclaration = function () {
            return this._parsePageMarginBox() || this._parseRuleSetDeclaration();
        };
        Parser.prototype._parsePage = function () {
            // http://www.w3.org/TR/css3-page/
            // page_rule : PAGE_SYM S* page_selector_list '{' S* page_body '}' S*
            // page_body :  /* Can be empty */ declaration? [ ';' S* page_body ]? | page_margin_box page_body
            if (!this.peekKeyword('@page')) {
                return null;
            }
            var node = this.create(nodes.Page);
            this.consumeToken();
            if (node.addChild(this._parsePageSelector())) {
                while (this.accept(cssScanner_1.TokenType.Comma)) {
                    if (!node.addChild(this._parsePageSelector())) {
                        return this.finish(node, cssErrors_1.ParseError.IdentifierExpected);
                    }
                }
            }
            return this._parseBody(node, this._parsePageDeclaration.bind(this));
        };
        Parser.prototype._parsePageMarginBox = function () {
            // page_margin_box :  margin_sym S* '{' S* declaration? [ ';' S* declaration? ]* '}' S*
            if (!this.peek(cssScanner_1.TokenType.AtKeyword)) {
                return null;
            }
            var node = this.create(nodes.PageBoxMarginBox);
            if (!this.acceptOneKeyword(languageFacts.pageBoxDirectives)) {
                this.markError(node, cssErrors_1.ParseError.UnknownAtRule, [], [cssScanner_1.TokenType.CurlyL]);
            }
            return this._parseBody(node, this._parseRuleSetDeclaration.bind(this));
        };
        Parser.prototype._parsePageSelector = function () {
            // page_selector : pseudo_page+ | IDENT pseudo_page*
            // pseudo_page :  ':' [ "left" | "right" | "first" | "blank" ];
            if (!this.peek(cssScanner_1.TokenType.Ident) && !this.peek(cssScanner_1.TokenType.Colon)) {
                return null;
            }
            var node = this.create(nodes.Node);
            node.addChild(this._parseIdent()); // optional ident
            if (this.accept(cssScanner_1.TokenType.Colon)) {
                if (!node.addChild(this._parseIdent())) { // optional ident
                    return this.finish(node, cssErrors_1.ParseError.IdentifierExpected);
                }
            }
            return this.finish(node);
        };
        Parser.prototype._parseDocument = function () {
            // -moz-document is experimental but has been pushed to css4
            if (!this.peekKeyword('@-moz-document')) {
                return null;
            }
            var node = this.create(nodes.Document);
            this.consumeToken(); // @-moz-document
            this.resync([], [cssScanner_1.TokenType.CurlyL]); // ignore all the rules
            return this._parseBody(node, this._parseStylesheetStatement.bind(this));
        };
        // https://www.w3.org/TR/css-syntax-3/#consume-an-at-rule
        Parser.prototype._parseUnknownAtRule = function () {
            if (!this.peek(cssScanner_1.TokenType.AtKeyword)) {
                return null;
            }
            var node = this.create(nodes.UnknownAtRule);
            node.addChild(this._parseUnknownAtRuleName());
            var isTopLevel = function () { return curlyDepth === 0 && parensDepth === 0 && bracketsDepth === 0; };
            var curlyLCount = 0;
            var curlyDepth = 0;
            var parensDepth = 0;
            var bracketsDepth = 0;
            done: while (true) {
                switch (this.token.type) {
                    case cssScanner_1.TokenType.SemiColon:
                        if (isTopLevel()) {
                            break done;
                        }
                        break;
                    case cssScanner_1.TokenType.EOF:
                        if (curlyDepth > 0) {
                            return this.finish(node, cssErrors_1.ParseError.RightCurlyExpected);
                        }
                        else if (bracketsDepth > 0) {
                            return this.finish(node, cssErrors_1.ParseError.RightSquareBracketExpected);
                        }
                        else if (parensDepth > 0) {
                            return this.finish(node, cssErrors_1.ParseError.RightParenthesisExpected);
                        }
                        else {
                            return this.finish(node);
                        }
                    case cssScanner_1.TokenType.CurlyL:
                        curlyLCount++;
                        curlyDepth++;
                        break;
                    case cssScanner_1.TokenType.CurlyR:
                        curlyDepth--;
                        // End of at-rule, consume CurlyR and return node
                        if (curlyLCount > 0 && curlyDepth === 0) {
                            this.consumeToken();
                            if (bracketsDepth > 0) {
                                return this.finish(node, cssErrors_1.ParseError.RightSquareBracketExpected);
                            }
                            else if (parensDepth > 0) {
                                return this.finish(node, cssErrors_1.ParseError.RightParenthesisExpected);
                            }
                            break done;
                        }
                        if (curlyDepth < 0) {
                            // The property value has been terminated without a semicolon, and
                            // this is the last declaration in the ruleset.
                            if (parensDepth === 0 && bracketsDepth === 0) {
                                break done;
                            }
                            return this.finish(node, cssErrors_1.ParseError.LeftCurlyExpected);
                        }
                        break;
                    case cssScanner_1.TokenType.ParenthesisL:
                        parensDepth++;
                        break;
                    case cssScanner_1.TokenType.ParenthesisR:
                        parensDepth--;
                        if (parensDepth < 0) {
                            return this.finish(node, cssErrors_1.ParseError.LeftParenthesisExpected);
                        }
                        break;
                    case cssScanner_1.TokenType.BracketL:
                        bracketsDepth++;
                        break;
                    case cssScanner_1.TokenType.BracketR:
                        bracketsDepth--;
                        if (bracketsDepth < 0) {
                            return this.finish(node, cssErrors_1.ParseError.LeftSquareBracketExpected);
                        }
                        break;
                }
                this.consumeToken();
            }
            return node;
        };
        Parser.prototype._parseUnknownAtRuleName = function () {
            var node = this.create(nodes.Node);
            if (this.accept(cssScanner_1.TokenType.AtKeyword)) {
                return this.finish(node);
            }
            return node;
        };
        Parser.prototype._parseOperator = function () {
            // these are operators for binary expressions
            if (this.peekDelim('/') ||
                this.peekDelim('*') ||
                this.peekDelim('+') ||
                this.peekDelim('-') ||
                this.peek(cssScanner_1.TokenType.Dashmatch) ||
                this.peek(cssScanner_1.TokenType.Includes) ||
                this.peek(cssScanner_1.TokenType.SubstringOperator) ||
                this.peek(cssScanner_1.TokenType.PrefixOperator) ||
                this.peek(cssScanner_1.TokenType.SuffixOperator) ||
                this.peekDelim('=')) { // doesn't stick to the standard here
                var node = this.createNode(nodes.NodeType.Operator);
                this.consumeToken();
                return this.finish(node);
            }
            else {
                return null;
            }
        };
        Parser.prototype._parseUnaryOperator = function () {
            if (!this.peekDelim('+') && !this.peekDelim('-')) {
                return null;
            }
            var node = this.create(nodes.Node);
            this.consumeToken();
            return this.finish(node);
        };
        Parser.prototype._parseCombinator = function () {
            if (this.peekDelim('>')) {
                var node = this.create(nodes.Node);
                this.consumeToken();
                var mark = this.mark();
                if (!this.hasWhitespace() && this.acceptDelim('>')) {
                    if (!this.hasWhitespace() && this.acceptDelim('>')) {
                        node.type = nodes.NodeType.SelectorCombinatorShadowPiercingDescendant;
                        return this.finish(node);
                    }
                    this.restoreAtMark(mark);
                }
                node.type = nodes.NodeType.SelectorCombinatorParent;
                return this.finish(node);
            }
            else if (this.peekDelim('+')) {
                var node = this.create(nodes.Node);
                this.consumeToken();
                node.type = nodes.NodeType.SelectorCombinatorSibling;
                return this.finish(node);
            }
            else if (this.peekDelim('~')) {
                var node = this.create(nodes.Node);
                this.consumeToken();
                node.type = nodes.NodeType.SelectorCombinatorAllSiblings;
                return this.finish(node);
            }
            else if (this.peekDelim('/')) {
                var node = this.create(nodes.Node);
                this.consumeToken();
                var mark = this.mark();
                if (!this.hasWhitespace() && this.acceptIdent('deep') && !this.hasWhitespace() && this.acceptDelim('/')) {
                    node.type = nodes.NodeType.SelectorCombinatorShadowPiercingDescendant;
                    return this.finish(node);
                }
                this.restoreAtMark(mark);
            }
            else {
                return null;
            }
        };
        Parser.prototype._parseSimpleSelector = function () {
            // simple_selector
            //  : element_name [ HASH | class | attrib | pseudo ]* | [ HASH | class | attrib | pseudo ]+ ;
            var node = this.create(nodes.SimpleSelector);
            var c = 0;
            if (node.addChild(this._parseElementName())) {
                c++;
            }
            while ((c === 0 || !this.hasWhitespace()) && node.addChild(this._parseSimpleSelectorBody())) {
                c++;
            }
            return c > 0 ? this.finish(node) : null;
        };
        Parser.prototype._parseSimpleSelectorBody = function () {
            return this._parsePseudo() || this._parseHash() || this._parseClass() || this._parseAttrib();
        };
        Parser.prototype._parseSelectorIdent = function () {
            return this._parseIdent();
        };
        Parser.prototype._parseHash = function () {
            if (!this.peek(cssScanner_1.TokenType.Hash) && !this.peekDelim('#')) {
                return null;
            }
            var node = this.createNode(nodes.NodeType.IdentifierSelector);
            if (this.acceptDelim('#')) {
                if (this.hasWhitespace() || !node.addChild(this._parseSelectorIdent())) {
                    return this.finish(node, cssErrors_1.ParseError.IdentifierExpected);
                }
            }
            else {
                this.consumeToken(); // TokenType.Hash
            }
            return this.finish(node);
        };
        Parser.prototype._parseClass = function () {
            // class: '.' IDENT ;
            if (!this.peekDelim('.')) {
                return null;
            }
            var node = this.createNode(nodes.NodeType.ClassSelector);
            this.consumeToken(); // '.'
            if (this.hasWhitespace() || !node.addChild(this._parseSelectorIdent())) {
                return this.finish(node, cssErrors_1.ParseError.IdentifierExpected);
            }
            return this.finish(node);
        };
        Parser.prototype._parseElementName = function () {
            // element_name: (ns? '|')? IDENT | '*';
            var pos = this.mark();
            var node = this.createNode(nodes.NodeType.ElementNameSelector);
            node.addChild(this._parseNamespacePrefix());
            if (!node.addChild(this._parseSelectorIdent()) && !this.acceptDelim('*')) {
                this.restoreAtMark(pos);
                return null;
            }
            return this.finish(node);
        };
        Parser.prototype._parseNamespacePrefix = function () {
            var pos = this.mark();
            var node = this.createNode(nodes.NodeType.NamespacePrefix);
            if (!node.addChild(this._parseIdent()) && !this.acceptDelim('*')) {
                // ns is optional
            }
            if (!this.acceptDelim('|')) {
                this.restoreAtMark(pos);
                return null;
            }
            return this.finish(node);
        };
        Parser.prototype._parseAttrib = function () {
            // attrib : '[' S* IDENT S* [ [ '=' | INCLUDES | DASHMATCH ] S*   [ IDENT | STRING ] S* ]? ']'
            if (!this.peek(cssScanner_1.TokenType.BracketL)) {
                return null;
            }
            var node = this.create(nodes.AttributeSelector);
            this.consumeToken(); // BracketL
            // Optional attrib namespace
            node.setNamespacePrefix(this._parseNamespacePrefix());
            if (!node.setIdentifier(this._parseIdent())) {
                return this.finish(node, cssErrors_1.ParseError.IdentifierExpected);
            }
            if (node.setOperator(this._parseOperator())) {
                node.setValue(this._parseBinaryExpr());
                this.acceptIdent('i'); // case insensitive matching
            }
            if (!this.accept(cssScanner_1.TokenType.BracketR)) {
                return this.finish(node, cssErrors_1.ParseError.RightSquareBracketExpected);
            }
            return this.finish(node);
        };
        Parser.prototype._parsePseudo = function () {
            var _this = this;
            // pseudo: ':' [ IDENT | FUNCTION S* [IDENT S*]? ')' ]
            var node = this._tryParsePseudoIdentifier();
            if (node) {
                if (!this.hasWhitespace() && this.accept(cssScanner_1.TokenType.ParenthesisL)) {
                    var tryAsSelector = function () {
                        var selectors = _this.create(nodes.Node);
                        if (!selectors.addChild(_this._parseSelector(false))) {
                            return null;
                        }
                        while (_this.accept(cssScanner_1.TokenType.Comma) && selectors.addChild(_this._parseSelector(false))) {
                            // loop
                        }
                        if (_this.peek(cssScanner_1.TokenType.ParenthesisR)) {
                            return _this.finish(selectors);
                        }
                    };
                    node.addChild(this.try(tryAsSelector) || this._parseBinaryExpr());
                    if (!this.accept(cssScanner_1.TokenType.ParenthesisR)) {
                        return this.finish(node, cssErrors_1.ParseError.RightParenthesisExpected);
                    }
                }
                return this.finish(node);
            }
            return null;
        };
        Parser.prototype._tryParsePseudoIdentifier = function () {
            if (!this.peek(cssScanner_1.TokenType.Colon)) {
                return null;
            }
            var pos = this.mark();
            var node = this.createNode(nodes.NodeType.PseudoSelector);
            this.consumeToken(); // Colon
            if (this.hasWhitespace()) {
                this.restoreAtMark(pos);
                return null;
            }
            // optional, support ::
            if (this.accept(cssScanner_1.TokenType.Colon) && this.hasWhitespace()) {
                this.markError(node, cssErrors_1.ParseError.IdentifierExpected);
            }
            if (!node.addChild(this._parseIdent())) {
                this.markError(node, cssErrors_1.ParseError.IdentifierExpected);
            }
            return node;
        };
        Parser.prototype._tryParsePrio = function () {
            var mark = this.mark();
            var prio = this._parsePrio();
            if (prio) {
                return prio;
            }
            this.restoreAtMark(mark);
            return null;
        };
        Parser.prototype._parsePrio = function () {
            if (!this.peek(cssScanner_1.TokenType.Exclamation)) {
                return null;
            }
            var node = this.createNode(nodes.NodeType.Prio);
            if (this.accept(cssScanner_1.TokenType.Exclamation) && this.acceptIdent('important')) {
                return this.finish(node);
            }
            return null;
        };
        Parser.prototype._parseExpr = function (stopOnComma) {
            if (stopOnComma === void 0) { stopOnComma = false; }
            var node = this.create(nodes.Expression);
            if (!node.addChild(this._parseBinaryExpr())) {
                return null;
            }
            while (true) {
                if (this.peek(cssScanner_1.TokenType.Comma)) { // optional
                    if (stopOnComma) {
                        return this.finish(node);
                    }
                    this.consumeToken();
                }
                if (!node.addChild(this._parseBinaryExpr())) {
                    break;
                }
            }
            return this.finish(node);
        };
        Parser.prototype._parseNamedLine = function () {
            // https://www.w3.org/TR/css-grid-1/#named-lines
            if (!this.peek(cssScanner_1.TokenType.BracketL)) {
                return null;
            }
            var node = this.createNode(nodes.NodeType.GridLine);
            this.consumeToken();
            while (node.addChild(this._parseIdent())) {
                // repeat
            }
            if (!this.accept(cssScanner_1.TokenType.BracketR)) {
                return this.finish(node, cssErrors_1.ParseError.RightSquareBracketExpected);
            }
            return this.finish(node);
        };
        Parser.prototype._parseBinaryExpr = function (preparsedLeft, preparsedOper) {
            var node = this.create(nodes.BinaryExpression);
            if (!node.setLeft((preparsedLeft || this._parseTerm()))) {
                return null;
            }
            if (!node.setOperator(preparsedOper || this._parseOperator())) {
                return this.finish(node);
            }
            if (!node.setRight(this._parseTerm())) {
                return this.finish(node, cssErrors_1.ParseError.TermExpected);
            }
            // things needed for multiple binary expressions
            node = this.finish(node);
            var operator = this._parseOperator();
            if (operator) {
                node = this._parseBinaryExpr(node, operator);
            }
            return this.finish(node);
        };
        Parser.prototype._parseTerm = function () {
            var node = this.create(nodes.Term);
            node.setOperator(this._parseUnaryOperator()); // optional
            if (node.setExpression(this._parseURILiteral()) || // url before function
                node.setExpression(this._parseFunction()) || // function before ident
                node.setExpression(this._parseIdent()) ||
                node.setExpression(this._parseStringLiteral()) ||
                node.setExpression(this._parseNumeric()) ||
                node.setExpression(this._parseHexColor()) ||
                node.setExpression(this._parseOperation()) ||
                node.setExpression(this._parseNamedLine())) {
                return this.finish(node);
            }
            return null;
        };
        Parser.prototype._parseOperation = function () {
            if (!this.peek(cssScanner_1.TokenType.ParenthesisL)) {
                return null;
            }
            var node = this.create(nodes.Node);
            this.consumeToken(); // ParenthesisL
            node.addChild(this._parseExpr());
            if (!this.accept(cssScanner_1.TokenType.ParenthesisR)) {
                return this.finish(node, cssErrors_1.ParseError.RightParenthesisExpected);
            }
            return this.finish(node);
        };
        Parser.prototype._parseNumeric = function () {
            if (this.peek(cssScanner_1.TokenType.Num) ||
                this.peek(cssScanner_1.TokenType.Percentage) ||
                this.peek(cssScanner_1.TokenType.Resolution) ||
                this.peek(cssScanner_1.TokenType.Length) ||
                this.peek(cssScanner_1.TokenType.EMS) ||
                this.peek(cssScanner_1.TokenType.EXS) ||
                this.peek(cssScanner_1.TokenType.Angle) ||
                this.peek(cssScanner_1.TokenType.Time) ||
                this.peek(cssScanner_1.TokenType.Dimension) ||
                this.peek(cssScanner_1.TokenType.Freq)) {
                var node = this.create(nodes.NumericValue);
                this.consumeToken();
                return this.finish(node);
            }
            return null;
        };
        Parser.prototype._parseStringLiteral = function () {
            if (!this.peek(cssScanner_1.TokenType.String) && !this.peek(cssScanner_1.TokenType.BadString)) {
                return null;
            }
            var node = this.createNode(nodes.NodeType.StringLiteral);
            this.consumeToken();
            return this.finish(node);
        };
        Parser.prototype._parseURILiteral = function () {
            if (!this.peekRegExp(cssScanner_1.TokenType.Ident, /^url(-prefix)?$/i)) {
                return null;
            }
            var pos = this.mark();
            var node = this.createNode(nodes.NodeType.URILiteral);
            this.accept(cssScanner_1.TokenType.Ident);
            if (this.hasWhitespace() || !this.peek(cssScanner_1.TokenType.ParenthesisL)) {
                this.restoreAtMark(pos);
                return null;
            }
            this.scanner.inURL = true;
            this.consumeToken(); // consume ()
            node.addChild(this._parseURLArgument()); // argument is optional
            this.scanner.inURL = false;
            if (!this.accept(cssScanner_1.TokenType.ParenthesisR)) {
                return this.finish(node, cssErrors_1.ParseError.RightParenthesisExpected);
            }
            return this.finish(node);
        };
        Parser.prototype._parseURLArgument = function () {
            var node = this.create(nodes.Node);
            if (!this.accept(cssScanner_1.TokenType.String) && !this.accept(cssScanner_1.TokenType.BadString) && !this.acceptUnquotedString()) {
                return null;
            }
            return this.finish(node);
        };
        Parser.prototype._parseIdent = function (referenceTypes) {
            if (!this.peek(cssScanner_1.TokenType.Ident)) {
                return null;
            }
            var node = this.create(nodes.Identifier);
            if (referenceTypes) {
                node.referenceTypes = referenceTypes;
            }
            node.isCustomProperty = this.peekRegExp(cssScanner_1.TokenType.Ident, /^--/);
            this.consumeToken();
            return this.finish(node);
        };
        Parser.prototype._parseFunction = function () {
            var pos = this.mark();
            var node = this.create(nodes.Function);
            if (!node.setIdentifier(this._parseFunctionIdentifier())) {
                return null;
            }
            if (this.hasWhitespace() || !this.accept(cssScanner_1.TokenType.ParenthesisL)) {
                this.restoreAtMark(pos);
                return null;
            }
            if (node.getArguments().addChild(this._parseFunctionArgument())) {
                while (this.accept(cssScanner_1.TokenType.Comma)) {
                    if (this.peek(cssScanner_1.TokenType.ParenthesisR)) {
                        break;
                    }
                    if (!node.getArguments().addChild(this._parseFunctionArgument())) {
                        this.markError(node, cssErrors_1.ParseError.ExpressionExpected);
                    }
                }
            }
            if (!this.accept(cssScanner_1.TokenType.ParenthesisR)) {
                return this.finish(node, cssErrors_1.ParseError.RightParenthesisExpected);
            }
            return this.finish(node);
        };
        Parser.prototype._parseFunctionIdentifier = function () {
            if (!this.peek(cssScanner_1.TokenType.Ident)) {
                return null;
            }
            var node = this.create(nodes.Identifier);
            node.referenceTypes = [nodes.ReferenceType.Function];
            if (this.acceptIdent('progid')) {
                // support for IE7 specific filters: 'progid:DXImageTransform.Microsoft.MotionBlur(strength=13, direction=310)'
                if (this.accept(cssScanner_1.TokenType.Colon)) {
                    while (this.accept(cssScanner_1.TokenType.Ident) && this.acceptDelim('.')) {
                        // loop
                    }
                }
                return this.finish(node);
            }
            this.consumeToken();
            return this.finish(node);
        };
        Parser.prototype._parseFunctionArgument = function () {
            var node = this.create(nodes.FunctionArgument);
            if (node.setValue(this._parseExpr(true))) {
                return this.finish(node);
            }
            return null;
        };
        Parser.prototype._parseHexColor = function () {
            if (this.peekRegExp(cssScanner_1.TokenType.Hash, /^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g)) {
                var node = this.create(nodes.HexColorValue);
                this.consumeToken();
                return this.finish(node);
            }
            else {
                return null;
            }
        };
        return Parser;
    }());
    exports.Parser = Parser;
});

(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/utils/arrays',["require", "exports"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    /**
     * Takes a sorted array and a function p. The array is sorted in such a way that all elements where p(x) is false
     * are located before all elements where p(x) is true.
     * @returns the least x for which p(x) is true or array.length if no element fullfills the given function.
     */
    function findFirst(array, p) {
        var low = 0, high = array.length;
        if (high === 0) {
            return 0; // no children
        }
        while (low < high) {
            var mid = Math.floor((low + high) / 2);
            if (p(array[mid])) {
                high = mid;
            }
            else {
                low = mid + 1;
            }
        }
        return low;
    }
    exports.findFirst = findFirst;
    function includes(array, item) {
        return array.indexOf(item) !== -1;
    }
    exports.includes = includes;
    function union() {
        var arrays = [];
        for (var _i = 0; _i < arguments.length; _i++) {
            arrays[_i] = arguments[_i];
        }
        var result = [];
        for (var _a = 0, arrays_1 = arrays; _a < arrays_1.length; _a++) {
            var array = arrays_1[_a];
            for (var _b = 0, array_1 = array; _b < array_1.length; _b++) {
                var item = array_1[_b];
                if (!includes(result, item)) {
                    result.push(item);
                }
            }
        }
        return result;
    }
    exports.union = union;
});

var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/parser/cssSymbolScope',["require", "exports", "./cssNodes", "../utils/arrays"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    var nodes = require("./cssNodes");
    var arrays_1 = require("../utils/arrays");
    var Scope = /** @class */ (function () {
        function Scope(offset, length) {
            this.offset = offset;
            this.length = length;
            this.symbols = [];
            this.parent = null;
            this.children = [];
        }
        Scope.prototype.addChild = function (scope) {
            this.children.push(scope);
            scope.setParent(this);
        };
        Scope.prototype.setParent = function (scope) {
            this.parent = scope;
        };
        Scope.prototype.findScope = function (offset, length) {
            if (length === void 0) { length = 0; }
            if (this.offset <= offset && this.offset + this.length > offset + length || this.offset === offset && this.length === length) {
                return this.findInScope(offset, length);
            }
            return null;
        };
        Scope.prototype.findInScope = function (offset, length) {
            if (length === void 0) { length = 0; }
            // find the first scope child that has an offset larger than offset + length
            var end = offset + length;
            var idx = arrays_1.findFirst(this.children, function (s) { return s.offset > end; });
            if (idx === 0) {
                // all scopes have offsets larger than our end
                return this;
            }
            var res = this.children[idx - 1];
            if (res.offset <= offset && res.offset + res.length >= offset + length) {
                return res.findInScope(offset, length);
            }
            return this;
        };
        Scope.prototype.addSymbol = function (symbol) {
            this.symbols.push(symbol);
        };
        Scope.prototype.getSymbol = function (name, type) {
            for (var index = 0; index < this.symbols.length; index++) {
                var symbol = this.symbols[index];
                if (symbol.name === name && symbol.type === type) {
                    return symbol;
                }
            }
            return null;
        };
        Scope.prototype.getSymbols = function () {
            return this.symbols;
        };
        return Scope;
    }());
    exports.Scope = Scope;
    var GlobalScope = /** @class */ (function (_super) {
        __extends(GlobalScope, _super);
        function GlobalScope() {
            return _super.call(this, 0, Number.MAX_VALUE) || this;
        }
        return GlobalScope;
    }(Scope));
    exports.GlobalScope = GlobalScope;
    var Symbol = /** @class */ (function () {
        function Symbol(name, value, node, type) {
            this.name = name;
            this.value = value;
            this.node = node;
            this.type = type;
        }
        return Symbol;
    }());
    exports.Symbol = Symbol;
    var ScopeBuilder = /** @class */ (function () {
        function ScopeBuilder(scope) {
            this.scope = scope;
        }
        ScopeBuilder.prototype.addSymbol = function (node, name, value, type) {
            if (node.offset !== -1) {
                var current = this.scope.findScope(node.offset, node.length);
                if (current) {
                    current.addSymbol(new Symbol(name, value, node, type));
                }
            }
        };
        ScopeBuilder.prototype.addScope = function (node) {
            if (node.offset !== -1) {
                var current = this.scope.findScope(node.offset, node.length);
                if (current && (current.offset !== node.offset || current.length !== node.length)) { // scope already known?
                    var newScope = new Scope(node.offset, node.length);
                    current.addChild(newScope);
                    return newScope;
                }
                return current;
            }
            return null;
        };
        ScopeBuilder.prototype.addSymbolToChildScope = function (scopeNode, node, name, value, type) {
            if (scopeNode && scopeNode.offset !== -1) {
                var current = this.addScope(scopeNode); // create the scope or gets the existing one
                if (current) {
                    current.addSymbol(new Symbol(name, value, node, type));
                }
            }
        };
        ScopeBuilder.prototype.visitNode = function (node) {
            switch (node.type) {
                case nodes.NodeType.Keyframe:
                    this.addSymbol(node, node.getName(), void 0, nodes.ReferenceType.Keyframe);
                    return true;
                case nodes.NodeType.CustomPropertyDeclaration:
                    return this.visitCustomPropertyDeclarationNode(node);
                case nodes.NodeType.VariableDeclaration:
                    return this.visitVariableDeclarationNode(node);
                case nodes.NodeType.Ruleset:
                    return this.visitRuleSet(node);
                case nodes.NodeType.MixinDeclaration:
                    this.addSymbol(node, node.getName(), void 0, nodes.ReferenceType.Mixin);
                    return true;
                case nodes.NodeType.FunctionDeclaration:
                    this.addSymbol(node, node.getName(), void 0, nodes.ReferenceType.Function);
                    return true;
                case nodes.NodeType.FunctionParameter: {
                    return this.visitFunctionParameterNode(node);
                }
                case nodes.NodeType.Declarations:
                    this.addScope(node);
                    return true;
                case nodes.NodeType.For:
                    var forNode = node;
                    var scopeNode = forNode.getDeclarations();
                    if (scopeNode) {
                        this.addSymbolToChildScope(scopeNode, forNode.variable, forNode.variable.getName(), void 0, nodes.ReferenceType.Variable);
                    }
                    return true;
                case nodes.NodeType.Each: {
                    var eachNode = node;
                    var scopeNode_1 = eachNode.getDeclarations();
                    if (scopeNode_1) {
                        var variables = eachNode.getVariables().getChildren();
                        for (var _i = 0, variables_1 = variables; _i < variables_1.length; _i++) {
                            var variable = variables_1[_i];
                            this.addSymbolToChildScope(scopeNode_1, variable, variable.getName(), void 0, nodes.ReferenceType.Variable);
                        }
                    }
                    return true;
                }
            }
            return true;
        };
        ScopeBuilder.prototype.visitRuleSet = function (node) {
            var current = this.scope.findScope(node.offset, node.length);
            if (current) {
                for (var _i = 0, _a = node.getSelectors().getChildren(); _i < _a.length; _i++) {
                    var child = _a[_i];
                    if (child instanceof nodes.Selector) {
                        if (child.getChildren().length === 1) { // only selectors with a single element can be extended
                            current.addSymbol(new Symbol(child.getChild(0).getText(), void 0, child, nodes.ReferenceType.Rule));
                        }
                    }
                }
            }
            return true;
        };
        ScopeBuilder.prototype.visitVariableDeclarationNode = function (node) {
            var value = node.getValue() ? node.getValue().getText() : void 0;
            this.addSymbol(node, node.getName(), value, nodes.ReferenceType.Variable);
            return true;
        };
        ScopeBuilder.prototype.visitFunctionParameterNode = function (node) {
            // parameters are part of the body scope
            var scopeNode = node.getParent().getDeclarations();
            if (scopeNode) {
                var valueNode = node.getDefaultValue();
                var value = valueNode ? valueNode.getText() : void 0;
                this.addSymbolToChildScope(scopeNode, node, node.getName(), value, nodes.ReferenceType.Variable);
            }
            return true;
        };
        ScopeBuilder.prototype.visitCustomPropertyDeclarationNode = function (node) {
            var value = node.getValue() ? node.getValue().getText() : '';
            this.addCSSVariable(node.getProperty(), node.getProperty().getName(), value, nodes.ReferenceType.Variable);
            return true;
        };
        ScopeBuilder.prototype.addCSSVariable = function (node, name, value, type) {
            if (node.offset !== -1) {
                this.scope.addSymbol(new Symbol(name, value, node, type));
            }
        };
        return ScopeBuilder;
    }());
    exports.ScopeBuilder = ScopeBuilder;
    var Symbols = /** @class */ (function () {
        function Symbols(node) {
            this.global = new GlobalScope();
            node.acceptVisitor(new ScopeBuilder(this.global));
        }
        Symbols.prototype.findSymbolsAtOffset = function (offset, referenceType) {
            var scope = this.global.findScope(offset, 0);
            var result = [];
            var names = {};
            while (scope) {
                var symbols = scope.getSymbols();
                for (var i = 0; i < symbols.length; i++) {
                    var symbol = symbols[i];
                    if (symbol.type === referenceType && !names[symbol.name]) {
                        result.push(symbol);
                        names[symbol.name] = true;
                    }
                }
                scope = scope.parent;
            }
            return result;
        };
        Symbols.prototype.internalFindSymbol = function (node, referenceTypes) {
            var scopeNode = node;
            if (node.parent instanceof nodes.FunctionParameter && node.parent.getParent() instanceof nodes.BodyDeclaration) {
                scopeNode = node.parent.getParent().getDeclarations();
            }
            if (node.parent instanceof nodes.FunctionArgument && node.parent.getParent() instanceof nodes.Function) {
                var funcId = node.parent.getParent().getIdentifier();
                if (funcId) {
                    var functionSymbol = this.internalFindSymbol(funcId, [nodes.ReferenceType.Function]);
                    if (functionSymbol) {
                        scopeNode = functionSymbol.node.getDeclarations();
                    }
                }
            }
            if (!scopeNode) {
                return null;
            }
            var name = node.getText();
            var scope = this.global.findScope(scopeNode.offset, scopeNode.length);
            while (scope) {
                for (var index = 0; index < referenceTypes.length; index++) {
                    var type = referenceTypes[index];
                    var symbol = scope.getSymbol(name, type);
                    if (symbol) {
                        return symbol;
                    }
                }
                scope = scope.parent;
            }
            return null;
        };
        Symbols.prototype.evaluateReferenceTypes = function (node) {
            if (node instanceof nodes.Identifier) {
                var referenceTypes = node.referenceTypes;
                if (referenceTypes) {
                    return referenceTypes;
                }
                else {
                    if (node.isCustomProperty) {
                        return [nodes.ReferenceType.Variable];
                    }
                    // are a reference to a keyframe?
                    var decl = nodes.getParentDeclaration(node);
                    if (decl) {
                        var propertyName = decl.getNonPrefixedPropertyName();
                        if ((propertyName === 'animation' || propertyName === 'animation-name')
                            && decl.getValue() && decl.getValue().offset === node.offset) {
                            return [nodes.ReferenceType.Keyframe];
                        }
                    }
                }
            }
            else if (node instanceof nodes.Variable) {
                return [nodes.ReferenceType.Variable];
            }
            var selector = node.findAParent(nodes.NodeType.Selector, nodes.NodeType.ExtendsReference);
            if (selector) {
                return [nodes.ReferenceType.Rule];
            }
            return null;
        };
        Symbols.prototype.findSymbolFromNode = function (node) {
            if (!node) {
                return null;
            }
            while (node.type === nodes.NodeType.Interpolation) {
                node = node.getParent();
            }
            var referenceTypes = this.evaluateReferenceTypes(node);
            if (referenceTypes) {
                return this.internalFindSymbol(node, referenceTypes);
            }
            return null;
        };
        Symbols.prototype.matchesSymbol = function (node, symbol) {
            if (!node) {
                return false;
            }
            while (node.type === nodes.NodeType.Interpolation) {
                node = node.getParent();
            }
            if (symbol.name.length !== node.length || symbol.name !== node.getText()) {
                return false;
            }
            var referenceTypes = this.evaluateReferenceTypes(node);
            if (!referenceTypes || referenceTypes.indexOf(symbol.type) === -1) {
                return false;
            }
            var nodeSymbol = this.internalFindSymbol(node, referenceTypes);
            return nodeSymbol === symbol;
        };
        Symbols.prototype.findSymbol = function (name, type, offset) {
            var scope = this.global.findScope(offset);
            while (scope) {
                var symbol = scope.getSymbol(name, type);
                if (symbol) {
                    return symbol;
                }
                scope = scope.parent;
            }
            return null;
        };
        return Symbols;
    }());
    exports.Symbols = Symbols;
});

(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/utils/strings',["require", "exports"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    function startsWith(haystack, needle) {
        if (haystack.length < needle.length) {
            return false;
        }
        for (var i = 0; i < needle.length; i++) {
            if (haystack[i] !== needle[i]) {
                return false;
            }
        }
        return true;
    }
    exports.startsWith = startsWith;
    /**
     * Determines if haystack ends with needle.
     */
    function endsWith(haystack, needle) {
        var diff = haystack.length - needle.length;
        if (diff > 0) {
            return haystack.lastIndexOf(needle) === diff;
        }
        else if (diff === 0) {
            return haystack === needle;
        }
        else {
            return false;
        }
    }
    exports.endsWith = endsWith;
    /**
     * Computes the difference score for two strings. More similar strings have a higher score.
     * We use largest common subsequence dynamic programming approach but penalize in the end for length differences.
     * Strings that have a large length difference will get a bad default score 0.
     * Complexity - both time and space O(first.length * second.length)
     * Dynamic programming LCS computation http://en.wikipedia.org/wiki/Longest_common_subsequence_problem
     *
     * @param first a string
     * @param second a string
     */
    function difference(first, second, maxLenDelta) {
        if (maxLenDelta === void 0) { maxLenDelta = 4; }
        var lengthDifference = Math.abs(first.length - second.length);
        // We only compute score if length of the currentWord and length of entry.name are similar.
        if (lengthDifference > maxLenDelta) {
            return 0;
        }
        // Initialize LCS (largest common subsequence) matrix.
        var LCS = [];
        var zeroArray = [];
        var i, j;
        for (i = 0; i < second.length + 1; ++i) {
            zeroArray.push(0);
        }
        for (i = 0; i < first.length + 1; ++i) {
            LCS.push(zeroArray);
        }
        for (i = 1; i < first.length + 1; ++i) {
            for (j = 1; j < second.length + 1; ++j) {
                if (first[i - 1] === second[j - 1]) {
                    LCS[i][j] = LCS[i - 1][j - 1] + 1;
                }
                else {
                    LCS[i][j] = Math.max(LCS[i - 1][j], LCS[i][j - 1]);
                }
            }
        }
        return LCS[first.length][second.length] - Math.sqrt(lengthDifference);
    }
    exports.difference = difference;
    /**
     * Limit of string length.
     */
    function getLimitedString(str, ellipsis) {
        if (ellipsis === void 0) { ellipsis = true; }
        if (!str) {
            return '';
        }
        if (str.length < 140) {
            return str;
        }
        return str.slice(0, 140) + (ellipsis ? '\u2026' : '');
    }
    exports.getLimitedString = getLimitedString;
});

(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-languageserver-types/main',["require", "exports"], factory);
    }
})(function (require, exports) {
    /* --------------------------------------------------------------------------------------------
     * Copyright (c) Microsoft Corporation. All rights reserved.
     * Licensed under the MIT License. See License.txt in the project root for license information.
     * ------------------------------------------------------------------------------------------ */
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    /**
     * The Position namespace provides helper functions to work with
     * [Position](#Position) literals.
     */
    var Position;
    (function (Position) {
        /**
         * Creates a new Position literal from the given line and character.
         * @param line The position's line.
         * @param character The position's character.
         */
        function create(line, character) {
            return { line: line, character: character };
        }
        Position.create = create;
        /**
         * Checks whether the given liternal conforms to the [Position](#Position) interface.
         */
        function is(value) {
            var candidate = value;
            return Is.objectLiteral(candidate) && Is.number(candidate.line) && Is.number(candidate.character);
        }
        Position.is = is;
    })(Position = exports.Position || (exports.Position = {}));
    /**
     * The Range namespace provides helper functions to work with
     * [Range](#Range) literals.
     */
    var Range;
    (function (Range) {
        function create(one, two, three, four) {
            if (Is.number(one) && Is.number(two) && Is.number(three) && Is.number(four)) {
                return { start: Position.create(one, two), end: Position.create(three, four) };
            }
            else if (Position.is(one) && Position.is(two)) {
                return { start: one, end: two };
            }
            else {
                throw new Error("Range#create called with invalid arguments[" + one + ", " + two + ", " + three + ", " + four + "]");
            }
        }
        Range.create = create;
        /**
         * Checks whether the given literal conforms to the [Range](#Range) interface.
         */
        function is(value) {
            var candidate = value;
            return Is.objectLiteral(candidate) && Position.is(candidate.start) && Position.is(candidate.end);
        }
        Range.is = is;
    })(Range = exports.Range || (exports.Range = {}));
    /**
     * The Location namespace provides helper functions to work with
     * [Location](#Location) literals.
     */
    var Location;
    (function (Location) {
        /**
         * Creates a Location literal.
         * @param uri The location's uri.
         * @param range The location's range.
         */
        function create(uri, range) {
            return { uri: uri, range: range };
        }
        Location.create = create;
        /**
         * Checks whether the given literal conforms to the [Location](#Location) interface.
         */
        function is(value) {
            var candidate = value;
            return Is.defined(candidate) && Range.is(candidate.range) && (Is.string(candidate.uri) || Is.undefined(candidate.uri));
        }
        Location.is = is;
    })(Location = exports.Location || (exports.Location = {}));
    /**
     * The LocationLink namespace provides helper functions to work with
     * [LocationLink](#LocationLink) literals.
     */
    var LocationLink;
    (function (LocationLink) {
        /**
         * Creates a LocationLink literal.
         * @param targetUri The definition's uri.
         * @param targetRange The full range of the definition.
         * @param targetSelectionRange The span of the symbol definition at the target.
         * @param originSelectionRange The span of the symbol being defined in the originating source file.
         */
        function create(targetUri, targetRange, targetSelectionRange, originSelectionRange) {
            return { targetUri: targetUri, targetRange: targetRange, targetSelectionRange: targetSelectionRange, originSelectionRange: originSelectionRange };
        }
        LocationLink.create = create;
        /**
         * Checks whether the given literal conforms to the [LocationLink](#LocationLink) interface.
         */
        function is(value) {
            var candidate = value;
            return Is.defined(candidate) && Range.is(candidate.targetRange) && Is.string(candidate.targetUri)
                && (Range.is(candidate.targetSelectionRange) || Is.undefined(candidate.targetSelectionRange))
                && (Range.is(candidate.originSelectionRange) || Is.undefined(candidate.originSelectionRange));
        }
        LocationLink.is = is;
    })(LocationLink = exports.LocationLink || (exports.LocationLink = {}));
    /**
     * The Color namespace provides helper functions to work with
     * [Color](#Color) literals.
     */
    var Color;
    (function (Color) {
        /**
         * Creates a new Color literal.
         */
        function create(red, green, blue, alpha) {
            return {
                red: red,
                green: green,
                blue: blue,
                alpha: alpha,
            };
        }
        Color.create = create;
        /**
         * Checks whether the given literal conforms to the [Color](#Color) interface.
         */
        function is(value) {
            var candidate = value;
            return Is.number(candidate.red)
                && Is.number(candidate.green)
                && Is.number(candidate.blue)
                && Is.number(candidate.alpha);
        }
        Color.is = is;
    })(Color = exports.Color || (exports.Color = {}));
    /**
     * The ColorInformation namespace provides helper functions to work with
     * [ColorInformation](#ColorInformation) literals.
     */
    var ColorInformation;
    (function (ColorInformation) {
        /**
         * Creates a new ColorInformation literal.
         */
        function create(range, color) {
            return {
                range: range,
                color: color,
            };
        }
        ColorInformation.create = create;
        /**
         * Checks whether the given literal conforms to the [ColorInformation](#ColorInformation) interface.
         */
        function is(value) {
            var candidate = value;
            return Range.is(candidate.range) && Color.is(candidate.color);
        }
        ColorInformation.is = is;
    })(ColorInformation = exports.ColorInformation || (exports.ColorInformation = {}));
    /**
     * The Color namespace provides helper functions to work with
     * [ColorPresentation](#ColorPresentation) literals.
     */
    var ColorPresentation;
    (function (ColorPresentation) {
        /**
         * Creates a new ColorInformation literal.
         */
        function create(label, textEdit, additionalTextEdits) {
            return {
                label: label,
                textEdit: textEdit,
                additionalTextEdits: additionalTextEdits,
            };
        }
        ColorPresentation.create = create;
        /**
         * Checks whether the given literal conforms to the [ColorInformation](#ColorInformation) interface.
         */
        function is(value) {
            var candidate = value;
            return Is.string(candidate.label)
                && (Is.undefined(candidate.textEdit) || TextEdit.is(candidate))
                && (Is.undefined(candidate.additionalTextEdits) || Is.typedArray(candidate.additionalTextEdits, TextEdit.is));
        }
        ColorPresentation.is = is;
    })(ColorPresentation = exports.ColorPresentation || (exports.ColorPresentation = {}));
    /**
     * Enum of known range kinds
     */
    var FoldingRangeKind;
    (function (FoldingRangeKind) {
        /**
         * Folding range for a comment
         */
        FoldingRangeKind["Comment"] = "comment";
        /**
         * Folding range for a imports or includes
         */
        FoldingRangeKind["Imports"] = "imports";
        /**
         * Folding range for a region (e.g. `#region`)
         */
        FoldingRangeKind["Region"] = "region";
    })(FoldingRangeKind = exports.FoldingRangeKind || (exports.FoldingRangeKind = {}));
    /**
     * The folding range namespace provides helper functions to work with
     * [FoldingRange](#FoldingRange) literals.
     */
    var FoldingRange;
    (function (FoldingRange) {
        /**
         * Creates a new FoldingRange literal.
         */
        function create(startLine, endLine, startCharacter, endCharacter, kind) {
            var result = {
                startLine: startLine,
                endLine: endLine
            };
            if (Is.defined(startCharacter)) {
                result.startCharacter = startCharacter;
            }
            if (Is.defined(endCharacter)) {
                result.endCharacter = endCharacter;
            }
            if (Is.defined(kind)) {
                result.kind = kind;
            }
            return result;
        }
        FoldingRange.create = create;
        /**
         * Checks whether the given literal conforms to the [FoldingRange](#FoldingRange) interface.
         */
        function is(value) {
            var candidate = value;
            return Is.number(candidate.startLine) && Is.number(candidate.startLine)
                && (Is.undefined(candidate.startCharacter) || Is.number(candidate.startCharacter))
                && (Is.undefined(candidate.endCharacter) || Is.number(candidate.endCharacter))
                && (Is.undefined(candidate.kind) || Is.string(candidate.kind));
        }
        FoldingRange.is = is;
    })(FoldingRange = exports.FoldingRange || (exports.FoldingRange = {}));
    /**
     * The DiagnosticRelatedInformation namespace provides helper functions to work with
     * [DiagnosticRelatedInformation](#DiagnosticRelatedInformation) literals.
     */
    var DiagnosticRelatedInformation;
    (function (DiagnosticRelatedInformation) {
        /**
         * Creates a new DiagnosticRelatedInformation literal.
         */
        function create(location, message) {
            return {
                location: location,
                message: message
            };
        }
        DiagnosticRelatedInformation.create = create;
        /**
         * Checks whether the given literal conforms to the [DiagnosticRelatedInformation](#DiagnosticRelatedInformation) interface.
         */
        function is(value) {
            var candidate = value;
            return Is.defined(candidate) && Location.is(candidate.location) && Is.string(candidate.message);
        }
        DiagnosticRelatedInformation.is = is;
    })(DiagnosticRelatedInformation = exports.DiagnosticRelatedInformation || (exports.DiagnosticRelatedInformation = {}));
    /**
     * The diagnostic's severity.
     */
    var DiagnosticSeverity;
    (function (DiagnosticSeverity) {
        /**
         * Reports an error.
         */
        DiagnosticSeverity.Error = 1;
        /**
         * Reports a warning.
         */
        DiagnosticSeverity.Warning = 2;
        /**
         * Reports an information.
         */
        DiagnosticSeverity.Information = 3;
        /**
         * Reports a hint.
         */
        DiagnosticSeverity.Hint = 4;
    })(DiagnosticSeverity = exports.DiagnosticSeverity || (exports.DiagnosticSeverity = {}));
    /**
     * The Diagnostic namespace provides helper functions to work with
     * [Diagnostic](#Diagnostic) literals.
     */
    var Diagnostic;
    (function (Diagnostic) {
        /**
         * Creates a new Diagnostic literal.
         */
        function create(range, message, severity, code, source, relatedInformation) {
            var result = { range: range, message: message };
            if (Is.defined(severity)) {
                result.severity = severity;
            }
            if (Is.defined(code)) {
                result.code = code;
            }
            if (Is.defined(source)) {
                result.source = source;
            }
            if (Is.defined(relatedInformation)) {
                result.relatedInformation = relatedInformation;
            }
            return result;
        }
        Diagnostic.create = create;
        /**
         * Checks whether the given literal conforms to the [Diagnostic](#Diagnostic) interface.
         */
        function is(value) {
            var candidate = value;
            return Is.defined(candidate)
                && Range.is(candidate.range)
                && Is.string(candidate.message)
                && (Is.number(candidate.severity) || Is.undefined(candidate.severity))
                && (Is.number(candidate.code) || Is.string(candidate.code) || Is.undefined(candidate.code))
                && (Is.string(candidate.source) || Is.undefined(candidate.source))
                && (Is.undefined(candidate.relatedInformation) || Is.typedArray(candidate.relatedInformation, DiagnosticRelatedInformation.is));
        }
        Diagnostic.is = is;
    })(Diagnostic = exports.Diagnostic || (exports.Diagnostic = {}));
    /**
     * The Command namespace provides helper functions to work with
     * [Command](#Command) literals.
     */
    var Command;
    (function (Command) {
        /**
         * Creates a new Command literal.
         */
        function create(title, command) {
            var args = [];
            for (var _i = 2; _i < arguments.length; _i++) {
                args[_i - 2] = arguments[_i];
            }
            var result = { title: title, command: command };
            if (Is.defined(args) && args.length > 0) {
                result.arguments = args;
            }
            return result;
        }
        Command.create = create;
        /**
         * Checks whether the given literal conforms to the [Command](#Command) interface.
         */
        function is(value) {
            var candidate = value;
            return Is.defined(candidate) && Is.string(candidate.title) && Is.string(candidate.command);
        }
        Command.is = is;
    })(Command = exports.Command || (exports.Command = {}));
    /**
     * The TextEdit namespace provides helper function to create replace,
     * insert and delete edits more easily.
     */
    var TextEdit;
    (function (TextEdit) {
        /**
         * Creates a replace text edit.
         * @param range The range of text to be replaced.
         * @param newText The new text.
         */
        function replace(range, newText) {
            return { range: range, newText: newText };
        }
        TextEdit.replace = replace;
        /**
         * Creates a insert text edit.
         * @param position The position to insert the text at.
         * @param newText The text to be inserted.
         */
        function insert(position, newText) {
            return { range: { start: position, end: position }, newText: newText };
        }
        TextEdit.insert = insert;
        /**
         * Creates a delete text edit.
         * @param range The range of text to be deleted.
         */
        function del(range) {
            return { range: range, newText: '' };
        }
        TextEdit.del = del;
        function is(value) {
            var candidate = value;
            return Is.objectLiteral(candidate)
                && Is.string(candidate.newText)
                && Range.is(candidate.range);
        }
        TextEdit.is = is;
    })(TextEdit = exports.TextEdit || (exports.TextEdit = {}));
    /**
     * The TextDocumentEdit namespace provides helper function to create
     * an edit that manipulates a text document.
     */
    var TextDocumentEdit;
    (function (TextDocumentEdit) {
        /**
         * Creates a new `TextDocumentEdit`
         */
        function create(textDocument, edits) {
            return { textDocument: textDocument, edits: edits };
        }
        TextDocumentEdit.create = create;
        function is(value) {
            var candidate = value;
            return Is.defined(candidate)
                && VersionedTextDocumentIdentifier.is(candidate.textDocument)
                && Array.isArray(candidate.edits);
        }
        TextDocumentEdit.is = is;
    })(TextDocumentEdit = exports.TextDocumentEdit || (exports.TextDocumentEdit = {}));
    var CreateFile;
    (function (CreateFile) {
        function create(uri, options) {
            var result = {
                kind: 'create',
                uri: uri
            };
            if (options !== void 0 && (options.overwrite !== void 0 || options.ignoreIfExists !== void 0)) {
                result.options = options;
            }
            return result;
        }
        CreateFile.create = create;
        function is(value) {
            var candidate = value;
            return candidate && candidate.kind === 'create' && Is.string(candidate.uri) &&
                (candidate.options === void 0 ||
                    ((candidate.options.overwrite === void 0 || Is.boolean(candidate.options.overwrite)) && (candidate.options.ignoreIfExists === void 0 || Is.boolean(candidate.options.ignoreIfExists))));
        }
        CreateFile.is = is;
    })(CreateFile = exports.CreateFile || (exports.CreateFile = {}));
    var RenameFile;
    (function (RenameFile) {
        function create(oldUri, newUri, options) {
            var result = {
                kind: 'rename',
                oldUri: oldUri,
                newUri: newUri
            };
            if (options !== void 0 && (options.overwrite !== void 0 || options.ignoreIfExists !== void 0)) {
                result.options = options;
            }
            return result;
        }
        RenameFile.create = create;
        function is(value) {
            var candidate = value;
            return candidate && candidate.kind === 'rename' && Is.string(candidate.oldUri) && Is.string(candidate.newUri) &&
                (candidate.options === void 0 ||
                    ((candidate.options.overwrite === void 0 || Is.boolean(candidate.options.overwrite)) && (candidate.options.ignoreIfExists === void 0 || Is.boolean(candidate.options.ignoreIfExists))));
        }
        RenameFile.is = is;
    })(RenameFile = exports.RenameFile || (exports.RenameFile = {}));
    var DeleteFile;
    (function (DeleteFile) {
        function create(uri, options) {
            var result = {
                kind: 'delete',
                uri: uri
            };
            if (options !== void 0 && (options.recursive !== void 0 || options.ignoreIfNotExists !== void 0)) {
                result.options = options;
            }
            return result;
        }
        DeleteFile.create = create;
        function is(value) {
            var candidate = value;
            return candidate && candidate.kind === 'delete' && Is.string(candidate.uri) &&
                (candidate.options === void 0 ||
                    ((candidate.options.recursive === void 0 || Is.boolean(candidate.options.recursive)) && (candidate.options.ignoreIfNotExists === void 0 || Is.boolean(candidate.options.ignoreIfNotExists))));
        }
        DeleteFile.is = is;
    })(DeleteFile = exports.DeleteFile || (exports.DeleteFile = {}));
    var WorkspaceEdit;
    (function (WorkspaceEdit) {
        function is(value) {
            var candidate = value;
            return candidate &&
                (candidate.changes !== void 0 || candidate.documentChanges !== void 0) &&
                (candidate.documentChanges === void 0 || candidate.documentChanges.every(function (change) {
                    if (Is.string(change.kind)) {
                        return CreateFile.is(change) || RenameFile.is(change) || DeleteFile.is(change);
                    }
                    else {
                        return TextDocumentEdit.is(change);
                    }
                }));
        }
        WorkspaceEdit.is = is;
    })(WorkspaceEdit = exports.WorkspaceEdit || (exports.WorkspaceEdit = {}));
    var TextEditChangeImpl = /** @class */ (function () {
        function TextEditChangeImpl(edits) {
            this.edits = edits;
        }
        TextEditChangeImpl.prototype.insert = function (position, newText) {
            this.edits.push(TextEdit.insert(position, newText));
        };
        TextEditChangeImpl.prototype.replace = function (range, newText) {
            this.edits.push(TextEdit.replace(range, newText));
        };
        TextEditChangeImpl.prototype.delete = function (range) {
            this.edits.push(TextEdit.del(range));
        };
        TextEditChangeImpl.prototype.add = function (edit) {
            this.edits.push(edit);
        };
        TextEditChangeImpl.prototype.all = function () {
            return this.edits;
        };
        TextEditChangeImpl.prototype.clear = function () {
            this.edits.splice(0, this.edits.length);
        };
        return TextEditChangeImpl;
    }());
    /**
     * A workspace change helps constructing changes to a workspace.
     */
    var WorkspaceChange = /** @class */ (function () {
        function WorkspaceChange(workspaceEdit) {
            var _this = this;
            this._textEditChanges = Object.create(null);
            if (workspaceEdit) {
                this._workspaceEdit = workspaceEdit;
                if (workspaceEdit.documentChanges) {
                    workspaceEdit.documentChanges.forEach(function (change) {
                        if (TextDocumentEdit.is(change)) {
                            var textEditChange = new TextEditChangeImpl(change.edits);
                            _this._textEditChanges[change.textDocument.uri] = textEditChange;
                        }
                    });
                }
                else if (workspaceEdit.changes) {
                    Object.keys(workspaceEdit.changes).forEach(function (key) {
                        var textEditChange = new TextEditChangeImpl(workspaceEdit.changes[key]);
                        _this._textEditChanges[key] = textEditChange;
                    });
                }
            }
        }
        Object.defineProperty(WorkspaceChange.prototype, "edit", {
            /**
             * Returns the underlying [WorkspaceEdit](#WorkspaceEdit) literal
             * use to be returned from a workspace edit operation like rename.
             */
            get: function () {
                return this._workspaceEdit;
            },
            enumerable: true,
            configurable: true
        });
        WorkspaceChange.prototype.getTextEditChange = function (key) {
            if (VersionedTextDocumentIdentifier.is(key)) {
                if (!this._workspaceEdit) {
                    this._workspaceEdit = {
                        documentChanges: []
                    };
                }
                if (!this._workspaceEdit.documentChanges) {
                    throw new Error('Workspace edit is not configured for document changes.');
                }
                var textDocument = key;
                var result = this._textEditChanges[textDocument.uri];
                if (!result) {
                    var edits = [];
                    var textDocumentEdit = {
                        textDocument: textDocument,
                        edits: edits
                    };
                    this._workspaceEdit.documentChanges.push(textDocumentEdit);
                    result = new TextEditChangeImpl(edits);
                    this._textEditChanges[textDocument.uri] = result;
                }
                return result;
            }
            else {
                if (!this._workspaceEdit) {
                    this._workspaceEdit = {
                        changes: Object.create(null)
                    };
                }
                if (!this._workspaceEdit.changes) {
                    throw new Error('Workspace edit is not configured for normal text edit changes.');
                }
                var result = this._textEditChanges[key];
                if (!result) {
                    var edits = [];
                    this._workspaceEdit.changes[key] = edits;
                    result = new TextEditChangeImpl(edits);
                    this._textEditChanges[key] = result;
                }
                return result;
            }
        };
        WorkspaceChange.prototype.createFile = function (uri, options) {
            this.checkDocumentChanges();
            this._workspaceEdit.documentChanges.push(CreateFile.create(uri, options));
        };
        WorkspaceChange.prototype.renameFile = function (oldUri, newUri, options) {
            this.checkDocumentChanges();
            this._workspaceEdit.documentChanges.push(RenameFile.create(oldUri, newUri, options));
        };
        WorkspaceChange.prototype.deleteFile = function (uri, options) {
            this.checkDocumentChanges();
            this._workspaceEdit.documentChanges.push(DeleteFile.create(uri, options));
        };
        WorkspaceChange.prototype.checkDocumentChanges = function () {
            if (!this._workspaceEdit || !this._workspaceEdit.documentChanges) {
                throw new Error('Workspace edit is not configured for document changes.');
            }
        };
        return WorkspaceChange;
    }());
    exports.WorkspaceChange = WorkspaceChange;
    /**
     * The TextDocumentIdentifier namespace provides helper functions to work with
     * [TextDocumentIdentifier](#TextDocumentIdentifier) literals.
     */
    var TextDocumentIdentifier;
    (function (TextDocumentIdentifier) {
        /**
         * Creates a new TextDocumentIdentifier literal.
         * @param uri The document's uri.
         */
        function create(uri) {
            return { uri: uri };
        }
        TextDocumentIdentifier.create = create;
        /**
         * Checks whether the given literal conforms to the [TextDocumentIdentifier](#TextDocumentIdentifier) interface.
         */
        function is(value) {
            var candidate = value;
            return Is.defined(candidate) && Is.string(candidate.uri);
        }
        TextDocumentIdentifier.is = is;
    })(TextDocumentIdentifier = exports.TextDocumentIdentifier || (exports.TextDocumentIdentifier = {}));
    /**
     * The VersionedTextDocumentIdentifier namespace provides helper functions to work with
     * [VersionedTextDocumentIdentifier](#VersionedTextDocumentIdentifier) literals.
     */
    var VersionedTextDocumentIdentifier;
    (function (VersionedTextDocumentIdentifier) {
        /**
         * Creates a new VersionedTextDocumentIdentifier literal.
         * @param uri The document's uri.
         * @param uri The document's text.
         */
        function create(uri, version) {
            return { uri: uri, version: version };
        }
        VersionedTextDocumentIdentifier.create = create;
        /**
         * Checks whether the given literal conforms to the [VersionedTextDocumentIdentifier](#VersionedTextDocumentIdentifier) interface.
         */
        function is(value) {
            var candidate = value;
            return Is.defined(candidate) && Is.string(candidate.uri) && (candidate.version === null || Is.number(candidate.version));
        }
        VersionedTextDocumentIdentifier.is = is;
    })(VersionedTextDocumentIdentifier = exports.VersionedTextDocumentIdentifier || (exports.VersionedTextDocumentIdentifier = {}));
    /**
     * The TextDocumentItem namespace provides helper functions to work with
     * [TextDocumentItem](#TextDocumentItem) literals.
     */
    var TextDocumentItem;
    (function (TextDocumentItem) {
        /**
         * Creates a new TextDocumentItem literal.
         * @param uri The document's uri.
         * @param languageId The document's language identifier.
         * @param version The document's version number.
         * @param text The document's text.
         */
        function create(uri, languageId, version, text) {
            return { uri: uri, languageId: languageId, version: version, text: text };
        }
        TextDocumentItem.create = create;
        /**
         * Checks whether the given literal conforms to the [TextDocumentItem](#TextDocumentItem) interface.
         */
        function is(value) {
            var candidate = value;
            return Is.defined(candidate) && Is.string(candidate.uri) && Is.string(candidate.languageId) && Is.number(candidate.version) && Is.string(candidate.text);
        }
        TextDocumentItem.is = is;
    })(TextDocumentItem = exports.TextDocumentItem || (exports.TextDocumentItem = {}));
    /**
     * Describes the content type that a client supports in various
     * result literals like `Hover`, `ParameterInfo` or `CompletionItem`.
     *
     * Please note that `MarkupKinds` must not start with a `$`. This kinds
     * are reserved for internal usage.
     */
    var MarkupKind;
    (function (MarkupKind) {
        /**
         * Plain text is supported as a content format
         */
        MarkupKind.PlainText = 'plaintext';
        /**
         * Markdown is supported as a content format
         */
        MarkupKind.Markdown = 'markdown';
    })(MarkupKind = exports.MarkupKind || (exports.MarkupKind = {}));
    (function (MarkupKind) {
        /**
         * Checks whether the given value is a value of the [MarkupKind](#MarkupKind) type.
         */
        function is(value) {
            var candidate = value;
            return candidate === MarkupKind.PlainText || candidate === MarkupKind.Markdown;
        }
        MarkupKind.is = is;
    })(MarkupKind = exports.MarkupKind || (exports.MarkupKind = {}));
    var MarkupContent;
    (function (MarkupContent) {
        /**
         * Checks whether the given value conforms to the [MarkupContent](#MarkupContent) interface.
         */
        function is(value) {
            var candidate = value;
            return Is.objectLiteral(value) && MarkupKind.is(candidate.kind) && Is.string(candidate.value);
        }
        MarkupContent.is = is;
    })(MarkupContent = exports.MarkupContent || (exports.MarkupContent = {}));
    /**
     * The kind of a completion entry.
     */
    var CompletionItemKind;
    (function (CompletionItemKind) {
        CompletionItemKind.Text = 1;
        CompletionItemKind.Method = 2;
        CompletionItemKind.Function = 3;
        CompletionItemKind.Constructor = 4;
        CompletionItemKind.Field = 5;
        CompletionItemKind.Variable = 6;
        CompletionItemKind.Class = 7;
        CompletionItemKind.Interface = 8;
        CompletionItemKind.Module = 9;
        CompletionItemKind.Property = 10;
        CompletionItemKind.Unit = 11;
        CompletionItemKind.Value = 12;
        CompletionItemKind.Enum = 13;
        CompletionItemKind.Keyword = 14;
        CompletionItemKind.Snippet = 15;
        CompletionItemKind.Color = 16;
        CompletionItemKind.File = 17;
        CompletionItemKind.Reference = 18;
        CompletionItemKind.Folder = 19;
        CompletionItemKind.EnumMember = 20;
        CompletionItemKind.Constant = 21;
        CompletionItemKind.Struct = 22;
        CompletionItemKind.Event = 23;
        CompletionItemKind.Operator = 24;
        CompletionItemKind.TypeParameter = 25;
    })(CompletionItemKind = exports.CompletionItemKind || (exports.CompletionItemKind = {}));
    /**
     * Defines whether the insert text in a completion item should be interpreted as
     * plain text or a snippet.
     */
    var InsertTextFormat;
    (function (InsertTextFormat) {
        /**
         * The primary text to be inserted is treated as a plain string.
         */
        InsertTextFormat.PlainText = 1;
        /**
         * The primary text to be inserted is treated as a snippet.
         *
         * A snippet can define tab stops and placeholders with `$1`, `$2`
         * and `${3:foo}`. `$0` defines the final tab stop, it defaults to
         * the end of the snippet. Placeholders with equal identifiers are linked,
         * that is typing in one will update others too.
         *
         * See also: https://github.com/Microsoft/vscode/blob/master/src/vs/editor/contrib/snippet/common/snippet.md
         */
        InsertTextFormat.Snippet = 2;
    })(InsertTextFormat = exports.InsertTextFormat || (exports.InsertTextFormat = {}));
    /**
     * The CompletionItem namespace provides functions to deal with
     * completion items.
     */
    var CompletionItem;
    (function (CompletionItem) {
        /**
         * Create a completion item and seed it with a label.
         * @param label The completion item's label
         */
        function create(label) {
            return { label: label };
        }
        CompletionItem.create = create;
    })(CompletionItem = exports.CompletionItem || (exports.CompletionItem = {}));
    /**
     * The CompletionList namespace provides functions to deal with
     * completion lists.
     */
    var CompletionList;
    (function (CompletionList) {
        /**
         * Creates a new completion list.
         *
         * @param items The completion items.
         * @param isIncomplete The list is not complete.
         */
        function create(items, isIncomplete) {
            return { items: items ? items : [], isIncomplete: !!isIncomplete };
        }
        CompletionList.create = create;
    })(CompletionList = exports.CompletionList || (exports.CompletionList = {}));
    var MarkedString;
    (function (MarkedString) {
        /**
         * Creates a marked string from plain text.
         *
         * @param plainText The plain text.
         */
        function fromPlainText(plainText) {
            return plainText.replace(/[\\`*_{}[\]()#+\-.!]/g, "\\$&"); // escape markdown syntax tokens: http://daringfireball.net/projects/markdown/syntax#backslash
        }
        MarkedString.fromPlainText = fromPlainText;
        /**
         * Checks whether the given value conforms to the [MarkedString](#MarkedString) type.
         */
        function is(value) {
            var candidate = value;
            return Is.string(candidate) || (Is.objectLiteral(candidate) && Is.string(candidate.language) && Is.string(candidate.value));
        }
        MarkedString.is = is;
    })(MarkedString = exports.MarkedString || (exports.MarkedString = {}));
    var Hover;
    (function (Hover) {
        /**
         * Checks whether the given value conforms to the [Hover](#Hover) interface.
         */
        function is(value) {
            var candidate = value;
            return !!candidate && Is.objectLiteral(candidate) && (MarkupContent.is(candidate.contents) ||
                MarkedString.is(candidate.contents) ||
                Is.typedArray(candidate.contents, MarkedString.is)) && (value.range === void 0 || Range.is(value.range));
        }
        Hover.is = is;
    })(Hover = exports.Hover || (exports.Hover = {}));
    /**
     * The ParameterInformation namespace provides helper functions to work with
     * [ParameterInformation](#ParameterInformation) literals.
     */
    var ParameterInformation;
    (function (ParameterInformation) {
        /**
         * Creates a new parameter information literal.
         *
         * @param label A label string.
         * @param documentation A doc string.
         */
        function create(label, documentation) {
            return documentation ? { label: label, documentation: documentation } : { label: label };
        }
        ParameterInformation.create = create;
        ;
    })(ParameterInformation = exports.ParameterInformation || (exports.ParameterInformation = {}));
    /**
     * The SignatureInformation namespace provides helper functions to work with
     * [SignatureInformation](#SignatureInformation) literals.
     */
    var SignatureInformation;
    (function (SignatureInformation) {
        function create(label, documentation) {
            var parameters = [];
            for (var _i = 2; _i < arguments.length; _i++) {
                parameters[_i - 2] = arguments[_i];
            }
            var result = { label: label };
            if (Is.defined(documentation)) {
                result.documentation = documentation;
            }
            if (Is.defined(parameters)) {
                result.parameters = parameters;
            }
            else {
                result.parameters = [];
            }
            return result;
        }
        SignatureInformation.create = create;
    })(SignatureInformation = exports.SignatureInformation || (exports.SignatureInformation = {}));
    /**
     * A document highlight kind.
     */
    var DocumentHighlightKind;
    (function (DocumentHighlightKind) {
        /**
         * A textual occurrence.
         */
        DocumentHighlightKind.Text = 1;
        /**
         * Read-access of a symbol, like reading a variable.
         */
        DocumentHighlightKind.Read = 2;
        /**
         * Write-access of a symbol, like writing to a variable.
         */
        DocumentHighlightKind.Write = 3;
    })(DocumentHighlightKind = exports.DocumentHighlightKind || (exports.DocumentHighlightKind = {}));
    /**
     * DocumentHighlight namespace to provide helper functions to work with
     * [DocumentHighlight](#DocumentHighlight) literals.
     */
    var DocumentHighlight;
    (function (DocumentHighlight) {
        /**
         * Create a DocumentHighlight object.
         * @param range The range the highlight applies to.
         */
        function create(range, kind) {
            var result = { range: range };
            if (Is.number(kind)) {
                result.kind = kind;
            }
            return result;
        }
        DocumentHighlight.create = create;
    })(DocumentHighlight = exports.DocumentHighlight || (exports.DocumentHighlight = {}));
    /**
     * A symbol kind.
     */
    var SymbolKind;
    (function (SymbolKind) {
        SymbolKind.File = 1;
        SymbolKind.Module = 2;
        SymbolKind.Namespace = 3;
        SymbolKind.Package = 4;
        SymbolKind.Class = 5;
        SymbolKind.Method = 6;
        SymbolKind.Property = 7;
        SymbolKind.Field = 8;
        SymbolKind.Constructor = 9;
        SymbolKind.Enum = 10;
        SymbolKind.Interface = 11;
        SymbolKind.Function = 12;
        SymbolKind.Variable = 13;
        SymbolKind.Constant = 14;
        SymbolKind.String = 15;
        SymbolKind.Number = 16;
        SymbolKind.Boolean = 17;
        SymbolKind.Array = 18;
        SymbolKind.Object = 19;
        SymbolKind.Key = 20;
        SymbolKind.Null = 21;
        SymbolKind.EnumMember = 22;
        SymbolKind.Struct = 23;
        SymbolKind.Event = 24;
        SymbolKind.Operator = 25;
        SymbolKind.TypeParameter = 26;
    })(SymbolKind = exports.SymbolKind || (exports.SymbolKind = {}));
    var SymbolInformation;
    (function (SymbolInformation) {
        /**
         * Creates a new symbol information literal.
         *
         * @param name The name of the symbol.
         * @param kind The kind of the symbol.
         * @param range The range of the location of the symbol.
         * @param uri The resource of the location of symbol, defaults to the current document.
         * @param containerName The name of the symbol containing the symbol.
         */
        function create(name, kind, range, uri, containerName) {
            var result = {
                name: name,
                kind: kind,
                location: { uri: uri, range: range }
            };
            if (containerName) {
                result.containerName = containerName;
            }
            return result;
        }
        SymbolInformation.create = create;
    })(SymbolInformation = exports.SymbolInformation || (exports.SymbolInformation = {}));
    /**
     * Represents programming constructs like variables, classes, interfaces etc.
     * that appear in a document. Document symbols can be hierarchical and they
     * have two ranges: one that encloses its definition and one that points to
     * its most interesting range, e.g. the range of an identifier.
     */
    var DocumentSymbol = /** @class */ (function () {
        function DocumentSymbol() {
        }
        return DocumentSymbol;
    }());
    exports.DocumentSymbol = DocumentSymbol;
    (function (DocumentSymbol) {
        /**
         * Creates a new symbol information literal.
         *
         * @param name The name of the symbol.
         * @param detail The detail of the symbol.
         * @param kind The kind of the symbol.
         * @param range The range of the symbol.
         * @param selectionRange The selectionRange of the symbol.
         * @param children Children of the symbol.
         */
        function create(name, detail, kind, range, selectionRange, children) {
            var result = {
                name: name,
                detail: detail,
                kind: kind,
                range: range,
                selectionRange: selectionRange
            };
            if (children !== void 0) {
                result.children = children;
            }
            return result;
        }
        DocumentSymbol.create = create;
        /**
         * Checks whether the given literal conforms to the [DocumentSymbol](#DocumentSymbol) interface.
         */
        function is(value) {
            var candidate = value;
            return candidate &&
                Is.string(candidate.name) && Is.number(candidate.kind) &&
                Range.is(candidate.range) && Range.is(candidate.selectionRange) &&
                (candidate.detail === void 0 || Is.string(candidate.detail)) &&
                (candidate.deprecated === void 0 || Is.boolean(candidate.deprecated)) &&
                (candidate.children === void 0 || Array.isArray(candidate.children));
        }
        DocumentSymbol.is = is;
    })(DocumentSymbol = exports.DocumentSymbol || (exports.DocumentSymbol = {}));
    exports.DocumentSymbol = DocumentSymbol;
    /**
     * A set of predefined code action kinds
     */
    var CodeActionKind;
    (function (CodeActionKind) {
        /**
         * Base kind for quickfix actions: 'quickfix'
         */
        CodeActionKind.QuickFix = 'quickfix';
        /**
         * Base kind for refactoring actions: 'refactor'
         */
        CodeActionKind.Refactor = 'refactor';
        /**
         * Base kind for refactoring extraction actions: 'refactor.extract'
         *
         * Example extract actions:
         *
         * - Extract method
         * - Extract function
         * - Extract variable
         * - Extract interface from class
         * - ...
         */
        CodeActionKind.RefactorExtract = 'refactor.extract';
        /**
         * Base kind for refactoring inline actions: 'refactor.inline'
         *
         * Example inline actions:
         *
         * - Inline function
         * - Inline variable
         * - Inline constant
         * - ...
         */
        CodeActionKind.RefactorInline = 'refactor.inline';
        /**
         * Base kind for refactoring rewrite actions: 'refactor.rewrite'
         *
         * Example rewrite actions:
         *
         * - Convert JavaScript function to class
         * - Add or remove parameter
         * - Encapsulate field
         * - Make method static
         * - Move method to base class
         * - ...
         */
        CodeActionKind.RefactorRewrite = 'refactor.rewrite';
        /**
         * Base kind for source actions: `source`
         *
         * Source code actions apply to the entire file.
         */
        CodeActionKind.Source = 'source';
        /**
         * Base kind for an organize imports source action: `source.organizeImports`
         */
        CodeActionKind.SourceOrganizeImports = 'source.organizeImports';
    })(CodeActionKind = exports.CodeActionKind || (exports.CodeActionKind = {}));
    /**
     * The CodeActionContext namespace provides helper functions to work with
     * [CodeActionContext](#CodeActionContext) literals.
     */
    var CodeActionContext;
    (function (CodeActionContext) {
        /**
         * Creates a new CodeActionContext literal.
         */
        function create(diagnostics, only) {
            var result = { diagnostics: diagnostics };
            if (only !== void 0 && only !== null) {
                result.only = only;
            }
            return result;
        }
        CodeActionContext.create = create;
        /**
         * Checks whether the given literal conforms to the [CodeActionContext](#CodeActionContext) interface.
         */
        function is(value) {
            var candidate = value;
            return Is.defined(candidate) && Is.typedArray(candidate.diagnostics, Diagnostic.is) && (candidate.only === void 0 || Is.typedArray(candidate.only, Is.string));
        }
        CodeActionContext.is = is;
    })(CodeActionContext = exports.CodeActionContext || (exports.CodeActionContext = {}));
    var CodeAction;
    (function (CodeAction) {
        function create(title, commandOrEdit, kind) {
            var result = { title: title };
            if (Command.is(commandOrEdit)) {
                result.command = commandOrEdit;
            }
            else {
                result.edit = commandOrEdit;
            }
            if (kind !== void null) {
                result.kind = kind;
            }
            return result;
        }
        CodeAction.create = create;
        function is(value) {
            var candidate = value;
            return candidate && Is.string(candidate.title) &&
                (candidate.diagnostics === void 0 || Is.typedArray(candidate.diagnostics, Diagnostic.is)) &&
                (candidate.kind === void 0 || Is.string(candidate.kind)) &&
                (candidate.edit !== void 0 || candidate.command !== void 0) &&
                (candidate.command === void 0 || Command.is(candidate.command)) &&
                (candidate.edit === void 0 || WorkspaceEdit.is(candidate.edit));
        }
        CodeAction.is = is;
    })(CodeAction = exports.CodeAction || (exports.CodeAction = {}));
    /**
     * The CodeLens namespace provides helper functions to work with
     * [CodeLens](#CodeLens) literals.
     */
    var CodeLens;
    (function (CodeLens) {
        /**
         * Creates a new CodeLens literal.
         */
        function create(range, data) {
            var result = { range: range };
            if (Is.defined(data))
                result.data = data;
            return result;
        }
        CodeLens.create = create;
        /**
         * Checks whether the given literal conforms to the [CodeLens](#CodeLens) interface.
         */
        function is(value) {
            var candidate = value;
            return Is.defined(candidate) && Range.is(candidate.range) && (Is.undefined(candidate.command) || Command.is(candidate.command));
        }
        CodeLens.is = is;
    })(CodeLens = exports.CodeLens || (exports.CodeLens = {}));
    /**
     * The FormattingOptions namespace provides helper functions to work with
     * [FormattingOptions](#FormattingOptions) literals.
     */
    var FormattingOptions;
    (function (FormattingOptions) {
        /**
         * Creates a new FormattingOptions literal.
         */
        function create(tabSize, insertSpaces) {
            return { tabSize: tabSize, insertSpaces: insertSpaces };
        }
        FormattingOptions.create = create;
        /**
         * Checks whether the given literal conforms to the [FormattingOptions](#FormattingOptions) interface.
         */
        function is(value) {
            var candidate = value;
            return Is.defined(candidate) && Is.number(candidate.tabSize) && Is.boolean(candidate.insertSpaces);
        }
        FormattingOptions.is = is;
    })(FormattingOptions = exports.FormattingOptions || (exports.FormattingOptions = {}));
    /**
     * A document link is a range in a text document that links to an internal or external resource, like another
     * text document or a web site.
     */
    var DocumentLink = /** @class */ (function () {
        function DocumentLink() {
        }
        return DocumentLink;
    }());
    exports.DocumentLink = DocumentLink;
    /**
     * The DocumentLink namespace provides helper functions to work with
     * [DocumentLink](#DocumentLink) literals.
     */
    (function (DocumentLink) {
        /**
         * Creates a new DocumentLink literal.
         */
        function create(range, target, data) {
            return { range: range, target: target, data: data };
        }
        DocumentLink.create = create;
        /**
         * Checks whether the given literal conforms to the [DocumentLink](#DocumentLink) interface.
         */
        function is(value) {
            var candidate = value;
            return Is.defined(candidate) && Range.is(candidate.range) && (Is.undefined(candidate.target) || Is.string(candidate.target));
        }
        DocumentLink.is = is;
    })(DocumentLink = exports.DocumentLink || (exports.DocumentLink = {}));
    exports.DocumentLink = DocumentLink;
    exports.EOL = ['\n', '\r\n', '\r'];
    var TextDocument;
    (function (TextDocument) {
        /**
         * Creates a new ITextDocument literal from the given uri and content.
         * @param uri The document's uri.
         * @param languageId  The document's language Id.
         * @param content The document's content.
         */
        function create(uri, languageId, version, content) {
            return new FullTextDocument(uri, languageId, version, content);
        }
        TextDocument.create = create;
        /**
         * Checks whether the given literal conforms to the [ITextDocument](#ITextDocument) interface.
         */
        function is(value) {
            var candidate = value;
            return Is.defined(candidate) && Is.string(candidate.uri) && (Is.undefined(candidate.languageId) || Is.string(candidate.languageId)) && Is.number(candidate.lineCount)
                && Is.func(candidate.getText) && Is.func(candidate.positionAt) && Is.func(candidate.offsetAt) ? true : false;
        }
        TextDocument.is = is;
        function applyEdits(document, edits) {
            var text = document.getText();
            var sortedEdits = mergeSort(edits, function (a, b) {
                var diff = a.range.start.line - b.range.start.line;
                if (diff === 0) {
                    return a.range.start.character - b.range.start.character;
                }
                return diff;
            });
            var lastModifiedOffset = text.length;
            for (var i = sortedEdits.length - 1; i >= 0; i--) {
                var e = sortedEdits[i];
                var startOffset = document.offsetAt(e.range.start);
                var endOffset = document.offsetAt(e.range.end);
                if (endOffset <= lastModifiedOffset) {
                    text = text.substring(0, startOffset) + e.newText + text.substring(endOffset, text.length);
                }
                else {
                    throw new Error('Overlapping edit');
                }
                lastModifiedOffset = startOffset;
            }
            return text;
        }
        TextDocument.applyEdits = applyEdits;
        function mergeSort(data, compare) {
            if (data.length <= 1) {
                // sorted
                return data;
            }
            var p = (data.length / 2) | 0;
            var left = data.slice(0, p);
            var right = data.slice(p);
            mergeSort(left, compare);
            mergeSort(right, compare);
            var leftIdx = 0;
            var rightIdx = 0;
            var i = 0;
            while (leftIdx < left.length && rightIdx < right.length) {
                var ret = compare(left[leftIdx], right[rightIdx]);
                if (ret <= 0) {
                    // smaller_equal -> take left to preserve order
                    data[i++] = left[leftIdx++];
                }
                else {
                    // greater -> take right
                    data[i++] = right[rightIdx++];
                }
            }
            while (leftIdx < left.length) {
                data[i++] = left[leftIdx++];
            }
            while (rightIdx < right.length) {
                data[i++] = right[rightIdx++];
            }
            return data;
        }
    })(TextDocument = exports.TextDocument || (exports.TextDocument = {}));
    /**
     * Represents reasons why a text document is saved.
     */
    var TextDocumentSaveReason;
    (function (TextDocumentSaveReason) {
        /**
         * Manually triggered, e.g. by the user pressing save, by starting debugging,
         * or by an API call.
         */
        TextDocumentSaveReason.Manual = 1;
        /**
         * Automatic after a delay.
         */
        TextDocumentSaveReason.AfterDelay = 2;
        /**
         * When the editor lost focus.
         */
        TextDocumentSaveReason.FocusOut = 3;
    })(TextDocumentSaveReason = exports.TextDocumentSaveReason || (exports.TextDocumentSaveReason = {}));
    var FullTextDocument = /** @class */ (function () {
        function FullTextDocument(uri, languageId, version, content) {
            this._uri = uri;
            this._languageId = languageId;
            this._version = version;
            this._content = content;
            this._lineOffsets = null;
        }
        Object.defineProperty(FullTextDocument.prototype, "uri", {
            get: function () {
                return this._uri;
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(FullTextDocument.prototype, "languageId", {
            get: function () {
                return this._languageId;
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(FullTextDocument.prototype, "version", {
            get: function () {
                return this._version;
            },
            enumerable: true,
            configurable: true
        });
        FullTextDocument.prototype.getText = function (range) {
            if (range) {
                var start = this.offsetAt(range.start);
                var end = this.offsetAt(range.end);
                return this._content.substring(start, end);
            }
            return this._content;
        };
        FullTextDocument.prototype.update = function (event, version) {
            this._content = event.text;
            this._version = version;
            this._lineOffsets = null;
        };
        FullTextDocument.prototype.getLineOffsets = function () {
            if (this._lineOffsets === null) {
                var lineOffsets = [];
                var text = this._content;
                var isLineStart = true;
                for (var i = 0; i < text.length; i++) {
                    if (isLineStart) {
                        lineOffsets.push(i);
                        isLineStart = false;
                    }
                    var ch = text.charAt(i);
                    isLineStart = (ch === '\r' || ch === '\n');
                    if (ch === '\r' && i + 1 < text.length && text.charAt(i + 1) === '\n') {
                        i++;
                    }
                }
                if (isLineStart && text.length > 0) {
                    lineOffsets.push(text.length);
                }
                this._lineOffsets = lineOffsets;
            }
            return this._lineOffsets;
        };
        FullTextDocument.prototype.positionAt = function (offset) {
            offset = Math.max(Math.min(offset, this._content.length), 0);
            var lineOffsets = this.getLineOffsets();
            var low = 0, high = lineOffsets.length;
            if (high === 0) {
                return Position.create(0, offset);
            }
            while (low < high) {
                var mid = Math.floor((low + high) / 2);
                if (lineOffsets[mid] > offset) {
                    high = mid;
                }
                else {
                    low = mid + 1;
                }
            }
            // low is the least x for which the line offset is larger than the current offset
            // or array.length if no line offset is larger than the current offset
            var line = low - 1;
            return Position.create(line, offset - lineOffsets[line]);
        };
        FullTextDocument.prototype.offsetAt = function (position) {
            var lineOffsets = this.getLineOffsets();
            if (position.line >= lineOffsets.length) {
                return this._content.length;
            }
            else if (position.line < 0) {
                return 0;
            }
            var lineOffset = lineOffsets[position.line];
            var nextLineOffset = (position.line + 1 < lineOffsets.length) ? lineOffsets[position.line + 1] : this._content.length;
            return Math.max(Math.min(lineOffset + position.character, nextLineOffset), lineOffset);
        };
        Object.defineProperty(FullTextDocument.prototype, "lineCount", {
            get: function () {
                return this.getLineOffsets().length;
            },
            enumerable: true,
            configurable: true
        });
        return FullTextDocument;
    }());
    var Is;
    (function (Is) {
        var toString = Object.prototype.toString;
        function defined(value) {
            return typeof value !== 'undefined';
        }
        Is.defined = defined;
        function undefined(value) {
            return typeof value === 'undefined';
        }
        Is.undefined = undefined;
        function boolean(value) {
            return value === true || value === false;
        }
        Is.boolean = boolean;
        function string(value) {
            return toString.call(value) === '[object String]';
        }
        Is.string = string;
        function number(value) {
            return toString.call(value) === '[object Number]';
        }
        Is.number = number;
        function func(value) {
            return toString.call(value) === '[object Function]';
        }
        Is.func = func;
        function objectLiteral(value) {
            // Strictly speaking class instances pass this check as well. Since the LSP
            // doesn't use classes we ignore this for now. If we do we need to add something
            // like this: `Object.getPrototypeOf(Object.getPrototypeOf(x)) === null`
            return value !== null && typeof value === 'object';
        }
        Is.objectLiteral = objectLiteral;
        function typedArray(value, check) {
            return Array.isArray(value) && value.every(check);
        }
        Is.typedArray = typedArray;
    })(Is || (Is = {}));
});

define('vscode-languageserver-types', ['vscode-languageserver-types/main'], function (main) { return main; });

(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/services/cssCompletion',["require", "exports", "../parser/cssNodes", "../parser/cssSymbolScope", "../languageFacts/facts", "../utils/strings", "vscode-languageserver-types", "vscode-nls"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    var nodes = require("../parser/cssNodes");
    var cssSymbolScope_1 = require("../parser/cssSymbolScope");
    var languageFacts = require("../languageFacts/facts");
    var strings = require("../utils/strings");
    var vscode_languageserver_types_1 = require("vscode-languageserver-types");
    var nls = require("vscode-nls");
    var localize = nls.loadMessageBundle();
    var SnippetFormat = vscode_languageserver_types_1.InsertTextFormat.Snippet;
    var CSSCompletion = /** @class */ (function () {
        function CSSCompletion(variablePrefix) {
            if (variablePrefix === void 0) { variablePrefix = null; }
            this.completionParticipants = [];
            this.valueTypes = [
                nodes.NodeType.Identifier, nodes.NodeType.Value, nodes.NodeType.StringLiteral, nodes.NodeType.URILiteral, nodes.NodeType.NumericValue,
                nodes.NodeType.HexColorValue, nodes.NodeType.VariableName, nodes.NodeType.Prio
            ];
            this.variablePrefix = variablePrefix;
        }
        CSSCompletion.prototype.getSymbolContext = function () {
            if (!this.symbolContext) {
                this.symbolContext = new cssSymbolScope_1.Symbols(this.styleSheet);
            }
            return this.symbolContext;
        };
        CSSCompletion.prototype.setCompletionParticipants = function (registeredCompletionParticipants) {
            this.completionParticipants = registeredCompletionParticipants || [];
        };
        CSSCompletion.prototype.doComplete = function (document, position, styleSheet) {
            this.offset = document.offsetAt(position);
            this.position = position;
            this.currentWord = getCurrentWord(document, this.offset);
            this.defaultReplaceRange = vscode_languageserver_types_1.Range.create(vscode_languageserver_types_1.Position.create(this.position.line, this.position.character - this.currentWord.length), this.position);
            this.textDocument = document;
            this.styleSheet = styleSheet;
            try {
                var result = { isIncomplete: false, items: [] };
                this.nodePath = nodes.getNodePath(this.styleSheet, this.offset);
                for (var i = this.nodePath.length - 1; i >= 0; i--) {
                    var node = this.nodePath[i];
                    if (node instanceof nodes.Property) {
                        this.getCompletionsForDeclarationProperty(node.getParent(), result);
                    }
                    else if (node instanceof nodes.Expression) {
                        if (node.parent instanceof nodes.Interpolation) {
                            this.getVariableProposals(null, result);
                        }
                        else {
                            this.getCompletionsForExpression(node, result);
                        }
                    }
                    else if (node instanceof nodes.SimpleSelector) {
                        var parentRef = node.findAParent(nodes.NodeType.ExtendsReference, nodes.NodeType.Ruleset);
                        if (parentRef) {
                            if (parentRef.type === nodes.NodeType.ExtendsReference) {
                                this.getCompletionsForExtendsReference(parentRef, node, result);
                            }
                            else {
                                var parentRuleSet = parentRef;
                                this.getCompletionsForSelector(parentRuleSet, parentRuleSet && parentRuleSet.isNested(), result);
                            }
                        }
                    }
                    else if (node instanceof nodes.FunctionArgument) {
                        this.getCompletionsForFunctionArgument(node, node.getParent(), result);
                    }
                    else if (node instanceof nodes.Declarations) {
                        this.getCompletionsForDeclarations(node, result);
                    }
                    else if (node instanceof nodes.VariableDeclaration) {
                        this.getCompletionsForVariableDeclaration(node, result);
                    }
                    else if (node instanceof nodes.RuleSet) {
                        this.getCompletionsForRuleSet(node, result);
                    }
                    else if (node instanceof nodes.Interpolation) {
                        this.getCompletionsForInterpolation(node, result);
                    }
                    else if (node instanceof nodes.FunctionDeclaration) {
                        this.getCompletionsForFunctionDeclaration(node, result);
                    }
                    else if (node instanceof nodes.MixinReference) {
                        this.getCompletionsForMixinReference(node, result);
                    }
                    else if (node instanceof nodes.Function) {
                        this.getCompletionsForFunctionArgument(null, node, result);
                    }
                    else if (node instanceof nodes.Supports) {
                        this.getCompletionsForSupports(node, result);
                    }
                    else if (node instanceof nodes.SupportsCondition) {
                        this.getCompletionsForSupportsCondition(node, result);
                    }
                    else if (node instanceof nodes.ExtendsReference) {
                        this.getCompletionsForExtendsReference(node, null, result);
                    }
                    else if (node.type === nodes.NodeType.URILiteral) {
                        this.getCompletionForUriLiteralValue(node, result);
                    }
                    else if (node.type === nodes.NodeType.StringLiteral && node.parent.type === nodes.NodeType.Import) {
                        this.getCompletionForImportPath(node, result);
                    }
                    else if (node.parent === null) {
                        this.getCompletionForTopLevel(result);
                        // } else if (node instanceof nodes.Variable) {
                        // this.getCompletionsForVariableDeclaration()
                    }
                    else {
                        continue;
                    }
                    if (result.items.length > 0 || this.offset > node.offset) {
                        return this.finalize(result);
                    }
                }
                this.getCompletionsForStylesheet(result);
                if (result.items.length === 0) {
                    if (this.variablePrefix && this.currentWord.indexOf(this.variablePrefix) === 0) {
                        this.getVariableProposals(null, result);
                    }
                }
                return this.finalize(result);
            }
            finally {
                // don't hold on any state, clear symbolContext
                this.position = null;
                this.currentWord = null;
                this.textDocument = null;
                this.styleSheet = null;
                this.symbolContext = null;
                this.defaultReplaceRange = null;
                this.nodePath = null;
            }
        };
        CSSCompletion.prototype.finalize = function (result) {
            var needsSortText = result.items.some(function (i) { return !!i.sortText; });
            if (needsSortText) {
                for (var _i = 0, _a = result.items; _i < _a.length; _i++) {
                    var i = _a[_i];
                    if (!i.sortText) {
                        i.sortText = 'd';
                    }
                }
            }
            return result;
        };
        CSSCompletion.prototype.findInNodePath = function () {
            var types = [];
            for (var _i = 0; _i < arguments.length; _i++) {
                types[_i] = arguments[_i];
            }
            for (var i = this.nodePath.length - 1; i >= 0; i--) {
                var node = this.nodePath[i];
                if (types.indexOf(node.type) !== -1) {
                    return node;
                }
            }
            return null;
        };
        CSSCompletion.prototype.getCompletionsForDeclarationProperty = function (declaration, result) {
            return this.getPropertyProposals(declaration, result);
        };
        CSSCompletion.prototype.getPropertyProposals = function (declaration, result) {
            var _this = this;
            var properties = languageFacts.cssDataManager.getProperties();
            properties.forEach(function (entry) {
                var range;
                var insertText;
                var retrigger = false;
                if (declaration) {
                    range = _this.getCompletionRange(declaration.getProperty());
                    insertText = entry.name;
                    if (!isDefined(declaration.colonPosition)) {
                        insertText += ': ';
                        retrigger = true;
                    }
                }
                else {
                    range = _this.getCompletionRange(null);
                    insertText = entry.name + ': ';
                    retrigger = true;
                }
                var item = {
                    label: entry.name,
                    documentation: languageFacts.getEntryDescription(entry),
                    textEdit: vscode_languageserver_types_1.TextEdit.replace(range, insertText),
                    kind: vscode_languageserver_types_1.CompletionItemKind.Property
                };
                if (!entry.restrictions) {
                    retrigger = false;
                }
                if (retrigger) {
                    item.command = {
                        title: 'Suggest',
                        command: 'editor.action.triggerSuggest'
                    };
                }
                if (strings.startsWith(entry.name, '-')) {
                    item.sortText = 'x';
                }
                result.items.push(item);
            });
            this.completionParticipants.forEach(function (participant) {
                if (participant.onCssProperty) {
                    participant.onCssProperty({
                        propertyName: _this.currentWord,
                        range: _this.defaultReplaceRange
                    });
                }
            });
            return result;
        };
        CSSCompletion.prototype.getCompletionsForDeclarationValue = function (node, result) {
            var _this = this;
            var propertyName = node.getFullPropertyName();
            var entry = languageFacts.cssDataManager.getProperty(propertyName);
            var existingNode = node.getValue();
            while (existingNode && existingNode.hasChildren()) {
                existingNode = existingNode.findChildAtOffset(this.offset, false);
            }
            this.completionParticipants.forEach(function (participant) {
                if (participant.onCssPropertyValue) {
                    participant.onCssPropertyValue({
                        propertyName: propertyName,
                        propertyValue: _this.currentWord,
                        range: _this.getCompletionRange(existingNode)
                    });
                }
            });
            if (entry) {
                if (entry.restrictions) {
                    for (var _i = 0, _a = entry.restrictions; _i < _a.length; _i++) {
                        var restriction = _a[_i];
                        switch (restriction) {
                            case 'color':
                                this.getColorProposals(entry, existingNode, result);
                                break;
                            case 'position':
                                this.getPositionProposals(entry, existingNode, result);
                                break;
                            case 'repeat':
                                this.getRepeatStyleProposals(entry, existingNode, result);
                                break;
                            case 'line-style':
                                this.getLineStyleProposals(entry, existingNode, result);
                                break;
                            case 'line-width':
                                this.getLineWidthProposals(entry, existingNode, result);
                                break;
                            case 'geometry-box':
                                this.getGeometryBoxProposals(entry, existingNode, result);
                                break;
                            case 'box':
                                this.getBoxProposals(entry, existingNode, result);
                                break;
                            case 'image':
                                this.getImageProposals(entry, existingNode, result);
                                break;
                            case 'timing-function':
                                this.getTimingFunctionProposals(entry, existingNode, result);
                                break;
                            case 'shape':
                                this.getBasicShapeProposals(entry, existingNode, result);
                                break;
                        }
                    }
                }
                this.getValueEnumProposals(entry, existingNode, result);
                this.getCSSWideKeywordProposals(entry, existingNode, result);
                this.getUnitProposals(entry, existingNode, result);
            }
            else {
                var existingValues = collectValues(this.styleSheet, node);
                for (var _b = 0, _c = existingValues.getEntries(); _b < _c.length; _b++) {
                    var existingValue = _c[_b];
                    result.items.push({
                        label: existingValue,
                        textEdit: vscode_languageserver_types_1.TextEdit.replace(this.getCompletionRange(existingNode), existingValue),
                        kind: vscode_languageserver_types_1.CompletionItemKind.Value
                    });
                }
            }
            this.getVariableProposals(existingNode, result);
            this.getTermProposals(entry, existingNode, result);
            return result;
        };
        CSSCompletion.prototype.getValueEnumProposals = function (entry, existingNode, result) {
            if (entry.values) {
                for (var _i = 0, _a = entry.values; _i < _a.length; _i++) {
                    var value = _a[_i];
                    if (languageFacts.supportedInMoreThanOneBrowser(value)) {
                        var insertString = value.name;
                        var insertTextFormat = void 0;
                        if (strings.endsWith(insertString, ')')) {
                            var from = insertString.lastIndexOf('(');
                            if (from !== -1) {
                                insertString = insertString.substr(0, from) + '($1)';
                                insertTextFormat = SnippetFormat;
                            }
                        }
                        var item = {
                            label: value.name,
                            documentation: languageFacts.getEntryDescription(value),
                            textEdit: vscode_languageserver_types_1.TextEdit.replace(this.getCompletionRange(existingNode), insertString),
                            kind: vscode_languageserver_types_1.CompletionItemKind.Value,
                            insertTextFormat: insertTextFormat
                        };
                        result.items.push(item);
                    }
                }
            }
            return result;
        };
        CSSCompletion.prototype.getCSSWideKeywordProposals = function (entry, existingNode, result) {
            for (var keywords in languageFacts.cssWideKeywords) {
                result.items.push({
                    label: keywords,
                    documentation: languageFacts.cssWideKeywords[keywords],
                    textEdit: vscode_languageserver_types_1.TextEdit.replace(this.getCompletionRange(existingNode), keywords),
                    kind: vscode_languageserver_types_1.CompletionItemKind.Value
                });
            }
            return result;
        };
        CSSCompletion.prototype.getCompletionsForInterpolation = function (node, result) {
            if (this.offset >= node.offset + 2) {
                this.getVariableProposals(null, result);
            }
            return result;
        };
        CSSCompletion.prototype.getVariableProposals = function (existingNode, result) {
            var symbols = this.getSymbolContext().findSymbolsAtOffset(this.offset, nodes.ReferenceType.Variable);
            for (var _i = 0, symbols_1 = symbols; _i < symbols_1.length; _i++) {
                var symbol = symbols_1[_i];
                var insertText = strings.startsWith(symbol.name, '--') ? "var(" + symbol.name + ")" : symbol.name;
                var suggest = {
                    label: symbol.name,
                    documentation: symbol.value ? strings.getLimitedString(symbol.value) : symbol.value,
                    textEdit: vscode_languageserver_types_1.TextEdit.replace(this.getCompletionRange(existingNode), insertText),
                    kind: vscode_languageserver_types_1.CompletionItemKind.Variable,
                    sortText: 'z'
                };
                if (symbol.node.type === nodes.NodeType.FunctionParameter) {
                    var mixinNode = (symbol.node.getParent());
                    if (mixinNode.type === nodes.NodeType.MixinDeclaration) {
                        suggest.detail = localize('completion.argument', 'argument from \'{0}\'', mixinNode.getName());
                    }
                }
                result.items.push(suggest);
            }
            return result;
        };
        CSSCompletion.prototype.getVariableProposalsForCSSVarFunction = function (result) {
            var symbols = this.getSymbolContext().findSymbolsAtOffset(this.offset, nodes.ReferenceType.Variable);
            symbols = symbols.filter(function (symbol) {
                return strings.startsWith(symbol.name, '--');
            });
            for (var _i = 0, symbols_2 = symbols; _i < symbols_2.length; _i++) {
                var symbol = symbols_2[_i];
                result.items.push({
                    label: symbol.name,
                    documentation: symbol.value ? strings.getLimitedString(symbol.value) : symbol.value,
                    textEdit: vscode_languageserver_types_1.TextEdit.replace(this.getCompletionRange(null), symbol.name),
                    kind: vscode_languageserver_types_1.CompletionItemKind.Variable
                });
            }
            return result;
        };
        CSSCompletion.prototype.getUnitProposals = function (entry, existingNode, result) {
            var currentWord = '0';
            if (this.currentWord.length > 0) {
                var numMatch = this.currentWord.match(/^-?\d[\.\d+]*/);
                if (numMatch) {
                    currentWord = numMatch[0];
                    result.isIncomplete = currentWord.length === this.currentWord.length;
                }
            }
            else if (this.currentWord.length === 0) {
                result.isIncomplete = true;
            }
            if (existingNode && existingNode.parent && existingNode.parent.type === nodes.NodeType.Term) {
                existingNode = existingNode.getParent(); // include the unary operator
            }
            if (entry.restrictions) {
                for (var _i = 0, _a = entry.restrictions; _i < _a.length; _i++) {
                    var restriction = _a[_i];
                    var units = languageFacts.units[restriction];
                    if (units) {
                        for (var _b = 0, units_1 = units; _b < units_1.length; _b++) {
                            var unit = units_1[_b];
                            var insertText = currentWord + unit;
                            result.items.push({
                                label: insertText,
                                textEdit: vscode_languageserver_types_1.TextEdit.replace(this.getCompletionRange(existingNode), insertText),
                                kind: vscode_languageserver_types_1.CompletionItemKind.Unit
                            });
                        }
                    }
                }
            }
            return result;
        };
        CSSCompletion.prototype.getCompletionRange = function (existingNode) {
            if (existingNode && existingNode.offset <= this.offset) {
                var end = existingNode.end !== -1 ? this.textDocument.positionAt(existingNode.end) : this.position;
                return vscode_languageserver_types_1.Range.create(this.textDocument.positionAt(existingNode.offset), end);
            }
            return this.defaultReplaceRange;
        };
        CSSCompletion.prototype.getColorProposals = function (entry, existingNode, result) {
            for (var color in languageFacts.colors) {
                result.items.push({
                    label: color,
                    documentation: languageFacts.colors[color],
                    textEdit: vscode_languageserver_types_1.TextEdit.replace(this.getCompletionRange(existingNode), color),
                    kind: vscode_languageserver_types_1.CompletionItemKind.Color
                });
            }
            for (var color in languageFacts.colorKeywords) {
                result.items.push({
                    label: color,
                    documentation: languageFacts.colorKeywords[color],
                    textEdit: vscode_languageserver_types_1.TextEdit.replace(this.getCompletionRange(existingNode), color),
                    kind: vscode_languageserver_types_1.CompletionItemKind.Value
                });
            }
            var colorValues = new Set();
            this.styleSheet.acceptVisitor(new ColorValueCollector(colorValues, this.offset));
            for (var _i = 0, _a = colorValues.getEntries(); _i < _a.length; _i++) {
                var color = _a[_i];
                result.items.push({
                    label: color,
                    textEdit: vscode_languageserver_types_1.TextEdit.replace(this.getCompletionRange(existingNode), color),
                    kind: vscode_languageserver_types_1.CompletionItemKind.Color
                });
            }
            var _loop_1 = function (p) {
                var tabStop = 1;
                var replaceFunction = function (match, p1) { return '${' + tabStop++ + ':' + p1 + '}'; };
                var insertText = p.func.replace(/\[?\$(\w+)\]?/g, replaceFunction);
                result.items.push({
                    label: p.func.substr(0, p.func.indexOf('(')),
                    detail: p.func,
                    documentation: p.desc,
                    textEdit: vscode_languageserver_types_1.TextEdit.replace(this_1.getCompletionRange(existingNode), insertText),
                    insertTextFormat: SnippetFormat,
                    kind: vscode_languageserver_types_1.CompletionItemKind.Function
                });
            };
            var this_1 = this;
            for (var _b = 0, _c = languageFacts.colorFunctions; _b < _c.length; _b++) {
                var p = _c[_b];
                _loop_1(p);
            }
            return result;
        };
        CSSCompletion.prototype.getPositionProposals = function (entry, existingNode, result) {
            for (var position in languageFacts.positionKeywords) {
                result.items.push({
                    label: position,
                    documentation: languageFacts.positionKeywords[position],
                    textEdit: vscode_languageserver_types_1.TextEdit.replace(this.getCompletionRange(existingNode), position),
                    kind: vscode_languageserver_types_1.CompletionItemKind.Value
                });
            }
            return result;
        };
        CSSCompletion.prototype.getRepeatStyleProposals = function (entry, existingNode, result) {
            for (var repeat in languageFacts.repeatStyleKeywords) {
                result.items.push({
                    label: repeat,
                    documentation: languageFacts.repeatStyleKeywords[repeat],
                    textEdit: vscode_languageserver_types_1.TextEdit.replace(this.getCompletionRange(existingNode), repeat),
                    kind: vscode_languageserver_types_1.CompletionItemKind.Value
                });
            }
            return result;
        };
        CSSCompletion.prototype.getLineStyleProposals = function (entry, existingNode, result) {
            for (var lineStyle in languageFacts.lineStyleKeywords) {
                result.items.push({
                    label: lineStyle,
                    documentation: languageFacts.lineStyleKeywords[lineStyle],
                    textEdit: vscode_languageserver_types_1.TextEdit.replace(this.getCompletionRange(existingNode), lineStyle),
                    kind: vscode_languageserver_types_1.CompletionItemKind.Value
                });
            }
            return result;
        };
        CSSCompletion.prototype.getLineWidthProposals = function (entry, existingNode, result) {
            for (var _i = 0, _a = languageFacts.lineWidthKeywords; _i < _a.length; _i++) {
                var lineWidth = _a[_i];
                result.items.push({
                    label: lineWidth,
                    textEdit: vscode_languageserver_types_1.TextEdit.replace(this.getCompletionRange(existingNode), lineWidth),
                    kind: vscode_languageserver_types_1.CompletionItemKind.Value
                });
            }
            return result;
        };
        CSSCompletion.prototype.getGeometryBoxProposals = function (entry, existingNode, result) {
            for (var box in languageFacts.geometryBoxKeywords) {
                result.items.push({
                    label: box,
                    documentation: languageFacts.geometryBoxKeywords[box],
                    textEdit: vscode_languageserver_types_1.TextEdit.replace(this.getCompletionRange(existingNode), box),
                    kind: vscode_languageserver_types_1.CompletionItemKind.Value
                });
            }
            return result;
        };
        CSSCompletion.prototype.getBoxProposals = function (entry, existingNode, result) {
            for (var box in languageFacts.boxKeywords) {
                result.items.push({
                    label: box,
                    documentation: languageFacts.boxKeywords[box],
                    textEdit: vscode_languageserver_types_1.TextEdit.replace(this.getCompletionRange(existingNode), box),
                    kind: vscode_languageserver_types_1.CompletionItemKind.Value
                });
            }
            return result;
        };
        CSSCompletion.prototype.getImageProposals = function (entry, existingNode, result) {
            for (var image in languageFacts.imageFunctions) {
                var insertText = moveCursorInsideParenthesis(image);
                result.items.push({
                    label: image,
                    documentation: languageFacts.imageFunctions[image],
                    textEdit: vscode_languageserver_types_1.TextEdit.replace(this.getCompletionRange(existingNode), insertText),
                    kind: vscode_languageserver_types_1.CompletionItemKind.Function,
                    insertTextFormat: image !== insertText ? SnippetFormat : void 0
                });
            }
            return result;
        };
        CSSCompletion.prototype.getTimingFunctionProposals = function (entry, existingNode, result) {
            for (var timing in languageFacts.transitionTimingFunctions) {
                var insertText = moveCursorInsideParenthesis(timing);
                result.items.push({
                    label: timing,
                    documentation: languageFacts.transitionTimingFunctions[timing],
                    textEdit: vscode_languageserver_types_1.TextEdit.replace(this.getCompletionRange(existingNode), insertText),
                    kind: vscode_languageserver_types_1.CompletionItemKind.Function,
                    insertTextFormat: timing !== insertText ? SnippetFormat : void 0
                });
            }
            return result;
        };
        CSSCompletion.prototype.getBasicShapeProposals = function (entry, existingNode, result) {
            for (var shape in languageFacts.basicShapeFunctions) {
                var insertText = moveCursorInsideParenthesis(shape);
                result.items.push({
                    label: shape,
                    documentation: languageFacts.basicShapeFunctions[shape],
                    textEdit: vscode_languageserver_types_1.TextEdit.replace(this.getCompletionRange(existingNode), insertText),
                    kind: vscode_languageserver_types_1.CompletionItemKind.Function,
                    insertTextFormat: shape !== insertText ? SnippetFormat : void 0
                });
            }
            return result;
        };
        CSSCompletion.prototype.getCompletionsForStylesheet = function (result) {
            var node = this.styleSheet.findFirstChildBeforeOffset(this.offset);
            if (!node) {
                return this.getCompletionForTopLevel(result);
            }
            if (node instanceof nodes.RuleSet) {
                return this.getCompletionsForRuleSet(node, result);
            }
            if (node instanceof nodes.Supports) {
                return this.getCompletionsForSupports(node, result);
            }
            return result;
        };
        CSSCompletion.prototype.getCompletionForTopLevel = function (result) {
            var _this = this;
            languageFacts.cssDataManager.getAtDirectives().forEach(function (entry) {
                result.items.push({
                    label: entry.name,
                    textEdit: vscode_languageserver_types_1.TextEdit.replace(_this.getCompletionRange(null), entry.name),
                    documentation: languageFacts.getEntryDescription(entry),
                    kind: vscode_languageserver_types_1.CompletionItemKind.Keyword
                });
            });
            this.getCompletionsForSelector(null, false, result);
            return result;
        };
        CSSCompletion.prototype.getCompletionsForRuleSet = function (ruleSet, result) {
            var declarations = ruleSet.getDeclarations();
            var isAfter = declarations && declarations.endsWith('}') && this.offset >= declarations.end;
            if (isAfter) {
                return this.getCompletionForTopLevel(result);
            }
            var isInSelectors = !declarations || this.offset <= declarations.offset;
            if (isInSelectors) {
                return this.getCompletionsForSelector(ruleSet, ruleSet.isNested(), result);
            }
            return this.getCompletionsForDeclarations(ruleSet.getDeclarations(), result);
        };
        CSSCompletion.prototype.getCompletionsForSelector = function (ruleSet, isNested, result) {
            var _this = this;
            var existingNode = this.findInNodePath(nodes.NodeType.PseudoSelector, nodes.NodeType.IdentifierSelector, nodes.NodeType.ClassSelector, nodes.NodeType.ElementNameSelector);
            if (!existingNode && this.offset - this.currentWord.length > 0 && this.textDocument.getText()[this.offset - this.currentWord.length - 1] === ':') {
                // after the ':' of a pseudo selector, no node generated for just ':'
                this.currentWord = ':' + this.currentWord;
                this.defaultReplaceRange = vscode_languageserver_types_1.Range.create(vscode_languageserver_types_1.Position.create(this.position.line, this.position.character - this.currentWord.length), this.position);
            }
            var pseudoClasses = languageFacts.cssDataManager.getPseudoClasses();
            pseudoClasses.forEach(function (entry) {
                var insertText = moveCursorInsideParenthesis(entry.name);
                var item = {
                    label: entry.name,
                    textEdit: vscode_languageserver_types_1.TextEdit.replace(_this.getCompletionRange(existingNode), insertText),
                    documentation: languageFacts.getEntryDescription(entry),
                    kind: vscode_languageserver_types_1.CompletionItemKind.Function,
                    insertTextFormat: entry.name !== insertText ? SnippetFormat : void 0
                };
                if (strings.startsWith(entry.name, ':-')) {
                    item.sortText = 'x';
                }
                result.items.push(item);
            });
            var pseudoElements = languageFacts.cssDataManager.getPseudoElements();
            pseudoElements.forEach(function (entry) {
                var insertText = moveCursorInsideParenthesis(entry.name);
                var item = {
                    label: entry.name,
                    textEdit: vscode_languageserver_types_1.TextEdit.replace(_this.getCompletionRange(existingNode), insertText),
                    documentation: languageFacts.getEntryDescription(entry),
                    kind: vscode_languageserver_types_1.CompletionItemKind.Function,
                    insertTextFormat: entry.name !== insertText ? SnippetFormat : void 0
                };
                if (strings.startsWith(entry.name, '::-')) {
                    item.sortText = 'x';
                }
                result.items.push(item);
            });
            if (!isNested) { // show html tags only for top level
                for (var _i = 0, _a = languageFacts.html5Tags; _i < _a.length; _i++) {
                    var entry = _a[_i];
                    result.items.push({
                        label: entry,
                        textEdit: vscode_languageserver_types_1.TextEdit.replace(this.getCompletionRange(existingNode), entry),
                        kind: vscode_languageserver_types_1.CompletionItemKind.Keyword
                    });
                }
                for (var _b = 0, _c = languageFacts.svgElements; _b < _c.length; _b++) {
                    var entry = _c[_b];
                    result.items.push({
                        label: entry,
                        textEdit: vscode_languageserver_types_1.TextEdit.replace(this.getCompletionRange(existingNode), entry),
                        kind: vscode_languageserver_types_1.CompletionItemKind.Keyword
                    });
                }
            }
            var visited = {};
            visited[this.currentWord] = true;
            var textProvider = this.styleSheet.getTextProvider();
            this.styleSheet.accept(function (n) {
                if (n.type === nodes.NodeType.SimpleSelector && n.length > 0) {
                    var selector = textProvider(n.offset, n.length);
                    if (selector.charAt(0) === '.' && !visited[selector]) {
                        visited[selector] = true;
                        result.items.push({
                            label: selector,
                            textEdit: vscode_languageserver_types_1.TextEdit.replace(_this.getCompletionRange(existingNode), selector),
                            kind: vscode_languageserver_types_1.CompletionItemKind.Keyword
                        });
                    }
                    return false;
                }
                return true;
            });
            if (ruleSet && ruleSet.isNested()) {
                var selector = ruleSet.getSelectors().findFirstChildBeforeOffset(this.offset);
                if (selector && ruleSet.getSelectors().getChildren().indexOf(selector) === 0) {
                    this.getPropertyProposals(null, result);
                }
            }
            return result;
        };
        CSSCompletion.prototype.getCompletionsForDeclarations = function (declarations, result) {
            if (!declarations || this.offset === declarations.offset) { // incomplete nodes
                return result;
            }
            var node = declarations.findFirstChildBeforeOffset(this.offset);
            if (!node) {
                return this.getCompletionsForDeclarationProperty(null, result);
            }
            if (node instanceof nodes.AbstractDeclaration) {
                var declaration = node;
                if (!isDefined(declaration.colonPosition) || this.offset <= declaration.colonPosition) {
                    // complete property
                    return this.getCompletionsForDeclarationProperty(declaration, result);
                }
                else if ((isDefined(declaration.semicolonPosition) && declaration.semicolonPosition < this.offset)) {
                    if (this.offset === declaration.semicolonPosition + 1) {
                        return result; // don't show new properties right after semicolon (see Bug 15421:[intellisense] [css] Be less aggressive when manually typing CSS)
                    }
                    // complete next property
                    return this.getCompletionsForDeclarationProperty(null, result);
                }
                if (declaration instanceof nodes.Declaration) {
                    // complete value
                    return this.getCompletionsForDeclarationValue(declaration, result);
                }
            }
            else if (node instanceof nodes.ExtendsReference) {
                this.getCompletionsForExtendsReference(node, null, result);
            }
            else if (this.currentWord && this.currentWord[0] === '@') {
                this.getCompletionsForDeclarationProperty(null, result);
            }
            return result;
        };
        CSSCompletion.prototype.getCompletionsForVariableDeclaration = function (declaration, result) {
            if (this.offset > declaration.colonPosition) {
                this.getVariableProposals(declaration.getValue(), result);
            }
            return result;
        };
        CSSCompletion.prototype.getCompletionsForExpression = function (expression, result) {
            if (expression.getParent() instanceof nodes.FunctionArgument) {
                this.getCompletionsForFunctionArgument(expression.getParent(), expression.getParent().getParent(), result);
                return result;
            }
            var declaration = expression.findParent(nodes.NodeType.Declaration);
            if (!declaration) {
                this.getTermProposals(null, null, result);
                return result;
            }
            var node = expression.findChildAtOffset(this.offset, true);
            if (!node) {
                return this.getCompletionsForDeclarationValue(declaration, result);
            }
            if (node instanceof nodes.NumericValue || node instanceof nodes.Identifier) {
                return this.getCompletionsForDeclarationValue(declaration, result);
            }
            return result;
        };
        CSSCompletion.prototype.getCompletionsForFunctionArgument = function (arg, func, result) {
            if (func.getIdentifier().getText() === 'var') {
                if (!func.getArguments().hasChildren() || func.getArguments().getChild(0) === arg) {
                    this.getVariableProposalsForCSSVarFunction(result);
                }
            }
            return result;
        };
        CSSCompletion.prototype.getCompletionsForFunctionDeclaration = function (decl, result) {
            var declarations = decl.getDeclarations();
            if (declarations && this.offset > declarations.offset && this.offset < declarations.end) {
                this.getTermProposals(null, null, result);
            }
            return result;
        };
        CSSCompletion.prototype.getCompletionsForMixinReference = function (ref, result) {
            var allMixins = this.getSymbolContext().findSymbolsAtOffset(this.offset, nodes.ReferenceType.Mixin);
            for (var _i = 0, allMixins_1 = allMixins; _i < allMixins_1.length; _i++) {
                var mixinSymbol = allMixins_1[_i];
                if (mixinSymbol.node instanceof nodes.MixinDeclaration) {
                    result.items.push(this.makeTermProposal(mixinSymbol, mixinSymbol.node.getParameters(), null));
                }
            }
            return result;
        };
        CSSCompletion.prototype.getTermProposals = function (entry, existingNode, result) {
            var allFunctions = this.getSymbolContext().findSymbolsAtOffset(this.offset, nodes.ReferenceType.Function);
            for (var _i = 0, allFunctions_1 = allFunctions; _i < allFunctions_1.length; _i++) {
                var functionSymbol = allFunctions_1[_i];
                if (functionSymbol.node instanceof nodes.FunctionDeclaration) {
                    result.items.push(this.makeTermProposal(functionSymbol, functionSymbol.node.getParameters(), existingNode));
                }
            }
            return result;
        };
        CSSCompletion.prototype.makeTermProposal = function (symbol, parameters, existingNode) {
            var decl = symbol.node;
            var params = parameters.getChildren().map(function (c) {
                return (c instanceof nodes.FunctionParameter) ? c.getName() : c.getText();
            });
            var insertText = symbol.name + '(' + params.map(function (p, index) { return '${' + (index + 1) + ':' + p + '}'; }).join(', ') + ')';
            return {
                label: symbol.name,
                detail: symbol.name + '(' + params.join(', ') + ')',
                textEdit: vscode_languageserver_types_1.TextEdit.replace(this.getCompletionRange(existingNode), insertText),
                insertTextFormat: SnippetFormat,
                kind: vscode_languageserver_types_1.CompletionItemKind.Function,
                sortText: 'z'
            };
        };
        CSSCompletion.prototype.getCompletionsForSupportsCondition = function (supportsCondition, result) {
            var child = supportsCondition.findFirstChildBeforeOffset(this.offset);
            if (child) {
                if (child instanceof nodes.Declaration) {
                    if (!isDefined(child.colonPosition || this.offset <= child.colonPosition)) {
                        return this.getCompletionsForDeclarationProperty(child, result);
                    }
                    else {
                        return this.getCompletionsForDeclarationValue(child, result);
                    }
                }
                else if (child instanceof nodes.SupportsCondition) {
                    return this.getCompletionsForSupportsCondition(child, result);
                }
            }
            if (isDefined(supportsCondition.lParent) && this.offset > supportsCondition.lParent && (!isDefined(supportsCondition.rParent) || this.offset <= supportsCondition.rParent)) {
                return this.getCompletionsForDeclarationProperty(null, result);
            }
            return result;
        };
        CSSCompletion.prototype.getCompletionsForSupports = function (supports, result) {
            var declarations = supports.getDeclarations();
            var inInCondition = !declarations || this.offset <= declarations.offset;
            if (inInCondition) {
                var child = supports.findFirstChildBeforeOffset(this.offset);
                if (child instanceof nodes.SupportsCondition) {
                    return this.getCompletionsForSupportsCondition(child, result);
                }
                return result;
            }
            return this.getCompletionForTopLevel(result);
        };
        CSSCompletion.prototype.getCompletionsForExtendsReference = function (extendsRef, existingNode, result) {
            return result;
        };
        CSSCompletion.prototype.getCompletionForUriLiteralValue = function (uriLiteralNode, result) {
            var uriValue;
            var position;
            var range;
            // No children, empty value
            if (uriLiteralNode.getChildren().length === 0) {
                uriValue = '';
                position = this.position;
                var emptyURIValuePosition = this.textDocument.positionAt(uriLiteralNode.offset + 'url('.length);
                range = vscode_languageserver_types_1.Range.create(emptyURIValuePosition, emptyURIValuePosition);
            }
            else {
                var uriValueNode = uriLiteralNode.getChild(0);
                uriValue = uriValueNode.getText();
                position = this.position;
                range = this.getCompletionRange(uriValueNode);
            }
            this.completionParticipants.forEach(function (participant) {
                if (participant.onCssURILiteralValue) {
                    participant.onCssURILiteralValue({
                        uriValue: uriValue,
                        position: position,
                        range: range
                    });
                }
            });
            return result;
        };
        CSSCompletion.prototype.getCompletionForImportPath = function (importPathNode, result) {
            var _this = this;
            this.completionParticipants.forEach(function (participant) {
                if (participant.onCssImportPath) {
                    participant.onCssImportPath({
                        pathValue: importPathNode.getText(),
                        position: _this.position,
                        range: _this.getCompletionRange(importPathNode)
                    });
                }
            });
            return result;
        };
        return CSSCompletion;
    }());
    exports.CSSCompletion = CSSCompletion;
    var Set = /** @class */ (function () {
        function Set() {
            this.entries = {};
        }
        Set.prototype.add = function (entry) {
            this.entries[entry] = true;
        };
        Set.prototype.getEntries = function () {
            return Object.keys(this.entries);
        };
        return Set;
    }());
    function moveCursorInsideParenthesis(text) {
        return text.replace(/\(\)$/, "($1)");
    }
    function collectValues(styleSheet, declaration) {
        var fullPropertyName = declaration.getFullPropertyName();
        var entries = new Set();
        function visitValue(node) {
            if (node instanceof nodes.Identifier || node instanceof nodes.NumericValue || node instanceof nodes.HexColorValue) {
                entries.add(node.getText());
            }
            return true;
        }
        function matchesProperty(decl) {
            var propertyName = decl.getFullPropertyName();
            return fullPropertyName === propertyName;
        }
        function vistNode(node) {
            if (node instanceof nodes.Declaration && node !== declaration) {
                if (matchesProperty(node)) {
                    var value = node.getValue();
                    if (value) {
                        value.accept(visitValue);
                    }
                }
            }
            return true;
        }
        styleSheet.accept(vistNode);
        return entries;
    }
    var ColorValueCollector = /** @class */ (function () {
        function ColorValueCollector(entries, currentOffset) {
            this.entries = entries;
            this.currentOffset = currentOffset;
            // nothing to do
        }
        ColorValueCollector.prototype.visitNode = function (node) {
            if (node instanceof nodes.HexColorValue || (node instanceof nodes.Function && languageFacts.isColorConstructor(node))) {
                if (this.currentOffset < node.offset || node.end < this.currentOffset) {
                    this.entries.add(node.getText());
                }
            }
            return true;
        };
        return ColorValueCollector;
    }());
    function isDefined(obj) {
        return typeof obj !== 'undefined';
    }
    function getCurrentWord(document, offset) {
        var i = offset - 1;
        var text = document.getText();
        while (i >= 0 && ' \t\n\r":{[()]},*>+'.indexOf(text.charAt(i)) === -1) {
            i--;
        }
        return text.substring(i + 1, offset);
    }
});

var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/services/selectorPrinting',["require", "exports", "../parser/cssNodes", "../parser/cssScanner", "vscode-nls"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    var nodes = require("../parser/cssNodes");
    var cssScanner_1 = require("../parser/cssScanner");
    var nls = require("vscode-nls");
    var localize = nls.loadMessageBundle();
    var Element = /** @class */ (function () {
        function Element() {
        }
        Element.prototype.findAttribute = function (name) {
            if (this.attributes) {
                for (var _i = 0, _a = this.attributes; _i < _a.length; _i++) {
                    var attribute = _a[_i];
                    if (attribute.name === name) {
                        return attribute.value;
                    }
                }
            }
            return null;
        };
        Element.prototype.addChild = function (child) {
            if (child instanceof Element) {
                child.parent = this;
            }
            if (!this.children) {
                this.children = [];
            }
            this.children.push(child);
        };
        Element.prototype.append = function (text) {
            if (this.attributes) {
                var last = this.attributes[this.attributes.length - 1];
                last.value = last.value + text;
            }
        };
        Element.prototype.prepend = function (text) {
            if (this.attributes) {
                var first = this.attributes[0];
                first.value = text + first.value;
            }
        };
        Element.prototype.findRoot = function () {
            var curr = this;
            while (curr.parent && !(curr.parent instanceof RootElement)) {
                curr = curr.parent;
            }
            return curr;
        };
        Element.prototype.removeChild = function (child) {
            if (this.children) {
                var index = this.children.indexOf(child);
                if (index !== -1) {
                    this.children.splice(index, 1);
                    return true;
                }
            }
            return false;
        };
        Element.prototype.addAttr = function (name, value) {
            if (!this.attributes) {
                this.attributes = [];
            }
            for (var _i = 0, _a = this.attributes; _i < _a.length; _i++) {
                var attribute = _a[_i];
                if (attribute.name === name) {
                    attribute.value += ' ' + value;
                    return;
                }
            }
            this.attributes.push({ name: name, value: value });
        };
        Element.prototype.clone = function (cloneChildren) {
            if (cloneChildren === void 0) { cloneChildren = true; }
            var elem = new Element();
            if (this.attributes) {
                elem.attributes = [];
                for (var _i = 0, _a = this.attributes; _i < _a.length; _i++) {
                    var attribute = _a[_i];
                    elem.addAttr(attribute.name, attribute.value);
                }
            }
            if (cloneChildren && this.children) {
                elem.children = [];
                for (var index = 0; index < this.children.length; index++) {
                    elem.addChild(this.children[index].clone());
                }
            }
            return elem;
        };
        Element.prototype.cloneWithParent = function () {
            var clone = this.clone(false);
            if (this.parent && !(this.parent instanceof RootElement)) {
                var parentClone = this.parent.cloneWithParent();
                parentClone.addChild(clone);
            }
            return clone;
        };
        return Element;
    }());
    exports.Element = Element;
    var RootElement = /** @class */ (function (_super) {
        __extends(RootElement, _super);
        function RootElement() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        return RootElement;
    }(Element));
    exports.RootElement = RootElement;
    var LabelElement = /** @class */ (function (_super) {
        __extends(LabelElement, _super);
        function LabelElement(label) {
            var _this = _super.call(this) || this;
            _this.addAttr('name', label);
            return _this;
        }
        return LabelElement;
    }(Element));
    exports.LabelElement = LabelElement;
    var MarkedStringPrinter = /** @class */ (function () {
        function MarkedStringPrinter(quote) {
            this.quote = quote;
            // empty
        }
        MarkedStringPrinter.prototype.print = function (element) {
            this.result = [];
            if (element instanceof RootElement) {
                this.doPrint(element.children, 0);
            }
            else {
                this.doPrint([element], 0);
            }
            var value = this.result.join('\n');
            return [{ language: 'html', value: value }];
        };
        MarkedStringPrinter.prototype.doPrint = function (elements, indent) {
            for (var _i = 0, elements_1 = elements; _i < elements_1.length; _i++) {
                var element = elements_1[_i];
                this.doPrintElement(element, indent);
                if (element.children) {
                    this.doPrint(element.children, indent + 1);
                }
            }
        };
        MarkedStringPrinter.prototype.writeLine = function (level, content) {
            var indent = new Array(level + 1).join('  ');
            this.result.push(indent + content);
        };
        MarkedStringPrinter.prototype.doPrintElement = function (element, indent) {
            var name = element.findAttribute('name');
            // special case: a simple label
            if (element instanceof LabelElement || name === '\u2026') {
                this.writeLine(indent, name);
                return;
            }
            // the real deal
            var content = ['<'];
            // element name
            if (name) {
                content.push(name);
            }
            else {
                content.push('element');
            }
            // attributes
            if (element.attributes) {
                for (var _i = 0, _a = element.attributes; _i < _a.length; _i++) {
                    var attr = _a[_i];
                    if (attr.name !== 'name') {
                        content.push(' ');
                        content.push(attr.name);
                        var value = attr.value;
                        if (value) {
                            content.push('=');
                            content.push(quotes.ensure(value, this.quote));
                        }
                    }
                }
            }
            content.push('>');
            this.writeLine(indent, content.join(''));
        };
        return MarkedStringPrinter;
    }());
    var quotes;
    (function (quotes) {
        function ensure(value, which) {
            return which + remove(value) + which;
        }
        quotes.ensure = ensure;
        function remove(value) {
            var match = value.match(/^['"](.*)["']$/);
            if (match) {
                return match[1];
            }
            return value;
        }
        quotes.remove = remove;
    })(quotes || (quotes = {}));
    function toElement(node, parentElement) {
        var result = new Element();
        for (var _i = 0, _a = node.getChildren(); _i < _a.length; _i++) {
            var child = _a[_i];
            switch (child.type) {
                case nodes.NodeType.SelectorCombinator:
                    if (parentElement) {
                        var segments = child.getText().split('&');
                        if (segments.length === 1) {
                            // should not happen
                            result.addAttr('name', segments[0]);
                            break;
                        }
                        result = parentElement.cloneWithParent();
                        if (segments[0]) {
                            var root = result.findRoot();
                            root.prepend(segments[0]);
                        }
                        for (var i = 1; i < segments.length; i++) {
                            if (i > 1) {
                                var clone = parentElement.cloneWithParent();
                                result.addChild(clone.findRoot());
                                result = clone;
                            }
                            result.append(segments[i]);
                        }
                    }
                    break;
                case nodes.NodeType.SelectorPlaceholder:
                    if (child.getText() === '@at-root') {
                        return result;
                    }
                // fall through
                case nodes.NodeType.ElementNameSelector:
                    var text = child.getText();
                    result.addAttr('name', text === '*' ? 'element' : unescape(text));
                    break;
                case nodes.NodeType.ClassSelector:
                    result.addAttr('class', unescape(child.getText().substring(1)));
                    break;
                case nodes.NodeType.IdentifierSelector:
                    result.addAttr('id', unescape(child.getText().substring(1)));
                    break;
                case nodes.NodeType.MixinDeclaration:
                    result.addAttr('class', child.getName());
                    break;
                case nodes.NodeType.PseudoSelector:
                    result.addAttr(unescape(child.getText()), '');
                    break;
                case nodes.NodeType.AttributeSelector:
                    var selector = child;
                    var identifuer = selector.getIdentifier();
                    if (identifuer) {
                        var expression = selector.getValue();
                        var operator = selector.getOperator();
                        var value = void 0;
                        if (expression) {
                            switch (unescape(operator.getText())) {
                                case '|=':
                                    // excatly or followed by -words
                                    value = quotes.remove(unescape(expression.getText())) + "-\u2026";
                                    break;
                                case '^=':
                                    // prefix
                                    value = quotes.remove(unescape(expression.getText())) + "\u2026";
                                    break;
                                case '$=':
                                    // suffix
                                    value = "\u2026" + quotes.remove(unescape(expression.getText()));
                                    break;
                                case '~=':
                                    // one of a list of words
                                    value = " \u2026 " + quotes.remove(unescape(expression.getText())) + " \u2026 ";
                                    break;
                                case '*=':
                                    // substring
                                    value = "\u2026" + quotes.remove(unescape(expression.getText())) + "\u2026";
                                    break;
                                default:
                                    value = quotes.remove(unescape(expression.getText()));
                                    break;
                            }
                        }
                        result.addAttr(unescape(identifuer.getText()), value);
                    }
                    break;
            }
        }
        return result;
    }
    exports.toElement = toElement;
    function unescape(content) {
        var scanner = new cssScanner_1.Scanner();
        scanner.setSource(content);
        var token = scanner.scanUnquotedString();
        if (token) {
            return token.text;
        }
        return content;
    }
    function selectorToSpecificityMarkedString(node) {
        //https://www.w3.org/TR/selectors-3/#specificity
        function calculateScore(node) {
            node.getChildren().forEach(function (element) {
                switch (element.type) {
                    case nodes.NodeType.IdentifierSelector:
                        specificity[0] += 1; //a
                        break;
                    case nodes.NodeType.ClassSelector:
                    case nodes.NodeType.AttributeSelector:
                        specificity[1] += 1; //b
                        break;
                    case nodes.NodeType.ElementNameSelector:
                        //ignore universal selector
                        if (element.getText() === "*") {
                            break;
                        }
                        specificity[2] += 1; //c
                        break;
                    case nodes.NodeType.PseudoSelector:
                        if (element.getText().match(/^::/)) {
                            specificity[2] += 1; //c (pseudo element)
                        }
                        else {
                            //ignore psuedo class NOT
                            if (element.getText().match(/^:not/i)) {
                                break;
                            }
                            specificity[1] += 1; //b (pseudo class)
                        }
                        break;
                }
                if (element.getChildren().length > 0) {
                    calculateScore(element);
                }
            });
        }
        var specificity = [0, 0, 0]; //a,b,c
        calculateScore(node);
        return localize.apply(void 0, ['specificity', "[Selector Specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity): ({0}, {1}, {2})"].concat(specificity));
    }
    function selectorToMarkedString(node) {
        var root = selectorToElement(node);
        var markedStrings = new MarkedStringPrinter('"').print(root);
        markedStrings.push(selectorToSpecificityMarkedString(node));
        return markedStrings;
    }
    exports.selectorToMarkedString = selectorToMarkedString;
    function simpleSelectorToMarkedString(node) {
        var element = toElement(node);
        var markedStrings = new MarkedStringPrinter('"').print(element);
        markedStrings.push(selectorToSpecificityMarkedString(node));
        return markedStrings;
    }
    exports.simpleSelectorToMarkedString = simpleSelectorToMarkedString;
    var SelectorElementBuilder = /** @class */ (function () {
        function SelectorElementBuilder(element) {
            this.prev = null;
            this.element = element;
        }
        SelectorElementBuilder.prototype.processSelector = function (selector) {
            var parentElement = null;
            if (!(this.element instanceof RootElement)) {
                if (selector.getChildren().some(function (c) { return c.hasChildren() && c.getChild(0).type === nodes.NodeType.SelectorCombinator; })) {
                    var curr = this.element.findRoot();
                    if (curr.parent instanceof RootElement) {
                        parentElement = this.element;
                        this.element = curr.parent;
                        this.element.removeChild(curr);
                        this.prev = null;
                    }
                }
            }
            for (var _i = 0, _a = selector.getChildren(); _i < _a.length; _i++) {
                var selectorChild = _a[_i];
                if (selectorChild instanceof nodes.SimpleSelector) {
                    if (this.prev instanceof nodes.SimpleSelector) {
                        var labelElement = new LabelElement('\u2026');
                        this.element.addChild(labelElement);
                        this.element = labelElement;
                    }
                    else if (this.prev && (this.prev.matches('+') || this.prev.matches('~')) && this.element.parent) {
                        this.element = this.element.parent;
                    }
                    if (this.prev && this.prev.matches('~')) {
                        this.element.addChild(toElement(selectorChild));
                        this.element.addChild(new LabelElement('\u22EE'));
                    }
                    var thisElement = toElement(selectorChild, parentElement);
                    var root = thisElement.findRoot();
                    this.element.addChild(root);
                    this.element = thisElement;
                }
                if (selectorChild instanceof nodes.SimpleSelector ||
                    selectorChild.type === nodes.NodeType.SelectorCombinatorParent ||
                    selectorChild.type === nodes.NodeType.SelectorCombinatorShadowPiercingDescendant ||
                    selectorChild.type === nodes.NodeType.SelectorCombinatorSibling ||
                    selectorChild.type === nodes.NodeType.SelectorCombinatorAllSiblings) {
                    this.prev = selectorChild;
                }
            }
        };
        return SelectorElementBuilder;
    }());
    function isNewSelectorContext(node) {
        switch (node.type) {
            case nodes.NodeType.MixinDeclaration:
            case nodes.NodeType.Stylesheet:
                return true;
        }
        return false;
    }
    function selectorToElement(node) {
        if (node.matches('@at-root')) {
            return null;
        }
        var root = new RootElement();
        var parentRuleSets = [];
        if (node.getParent() instanceof nodes.RuleSet) {
            var parent = node.getParent().getParent(); // parent of the selector's ruleset
            while (parent && !isNewSelectorContext(parent)) {
                if (parent instanceof nodes.RuleSet) {
                    if (parent.getSelectors().matches('@at-root')) {
                        break;
                    }
                    parentRuleSets.push(parent);
                }
                parent = parent.getParent();
            }
        }
        var builder = new SelectorElementBuilder(root);
        for (var i = parentRuleSets.length - 1; i >= 0; i--) {
            var selector = parentRuleSets[i].getSelectors().getChild(0);
            if (selector) {
                builder.processSelector(selector);
            }
        }
        builder.processSelector(node);
        return root;
    }
    exports.selectorToElement = selectorToElement;
});

(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/services/cssHover',["require", "exports", "../parser/cssNodes", "../languageFacts/facts", "vscode-languageserver-types", "./selectorPrinting"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    var nodes = require("../parser/cssNodes");
    var languageFacts = require("../languageFacts/facts");
    var vscode_languageserver_types_1 = require("vscode-languageserver-types");
    var selectorPrinting_1 = require("./selectorPrinting");
    var CSSHover = /** @class */ (function () {
        function CSSHover() {
        }
        CSSHover.prototype.doHover = function (document, position, stylesheet) {
            function getRange(node) {
                return vscode_languageserver_types_1.Range.create(document.positionAt(node.offset), document.positionAt(node.end));
            }
            var offset = document.offsetAt(position);
            var nodepath = nodes.getNodePath(stylesheet, offset);
            for (var i = 0; i < nodepath.length; i++) {
                var node = nodepath[i];
                if (node instanceof nodes.Selector) {
                    return {
                        contents: selectorPrinting_1.selectorToMarkedString(node),
                        range: getRange(node)
                    };
                }
                if (node instanceof nodes.SimpleSelector) {
                    return {
                        contents: selectorPrinting_1.simpleSelectorToMarkedString(node),
                        range: getRange(node)
                    };
                }
                if (node instanceof nodes.Declaration) {
                    var propertyName = node.getFullPropertyName();
                    var entry = languageFacts.cssDataManager.getProperty(propertyName);
                    if (entry) {
                        var contents = [];
                        if (entry.description) {
                            contents.push(vscode_languageserver_types_1.MarkedString.fromPlainText(entry.description));
                        }
                        var browserLabel = languageFacts.getBrowserLabel(entry.browsers);
                        if (browserLabel) {
                            contents.push(vscode_languageserver_types_1.MarkedString.fromPlainText(browserLabel));
                        }
                        if (contents.length) {
                            return {
                                contents: contents,
                                range: getRange(node)
                            };
                        }
                    }
                }
            }
            return null;
        };
        return CSSHover;
    }());
    exports.CSSHover = CSSHover;
});

(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/services/cssNavigation',["require", "exports", "vscode-languageserver-types", "vscode-nls", "../parser/cssNodes", "../parser/cssSymbolScope", "../languageFacts/facts", "../utils/strings"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    var vscode_languageserver_types_1 = require("vscode-languageserver-types");
    var nls = require("vscode-nls");
    var nodes = require("../parser/cssNodes");
    var cssSymbolScope_1 = require("../parser/cssSymbolScope");
    var facts_1 = require("../languageFacts/facts");
    var strings_1 = require("../utils/strings");
    var localize = nls.loadMessageBundle();
    var CSSNavigation = /** @class */ (function () {
        function CSSNavigation() {
        }
        CSSNavigation.prototype.findDefinition = function (document, position, stylesheet) {
            var symbols = new cssSymbolScope_1.Symbols(stylesheet);
            var offset = document.offsetAt(position);
            var node = nodes.getNodeAtOffset(stylesheet, offset);
            if (!node) {
                return null;
            }
            var symbol = symbols.findSymbolFromNode(node);
            if (!symbol) {
                return null;
            }
            return {
                uri: document.uri,
                range: getRange(symbol.node, document)
            };
        };
        CSSNavigation.prototype.findReferences = function (document, position, stylesheet) {
            var highlights = this.findDocumentHighlights(document, position, stylesheet);
            return highlights.map(function (h) {
                return {
                    uri: document.uri,
                    range: h.range
                };
            });
        };
        CSSNavigation.prototype.findDocumentHighlights = function (document, position, stylesheet) {
            var result = [];
            var offset = document.offsetAt(position);
            var node = nodes.getNodeAtOffset(stylesheet, offset);
            if (!node || node.type === nodes.NodeType.Stylesheet || node.type === nodes.NodeType.Declarations) {
                return result;
            }
            if (node.type === nodes.NodeType.Identifier && node.parent && node.parent.type === nodes.NodeType.ClassSelector) {
                node = node.parent;
            }
            var symbols = new cssSymbolScope_1.Symbols(stylesheet);
            var symbol = symbols.findSymbolFromNode(node);
            var name = node.getText();
            stylesheet.accept(function (candidate) {
                if (symbol) {
                    if (symbols.matchesSymbol(candidate, symbol)) {
                        result.push({
                            kind: getHighlightKind(candidate),
                            range: getRange(candidate, document)
                        });
                        return false;
                    }
                }
                else if (node.type === candidate.type && node.length === candidate.length && name === candidate.getText()) {
                    // Same node type and data
                    result.push({
                        kind: getHighlightKind(candidate),
                        range: getRange(candidate, document)
                    });
                }
                return true;
            });
            return result;
        };
        CSSNavigation.prototype.findDocumentLinks = function (document, stylesheet, documentContext) {
            var result = [];
            stylesheet.accept(function (candidate) {
                if (candidate.type === nodes.NodeType.URILiteral) {
                    var link = uriLiteralNodeToDocumentLink(document, candidate, documentContext);
                    if (link) {
                        result.push(link);
                    }
                    return false;
                }
                /**
                 * In @import, it is possible to include links that do not use `url()`
                 * For example, `@import 'foo.css';`
                 */
                if (candidate.parent && candidate.parent.type === nodes.NodeType.Import) {
                    var rawText = candidate.getText();
                    if (strings_1.startsWith(rawText, "'") || strings_1.startsWith(rawText, "\"")) {
                        result.push(uriStringNodeToDocumentLink(document, candidate, documentContext));
                    }
                    return false;
                }
                return true;
            });
            return result;
        };
        CSSNavigation.prototype.findDocumentSymbols = function (document, stylesheet) {
            var result = [];
            stylesheet.accept(function (node) {
                var entry = {
                    name: null,
                    kind: vscode_languageserver_types_1.SymbolKind.Class,
                    location: null
                };
                var locationNode = node;
                if (node instanceof nodes.Selector) {
                    entry.name = node.getText();
                    locationNode = node.findAParent(nodes.NodeType.Ruleset, nodes.NodeType.ExtendsReference);
                    if (locationNode) {
                        entry.location = vscode_languageserver_types_1.Location.create(document.uri, getRange(locationNode, document));
                        result.push(entry);
                    }
                    return false;
                }
                else if (node instanceof nodes.VariableDeclaration) {
                    entry.name = node.getName();
                    entry.kind = vscode_languageserver_types_1.SymbolKind.Variable;
                }
                else if (node instanceof nodes.MixinDeclaration) {
                    entry.name = node.getName();
                    entry.kind = vscode_languageserver_types_1.SymbolKind.Method;
                }
                else if (node instanceof nodes.FunctionDeclaration) {
                    entry.name = node.getName();
                    entry.kind = vscode_languageserver_types_1.SymbolKind.Function;
                }
                else if (node instanceof nodes.Keyframe) {
                    entry.name = localize('literal.keyframes', "@keyframes {0}", node.getName());
                }
                else if (node instanceof nodes.FontFace) {
                    entry.name = localize('literal.fontface', "@font-face");
                }
                if (entry.name) {
                    entry.location = vscode_languageserver_types_1.Location.create(document.uri, getRange(locationNode, document));
                    result.push(entry);
                }
                return true;
            });
            return result;
        };
        CSSNavigation.prototype.findDocumentColors = function (document, stylesheet) {
            var result = [];
            stylesheet.accept(function (node) {
                var colorInfo = getColorInformation(node, document);
                if (colorInfo) {
                    result.push(colorInfo);
                }
                return true;
            });
            return result;
        };
        CSSNavigation.prototype.getColorPresentations = function (document, stylesheet, color, range) {
            var result = [];
            var red256 = Math.round(color.red * 255), green256 = Math.round(color.green * 255), blue256 = Math.round(color.blue * 255);
            var label;
            if (color.alpha === 1) {
                label = "rgb(" + red256 + ", " + green256 + ", " + blue256 + ")";
            }
            else {
                label = "rgba(" + red256 + ", " + green256 + ", " + blue256 + ", " + color.alpha + ")";
            }
            result.push({ label: label, textEdit: vscode_languageserver_types_1.TextEdit.replace(range, label) });
            if (color.alpha === 1) {
                label = "#" + toTwoDigitHex(red256) + toTwoDigitHex(green256) + toTwoDigitHex(blue256);
            }
            else {
                label = "#" + toTwoDigitHex(red256) + toTwoDigitHex(green256) + toTwoDigitHex(blue256) + toTwoDigitHex(Math.round(color.alpha * 255));
            }
            result.push({ label: label, textEdit: vscode_languageserver_types_1.TextEdit.replace(range, label) });
            var hsl = facts_1.hslFromColor(color);
            if (hsl.a === 1) {
                label = "hsl(" + hsl.h + ", " + Math.round(hsl.s * 100) + "%, " + Math.round(hsl.l * 100) + "%)";
            }
            else {
                label = "hsla(" + hsl.h + ", " + Math.round(hsl.s * 100) + "%, " + Math.round(hsl.l * 100) + "%, " + hsl.a + ")";
            }
            result.push({ label: label, textEdit: vscode_languageserver_types_1.TextEdit.replace(range, label) });
            return result;
        };
        CSSNavigation.prototype.doRename = function (document, position, newName, stylesheet) {
            var _a;
            var highlights = this.findDocumentHighlights(document, position, stylesheet);
            var edits = highlights.map(function (h) { return vscode_languageserver_types_1.TextEdit.replace(h.range, newName); });
            return {
                changes: (_a = {}, _a[document.uri] = edits, _a)
            };
        };
        return CSSNavigation;
    }());
    exports.CSSNavigation = CSSNavigation;
    function getColorInformation(node, document) {
        var color = facts_1.getColorValue(node);
        if (color) {
            var range = getRange(node, document);
            return { color: color, range: range };
        }
        return null;
    }
    function uriLiteralNodeToDocumentLink(document, uriLiteralNode, documentContext) {
        if (uriLiteralNode.getChildren().length === 0) {
            return null;
        }
        var uriStringNode = uriLiteralNode.getChild(0);
        return uriStringNodeToDocumentLink(document, uriStringNode, documentContext);
    }
    function uriStringNodeToDocumentLink(document, uriStringNode, documentContext) {
        var rawUri = uriStringNode.getText();
        var range = getRange(uriStringNode, document);
        // Make sure the range is not empty
        if (range.start.line === range.end.line && range.start.character === range.end.character) {
            return null;
        }
        if (strings_1.startsWith(rawUri, "'") || strings_1.startsWith(rawUri, "\"")) {
            rawUri = rawUri.slice(1, -1);
        }
        var target;
        if (strings_1.startsWith(rawUri, 'http://') || strings_1.startsWith(rawUri, 'https://')) {
            target = rawUri;
        }
        else if (/^\w+:\/\//g.test(rawUri)) {
            target = rawUri;
        }
        else {
            /**
             * In SCSS, @import 'foo' could be referring to `_foo.scss`, if none of the following is true:
             * - The file's extension is .css.
             * - The filename begins with http://.
             * - The filename is a url().
             * - The @import has any media queries.
             */
            if (document.languageId === 'scss') {
                if (!strings_1.endsWith(rawUri, '.css') &&
                    !strings_1.startsWith(rawUri, 'http://') && !strings_1.startsWith(rawUri, 'https://') &&
                    !(uriStringNode.parent && uriStringNode.parent.type === nodes.NodeType.URILiteral) &&
                    uriStringNode.parent.getChildren().length === 1) {
                    target = toScssPartialUri(documentContext.resolveReference(rawUri, document.uri));
                }
                else {
                    target = documentContext.resolveReference(rawUri, document.uri);
                }
            }
            else {
                target = documentContext.resolveReference(rawUri, document.uri);
            }
        }
        return {
            range: range,
            target: target
        };
    }
    function toScssPartialUri(uri) {
        return uri.replace(/\/(\w+)(.scss)?$/gm, function (match, fileName) {
            return '/_' + fileName + '.scss';
        });
    }
    function getRange(node, document) {
        return vscode_languageserver_types_1.Range.create(document.positionAt(node.offset), document.positionAt(node.end));
    }
    function getHighlightKind(node) {
        if (node.type === nodes.NodeType.Selector) {
            return vscode_languageserver_types_1.DocumentHighlightKind.Write;
        }
        if (node instanceof nodes.Identifier) {
            if (node.parent && node.parent instanceof nodes.Property) {
                if (node.isCustomProperty) {
                    return vscode_languageserver_types_1.DocumentHighlightKind.Write;
                }
            }
        }
        if (node.parent) {
            switch (node.parent.type) {
                case nodes.NodeType.FunctionDeclaration:
                case nodes.NodeType.MixinDeclaration:
                case nodes.NodeType.Keyframe:
                case nodes.NodeType.VariableDeclaration:
                case nodes.NodeType.FunctionParameter:
                    return vscode_languageserver_types_1.DocumentHighlightKind.Write;
            }
        }
        return vscode_languageserver_types_1.DocumentHighlightKind.Read;
    }
    function toTwoDigitHex(n) {
        var r = n.toString(16);
        return r.length !== 2 ? '0' + r : r;
    }
});

(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/services/lintRules',["require", "exports", "../parser/cssNodes", "vscode-nls"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    var nodes = require("../parser/cssNodes");
    var nls = require("vscode-nls");
    var localize = nls.loadMessageBundle();
    var Warning = nodes.Level.Warning;
    var Error = nodes.Level.Error;
    var Ignore = nodes.Level.Ignore;
    var Rule = /** @class */ (function () {
        function Rule(id, message, defaultValue) {
            this.id = id;
            this.message = message;
            this.defaultValue = defaultValue;
            // nothing to do
        }
        return Rule;
    }());
    exports.Rule = Rule;
    var Setting = /** @class */ (function () {
        function Setting(id, message, defaultValue) {
            this.id = id;
            this.message = message;
            this.defaultValue = defaultValue;
            // nothing to do
        }
        return Setting;
    }());
    exports.Setting = Setting;
    exports.Rules = {
        AllVendorPrefixes: new Rule('compatibleVendorPrefixes', localize('rule.vendorprefixes.all', "When using a vendor-specific prefix make sure to also include all other vendor-specific properties"), Ignore),
        IncludeStandardPropertyWhenUsingVendorPrefix: new Rule('vendorPrefix', localize('rule.standardvendorprefix.all', "When using a vendor-specific prefix also include the standard property"), Warning),
        DuplicateDeclarations: new Rule('duplicateProperties', localize('rule.duplicateDeclarations', "Do not use duplicate style definitions"), Ignore),
        EmptyRuleSet: new Rule('emptyRules', localize('rule.emptyRuleSets', "Do not use empty rulesets"), Warning),
        ImportStatemement: new Rule('importStatement', localize('rule.importDirective', "Import statements do not load in parallel"), Ignore),
        BewareOfBoxModelSize: new Rule('boxModel', localize('rule.bewareOfBoxModelSize', "Do not use width or height when using padding or border"), Ignore),
        UniversalSelector: new Rule('universalSelector', localize('rule.universalSelector', "The universal selector (*) is known to be slow"), Ignore),
        ZeroWithUnit: new Rule('zeroUnits', localize('rule.zeroWidthUnit', "No unit for zero needed"), Ignore),
        RequiredPropertiesForFontFace: new Rule('fontFaceProperties', localize('rule.fontFaceProperties', "@font-face rule must define 'src' and 'font-family' properties"), Warning),
        HexColorLength: new Rule('hexColorLength', localize('rule.hexColor', "Hex colors must consist of three, four, six or eight hex numbers"), Error),
        ArgsInColorFunction: new Rule('argumentsInColorFunction', localize('rule.colorFunction', "Invalid number of parameters"), Error),
        UnknownProperty: new Rule('unknownProperties', localize('rule.unknownProperty', "Unknown property."), Warning),
        UnknownAtRules: new Rule('unknownAtRules', localize('rule.unknownAtRules', "Unknown at-rule."), Warning),
        IEStarHack: new Rule('ieHack', localize('rule.ieHack', "IE hacks are only necessary when supporting IE7 and older"), Ignore),
        UnknownVendorSpecificProperty: new Rule('unknownVendorSpecificProperties', localize('rule.unknownVendorSpecificProperty', "Unknown vendor specific property."), Ignore),
        PropertyIgnoredDueToDisplay: new Rule('propertyIgnoredDueToDisplay', localize('rule.propertyIgnoredDueToDisplay', "Property is ignored due to the display."), Warning),
        AvoidImportant: new Rule('important', localize('rule.avoidImportant', "Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored."), Ignore),
        AvoidFloat: new Rule('float', localize('rule.avoidFloat', "Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes."), Ignore),
        AvoidIdSelector: new Rule('idSelector', localize('rule.avoidIdSelector', "Selectors should not contain IDs because these rules are too tightly coupled with the HTML."), Ignore),
    };
    exports.Settings = {
        ValidProperties: new Setting('validProperties', localize('rule.validProperties', "A list of properties that are not validated against the `unknownProperties` rule."), [])
    };
    var LintConfigurationSettings = /** @class */ (function () {
        function LintConfigurationSettings(conf) {
            if (conf === void 0) { conf = {}; }
            this.conf = conf;
        }
        LintConfigurationSettings.prototype.getRule = function (rule) {
            if (this.conf.hasOwnProperty(rule.id)) {
                var level = toLevel(this.conf[rule.id]);
                if (level) {
                    return level;
                }
            }
            return rule.defaultValue;
        };
        LintConfigurationSettings.prototype.getSetting = function (setting) {
            return this.conf[setting.id];
        };
        return LintConfigurationSettings;
    }());
    exports.LintConfigurationSettings = LintConfigurationSettings;
    function toLevel(level) {
        switch (level) {
            case 'ignore': return nodes.Level.Ignore;
            case 'warning': return nodes.Level.Warning;
            case 'error': return nodes.Level.Error;
        }
        return null;
    }
});

(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/services/cssCodeActions',["require", "exports", "../parser/cssNodes", "../languageFacts/facts", "../utils/strings", "../services/lintRules", "vscode-languageserver-types", "vscode-nls"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    var nodes = require("../parser/cssNodes");
    var languageFacts = require("../languageFacts/facts");
    var strings_1 = require("../utils/strings");
    var lintRules_1 = require("../services/lintRules");
    var vscode_languageserver_types_1 = require("vscode-languageserver-types");
    var nls = require("vscode-nls");
    var localize = nls.loadMessageBundle();
    var CSSCodeActions = /** @class */ (function () {
        function CSSCodeActions() {
        }
        CSSCodeActions.prototype.doCodeActions = function (document, range, context, stylesheet) {
            return this.doCodeActions2(document, range, context, stylesheet).map(function (ca) {
                return vscode_languageserver_types_1.Command.create(ca.title, '_css.applyCodeAction', document.uri, document.version, ca.edit.documentChanges[0].edits);
            });
        };
        CSSCodeActions.prototype.doCodeActions2 = function (document, range, context, stylesheet) {
            var result = [];
            if (context.diagnostics) {
                for (var _i = 0, _a = context.diagnostics; _i < _a.length; _i++) {
                    var diagnostic = _a[_i];
                    this.appendFixesForMarker(document, stylesheet, diagnostic, result);
                }
            }
            return result;
        };
        CSSCodeActions.prototype.getFixesForUnknownProperty = function (document, property, marker, result) {
            var propertyName = property.getName();
            var candidates = [];
            languageFacts.cssDataManager.getProperties().forEach(function (p) {
                var score = strings_1.difference(propertyName, p.name);
                if (score >= propertyName.length / 2 /*score_lim*/) {
                    candidates.push({ property: p.name, score: score });
                }
            });
            // Sort in descending order.
            candidates.sort(function (a, b) {
                return b.score - a.score;
            });
            var maxActions = 3;
            for (var _i = 0, candidates_1 = candidates; _i < candidates_1.length; _i++) {
                var candidate = candidates_1[_i];
                var propertyName_1 = candidate.property;
                var title = localize('css.codeaction.rename', "Rename to '{0}'", propertyName_1);
                var edit = vscode_languageserver_types_1.TextEdit.replace(marker.range, propertyName_1);
                var documentIdentifier = vscode_languageserver_types_1.VersionedTextDocumentIdentifier.create(document.uri, document.version);
                var workspaceEdit = { documentChanges: [vscode_languageserver_types_1.TextDocumentEdit.create(documentIdentifier, [edit])] };
                var codeAction = vscode_languageserver_types_1.CodeAction.create(title, workspaceEdit, vscode_languageserver_types_1.CodeActionKind.QuickFix);
                codeAction.diagnostics = [marker];
                result.push(codeAction);
                if (--maxActions <= 0) {
                    return;
                }
            }
        };
        CSSCodeActions.prototype.appendFixesForMarker = function (document, stylesheet, marker, result) {
            if (marker.code !== lintRules_1.Rules.UnknownProperty.id) {
                return;
            }
            var offset = document.offsetAt(marker.range.start);
            var end = document.offsetAt(marker.range.end);
            var nodepath = nodes.getNodePath(stylesheet, offset);
            for (var i = nodepath.length - 1; i >= 0; i--) {
                var node = nodepath[i];
                if (node instanceof nodes.Declaration) {
                    var property = node.getProperty();
                    if (property && property.offset === offset && property.end === end) {
                        this.getFixesForUnknownProperty(document, property, marker, result);
                        return;
                    }
                }
            }
        };
        return CSSCodeActions;
    }());
    exports.CSSCodeActions = CSSCodeActions;
});

(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/services/lintUtil',["require", "exports", "../utils/arrays"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    var arrays_1 = require("../utils/arrays");
    var Element = /** @class */ (function () {
        function Element(text, data) {
            this.name = text;
            this.node = data;
        }
        return Element;
    }());
    exports.Element = Element;
    function setSide(model, side, value, property) {
        var state = model[side];
        state.value = value;
        if (value) {
            if (!arrays_1.includes(state.properties, property)) {
                state.properties.push(property);
            }
        }
    }
    function setAllSides(model, value, property) {
        setSide(model, 'top', value, property);
        setSide(model, 'right', value, property);
        setSide(model, 'bottom', value, property);
        setSide(model, 'left', value, property);
    }
    function updateModelWithValue(model, side, value, property) {
        if (side === 'top' || side === 'right' ||
            side === 'bottom' || side === 'left') {
            setSide(model, side, value, property);
        }
        else {
            setAllSides(model, value, property);
        }
    }
    function updateModelWithList(model, values, property) {
        switch (values.length) {
            case 1:
                updateModelWithValue(model, undefined, values[0], property);
                break;
            case 2:
                updateModelWithValue(model, 'top', values[0], property);
                updateModelWithValue(model, 'bottom', values[0], property);
                updateModelWithValue(model, 'right', values[1], property);
                updateModelWithValue(model, 'left', values[1], property);
                break;
            case 3:
                updateModelWithValue(model, 'top', values[0], property);
                updateModelWithValue(model, 'right', values[1], property);
                updateModelWithValue(model, 'left', values[1], property);
                updateModelWithValue(model, 'bottom', values[2], property);
                break;
            case 4:
                updateModelWithValue(model, 'top', values[0], property);
                updateModelWithValue(model, 'right', values[1], property);
                updateModelWithValue(model, 'bottom', values[2], property);
                updateModelWithValue(model, 'left', values[3], property);
                break;
        }
    }
    /**
     * @param allowsKeywords whether the initial value of property is zero, so keywords `initial` and `unset` count as zero
     * @return `true` if this node represents a non-zero border; otherwise, `false`
     */
    function checkLineWidth(value, allowsKeywords) {
        if (allowsKeywords === void 0) { allowsKeywords = true; }
        if (allowsKeywords && arrays_1.includes(['initial', 'unset'], value)) {
            return false;
        }
        // a <length> is a value and a unit
        // so use `parseFloat` to strip the unit
        return parseFloat(value) !== 0;
    }
    function checkLineWidthList(nodes, allowsKeywords) {
        if (allowsKeywords === void 0) { allowsKeywords = true; }
        return nodes.map(function (node) { return checkLineWidth(node.getText(), allowsKeywords); });
    }
    /**
     * @param allowsKeywords whether keywords `initial` and `unset` count as zero
     * @return `true` if this node represents a non-zero border; otherwise, `false`
     */
    function checkLineStyle(value, allowsKeywords) {
        if (allowsKeywords === void 0) { allowsKeywords = true; }
        if (arrays_1.includes(['none', 'hidden'], value)) {
            return false;
        }
        if (allowsKeywords && arrays_1.includes(['initial', 'unset'], value)) {
            return false;
        }
        return true;
    }
    function checkLineStyleList(nodes, allowsKeywords) {
        if (allowsKeywords === void 0) { allowsKeywords = true; }
        return nodes.map(function (node) { return checkLineStyle(node.getText(), allowsKeywords); });
    }
    function checkBorderShorthand(node) {
        var children = node.getChildren();
        // the only child can be a keyword, a <line-width>, or a <line-style>
        // if either check returns false, the result is no border
        if (children.length === 1) {
            var value = children[0].getText();
            return checkLineWidth(value) && checkLineStyle(value);
        }
        // multiple children can't contain keywords
        // if any child means no border, the result is no border
        for (var _i = 0, children_1 = children; _i < children_1.length; _i++) {
            var child = children_1[_i];
            var value = child.getText();
            if (!checkLineWidth(value, /* allowsKeywords: */ false) ||
                !checkLineStyle(value, /* allowsKeywords: */ false)) {
                return false;
            }
        }
        return true;
    }
    function calculateBoxModel(propertyTable) {
        var model = {
            top: { value: false, properties: [] },
            right: { value: false, properties: [] },
            bottom: { value: false, properties: [] },
            left: { value: false, properties: [] },
        };
        for (var _i = 0, propertyTable_1 = propertyTable; _i < propertyTable_1.length; _i++) {
            var property = propertyTable_1[_i];
            var value = property.node.value;
            if (typeof value === 'undefined') {
                continue;
            }
            switch (property.name) {
                case 'box-sizing':
                    // has `box-sizing`, bail out
                    return {
                        top: { value: false, properties: [] },
                        right: { value: false, properties: [] },
                        bottom: { value: false, properties: [] },
                        left: { value: false, properties: [] },
                    };
                case 'width':
                    model.width = property;
                    break;
                case 'height':
                    model.height = property;
                    break;
                default:
                    var segments = property.name.split('-');
                    switch (segments[0]) {
                        case 'border':
                            switch (segments[1]) {
                                case undefined:
                                case 'top':
                                case 'right':
                                case 'bottom':
                                case 'left':
                                    switch (segments[2]) {
                                        case undefined:
                                            updateModelWithValue(model, segments[1], checkBorderShorthand(value), property);
                                            break;
                                        case 'width':
                                            // the initial value of `border-width` is `medium`, not zero
                                            updateModelWithValue(model, segments[1], checkLineWidth(value.getText(), false), property);
                                            break;
                                        case 'style':
                                            // the initial value of `border-style` is `none`
                                            updateModelWithValue(model, segments[1], checkLineStyle(value.getText(), true), property);
                                            break;
                                    }
                                    break;
                                case 'width':
                                    // the initial value of `border-width` is `medium`, not zero
                                    updateModelWithList(model, checkLineWidthList(value.getChildren(), false), property);
                                    break;
                                case 'style':
                                    // the initial value of `border-style` is `none`
                                    updateModelWithList(model, checkLineStyleList(value.getChildren(), true), property);
                                    break;
                            }
                            break;
                        case 'padding':
                            if (segments.length === 1) {
                                // the initial value of `padding` is zero
                                updateModelWithList(model, checkLineWidthList(value.getChildren(), true), property);
                            }
                            else {
                                // the initial value of `padding` is zero
                                updateModelWithValue(model, segments[1], checkLineWidth(value.getText(), true), property);
                            }
                            break;
                    }
                    break;
            }
        }
        return model;
    }
    exports.default = calculateBoxModel;
});

(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/services/lint',["require", "exports", "../languageFacts/facts", "./lintRules", "../parser/cssNodes", "./lintUtil", "../utils/arrays", "vscode-nls"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    var languageFacts = require("../languageFacts/facts");
    var lintRules_1 = require("./lintRules");
    var nodes = require("../parser/cssNodes");
    var lintUtil_1 = require("./lintUtil");
    var arrays_1 = require("../utils/arrays");
    var nls = require("vscode-nls");
    var localize = nls.loadMessageBundle();
    var NodesByRootMap = /** @class */ (function () {
        function NodesByRootMap() {
            this.data = {};
        }
        NodesByRootMap.prototype.add = function (root, name, node) {
            var entry = this.data[root];
            if (!entry) {
                entry = { nodes: [], names: [] };
                this.data[root] = entry;
            }
            entry.names.push(name);
            if (node) {
                entry.nodes.push(node);
            }
        };
        return NodesByRootMap;
    }());
    var LintVisitor = /** @class */ (function () {
        function LintVisitor(document, settings) {
            var _this = this;
            this.warnings = [];
            this.settings = settings;
            this.documentText = document.getText();
            this.keyframes = new NodesByRootMap();
            this.validProperties = {};
            var properties = settings.getSetting(lintRules_1.Settings.ValidProperties);
            if (Array.isArray(properties)) {
                properties.forEach(function (p) {
                    if (typeof p === 'string') {
                        var name = p.trim().toLowerCase();
                        if (name.length) {
                            _this.validProperties[name] = true;
                        }
                    }
                });
            }
        }
        LintVisitor.entries = function (node, document, settings, entryFilter) {
            var visitor = new LintVisitor(document, settings);
            node.acceptVisitor(visitor);
            visitor.completeValidations();
            return visitor.getEntries(entryFilter);
        };
        LintVisitor.prototype.isValidPropertyDeclaration = function (decl) {
            var propertyName = decl.getFullPropertyName().toLowerCase();
            return this.validProperties[propertyName];
        };
        LintVisitor.prototype.fetch = function (input, s) {
            var elements = [];
            for (var _i = 0, input_1 = input; _i < input_1.length; _i++) {
                var curr = input_1[_i];
                if (curr.name === s) {
                    elements.push(curr);
                }
            }
            return elements;
        };
        LintVisitor.prototype.fetchWithValue = function (input, s, v) {
            var elements = [];
            for (var _i = 0, input_2 = input; _i < input_2.length; _i++) {
                var inputElement = input_2[_i];
                if (inputElement.name === s) {
                    var expression = inputElement.node.getValue();
                    if (expression && this.findValueInExpression(expression, v)) {
                        elements.push(inputElement);
                    }
                }
            }
            return elements;
        };
        LintVisitor.prototype.findValueInExpression = function (expression, v) {
            var found = false;
            expression.accept(function (node) {
                if (node.type === nodes.NodeType.Identifier && node.getText() === v) {
                    found = true;
                }
                return !found;
            });
            return found;
        };
        LintVisitor.prototype.getEntries = function (filter) {
            if (filter === void 0) { filter = (nodes.Level.Warning | nodes.Level.Error); }
            return this.warnings.filter(function (entry) {
                return (entry.getLevel() & filter) !== 0;
            });
        };
        LintVisitor.prototype.addEntry = function (node, rule, details) {
            var entry = new nodes.Marker(node, rule, this.settings.getRule(rule), details);
            this.warnings.push(entry);
        };
        LintVisitor.prototype.getMissingNames = function (expected, actual) {
            expected = expected.slice(0); // clone
            for (var i = 0; i < actual.length; i++) {
                var k = expected.indexOf(actual[i]);
                if (k !== -1) {
                    expected[k] = null;
                }
            }
            var result = null;
            for (var i = 0; i < expected.length; i++) {
                var curr = expected[i];
                if (curr) {
                    if (result === null) {
                        result = localize('namelist.single', "'{0}'", curr);
                    }
                    else {
                        result = localize('namelist.concatenated', "{0}, '{1}'", result, curr);
                    }
                }
            }
            return result;
        };
        LintVisitor.prototype.visitNode = function (node) {
            switch (node.type) {
                case nodes.NodeType.UnknownAtRule:
                    return this.visitUnknownAtRule(node);
                case nodes.NodeType.Keyframe:
                    return this.visitKeyframe(node);
                case nodes.NodeType.FontFace:
                    return this.visitFontFace(node);
                case nodes.NodeType.Ruleset:
                    return this.visitRuleSet(node);
                case nodes.NodeType.SimpleSelector:
                    return this.visitSimpleSelector(node);
                case nodes.NodeType.Function:
                    return this.visitFunction(node);
                case nodes.NodeType.NumericValue:
                    return this.visitNumericValue(node);
                case nodes.NodeType.Import:
                    return this.visitImport(node);
                case nodes.NodeType.HexColorValue:
                    return this.visitHexColorValue(node);
                case nodes.NodeType.Prio:
                    return this.visitPrio(node);
            }
            return true;
        };
        LintVisitor.prototype.completeValidations = function () {
            this.validateKeyframes();
        };
        LintVisitor.prototype.visitUnknownAtRule = function (node) {
            var atRuleName = node.getChild(0);
            if (!atRuleName) {
                return false;
            }
            this.addEntry(atRuleName, lintRules_1.Rules.UnknownAtRules, "Unknown at rule " + atRuleName.getText());
            return true;
        };
        LintVisitor.prototype.visitKeyframe = function (node) {
            var keyword = node.getKeyword();
            var text = keyword.getText();
            this.keyframes.add(node.getName(), text, (text !== '@keyframes') ? keyword : null);
            return true;
        };
        LintVisitor.prototype.validateKeyframes = function () {
            // @keyframe and it's vendor specific alternatives
            // @keyframe should be included
            var expected = ['@-webkit-keyframes', '@-moz-keyframes', '@-o-keyframes'];
            for (var name in this.keyframes.data) {
                var actual = this.keyframes.data[name].names;
                var needsStandard = (actual.indexOf('@keyframes') === -1);
                if (!needsStandard && actual.length === 1) {
                    continue; // only the non-vendor specific keyword is used, that's fine, no warning
                }
                var missingVendorSpecific = this.getMissingNames(expected, actual);
                if (missingVendorSpecific || needsStandard) {
                    for (var _i = 0, _a = this.keyframes.data[name].nodes; _i < _a.length; _i++) {
                        var node = _a[_i];
                        if (needsStandard) {
                            var message = localize('keyframes.standardrule.missing', "Always define standard rule '@keyframes' when defining keyframes.");
                            this.addEntry(node, lintRules_1.Rules.IncludeStandardPropertyWhenUsingVendorPrefix, message);
                        }
                        if (missingVendorSpecific) {
                            var message = localize('keyframes.vendorspecific.missing', "Always include all vendor specific rules: Missing: {0}", missingVendorSpecific);
                            this.addEntry(node, lintRules_1.Rules.AllVendorPrefixes, message);
                        }
                    }
                }
            }
            return true;
        };
        LintVisitor.prototype.visitSimpleSelector = function (node) {
            var firstChar = this.documentText.charAt(node.offset);
            /////////////////////////////////////////////////////////////
            //	Lint - The universal selector (*) is known to be slow.
            /////////////////////////////////////////////////////////////
            if (node.length === 1 && firstChar === '*') {
                this.addEntry(node, lintRules_1.Rules.UniversalSelector);
            }
            /////////////////////////////////////////////////////////////
            //	Lint - Avoid id selectors
            /////////////////////////////////////////////////////////////
            if (firstChar === '#') {
                this.addEntry(node, lintRules_1.Rules.AvoidIdSelector);
            }
            return true;
        };
        LintVisitor.prototype.visitImport = function (node) {
            /////////////////////////////////////////////////////////////
            //	Lint - Import statements shouldn't be used, because they aren't offering parallel downloads.
            /////////////////////////////////////////////////////////////
            this.addEntry(node, lintRules_1.Rules.ImportStatemement);
            return true;
        };
        LintVisitor.prototype.visitRuleSet = function (node) {
            /////////////////////////////////////////////////////////////
            //	Lint - Don't use empty rulesets.
            /////////////////////////////////////////////////////////////
            var declarations = node.getDeclarations();
            if (!declarations) {
                // syntax error
                return false;
            }
            if (!declarations.hasChildren()) {
                this.addEntry(node.getSelectors(), lintRules_1.Rules.EmptyRuleSet);
            }
            var propertyTable = [];
            for (var _i = 0, _a = declarations.getChildren(); _i < _a.length; _i++) {
                var element = _a[_i];
                if (element instanceof nodes.Declaration) {
                    var decl = element;
                    propertyTable.push(new lintUtil_1.Element(decl.getFullPropertyName().toLowerCase(), decl));
                }
            }
            /////////////////////////////////////////////////////////////
            // the rule warns when it finds:
            // width being used with border, border-left, border-right, padding, padding-left, or padding-right
            // height being used with border, border-top, border-bottom, padding, padding-top, or padding-bottom
            // No error when box-sizing property is specified, as it assumes the user knows what he's doing.
            // see https://github.com/CSSLint/csslint/wiki/Beware-of-box-model-size
            /////////////////////////////////////////////////////////////
            var boxModel = lintUtil_1.default(propertyTable);
            if (boxModel.width) {
                var properties = [];
                if (boxModel.right.value) {
                    properties = arrays_1.union(properties, boxModel.right.properties);
                }
                if (boxModel.left.value) {
                    properties = arrays_1.union(properties, boxModel.left.properties);
                }
                if (properties.length !== 0) {
                    for (var _b = 0, properties_1 = properties; _b < properties_1.length; _b++) {
                        var item = properties_1[_b];
                        this.addEntry(item.node, lintRules_1.Rules.BewareOfBoxModelSize);
                    }
                    this.addEntry(boxModel.width.node, lintRules_1.Rules.BewareOfBoxModelSize);
                }
            }
            if (boxModel.height) {
                var properties = [];
                if (boxModel.top.value) {
                    properties = arrays_1.union(properties, boxModel.top.properties);
                }
                if (boxModel.bottom.value) {
                    properties = arrays_1.union(properties, boxModel.bottom.properties);
                }
                if (properties.length !== 0) {
                    for (var _c = 0, properties_2 = properties; _c < properties_2.length; _c++) {
                        var item = properties_2[_c];
                        this.addEntry(item.node, lintRules_1.Rules.BewareOfBoxModelSize);
                    }
                    this.addEntry(boxModel.height.node, lintRules_1.Rules.BewareOfBoxModelSize);
                }
            }
            /////////////////////////////////////////////////////////////
            //	Properties ignored due to display
            /////////////////////////////////////////////////////////////
            // With 'display: inline', the width, height, margin-top, margin-bottom, and float properties have no effect
            var displayElems = this.fetchWithValue(propertyTable, 'display', 'inline');
            if (displayElems.length > 0) {
                for (var _d = 0, _e = ['width', 'height', 'margin-top', 'margin-bottom', 'float']; _d < _e.length; _d++) {
                    var prop = _e[_d];
                    var elem = this.fetch(propertyTable, prop);
                    for (var index = 0; index < elem.length; index++) {
                        var node_1 = elem[index].node;
                        var value = node_1.getValue();
                        if (prop === 'float' && (!value || value.matches('none'))) {
                            continue;
                        }
                        this.addEntry(node_1, lintRules_1.Rules.PropertyIgnoredDueToDisplay, localize('rule.propertyIgnoredDueToDisplayInline', "Property is ignored due to the display. With 'display: inline', the width, height, margin-top, margin-bottom, and float properties have no effect."));
                    }
                }
            }
            // With 'display: inline-block', 'float' has no effect
            displayElems = this.fetchWithValue(propertyTable, 'display', 'inline-block');
            if (displayElems.length > 0) {
                var elem = this.fetch(propertyTable, 'float');
                for (var index = 0; index < elem.length; index++) {
                    var node_2 = elem[index].node;
                    var value = node_2.getValue();
                    if (value && !value.matches('none')) {
                        this.addEntry(node_2, lintRules_1.Rules.PropertyIgnoredDueToDisplay, localize('rule.propertyIgnoredDueToDisplayInlineBlock', "inline-block is ignored due to the float. If 'float' has a value other than 'none', the box is floated and 'display' is treated as 'block'"));
                    }
                }
            }
            // With 'display: block', 'vertical-align' has no effect
            displayElems = this.fetchWithValue(propertyTable, 'display', 'block');
            if (displayElems.length > 0) {
                var elem = this.fetch(propertyTable, 'vertical-align');
                for (var index = 0; index < elem.length; index++) {
                    this.addEntry(elem[index].node, lintRules_1.Rules.PropertyIgnoredDueToDisplay, localize('rule.propertyIgnoredDueToDisplayBlock', "Property is ignored due to the display. With 'display: block', vertical-align should not be used."));
                }
            }
            /////////////////////////////////////////////////////////////
            //	Avoid 'float'
            /////////////////////////////////////////////////////////////
            var elements = this.fetch(propertyTable, 'float');
            for (var index = 0; index < elements.length; index++) {
                var decl = elements[index].node;
                if (!this.isValidPropertyDeclaration(decl)) {
                    this.addEntry(decl, lintRules_1.Rules.AvoidFloat);
                }
            }
            /////////////////////////////////////////////////////////////
            //	Don't use duplicate declarations.
            /////////////////////////////////////////////////////////////
            for (var i = 0; i < propertyTable.length; i++) {
                var element = propertyTable[i];
                if (element.name !== 'background' && !this.validProperties[element.name]) {
                    var value = element.node.getValue();
                    if (value && this.documentText.charAt(value.offset) !== '-') {
                        var elements_1 = this.fetch(propertyTable, element.name);
                        if (elements_1.length > 1) {
                            for (var k = 0; k < elements_1.length; k++) {
                                var value_1 = elements_1[k].node.getValue();
                                if (value_1 && this.documentText.charAt(value_1.offset) !== '-' && elements_1[k] !== element) {
                                    this.addEntry(element.node, lintRules_1.Rules.DuplicateDeclarations);
                                }
                            }
                        }
                    }
                }
            }
            /////////////////////////////////////////////////////////////
            //	Unknown propery & When using a vendor-prefixed gradient, make sure to use them all.
            /////////////////////////////////////////////////////////////
            var isExportBlock = node.getSelectors().getText() === ":export";
            if (!isExportBlock) {
                var propertiesBySuffix = new NodesByRootMap();
                var containsUnknowns = false;
                for (var _f = 0, _g = declarations.getChildren(); _f < _g.length; _f++) {
                    var node_3 = _g[_f];
                    if (this.isCSSDeclaration(node_3)) {
                        var decl = node_3;
                        var name = decl.getFullPropertyName().toLowerCase();
                        var firstChar = name.charAt(0);
                        if (firstChar === '-') {
                            if (name.charAt(1) !== '-') { // avoid css variables
                                if (!languageFacts.cssDataManager.isKnownProperty(name) && !this.validProperties[name]) {
                                    this.addEntry(decl.getProperty(), lintRules_1.Rules.UnknownVendorSpecificProperty);
                                }
                                var nonPrefixedName = decl.getNonPrefixedPropertyName();
                                propertiesBySuffix.add(nonPrefixedName, name, decl.getProperty());
                            }
                        }
                        else {
                            var fullName = name;
                            if (firstChar === '*' || firstChar === '_') {
                                this.addEntry(decl.getProperty(), lintRules_1.Rules.IEStarHack);
                                name = name.substr(1);
                            }
                            // _property and *property might be contributed via custom data
                            if (!languageFacts.cssDataManager.isKnownProperty(fullName) && !languageFacts.cssDataManager.isKnownProperty(name)) {
                                if (!this.validProperties[name]) {
                                    this.addEntry(decl.getProperty(), lintRules_1.Rules.UnknownProperty, localize('property.unknownproperty.detailed', "Unknown property: '{0}'", name));
                                }
                            }
                            propertiesBySuffix.add(name, name, null); // don't pass the node as we don't show errors on the standard
                        }
                    }
                    else {
                        containsUnknowns = true;
                    }
                }
                if (!containsUnknowns) { // don't perform this test if there are
                    for (var suffix in propertiesBySuffix.data) {
                        var entry = propertiesBySuffix.data[suffix];
                        var actual = entry.names;
                        var needsStandard = languageFacts.cssDataManager.isStandardProperty(suffix) && (actual.indexOf(suffix) === -1);
                        if (!needsStandard && actual.length === 1) {
                            continue; // only the non-vendor specific rule is used, that's fine, no warning
                        }
                        var expected = [];
                        for (var i = 0, len = LintVisitor.prefixes.length; i < len; i++) {
                            var prefix = LintVisitor.prefixes[i];
                            if (languageFacts.cssDataManager.isStandardProperty(prefix + suffix)) {
                                expected.push(prefix + suffix);
                            }
                        }
                        var missingVendorSpecific = this.getMissingNames(expected, actual);
                        if (missingVendorSpecific || needsStandard) {
                            for (var _h = 0, _j = entry.nodes; _h < _j.length; _h++) {
                                var node_4 = _j[_h];
                                if (needsStandard) {
                                    var message = localize('property.standard.missing', "Also define the standard property '{0}' for compatibility", suffix);
                                    this.addEntry(node_4, lintRules_1.Rules.IncludeStandardPropertyWhenUsingVendorPrefix, message);
                                }
                                if (missingVendorSpecific) {
                                    var message = localize('property.vendorspecific.missing', "Always include all vendor specific properties: Missing: {0}", missingVendorSpecific);
                                    this.addEntry(node_4, lintRules_1.Rules.AllVendorPrefixes, message);
                                }
                            }
                        }
                    }
                }
            }
            return true;
        };
        LintVisitor.prototype.visitPrio = function (node) {
            /////////////////////////////////////////////////////////////
            //	Don't use !important
            /////////////////////////////////////////////////////////////
            this.addEntry(node, lintRules_1.Rules.AvoidImportant);
            return true;
        };
        LintVisitor.prototype.visitNumericValue = function (node) {
            /////////////////////////////////////////////////////////////
            //	0 has no following unit
            /////////////////////////////////////////////////////////////
            var funcDecl = node.findParent(nodes.NodeType.Function);
            if (funcDecl && funcDecl.getName() === 'calc') {
                return true;
            }
            var decl = node.findParent(nodes.NodeType.Declaration);
            if (decl) {
                var declValue = decl.getValue();
                if (declValue) {
                    var value = node.getValue();
                    if (!value.unit || languageFacts.units.length.indexOf(value.unit.toLowerCase()) === -1) {
                        return true;
                    }
                    if (parseFloat(value.value) === 0.0 && !!value.unit && !this.validProperties[decl.getFullPropertyName()]) {
                        this.addEntry(node, lintRules_1.Rules.ZeroWithUnit);
                    }
                }
            }
            return true;
        };
        LintVisitor.prototype.visitFontFace = function (node) {
            var declarations = node.getDeclarations();
            if (!declarations) {
                // syntax error
                return;
            }
            var definesSrc = false, definesFontFamily = false;
            var containsUnknowns = false;
            for (var _i = 0, _a = declarations.getChildren(); _i < _a.length; _i++) {
                var node_5 = _a[_i];
                if (this.isCSSDeclaration(node_5)) {
                    var name = (node_5.getProperty().getName().toLowerCase());
                    if (name === 'src') {
                        definesSrc = true;
                    }
                    if (name === 'font-family') {
                        definesFontFamily = true;
                    }
                }
                else {
                    containsUnknowns = true;
                }
            }
            if (!containsUnknowns && (!definesSrc || !definesFontFamily)) {
                this.addEntry(node, lintRules_1.Rules.RequiredPropertiesForFontFace);
            }
            return true;
        };
        LintVisitor.prototype.isCSSDeclaration = function (node) {
            if (node instanceof nodes.Declaration) {
                if (!node.getValue()) {
                    return false;
                }
                var property = node.getProperty();
                if (!property || property.getIdentifier().containsInterpolation()) {
                    return false;
                }
                return true;
            }
            return false;
        };
        LintVisitor.prototype.visitHexColorValue = function (node) {
            // Rule: #eeff0011 or #eeff00 or #ef01 or #ef0
            var length = node.length;
            if (length !== 9 && length !== 7 && length !== 5 && length !== 4) {
                this.addEntry(node, lintRules_1.Rules.HexColorLength);
            }
            return false;
        };
        LintVisitor.prototype.visitFunction = function (node) {
            var fnName = node.getName().toLowerCase();
            var expectedAttrCount = -1;
            var actualAttrCount = 0;
            switch (fnName) {
                case 'rgb(':
                case 'hsl(':
                    expectedAttrCount = 3;
                    break;
                case 'rgba(':
                case 'hsla(':
                    expectedAttrCount = 4;
                    break;
            }
            if (expectedAttrCount !== -1) {
                node.getArguments().accept(function (n) {
                    if (n instanceof nodes.BinaryExpression) {
                        actualAttrCount += 1;
                        return false;
                    }
                    return true;
                });
                if (actualAttrCount !== expectedAttrCount) {
                    this.addEntry(node, lintRules_1.Rules.ArgsInColorFunction);
                }
            }
            return true;
        };
        LintVisitor.prefixes = [
            '-ms-', '-moz-', '-o-', '-webkit-',
        ];
        return LintVisitor;
    }());
    exports.LintVisitor = LintVisitor;
});

(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/services/cssValidation',["require", "exports", "../parser/cssNodes", "vscode-languageserver-types", "./lintRules", "./lint"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    var nodes = require("../parser/cssNodes");
    var vscode_languageserver_types_1 = require("vscode-languageserver-types");
    var lintRules_1 = require("./lintRules");
    var lint_1 = require("./lint");
    var CSSValidation = /** @class */ (function () {
        function CSSValidation() {
        }
        CSSValidation.prototype.configure = function (settings) {
            this.settings = settings;
        };
        CSSValidation.prototype.doValidation = function (document, stylesheet, settings) {
            if (settings === void 0) { settings = this.settings; }
            if (settings && settings.validate === false) {
                return [];
            }
            var entries = [];
            entries.push.apply(entries, nodes.ParseErrorCollector.entries(stylesheet));
            entries.push.apply(entries, lint_1.LintVisitor.entries(stylesheet, document, new lintRules_1.LintConfigurationSettings(settings && settings.lint)));
            var ruleIds = [];
            for (var r in lintRules_1.Rules) {
                ruleIds.push(lintRules_1.Rules[r].id);
            }
            function toDiagnostic(marker) {
                var range = vscode_languageserver_types_1.Range.create(document.positionAt(marker.getOffset()), document.positionAt(marker.getOffset() + marker.getLength()));
                var source = document.languageId;
                return {
                    code: marker.getRule().id,
                    source: source,
                    message: marker.getMessage(),
                    severity: marker.getLevel() === nodes.Level.Warning ? vscode_languageserver_types_1.DiagnosticSeverity.Warning : vscode_languageserver_types_1.DiagnosticSeverity.Error,
                    range: range
                };
            }
            return entries.filter(function (entry) { return entry.getLevel() !== nodes.Level.Ignore; }).map(toDiagnostic);
        };
        return CSSValidation;
    }());
    exports.CSSValidation = CSSValidation;
});

var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/parser/scssScanner',["require", "exports", "./cssScanner"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    var cssScanner_1 = require("./cssScanner");
    var _FSL = '/'.charCodeAt(0);
    var _NWL = '\n'.charCodeAt(0);
    var _CAR = '\r'.charCodeAt(0);
    var _LFD = '\f'.charCodeAt(0);
    var _DLR = '$'.charCodeAt(0);
    var _HSH = '#'.charCodeAt(0);
    var _CUL = '{'.charCodeAt(0);
    var _EQS = '='.charCodeAt(0);
    var _BNG = '!'.charCodeAt(0);
    var _LAN = '<'.charCodeAt(0);
    var _RAN = '>'.charCodeAt(0);
    var _DOT = '.'.charCodeAt(0);
    var customTokenValue = cssScanner_1.TokenType.CustomToken;
    exports.VariableName = customTokenValue++;
    exports.InterpolationFunction = customTokenValue++;
    exports.Default = customTokenValue++;
    exports.EqualsOperator = customTokenValue++;
    exports.NotEqualsOperator = customTokenValue++;
    exports.GreaterEqualsOperator = customTokenValue++;
    exports.SmallerEqualsOperator = customTokenValue++;
    exports.Ellipsis = customTokenValue++;
    var SCSSScanner = /** @class */ (function (_super) {
        __extends(SCSSScanner, _super);
        function SCSSScanner() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        SCSSScanner.prototype.scanNext = function (offset) {
            // scss variable
            if (this.stream.advanceIfChar(_DLR)) {
                var content = ['$'];
                if (this.ident(content)) {
                    return this.finishToken(offset, exports.VariableName, content.join(''));
                }
                else {
                    this.stream.goBackTo(offset);
                }
            }
            // scss: interpolation function #{..})
            if (this.stream.advanceIfChars([_HSH, _CUL])) {
                return this.finishToken(offset, exports.InterpolationFunction);
            }
            // operator ==
            if (this.stream.advanceIfChars([_EQS, _EQS])) {
                return this.finishToken(offset, exports.EqualsOperator);
            }
            // operator !=
            if (this.stream.advanceIfChars([_BNG, _EQS])) {
                return this.finishToken(offset, exports.NotEqualsOperator);
            }
            // operators <, <=
            if (this.stream.advanceIfChar(_LAN)) {
                if (this.stream.advanceIfChar(_EQS)) {
                    return this.finishToken(offset, exports.SmallerEqualsOperator);
                }
                return this.finishToken(offset, cssScanner_1.TokenType.Delim);
            }
            // ooperators >, >=
            if (this.stream.advanceIfChar(_RAN)) {
                if (this.stream.advanceIfChar(_EQS)) {
                    return this.finishToken(offset, exports.GreaterEqualsOperator);
                }
                return this.finishToken(offset, cssScanner_1.TokenType.Delim);
            }
            // ellipis
            if (this.stream.advanceIfChars([_DOT, _DOT, _DOT])) {
                return this.finishToken(offset, exports.Ellipsis);
            }
            return _super.prototype.scanNext.call(this, offset);
        };
        SCSSScanner.prototype.comment = function () {
            if (_super.prototype.comment.call(this)) {
                return true;
            }
            if (!this.inURL && this.stream.advanceIfChars([_FSL, _FSL])) {
                this.stream.advanceWhileChar(function (ch) {
                    switch (ch) {
                        case _NWL:
                        case _CAR:
                        case _LFD:
                            return false;
                        default:
                            return true;
                    }
                });
                return true;
            }
            else {
                return false;
            }
        };
        return SCSSScanner;
    }(cssScanner_1.Scanner));
    exports.SCSSScanner = SCSSScanner;
});

(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/parser/scssErrors',["require", "exports", "vscode-nls"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    var nls = require("vscode-nls");
    var localize = nls.loadMessageBundle();
    var SCSSIssueType = /** @class */ (function () {
        function SCSSIssueType(id, message) {
            this.id = id;
            this.message = message;
        }
        return SCSSIssueType;
    }());
    exports.SCSSIssueType = SCSSIssueType;
    exports.SCSSParseError = {
        FromExpected: new SCSSIssueType('scss-fromexpected', localize('expected.from', "'from' expected")),
        ThroughOrToExpected: new SCSSIssueType('scss-throughexpected', localize('expected.through', "'through' or 'to' expected")),
        InExpected: new SCSSIssueType('scss-fromexpected', localize('expected.in', "'in' expected")),
    };
});

var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/parser/scssParser',["require", "exports", "./scssScanner", "./cssScanner", "./cssParser", "./cssNodes", "./scssErrors", "./cssErrors"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    var scssScanner = require("./scssScanner");
    var cssScanner_1 = require("./cssScanner");
    var cssParser = require("./cssParser");
    var nodes = require("./cssNodes");
    var scssErrors_1 = require("./scssErrors");
    var cssErrors_1 = require("./cssErrors");
    /// <summary>
    /// A parser for scss
    /// http://sass-lang.com/documentation/file.SASS_REFERENCE.html
    /// </summary>
    var SCSSParser = /** @class */ (function (_super) {
        __extends(SCSSParser, _super);
        function SCSSParser() {
            return _super.call(this, new scssScanner.SCSSScanner()) || this;
        }
        SCSSParser.prototype._parseStylesheetStatement = function () {
            if (this.peek(cssScanner_1.TokenType.AtKeyword)) {
                return this._parseWarnAndDebug()
                    || this._parseControlStatement()
                    || this._parseMixinDeclaration()
                    || this._parseMixinContent()
                    || this._parseMixinReference() // @include
                    || this._parseFunctionDeclaration()
                    || _super.prototype._parseStylesheetAtStatement.call(this);
            }
            return this._parseRuleset(true) || this._parseVariableDeclaration();
        };
        SCSSParser.prototype._parseImport = function () {
            if (!this.peekKeyword('@import')) {
                return null;
            }
            var node = this.create(nodes.Import);
            this.consumeToken();
            if (!node.addChild(this._parseURILiteral()) && !node.addChild(this._parseStringLiteral())) {
                return this.finish(node, cssErrors_1.ParseError.URIOrStringExpected);
            }
            while (this.accept(cssScanner_1.TokenType.Comma)) {
                if (!node.addChild(this._parseURILiteral()) && !node.addChild(this._parseStringLiteral())) {
                    return this.finish(node, cssErrors_1.ParseError.URIOrStringExpected);
                }
            }
            if (!this.peek(cssScanner_1.TokenType.SemiColon) && !this.peek(cssScanner_1.TokenType.EOF)) {
                node.setMedialist(this._parseMediaQueryList());
            }
            return this.finish(node);
        };
        // scss variables: $font-size: 12px;
        SCSSParser.prototype._parseVariableDeclaration = function (panic) {
            if (panic === void 0) { panic = []; }
            if (!this.peek(scssScanner.VariableName)) {
                return null;
            }
            var node = this.create(nodes.VariableDeclaration);
            if (!node.setVariable(this._parseVariable())) {
                return null;
            }
            if (!this.accept(cssScanner_1.TokenType.Colon)) {
                return this.finish(node, cssErrors_1.ParseError.ColonExpected);
            }
            node.colonPosition = this.prevToken.offset;
            if (!node.setValue(this._parseExpr())) {
                return this.finish(node, cssErrors_1.ParseError.VariableValueExpected, [], panic);
            }
            while (this.accept(cssScanner_1.TokenType.Exclamation)) {
                if (!this.peekRegExp(cssScanner_1.TokenType.Ident, /^(default|global)$/)) {
                    return this.finish(node, cssErrors_1.ParseError.UnknownKeyword);
                }
                this.consumeToken();
            }
            if (this.peek(cssScanner_1.TokenType.SemiColon)) {
                node.semicolonPosition = this.token.offset; // not part of the declaration, but useful information for code assist
            }
            return this.finish(node);
        };
        SCSSParser.prototype._parseMediaFeatureName = function () {
            return this._parseFunction() || this._parseIdent() || this._parseVariable(); // first function, the indent
        };
        SCSSParser.prototype._parseKeyframeSelector = function () {
            return this._tryParseKeyframeSelector()
                || this._parseControlStatement(this._parseKeyframeSelector.bind(this))
                || this._parseVariableDeclaration()
                || this._parseMixinContent();
        };
        SCSSParser.prototype._parseVariable = function () {
            if (!this.peek(scssScanner.VariableName)) {
                return null;
            }
            var node = this.create(nodes.Variable);
            this.consumeToken();
            return node;
        };
        SCSSParser.prototype._parseIdent = function (referenceTypes) {
            var _this = this;
            if (!this.peek(cssScanner_1.TokenType.Ident) && !this.peek(scssScanner.InterpolationFunction) && !this.peekDelim('-')) {
                return null;
            }
            var node = this.create(nodes.Identifier);
            node.referenceTypes = referenceTypes;
            node.isCustomProperty = this.peekRegExp(cssScanner_1.TokenType.Ident, /^--/);
            var hasContent = false;
            var indentInterpolation = function () {
                var pos = _this.mark();
                if (_this.acceptDelim('-')) {
                    if (!_this.hasWhitespace()) {
                        _this.acceptDelim('-');
                    }
                    if (_this.hasWhitespace()) {
                        _this.restoreAtMark(pos);
                        return null;
                    }
                }
                return _this._parseInterpolation();
            };
            while (this.accept(cssScanner_1.TokenType.Ident) || node.addChild(indentInterpolation()) || (hasContent && (this.acceptDelim('-') || this.accept(cssScanner_1.TokenType.Num)))) {
                hasContent = true;
                if (this.hasWhitespace()) {
                    break;
                }
            }
            return hasContent ? this.finish(node) : null;
        };
        SCSSParser.prototype._parseTerm = function () {
            var term = _super.prototype._parseTerm.call(this);
            if (term) {
                return term;
            }
            term = this.create(nodes.Term);
            if (term.setExpression(this._parseVariable())
                || term.setExpression(this._parseSelectorCombinator())
                || term.setExpression(this._tryParsePrio())) {
                return this.finish(term);
            }
            return null;
        };
        SCSSParser.prototype._parseInterpolation = function () {
            if (this.peek(scssScanner.InterpolationFunction)) {
                var node = this.create(nodes.Interpolation);
                this.consumeToken();
                if (!node.addChild(this._parseExpr()) && !this._parseSelectorCombinator()) {
                    if (this.accept(cssScanner_1.TokenType.CurlyR)) {
                        return this.finish(node);
                    }
                    return this.finish(node, cssErrors_1.ParseError.ExpressionExpected);
                }
                if (!this.accept(cssScanner_1.TokenType.CurlyR)) {
                    return this.finish(node, cssErrors_1.ParseError.RightCurlyExpected);
                }
                return this.finish(node);
            }
            return null;
        };
        SCSSParser.prototype._parseOperator = function () {
            if (this.peek(scssScanner.EqualsOperator) || this.peek(scssScanner.NotEqualsOperator)
                || this.peek(scssScanner.GreaterEqualsOperator) || this.peek(scssScanner.SmallerEqualsOperator)
                || this.peekDelim('>') || this.peekDelim('<')
                || this.peekIdent('and') || this.peekIdent('or')
                || this.peekDelim('%')) {
                var node = this.createNode(nodes.NodeType.Operator);
                this.consumeToken();
                return this.finish(node);
            }
            return _super.prototype._parseOperator.call(this);
        };
        SCSSParser.prototype._parseUnaryOperator = function () {
            if (this.peekIdent('not')) {
                var node = this.create(nodes.Node);
                this.consumeToken();
                return this.finish(node);
            }
            return _super.prototype._parseUnaryOperator.call(this);
        };
        SCSSParser.prototype._parseRuleSetDeclaration = function () {
            if (this.peek(cssScanner_1.TokenType.AtKeyword)) {
                return this._parseKeyframe() // nested @keyframe
                    || this._parseImport() // nested @import
                    || this._parseMedia(true) // nested @media
                    || this._parseFontFace() // nested @font-face
                    || this._parseWarnAndDebug() // @warn, @debug and @error statements
                    || this._parseControlStatement() // @if, @while, @for, @each
                    || this._parseFunctionDeclaration() // @function
                    || this._parseExtends() // @extends
                    || this._parseMixinReference() // @include
                    || this._parseMixinContent() // @content
                    || this._parseMixinDeclaration() // nested @mixin
                    || this._parseRuleset(true) // @at-rule
                    || this._parseSupports(true); // @supports
            }
            return this._parseVariableDeclaration() // variable declaration
                || this._tryParseRuleset(true) // nested ruleset
                || _super.prototype._parseRuleSetDeclaration.call(this); // try css ruleset declaration as last so in the error case, the ast will contain a declaration
        };
        SCSSParser.prototype._parseDeclaration = function (resyncStopTokens) {
            var node = this.create(nodes.Declaration);
            if (!node.setProperty(this._parseProperty())) {
                return null;
            }
            if (!this.accept(cssScanner_1.TokenType.Colon)) {
                return this.finish(node, cssErrors_1.ParseError.ColonExpected, [cssScanner_1.TokenType.Colon], resyncStopTokens);
            }
            node.colonPosition = this.prevToken.offset;
            var hasContent = false;
            if (node.setValue(this._parseExpr())) {
                hasContent = true;
                node.addChild(this._parsePrio());
            }
            if (this.peek(cssScanner_1.TokenType.CurlyL)) {
                node.setNestedProperties(this._parseNestedProperties());
            }
            else {
                if (!hasContent) {
                    return this.finish(node, cssErrors_1.ParseError.PropertyValueExpected);
                }
            }
            if (this.peek(cssScanner_1.TokenType.SemiColon)) {
                node.semicolonPosition = this.token.offset; // not part of the declaration, but useful information for code assist
            }
            return this.finish(node);
        };
        SCSSParser.prototype._parseNestedProperties = function () {
            var node = this.create(nodes.NestedProperties);
            return this._parseBody(node, this._parseDeclaration.bind(this));
        };
        SCSSParser.prototype._parseExtends = function () {
            if (this.peekKeyword('@extend')) {
                var node = this.create(nodes.ExtendsReference);
                this.consumeToken();
                if (!node.getSelectors().addChild(this._parseSimpleSelector())) {
                    return this.finish(node, cssErrors_1.ParseError.SelectorExpected);
                }
                while (this.accept(cssScanner_1.TokenType.Comma)) {
                    node.getSelectors().addChild(this._parseSimpleSelector());
                }
                if (this.accept(cssScanner_1.TokenType.Exclamation)) {
                    if (!this.acceptIdent('optional')) {
                        return this.finish(node, cssErrors_1.ParseError.UnknownKeyword);
                    }
                }
                return this.finish(node);
            }
            return null;
        };
        SCSSParser.prototype._parseSimpleSelectorBody = function () {
            return this._parseSelectorCombinator() || this._parseSelectorPlaceholder() || _super.prototype._parseSimpleSelectorBody.call(this);
        };
        SCSSParser.prototype._parseSelectorCombinator = function () {
            if (this.peekDelim('&')) {
                var node = this.createNode(nodes.NodeType.SelectorCombinator);
                this.consumeToken();
                while (!this.hasWhitespace() && (this.acceptDelim('-') || this.accept(cssScanner_1.TokenType.Num) || this.accept(cssScanner_1.TokenType.Dimension) || node.addChild(this._parseIdent()) || this.acceptDelim('&'))) {
                    //  support &-foo-1
                }
                return this.finish(node);
            }
            return null;
        };
        SCSSParser.prototype._parseSelectorPlaceholder = function () {
            if (this.peekDelim('%')) {
                var node = this.createNode(nodes.NodeType.SelectorPlaceholder);
                this.consumeToken();
                this._parseIdent();
                return this.finish(node);
            }
            else if (this.peekKeyword('@at-root')) {
                var node = this.createNode(nodes.NodeType.SelectorPlaceholder);
                this.consumeToken();
                return this.finish(node);
            }
            return null;
        };
        SCSSParser.prototype._parseElementName = function () {
            var pos = this.mark();
            var node = _super.prototype._parseElementName.call(this);
            if (node && !this.hasWhitespace() && this.peek(cssScanner_1.TokenType.ParenthesisL)) { // for #49589
                this.restoreAtMark(pos);
                return null;
            }
            return node;
        };
        SCSSParser.prototype._tryParsePseudoIdentifier = function () {
            return this._parseInterpolation() || _super.prototype._tryParsePseudoIdentifier.call(this); // for #49589
        };
        SCSSParser.prototype._parseWarnAndDebug = function () {
            if (!this.peekKeyword('@debug')
                && !this.peekKeyword('@warn')
                && !this.peekKeyword('@error')) {
                return null;
            }
            var node = this.createNode(nodes.NodeType.Debug);
            this.consumeToken(); // @debug, @warn or @error
            node.addChild(this._parseExpr()); // optional
            return this.finish(node);
        };
        SCSSParser.prototype._parseControlStatement = function (parseStatement) {
            if (parseStatement === void 0) { parseStatement = this._parseRuleSetDeclaration.bind(this); }
            if (!this.peek(cssScanner_1.TokenType.AtKeyword)) {
                return null;
            }
            return this._parseIfStatement(parseStatement) || this._parseForStatement(parseStatement)
                || this._parseEachStatement(parseStatement) || this._parseWhileStatement(parseStatement);
        };
        SCSSParser.prototype._parseIfStatement = function (parseStatement) {
            if (!this.peekKeyword('@if')) {
                return null;
            }
            return this._internalParseIfStatement(parseStatement);
        };
        SCSSParser.prototype._internalParseIfStatement = function (parseStatement) {
            var node = this.create(nodes.IfStatement);
            this.consumeToken(); // @if or if
            if (!node.setExpression(this._parseExpr(true))) {
                return this.finish(node, cssErrors_1.ParseError.ExpressionExpected);
            }
            this._parseBody(node, parseStatement);
            if (this.acceptKeyword('@else')) {
                if (this.peekIdent('if')) {
                    node.setElseClause(this._internalParseIfStatement(parseStatement));
                }
                else if (this.peek(cssScanner_1.TokenType.CurlyL)) {
                    var elseNode = this.create(nodes.ElseStatement);
                    this._parseBody(elseNode, parseStatement);
                    node.setElseClause(elseNode);
                }
            }
            return this.finish(node);
        };
        SCSSParser.prototype._parseForStatement = function (parseStatement) {
            if (!this.peekKeyword('@for')) {
                return null;
            }
            var node = this.create(nodes.ForStatement);
            this.consumeToken(); // @for
            if (!node.setVariable(this._parseVariable())) {
                return this.finish(node, cssErrors_1.ParseError.VariableNameExpected, [cssScanner_1.TokenType.CurlyR]);
            }
            if (!this.acceptIdent('from')) {
                return this.finish(node, scssErrors_1.SCSSParseError.FromExpected, [cssScanner_1.TokenType.CurlyR]);
            }
            if (!node.addChild(this._parseBinaryExpr())) {
                return this.finish(node, cssErrors_1.ParseError.ExpressionExpected, [cssScanner_1.TokenType.CurlyR]);
            }
            if (!this.acceptIdent('to') && !this.acceptIdent('through')) {
                return this.finish(node, scssErrors_1.SCSSParseError.ThroughOrToExpected, [cssScanner_1.TokenType.CurlyR]);
            }
            if (!node.addChild(this._parseBinaryExpr())) {
                return this.finish(node, cssErrors_1.ParseError.ExpressionExpected, [cssScanner_1.TokenType.CurlyR]);
            }
            return this._parseBody(node, parseStatement);
        };
        SCSSParser.prototype._parseEachStatement = function (parseStatement) {
            if (!this.peekKeyword('@each')) {
                return null;
            }
            var node = this.create(nodes.EachStatement);
            this.consumeToken(); // @each
            var variables = node.getVariables();
            if (!variables.addChild(this._parseVariable())) {
                return this.finish(node, cssErrors_1.ParseError.VariableNameExpected, [cssScanner_1.TokenType.CurlyR]);
            }
            while (this.accept(cssScanner_1.TokenType.Comma)) {
                if (!variables.addChild(this._parseVariable())) {
                    return this.finish(node, cssErrors_1.ParseError.VariableNameExpected, [cssScanner_1.TokenType.CurlyR]);
                }
            }
            this.finish(variables);
            if (!this.acceptIdent('in')) {
                return this.finish(node, scssErrors_1.SCSSParseError.InExpected, [cssScanner_1.TokenType.CurlyR]);
            }
            if (!node.addChild(this._parseExpr())) {
                return this.finish(node, cssErrors_1.ParseError.ExpressionExpected, [cssScanner_1.TokenType.CurlyR]);
            }
            return this._parseBody(node, parseStatement);
        };
        SCSSParser.prototype._parseWhileStatement = function (parseStatement) {
            if (!this.peekKeyword('@while')) {
                return null;
            }
            var node = this.create(nodes.WhileStatement);
            this.consumeToken(); // @while
            if (!node.addChild(this._parseBinaryExpr())) {
                return this.finish(node, cssErrors_1.ParseError.ExpressionExpected, [cssScanner_1.TokenType.CurlyR]);
            }
            return this._parseBody(node, parseStatement);
        };
        SCSSParser.prototype._parseFunctionBodyDeclaration = function () {
            return this._parseVariableDeclaration() || this._parseReturnStatement() || this._parseWarnAndDebug()
                || this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this));
        };
        SCSSParser.prototype._parseFunctionDeclaration = function () {
            if (!this.peekKeyword('@function')) {
                return null;
            }
            var node = this.create(nodes.FunctionDeclaration);
            this.consumeToken(); // @function
            if (!node.setIdentifier(this._parseIdent([nodes.ReferenceType.Function]))) {
                return this.finish(node, cssErrors_1.ParseError.IdentifierExpected, [cssScanner_1.TokenType.CurlyR]);
            }
            if (!this.accept(cssScanner_1.TokenType.ParenthesisL)) {
                return this.finish(node, cssErrors_1.ParseError.LeftParenthesisExpected, [cssScanner_1.TokenType.CurlyR]);
            }
            if (node.getParameters().addChild(this._parseParameterDeclaration())) {
                while (this.accept(cssScanner_1.TokenType.Comma)) {
                    if (this.peek(cssScanner_1.TokenType.ParenthesisR)) {
                        break;
                    }
                    if (!node.getParameters().addChild(this._parseParameterDeclaration())) {
                        return this.finish(node, cssErrors_1.ParseError.VariableNameExpected);
                    }
                }
            }
            if (!this.accept(cssScanner_1.TokenType.ParenthesisR)) {
                return this.finish(node, cssErrors_1.ParseError.RightParenthesisExpected, [cssScanner_1.TokenType.CurlyR]);
            }
            return this._parseBody(node, this._parseFunctionBodyDeclaration.bind(this));
        };
        SCSSParser.prototype._parseReturnStatement = function () {
            if (!this.peekKeyword('@return')) {
                return null;
            }
            var node = this.createNode(nodes.NodeType.ReturnStatement);
            this.consumeToken(); // @function
            if (!node.addChild(this._parseExpr())) {
                return this.finish(node, cssErrors_1.ParseError.ExpressionExpected);
            }
            return this.finish(node);
        };
        SCSSParser.prototype._parseMixinDeclaration = function () {
            if (!this.peekKeyword('@mixin')) {
                return null;
            }
            var node = this.create(nodes.MixinDeclaration);
            this.consumeToken();
            if (!node.setIdentifier(this._parseIdent([nodes.ReferenceType.Mixin]))) {
                return this.finish(node, cssErrors_1.ParseError.IdentifierExpected, [cssScanner_1.TokenType.CurlyR]);
            }
            if (this.accept(cssScanner_1.TokenType.ParenthesisL)) {
                if (node.getParameters().addChild(this._parseParameterDeclaration())) {
                    while (this.accept(cssScanner_1.TokenType.Comma)) {
                        if (this.peek(cssScanner_1.TokenType.ParenthesisR)) {
                            break;
                        }
                        if (!node.getParameters().addChild(this._parseParameterDeclaration())) {
                            return this.finish(node, cssErrors_1.ParseError.VariableNameExpected);
                        }
                    }
                }
                if (!this.accept(cssScanner_1.TokenType.ParenthesisR)) {
                    return this.finish(node, cssErrors_1.ParseError.RightParenthesisExpected, [cssScanner_1.TokenType.CurlyR]);
                }
            }
            return this._parseBody(node, this._parseRuleSetDeclaration.bind(this));
        };
        SCSSParser.prototype._parseParameterDeclaration = function () {
            var node = this.create(nodes.FunctionParameter);
            if (!node.setIdentifier(this._parseVariable())) {
                return null;
            }
            if (this.accept(scssScanner.Ellipsis)) {
                // ok
            }
            if (this.accept(cssScanner_1.TokenType.Colon)) {
                if (!node.setDefaultValue(this._parseExpr(true))) {
                    return this.finish(node, cssErrors_1.ParseError.VariableValueExpected, [], [cssScanner_1.TokenType.Comma, cssScanner_1.TokenType.ParenthesisR]);
                }
            }
            return this.finish(node);
        };
        SCSSParser.prototype._parseMixinContent = function () {
            if (!this.peekKeyword('@content')) {
                return null;
            }
            var node = this.createNode(nodes.NodeType.MixinContent);
            this.consumeToken();
            return this.finish(node);
        };
        SCSSParser.prototype._parseMixinReference = function () {
            if (!this.peekKeyword('@include')) {
                return null;
            }
            var node = this.create(nodes.MixinReference);
            this.consumeToken();
            if (!node.setIdentifier(this._parseIdent([nodes.ReferenceType.Mixin]))) {
                return this.finish(node, cssErrors_1.ParseError.IdentifierExpected, [cssScanner_1.TokenType.CurlyR]);
            }
            if (this.accept(cssScanner_1.TokenType.ParenthesisL)) {
                if (node.getArguments().addChild(this._parseFunctionArgument())) {
                    while (this.accept(cssScanner_1.TokenType.Comma)) {
                        if (this.peek(cssScanner_1.TokenType.ParenthesisR)) {
                            break;
                        }
                        if (!node.getArguments().addChild(this._parseFunctionArgument())) {
                            return this.finish(node, cssErrors_1.ParseError.ExpressionExpected);
                        }
                    }
                }
                if (!this.accept(cssScanner_1.TokenType.ParenthesisR)) {
                    return this.finish(node, cssErrors_1.ParseError.RightParenthesisExpected);
                }
            }
            if (this.peek(cssScanner_1.TokenType.CurlyL)) {
                var content = this.create(nodes.BodyDeclaration);
                this._parseBody(content, this._parseMixinReferenceBodyStatement.bind(this));
                node.setContent(content);
            }
            return this.finish(node);
        };
        SCSSParser.prototype._parseMixinReferenceBodyStatement = function () {
            return this._tryParseKeyframeSelector() || this._parseRuleSetDeclaration();
        };
        SCSSParser.prototype._parseFunctionArgument = function () {
            // [variableName ':'] expression | variableName '...'
            var node = this.create(nodes.FunctionArgument);
            var pos = this.mark();
            var argument = this._parseVariable();
            if (argument) {
                if (!this.accept(cssScanner_1.TokenType.Colon)) {
                    if (this.accept(scssScanner.Ellipsis)) { // optional
                        node.setValue(argument);
                        return this.finish(node);
                    }
                    else {
                        this.restoreAtMark(pos);
                    }
                }
                else {
                    node.setIdentifier(argument);
                }
            }
            if (node.setValue(this._parseExpr(true))) {
                this.accept(scssScanner.Ellipsis); // #43746
                node.addChild(this._parsePrio()); // #9859
                return this.finish(node);
            }
            return null;
        };
        SCSSParser.prototype._parseURLArgument = function () {
            var pos = this.mark();
            var node = _super.prototype._parseURLArgument.call(this);
            if (!node || !this.peek(cssScanner_1.TokenType.ParenthesisR)) {
                this.restoreAtMark(pos);
                var node_1 = this.create(nodes.Node);
                node_1.addChild(this._parseBinaryExpr());
                return this.finish(node_1);
            }
            return node;
        };
        SCSSParser.prototype._parseOperation = function () {
            if (!this.peek(cssScanner_1.TokenType.ParenthesisL)) {
                return null;
            }
            var node = this.create(nodes.Node);
            this.consumeToken();
            while (node.addChild(this._parseListElement())) {
                this.accept(cssScanner_1.TokenType.Comma); // optional
            }
            if (!this.accept(cssScanner_1.TokenType.ParenthesisR)) {
                return this.finish(node, cssErrors_1.ParseError.RightParenthesisExpected);
            }
            return this.finish(node);
        };
        SCSSParser.prototype._parseListElement = function () {
            var node = this.create(nodes.ListEntry);
            var child = this._parseBinaryExpr();
            if (!child) {
                return null;
            }
            if (this.accept(cssScanner_1.TokenType.Colon)) {
                node.setKey(child);
                if (!node.setValue(this._parseBinaryExpr())) {
                    return this.finish(node, cssErrors_1.ParseError.ExpressionExpected);
                }
            }
            else {
                node.setValue(child);
            }
            return this.finish(node);
        };
        return SCSSParser;
    }(cssParser.Parser));
    exports.SCSSParser = SCSSParser;
});

var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/services/scssCompletion',["require", "exports", "./cssCompletion", "../parser/cssNodes", "vscode-languageserver-types", "vscode-nls"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    var cssCompletion_1 = require("./cssCompletion");
    var nodes = require("../parser/cssNodes");
    var vscode_languageserver_types_1 = require("vscode-languageserver-types");
    var nls = require("vscode-nls");
    var localize = nls.loadMessageBundle();
    var SCSSCompletion = /** @class */ (function (_super) {
        __extends(SCSSCompletion, _super);
        function SCSSCompletion() {
            return _super.call(this, '$') || this;
        }
        SCSSCompletion.prototype.createReplaceFunction = function () {
            var tabStopCounter = 1;
            return function (_match, p1) {
                return '\\' + p1 + ': ${' + tabStopCounter++ + ':' + (SCSSCompletion.variableDefaults[p1] || '') + '}';
            };
        };
        SCSSCompletion.prototype.createFunctionProposals = function (proposals, existingNode, sortToEnd, result) {
            for (var _i = 0, proposals_1 = proposals; _i < proposals_1.length; _i++) {
                var p = proposals_1[_i];
                var insertText = p.func.replace(/\[?(\$\w+)\]?/g, this.createReplaceFunction());
                var label = p.func.substr(0, p.func.indexOf('('));
                var item = {
                    label: label,
                    detail: p.func,
                    documentation: p.desc,
                    textEdit: vscode_languageserver_types_1.TextEdit.replace(this.getCompletionRange(existingNode), insertText),
                    insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,
                    kind: vscode_languageserver_types_1.CompletionItemKind.Function
                };
                if (sortToEnd) {
                    item.sortText = 'z';
                }
                result.items.push(item);
            }
            return result;
        };
        SCSSCompletion.prototype.getCompletionsForSelector = function (ruleSet, isNested, result) {
            this.createFunctionProposals(SCSSCompletion.selectorFuncs, void 0, true, result);
            return _super.prototype.getCompletionsForSelector.call(this, ruleSet, isNested, result);
        };
        SCSSCompletion.prototype.getTermProposals = function (entry, existingNode, result) {
            var functions = SCSSCompletion.builtInFuncs;
            if (entry) {
                functions = functions.filter(function (f) { return !f.type || entry.restrictions.indexOf(f.type) !== -1; });
            }
            this.createFunctionProposals(functions, existingNode, true, result);
            return _super.prototype.getTermProposals.call(this, entry, existingNode, result);
        };
        SCSSCompletion.prototype.getColorProposals = function (entry, existingNode, result) {
            this.createFunctionProposals(SCSSCompletion.colorProposals, existingNode, false, result);
            return _super.prototype.getColorProposals.call(this, entry, existingNode, result);
        };
        SCSSCompletion.prototype.getCompletionsForDeclarationProperty = function (declaration, result) {
            this.getCompletionForAtDirectives(result);
            this.getCompletionsForSelector(null, true, result);
            return _super.prototype.getCompletionsForDeclarationProperty.call(this, declaration, result);
        };
        SCSSCompletion.prototype.getCompletionsForExtendsReference = function (_extendsRef, existingNode, result) {
            var symbols = this.getSymbolContext().findSymbolsAtOffset(this.offset, nodes.ReferenceType.Rule);
            for (var _i = 0, symbols_1 = symbols; _i < symbols_1.length; _i++) {
                var symbol = symbols_1[_i];
                var suggest = {
                    label: symbol.name,
                    textEdit: vscode_languageserver_types_1.TextEdit.replace(this.getCompletionRange(existingNode), symbol.name),
                    kind: vscode_languageserver_types_1.CompletionItemKind.Function,
                };
                result.items.push(suggest);
            }
            return result;
        };
        SCSSCompletion.prototype.getCompletionForAtDirectives = function (result) {
            var _a;
            (_a = result.items).push.apply(_a, SCSSCompletion.scssAtDirectives);
            return result;
        };
        SCSSCompletion.prototype.getCompletionForTopLevel = function (result) {
            this.getCompletionForAtDirectives(result);
            _super.prototype.getCompletionForTopLevel.call(this, result);
            return result;
        };
        SCSSCompletion.variableDefaults = {
            '$red': '1',
            '$green': '2',
            '$blue': '3',
            '$alpha': '1.0',
            '$color': '#000000',
            '$weight': '0.5',
            '$hue': '0',
            '$saturation': '0%',
            '$lightness': '0%',
            '$degrees': '0',
            '$amount': '0',
            '$string': '""',
            '$substring': '"s"',
            '$number': '0',
            '$limit': '1'
        };
        SCSSCompletion.colorProposals = [
            { func: 'red($color)', desc: localize('scss.builtin.red', 'Gets the red component of a color.') },
            { func: 'green($color)', desc: localize('scss.builtin.green', 'Gets the green component of a color.') },
            { func: 'blue($color)', desc: localize('scss.builtin.blue', 'Gets the blue component of a color.') },
            { func: 'mix($color, $color, [$weight])', desc: localize('scss.builtin.mix', 'Mixes two colors together.') },
            { func: 'hue($color)', desc: localize('scss.builtin.hue', 'Gets the hue component of a color.') },
            { func: 'saturation($color)', desc: localize('scss.builtin.saturation', 'Gets the saturation component of a color.') },
            { func: 'lightness($color)', desc: localize('scss.builtin.lightness', 'Gets the lightness component of a color.') },
            { func: 'adjust-hue($color, $degrees)', desc: localize('scss.builtin.adjust-hue', 'Changes the hue of a color.') },
            { func: 'lighten($color, $amount)', desc: localize('scss.builtin.lighten', 'Makes a color lighter.') },
            { func: 'darken($color, $amount)', desc: localize('scss.builtin.darken', 'Makes a color darker.') },
            { func: 'saturate($color, $amount)', desc: localize('scss.builtin.saturate', 'Makes a color more saturated.') },
            { func: 'desaturate($color, $amount)', desc: localize('scss.builtin.desaturate', 'Makes a color less saturated.') },
            { func: 'grayscale($color)', desc: localize('scss.builtin.grayscale', 'Converts a color to grayscale.') },
            { func: 'complement($color)', desc: localize('scss.builtin.complement', 'Returns the complement of a color.') },
            { func: 'invert($color)', desc: localize('scss.builtin.invert', 'Returns the inverse of a color.') },
            { func: 'alpha($color)', desc: localize('scss.builtin.alpha', 'Gets the opacity component of a color.') },
            { func: 'opacity($color)', desc: 'Gets the alpha component (opacity) of a color.' },
            { func: 'rgba($color, $alpha)', desc: localize('scss.builtin.rgba', 'Changes the alpha component for a color.') },
            { func: 'opacify($color, $amount)', desc: localize('scss.builtin.opacify', 'Makes a color more opaque.') },
            { func: 'fade-in($color, $amount)', desc: localize('scss.builtin.fade-in', 'Makes a color more opaque.') },
            { func: 'transparentize($color, $amount)', desc: localize('scss.builtin.transparentize', 'Makes a color more transparent.') },
            { func: 'fade-out($color, $amount)', desc: localize('scss.builtin.fade-out', 'Makes a color more transparent.') },
            { func: 'adjust-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])', desc: localize('scss.builtin.adjust-color', 'Increases or decreases one or more components of a color.') },
            { func: 'scale-color($color, [$red], [$green], [$blue], [$saturation], [$lightness], [$alpha])', desc: localize('scss.builtin.scale-color', 'Fluidly scales one or more properties of a color.') },
            { func: 'change-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])', desc: localize('scss.builtin.change-color', 'Changes one or more properties of a color.') },
            { func: 'ie-hex-str($color)', desc: localize('scss.builtin.ie-hex-str', 'Converts a color into the format understood by IE filters.') }
        ];
        SCSSCompletion.selectorFuncs = [
            { func: 'selector-nest($selectors…)', desc: localize('scss.builtin.selector-nest', 'Nests selector beneath one another like they would be nested in the stylesheet.') },
            { func: 'selector-append($selectors…)', desc: localize('scss.builtin.selector-append', 'Appends selectors to one another without spaces in between.') },
            { func: 'selector-extend($selector, $extendee, $extender)', desc: localize('scss.builtin.selector-extend', 'Extends $extendee with $extender within $selector.') },
            { func: 'selector-replace($selector, $original, $replacement)', desc: localize('scss.builtin.selector-replace', 'Replaces $original with $replacement within $selector.') },
            { func: 'selector-unify($selector1, $selector2)', desc: localize('scss.builtin.selector-unify', 'Unifies two selectors to produce a selector that matches elements matched by both.') },
            { func: 'is-superselector($super, $sub)', desc: localize('scss.builtin.is-superselector', 'Returns whether $super matches all the elements $sub does, and possibly more.') },
            { func: 'simple-selectors($selector)', desc: localize('scss.builtin.simple-selectors', 'Returns the simple selectors that comprise a compound selector.') },
            { func: 'selector-parse($selector)', desc: localize('scss.builtin.selector-parse', 'Parses a selector into the format returned by &.') }
        ];
        SCSSCompletion.builtInFuncs = [
            { func: 'unquote($string)', desc: localize('scss.builtin.unquote', 'Removes quotes from a string.') },
            { func: 'quote($string)', desc: localize('scss.builtin.quote', 'Adds quotes to a string.') },
            { func: 'str-length($string)', desc: localize('scss.builtin.str-length', 'Returns the number of characters in a string.') },
            { func: 'str-insert($string, $insert, $index)', desc: localize('scss.builtin.str-insert', 'Inserts $insert into $string at $index.') },
            { func: 'str-index($string, $substring)', desc: localize('scss.builtin.str-index', 'Returns the index of the first occurance of $substring in $string.') },
            { func: 'str-slice($string, $start-at, [$end-at])', desc: localize('scss.builtin.str-slice', 'Extracts a substring from $string.') },
            { func: 'to-upper-case($string)', desc: localize('scss.builtin.to-upper-case', 'Converts a string to upper case.') },
            { func: 'to-lower-case($string)', desc: localize('scss.builtin.to-lower-case', 'Converts a string to lower case.') },
            { func: 'percentage($number)', desc: localize('scss.builtin.percentage', 'Converts a unitless number to a percentage.'), type: 'percentage' },
            { func: 'round($number)', desc: localize('scss.builtin.round', 'Rounds a number to the nearest whole number.') },
            { func: 'ceil($number)', desc: localize('scss.builtin.ceil', 'Rounds a number up to the next whole number.') },
            { func: 'floor($number)', desc: localize('scss.builtin.floor', 'Rounds a number down to the previous whole number.') },
            { func: 'abs($number)', desc: localize('scss.builtin.abs', 'Returns the absolute value of a number.') },
            { func: 'min($numbers)', desc: localize('scss.builtin.min', 'Finds the minimum of several numbers.') },
            { func: 'max($numbers)', desc: localize('scss.builtin.max', 'Finds the maximum of several numbers.') },
            { func: 'random([$limit])', desc: localize('scss.builtin.random', 'Returns a random number.') },
            { func: 'length($list)', desc: localize('scss.builtin.length', 'Returns the length of a list.') },
            { func: 'nth($list, $n)', desc: localize('scss.builtin.nth', 'Returns a specific item in a list.') },
            { func: 'set-nth($list, $n, $value)', desc: localize('scss.builtin.set-nth', 'Replaces the nth item in a list.') },
            { func: 'join($list1, $list2, [$separator])', desc: localize('scss.builtin.join', 'Joins together two lists into one.') },
            { func: 'append($list1, $val, [$separator])', desc: localize('scss.builtin.append', 'Appends a single value onto the end of a list.') },
            { func: 'zip($lists)', desc: localize('scss.builtin.zip', 'Combines several lists into a single multidimensional list.') },
            { func: 'index($list, $value)', desc: localize('scss.builtin.index', 'Returns the position of a value within a list.') },
            { func: 'list-separator(#list)', desc: localize('scss.builtin.list-separator', 'Returns the separator of a list.') },
            { func: 'map-get($map, $key)', desc: localize('scss.builtin.map-get', 'Returns the value in a map associated with a given key.') },
            { func: 'map-merge($map1, $map2)', desc: localize('scss.builtin.map-merge', 'Merges two maps together into a new map.') },
            { func: 'map-remove($map, $keys)', desc: localize('scss.builtin.map-remove', 'Returns a new map with keys removed.') },
            { func: 'map-keys($map)', desc: localize('scss.builtin.map-keys', 'Returns a list of all keys in a map.') },
            { func: 'map-values($map)', desc: localize('scss.builtin.map-values', 'Returns a list of all values in a map.') },
            { func: 'map-has-key($map, $key)', desc: localize('scss.builtin.map-has-key', 'Returns whether a map has a value associated with a given key.') },
            { func: 'keywords($args)', desc: localize('scss.builtin.keywords', 'Returns the keywords passed to a function that takes variable arguments.') },
            { func: 'feature-exists($feature)', desc: localize('scss.builtin.feature-exists', 'Returns whether a feature exists in the current Sass runtime.') },
            { func: 'variable-exists($name)', desc: localize('scss.builtin.variable-exists', 'Returns whether a variable with the given name exists in the current scope.') },
            { func: 'global-variable-exists($name)', desc: localize('scss.builtin.global-variable-exists', 'Returns whether a variable with the given name exists in the global scope.') },
            { func: 'function-exists($name)', desc: localize('scss.builtin.function-exists', 'Returns whether a function with the given name exists.') },
            { func: 'mixin-exists($name)', desc: localize('scss.builtin.mixin-exists', 'Returns whether a mixin with the given name exists.') },
            { func: 'inspect($value)', desc: localize('scss.builtin.inspect', 'Returns the string representation of a value as it would be represented in Sass.') },
            { func: 'type-of($value)', desc: localize('scss.builtin.type-of', 'Returns the type of a value.') },
            { func: 'unit($number)', desc: localize('scss.builtin.unit', 'Returns the unit(s) associated with a number.') },
            { func: 'unitless($number)', desc: localize('scss.builtin.unitless', 'Returns whether a number has units.') },
            { func: 'comparable($number1, $number2)', desc: localize('scss.builtin.comparable', 'Returns whether two numbers can be added, subtracted, or compared.') },
            { func: 'call($name, $args…)', desc: localize('scss.builtin.call', 'Dynamically calls a Sass function.') }
        ];
        SCSSCompletion.scssAtDirectives = [
            {
                label: "@extend",
                documentation: localize("scss.builtin.@extend", "Inherits the styles of another selector."),
                kind: vscode_languageserver_types_1.CompletionItemKind.Keyword
            },
            {
                label: "@at-root",
                documentation: localize("scss.builtin.@at-root", "Causes one or more rules to be emitted at the root of the document."),
                kind: vscode_languageserver_types_1.CompletionItemKind.Keyword
            },
            {
                label: "@debug",
                documentation: localize("scss.builtin.@debug", "Prints the value of an expression to the standard error output stream. Useful for debugging complicated Sass files."),
                kind: vscode_languageserver_types_1.CompletionItemKind.Keyword
            },
            {
                label: "@warn",
                documentation: localize("scss.builtin.@warn", "Prints the value of an expression to the standard error output stream. Useful for libraries that need to warn users of deprecations or recovering from minor mixin usage mistakes. Warnings can be turned off with the `--quiet` command-line option or the `:quiet` Sass option."),
                kind: vscode_languageserver_types_1.CompletionItemKind.Keyword
            },
            {
                label: "@error",
                documentation: localize("scss.builtin.@error", "Throws the value of an expression as a fatal error with stack trace. Useful for validating arguments to mixins and functions."),
                kind: vscode_languageserver_types_1.CompletionItemKind.Keyword
            },
            {
                label: "@if",
                documentation: localize("scss.builtin.@if", "Includes the body if the expression does not evaluate to `false` or `null`."),
                insertText: "@if ${1:expr} {\n\t$0\n}",
                insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,
                kind: vscode_languageserver_types_1.CompletionItemKind.Keyword
            },
            {
                label: "@for",
                documentation: localize("scss.builtin.@for", "For loop that repeatedly outputs a set of styles for each `$var` in the `from/through` or `from/to` clause."),
                insertText: "@for \\$${1:var} from ${2:start} ${3|to,through|} ${4:end} {\n\t$0\n}",
                insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,
                kind: vscode_languageserver_types_1.CompletionItemKind.Keyword
            },
            {
                label: "@each",
                documentation: localize("scss.builtin.@each", "Each loop that sets `$var` to each item in the list or map, then outputs the styles it contains using that value of `$var`."),
                insertText: "@each \\$${1:var} in ${2:list} {\n\t$0\n}",
                insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,
                kind: vscode_languageserver_types_1.CompletionItemKind.Keyword
            },
            {
                label: "@while",
                documentation: localize("scss.builtin.@while", "While loop that takes an expression and repeatedly outputs the nested styles until the statement evaluates to `false`."),
                insertText: "@while ${1:condition} {\n\t$0\n}",
                insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,
                kind: vscode_languageserver_types_1.CompletionItemKind.Keyword
            },
            {
                label: "@mixin",
                documentation: localize("scss.builtin.@mixin", "Defines styles that can be re-used throughout the stylesheet with `@include`."),
                insertText: "@mixin ${1:name} {\n\t$0\n}",
                insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,
                kind: vscode_languageserver_types_1.CompletionItemKind.Keyword
            },
            {
                label: "@include",
                documentation: localize("scss.builtin.@include", "Includes the styles defined by another mixin into the current rule."),
                kind: vscode_languageserver_types_1.CompletionItemKind.Keyword
            },
        ];
        return SCSSCompletion;
    }(cssCompletion_1.CSSCompletion));
    exports.SCSSCompletion = SCSSCompletion;
});

var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/parser/lessScanner',["require", "exports", "./cssScanner"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    var scanner = require("./cssScanner");
    var _FSL = '/'.charCodeAt(0);
    var _NWL = '\n'.charCodeAt(0);
    var _CAR = '\r'.charCodeAt(0);
    var _LFD = '\f'.charCodeAt(0);
    var _TIC = '`'.charCodeAt(0);
    var _DOT = '.'.charCodeAt(0);
    var customTokenValue = scanner.TokenType.CustomToken;
    exports.Ellipsis = customTokenValue++;
    var LESSScanner = /** @class */ (function (_super) {
        __extends(LESSScanner, _super);
        function LESSScanner() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        LESSScanner.prototype.scanNext = function (offset) {
            // LESS: escaped JavaScript code `const a = "dddd"`
            var tokenType = this.escapedJavaScript();
            if (tokenType !== null) {
                return this.finishToken(offset, tokenType);
            }
            if (this.stream.advanceIfChars([_DOT, _DOT, _DOT])) {
                return this.finishToken(offset, exports.Ellipsis);
            }
            return _super.prototype.scanNext.call(this, offset);
        };
        LESSScanner.prototype.comment = function () {
            if (_super.prototype.comment.call(this)) {
                return true;
            }
            if (!this.inURL && this.stream.advanceIfChars([_FSL, _FSL])) {
                this.stream.advanceWhileChar(function (ch) {
                    switch (ch) {
                        case _NWL:
                        case _CAR:
                        case _LFD:
                            return false;
                        default:
                            return true;
                    }
                });
                return true;
            }
            else {
                return false;
            }
        };
        LESSScanner.prototype.escapedJavaScript = function () {
            var ch = this.stream.peekChar();
            if (ch === _TIC) {
                this.stream.advance(1);
                this.stream.advanceWhileChar(function (ch) { return ch !== _TIC; });
                return this.stream.advanceIfChar(_TIC) ? scanner.TokenType.EscapedJavaScript : scanner.TokenType.BadEscapedJavaScript;
            }
            return null;
        };
        return LESSScanner;
    }(scanner.Scanner));
    exports.LESSScanner = LESSScanner;
});

var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/parser/lessParser',["require", "exports", "./lessScanner", "./cssScanner", "./cssParser", "./cssNodes", "./cssErrors"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    var lessScanner = require("./lessScanner");
    var cssScanner_1 = require("./cssScanner");
    var cssParser = require("./cssParser");
    var nodes = require("./cssNodes");
    var cssErrors_1 = require("./cssErrors");
    /// <summary>
    /// A parser for LESS
    /// http://lesscss.org/
    /// </summary>
    var LESSParser = /** @class */ (function (_super) {
        __extends(LESSParser, _super);
        function LESSParser() {
            return _super.call(this, new lessScanner.LESSScanner()) || this;
        }
        LESSParser.prototype._parseStylesheetStatement = function (isNested) {
            if (isNested === void 0) { isNested = false; }
            if (this.peek(cssScanner_1.TokenType.AtKeyword)) {
                return this._parseVariableDeclaration()
                    || this._parsePlugin()
                    || _super.prototype._parseStylesheetAtStatement.call(this, isNested);
            }
            return this._tryParseMixinDeclaration()
                || this._tryParseMixinReference()
                || this._parseFunction()
                || this._parseRuleset(true);
        };
        LESSParser.prototype._parseImport = function () {
            if (!this.peekKeyword('@import') && !this.peekKeyword('@import-once') /* deprecated in less 1.4.1 */) {
                return null;
            }
            var node = this.create(nodes.Import);
            this.consumeToken();
            // less 1.4.1: @import (css) "lib"
            if (this.accept(cssScanner_1.TokenType.ParenthesisL)) {
                if (!this.accept(cssScanner_1.TokenType.Ident)) {
                    return this.finish(node, cssErrors_1.ParseError.IdentifierExpected, [cssScanner_1.TokenType.SemiColon]);
                }
                do {
                    if (!this.accept(cssScanner_1.TokenType.Comma)) {
                        break;
                    }
                } while (this.accept(cssScanner_1.TokenType.Ident));
                if (!this.accept(cssScanner_1.TokenType.ParenthesisR)) {
                    return this.finish(node, cssErrors_1.ParseError.RightParenthesisExpected, [cssScanner_1.TokenType.SemiColon]);
                }
            }
            if (!node.addChild(this._parseURILiteral()) && !node.addChild(this._parseStringLiteral())) {
                return this.finish(node, cssErrors_1.ParseError.URIOrStringExpected, [cssScanner_1.TokenType.SemiColon]);
            }
            if (!this.peek(cssScanner_1.TokenType.SemiColon) && !this.peek(cssScanner_1.TokenType.EOF)) {
                node.setMedialist(this._parseMediaQueryList());
            }
            return this.finish(node);
        };
        LESSParser.prototype._parsePlugin = function () {
            if (!this.peekKeyword('@plugin')) {
                return null;
            }
            var node = this.createNode(nodes.NodeType.Plugin);
            this.consumeToken(); // @import
            if (!node.addChild(this._parseStringLiteral())) {
                return this.finish(node, cssErrors_1.ParseError.StringLiteralExpected);
            }
            if (!this.accept(cssScanner_1.TokenType.SemiColon)) {
                return this.finish(node, cssErrors_1.ParseError.SemiColonExpected);
            }
            return this.finish(node);
        };
        LESSParser.prototype._parseMediaQuery = function (resyncStopToken) {
            var node = _super.prototype._parseMediaQuery.call(this, resyncStopToken);
            if (!node) {
                var node_1 = this.create(nodes.MediaQuery);
                if (node_1.addChild(this._parseVariable())) {
                    return this.finish(node_1);
                }
                return null;
            }
            return node;
        };
        LESSParser.prototype._parseMediaDeclaration = function (isNested) {
            if (isNested === void 0) { isNested = false; }
            return this._tryParseRuleset(isNested)
                || this._tryToParseDeclaration()
                || this._tryParseMixinDeclaration()
                || this._tryParseMixinReference()
                || this._parseDetachedRuleSetMixin()
                || this._parseStylesheetStatement(isNested);
        };
        LESSParser.prototype._parseMediaFeatureName = function () {
            return this._parseIdent() || this._parseVariable();
        };
        LESSParser.prototype._parseVariableDeclaration = function (panic) {
            if (panic === void 0) { panic = []; }
            var node = this.create(nodes.VariableDeclaration);
            var mark = this.mark();
            if (!this.peekDelim('@') && !this.peek(cssScanner_1.TokenType.AtKeyword) || !node.setVariable(this._parseVariable())) {
                return null;
            }
            if (this.accept(cssScanner_1.TokenType.Colon)) {
                node.colonPosition = this.prevToken.offset;
                if (node.setValue(this._parseDetachedRuleSet())) {
                    node.needsSemicolon = false;
                }
                else if (!node.setValue(this._parseExpr())) {
                    return this.finish(node, cssErrors_1.ParseError.VariableValueExpected, [], panic);
                }
                node.addChild(this._parsePrio());
            }
            else {
                this.restoreAtMark(mark);
                return null; // at keyword, but no ':', not a variable declaration but some at keyword
            }
            if (this.peek(cssScanner_1.TokenType.SemiColon)) {
                node.semicolonPosition = this.token.offset; // not part of the declaration, but useful information for code assist
            }
            return this.finish(node);
        };
        LESSParser.prototype._parseDetachedRuleSet = function () {
            if (!this.peek(cssScanner_1.TokenType.CurlyL)) {
                return null;
            }
            var content = this.create(nodes.BodyDeclaration);
            this._parseBody(content, this._parseDetachedRuleSetBody.bind(this));
            return this.finish(content);
        };
        LESSParser.prototype._parseDetachedRuleSetBody = function () {
            return this._tryParseKeyframeSelector() || this._parseRuleSetDeclaration();
        };
        LESSParser.prototype._parseVariable = function () {
            if (!this.peekDelim('@') && !this.peekDelim('$') && !this.peek(cssScanner_1.TokenType.AtKeyword)) {
                return null;
            }
            var node = this.create(nodes.Variable);
            var mark = this.mark();
            while (this.acceptDelim('@') || this.acceptDelim('$')) {
                if (this.hasWhitespace()) {
                    this.restoreAtMark(mark);
                    return null;
                }
            }
            if (!this.accept(cssScanner_1.TokenType.AtKeyword) && !this.accept(cssScanner_1.TokenType.Ident)) {
                this.restoreAtMark(mark);
                return null;
            }
            return node;
        };
        LESSParser.prototype._parseTerm = function () {
            var term = _super.prototype._parseTerm.call(this);
            if (term) {
                return term;
            }
            term = this.create(nodes.Term);
            if (term.setExpression(this._parseVariable()) ||
                term.setExpression(this._parseEscaped()) ||
                term.setExpression(this._tryParseMixinReference())) {
                return this.finish(term);
            }
            return null;
        };
        LESSParser.prototype._parseEscaped = function () {
            if (this.peek(cssScanner_1.TokenType.EscapedJavaScript) ||
                this.peek(cssScanner_1.TokenType.BadEscapedJavaScript)) {
                var node = this.createNode(nodes.NodeType.EscapedValue);
                this.consumeToken();
                return this.finish(node);
            }
            if (this.peekDelim('~')) {
                var node = this.createNode(nodes.NodeType.EscapedValue);
                this.consumeToken();
                if (this.accept(cssScanner_1.TokenType.String) || this.accept(cssScanner_1.TokenType.EscapedJavaScript)) {
                    return this.finish(node);
                }
                else {
                    return this.finish(node, cssErrors_1.ParseError.TermExpected);
                }
            }
            return null;
        };
        LESSParser.prototype._parseOperator = function () {
            var node = this._parseGuardOperator();
            if (node) {
                return node;
            }
            else {
                return _super.prototype._parseOperator.call(this);
            }
        };
        LESSParser.prototype._parseGuardOperator = function () {
            if (this.peekDelim('>')) {
                var node = this.createNode(nodes.NodeType.Operator);
                this.consumeToken();
                this.acceptDelim('=');
                return node;
            }
            else if (this.peekDelim('=')) {
                var node = this.createNode(nodes.NodeType.Operator);
                this.consumeToken();
                this.acceptDelim('<');
                return node;
            }
            else if (this.peekDelim('<')) {
                var node = this.createNode(nodes.NodeType.Operator);
                this.consumeToken();
                this.acceptDelim('=');
                return node;
            }
            return null;
        };
        LESSParser.prototype._parseRuleSetDeclaration = function () {
            if (this.peek(cssScanner_1.TokenType.AtKeyword)) {
                return this._parseKeyframe()
                    || this._parseMedia(true)
                    || this._parseImport()
                    || this._parseSupports(true) // @supports
                    || this._parseDetachedRuleSetMixin() // less detached ruleset mixin
                    || this._parseVariableDeclaration() // Variable declarations
                    || this._parseUnknownAtRule();
            }
            return this._tryParseMixinDeclaration()
                || this._tryParseRuleset(true) // nested ruleset
                || this._tryParseMixinReference() // less mixin reference
                || this._parseFunction()
                || this._parseExtend() // less extend declaration
                || _super.prototype._parseRuleSetDeclaration.call(this); // try css ruleset declaration as the last option
        };
        LESSParser.prototype._parseKeyframeIdent = function () {
            return this._parseIdent([nodes.ReferenceType.Keyframe]) || this._parseVariable();
        };
        LESSParser.prototype._parseKeyframeSelector = function () {
            return this._parseDetachedRuleSetMixin() // less detached ruleset mixin
                || _super.prototype._parseKeyframeSelector.call(this);
        };
        LESSParser.prototype._parseSimpleSelectorBody = function () {
            return this._parseSelectorCombinator() || _super.prototype._parseSimpleSelectorBody.call(this);
        };
        LESSParser.prototype._parseSelector = function (isNested) {
            // CSS Guards
            var node = this.create(nodes.Selector);
            var hasContent = false;
            if (isNested) {
                // nested selectors can start with a combinator
                hasContent = node.addChild(this._parseCombinator());
            }
            while (node.addChild(this._parseSimpleSelector())) {
                hasContent = true;
                var mark = this.mark();
                if (node.addChild(this._parseGuard()) && this.peek(cssScanner_1.TokenType.CurlyL)) {
                    break;
                }
                this.restoreAtMark(mark);
                node.addChild(this._parseCombinator()); // optional
            }
            return hasContent ? this.finish(node) : null;
        };
        LESSParser.prototype._parseSelectorCombinator = function () {
            if (this.peekDelim('&')) {
                var node = this.createNode(nodes.NodeType.SelectorCombinator);
                this.consumeToken();
                while (!this.hasWhitespace() && (this.acceptDelim('-') || this.accept(cssScanner_1.TokenType.Num) || this.accept(cssScanner_1.TokenType.Dimension) || node.addChild(this._parseIdent()) || this.acceptDelim('&'))) {
                    //  support &-foo
                }
                return this.finish(node);
            }
            return null;
        };
        LESSParser.prototype._parseSelectorIdent = function () {
            if (!this.peekInterpolatedIdent()) {
                return null;
            }
            var node = this.createNode(nodes.NodeType.SelectorInterpolation);
            var hasContent = this._acceptInterpolatedIdent(node);
            return hasContent ? this.finish(node) : null;
        };
        LESSParser.prototype._parsePropertyIdentifier = function () {
            if (!this.peekInterpolatedIdent()) {
                return null;
            }
            var node = this.create(nodes.Identifier);
            node.isCustomProperty = this.peekRegExp(cssScanner_1.TokenType.Ident, /^--/);
            var hasContent = this._acceptInterpolatedIdent(node);
            if (hasContent && !this.hasWhitespace()) {
                this.acceptDelim('+');
                if (!this.hasWhitespace()) {
                    this.acceptIdent('_');
                }
            }
            return hasContent ? this.finish(node) : null;
        };
        LESSParser.prototype.peekInterpolatedIdent = function () {
            return this.peek(cssScanner_1.TokenType.Ident) ||
                this.peekDelim('@') ||
                this.peekDelim('$') ||
                this.peekDelim('-');
        };
        LESSParser.prototype._acceptInterpolatedIdent = function (node) {
            var _this = this;
            var hasContent = false;
            var indentInterpolation = function () {
                var pos = _this.mark();
                if (_this.acceptDelim('-')) {
                    if (!_this.hasWhitespace()) {
                        _this.acceptDelim('-');
                    }
                    if (_this.hasWhitespace()) {
                        _this.restoreAtMark(pos);
                        return null;
                    }
                }
                return _this._parseInterpolation();
            };
            while (this.accept(cssScanner_1.TokenType.Ident) || node.addChild(indentInterpolation()) || (hasContent && (this.acceptDelim('-') || this.accept(cssScanner_1.TokenType.Num)))) {
                hasContent = true;
                if (this.hasWhitespace()) {
                    break;
                }
            }
            return hasContent;
        };
        LESSParser.prototype._parseInterpolation = function () {
            // @{name} Variable or 
            // ${name} Property
            var mark = this.mark();
            if (this.peekDelim('@') || this.peekDelim('$')) {
                var node = this.createNode(nodes.NodeType.Interpolation);
                this.consumeToken();
                if (this.hasWhitespace() || !this.accept(cssScanner_1.TokenType.CurlyL)) {
                    this.restoreAtMark(mark);
                    return null;
                }
                if (!node.addChild(this._parseIdent())) {
                    return this.finish(node, cssErrors_1.ParseError.IdentifierExpected);
                }
                if (!this.accept(cssScanner_1.TokenType.CurlyR)) {
                    return this.finish(node, cssErrors_1.ParseError.RightCurlyExpected);
                }
                return this.finish(node);
            }
            return null;
        };
        LESSParser.prototype._tryParseMixinDeclaration = function () {
            var mark = this.mark();
            var node = this.create(nodes.MixinDeclaration);
            if (!node.setIdentifier(this._parseMixinDeclarationIdentifier()) || !this.accept(cssScanner_1.TokenType.ParenthesisL)) {
                this.restoreAtMark(mark);
                return null;
            }
            if (node.getParameters().addChild(this._parseMixinParameter())) {
                while (this.accept(cssScanner_1.TokenType.Comma) || this.accept(cssScanner_1.TokenType.SemiColon)) {
                    if (this.peek(cssScanner_1.TokenType.ParenthesisR)) {
                        break;
                    }
                    if (!node.getParameters().addChild(this._parseMixinParameter())) {
                        this.markError(node, cssErrors_1.ParseError.IdentifierExpected, [], [cssScanner_1.TokenType.ParenthesisR]);
                    }
                }
            }
            if (!this.accept(cssScanner_1.TokenType.ParenthesisR)) {
                this.restoreAtMark(mark);
                return null;
            }
            node.setGuard(this._parseGuard());
            if (!this.peek(cssScanner_1.TokenType.CurlyL)) {
                this.restoreAtMark(mark);
                return null;
            }
            return this._parseBody(node, this._parseMixInBodyDeclaration.bind(this));
        };
        LESSParser.prototype._parseMixInBodyDeclaration = function () {
            return this._parseFontFace() || this._parseRuleSetDeclaration();
        };
        LESSParser.prototype._parseMixinDeclarationIdentifier = function () {
            var identifier;
            if (this.peekDelim('#') || this.peekDelim('.')) {
                identifier = this.create(nodes.Identifier);
                this.consumeToken(); // # or .
                if (this.hasWhitespace() || !identifier.addChild(this._parseIdent())) {
                    return null;
                }
            }
            else if (this.peek(cssScanner_1.TokenType.Hash)) {
                identifier = this.create(nodes.Identifier);
                this.consumeToken(); // TokenType.Hash
            }
            else {
                return null;
            }
            identifier.referenceTypes = [nodes.ReferenceType.Mixin];
            return this.finish(identifier);
        };
        LESSParser.prototype._parsePseudo = function () {
            if (!this.peek(cssScanner_1.TokenType.Colon)) {
                return null;
            }
            var mark = this.mark();
            var node = this.create(nodes.ExtendsReference);
            this.consumeToken(); // :
            if (this.acceptIdent('extend')) {
                return this._completeExtends(node);
            }
            this.restoreAtMark(mark);
            return _super.prototype._parsePseudo.call(this);
        };
        LESSParser.prototype._parseExtend = function () {
            if (!this.peekDelim('&')) {
                return null;
            }
            var mark = this.mark();
            var node = this.create(nodes.ExtendsReference);
            this.consumeToken(); // &
            if (this.hasWhitespace() || !this.accept(cssScanner_1.TokenType.Colon) || !this.acceptIdent('extend')) {
                this.restoreAtMark(mark);
                return null;
            }
            return this._completeExtends(node);
        };
        LESSParser.prototype._completeExtends = function (node) {
            if (!this.accept(cssScanner_1.TokenType.ParenthesisL)) {
                return this.finish(node, cssErrors_1.ParseError.LeftParenthesisExpected);
            }
            var selectors = node.getSelectors();
            if (!selectors.addChild(this._parseSelector(true))) {
                return this.finish(node, cssErrors_1.ParseError.SelectorExpected);
            }
            while (this.accept(cssScanner_1.TokenType.Comma)) {
                if (!selectors.addChild(this._parseSelector(true))) {
                    return this.finish(node, cssErrors_1.ParseError.SelectorExpected);
                }
            }
            if (!this.accept(cssScanner_1.TokenType.ParenthesisR)) {
                return this.finish(node, cssErrors_1.ParseError.RightParenthesisExpected);
            }
            return this.finish(node);
        };
        LESSParser.prototype._parseDetachedRuleSetMixin = function () {
            if (!this.peek(cssScanner_1.TokenType.AtKeyword)) {
                return null;
            }
            var mark = this.mark();
            var node = this.create(nodes.MixinReference);
            if (node.addChild(this._parseVariable()) && (this.hasWhitespace() || !this.accept(cssScanner_1.TokenType.ParenthesisL))) {
                this.restoreAtMark(mark);
                return null;
            }
            if (!this.accept(cssScanner_1.TokenType.ParenthesisR)) {
                return this.finish(node, cssErrors_1.ParseError.RightParenthesisExpected);
            }
            return this.finish(node);
        };
        LESSParser.prototype._tryParseMixinReference = function () {
            var mark = this.mark();
            var node = this.create(nodes.MixinReference);
            var identifier = this._parseMixinDeclarationIdentifier();
            while (identifier) {
                this.acceptDelim('>');
                var nextId = this._parseMixinDeclarationIdentifier();
                if (nextId) {
                    node.getNamespaces().addChild(identifier);
                    identifier = nextId;
                }
                else {
                    break;
                }
            }
            if (!node.setIdentifier(identifier)) {
                this.restoreAtMark(mark);
                return null;
            }
            var hasArguments = false;
            if (!this.hasWhitespace() && this.accept(cssScanner_1.TokenType.ParenthesisL)) {
                hasArguments = true;
                if (node.getArguments().addChild(this._parseMixinArgument())) {
                    while (this.accept(cssScanner_1.TokenType.Comma) || this.accept(cssScanner_1.TokenType.SemiColon)) {
                        if (this.peek(cssScanner_1.TokenType.ParenthesisR)) {
                            break;
                        }
                        if (!node.getArguments().addChild(this._parseMixinArgument())) {
                            return this.finish(node, cssErrors_1.ParseError.ExpressionExpected);
                        }
                    }
                }
                if (!this.accept(cssScanner_1.TokenType.ParenthesisR)) {
                    return this.finish(node, cssErrors_1.ParseError.RightParenthesisExpected);
                }
                identifier.referenceTypes = [nodes.ReferenceType.Mixin];
            }
            else {
                identifier.referenceTypes = [nodes.ReferenceType.Mixin, nodes.ReferenceType.Rule];
            }
            node.addChild(this._parsePrio());
            if (!hasArguments && !this.peek(cssScanner_1.TokenType.SemiColon) && !this.peek(cssScanner_1.TokenType.CurlyR) && !this.peek(cssScanner_1.TokenType.EOF)) {
                this.restoreAtMark(mark);
                return null;
            }
            return this.finish(node);
        };
        LESSParser.prototype._parseMixinArgument = function () {
            // [variableName ':'] expression | variableName '...'
            var node = this.create(nodes.FunctionArgument);
            var pos = this.mark();
            var argument = this._parseVariable();
            if (argument) {
                if (!this.accept(cssScanner_1.TokenType.Colon)) {
                    this.restoreAtMark(pos);
                }
                else {
                    node.setIdentifier(argument);
                }
            }
            if (node.setValue(this._parseDetachedRuleSet() || this._parseExpr(true))) {
                return this.finish(node);
            }
            this.restoreAtMark(pos);
            return null;
        };
        LESSParser.prototype._parseMixinParameter = function () {
            var node = this.create(nodes.FunctionParameter);
            // special rest variable: @rest...
            if (this.peekKeyword('@rest')) {
                var restNode = this.create(nodes.Node);
                this.consumeToken();
                if (!this.accept(lessScanner.Ellipsis)) {
                    return this.finish(node, cssErrors_1.ParseError.DotExpected, [], [cssScanner_1.TokenType.Comma, cssScanner_1.TokenType.ParenthesisR]);
                }
                node.setIdentifier(this.finish(restNode));
                return this.finish(node);
            }
            // special const args: ...
            if (this.peek(lessScanner.Ellipsis)) {
                var varargsNode = this.create(nodes.Node);
                this.consumeToken();
                node.setIdentifier(this.finish(varargsNode));
                return this.finish(node);
            }
            var hasContent = false;
            // default variable declaration: @param: 12 or @name
            if (node.setIdentifier(this._parseVariable())) {
                this.accept(cssScanner_1.TokenType.Colon);
                hasContent = true;
            }
            if (!node.setDefaultValue(this._parseDetachedRuleSet() || this._parseExpr(true)) && !hasContent) {
                return null;
            }
            return this.finish(node);
        };
        LESSParser.prototype._parseGuard = function () {
            if (!this.peekIdent('when')) {
                return null;
            }
            var node = this.create(nodes.LessGuard);
            this.consumeToken(); // when
            node.isNegated = this.acceptIdent('not');
            if (!node.getConditions().addChild(this._parseGuardCondition())) {
                return this.finish(node, cssErrors_1.ParseError.ConditionExpected);
            }
            while (this.acceptIdent('and') || this.accept(cssScanner_1.TokenType.Comma)) {
                if (!node.getConditions().addChild(this._parseGuardCondition())) {
                    return this.finish(node, cssErrors_1.ParseError.ConditionExpected);
                }
            }
            return this.finish(node);
        };
        LESSParser.prototype._parseGuardCondition = function () {
            if (!this.peek(cssScanner_1.TokenType.ParenthesisL)) {
                return null;
            }
            var node = this.create(nodes.GuardCondition);
            this.consumeToken(); // ParenthesisL
            if (!node.addChild(this._parseExpr())) {
                // empty (?)
            }
            if (!this.accept(cssScanner_1.TokenType.ParenthesisR)) {
                return this.finish(node, cssErrors_1.ParseError.RightParenthesisExpected);
            }
            return this.finish(node);
        };
        LESSParser.prototype._parseFunction = function () {
            var pos = this.mark();
            var node = this.create(nodes.Function);
            if (!node.setIdentifier(this._parseFunctionIdentifier())) {
                return null;
            }
            if (this.hasWhitespace() || !this.accept(cssScanner_1.TokenType.ParenthesisL)) {
                this.restoreAtMark(pos);
                return null;
            }
            if (node.getArguments().addChild(this._parseMixinArgument())) {
                while (this.accept(cssScanner_1.TokenType.Comma) || this.accept(cssScanner_1.TokenType.SemiColon)) {
                    if (this.peek(cssScanner_1.TokenType.ParenthesisR)) {
                        break;
                    }
                    if (!node.getArguments().addChild(this._parseMixinArgument())) {
                        return this.finish(node, cssErrors_1.ParseError.ExpressionExpected);
                    }
                }
            }
            if (!this.accept(cssScanner_1.TokenType.ParenthesisR)) {
                return this.finish(node, cssErrors_1.ParseError.RightParenthesisExpected);
            }
            return this.finish(node);
        };
        LESSParser.prototype._parseFunctionIdentifier = function () {
            if (this.peekDelim('%')) {
                var node = this.create(nodes.Identifier);
                node.referenceTypes = [nodes.ReferenceType.Function];
                this.consumeToken();
                return this.finish(node);
            }
            return _super.prototype._parseFunctionIdentifier.call(this);
        };
        LESSParser.prototype._parseURLArgument = function () {
            var pos = this.mark();
            var node = _super.prototype._parseURLArgument.call(this);
            if (!node || !this.peek(cssScanner_1.TokenType.ParenthesisR)) {
                this.restoreAtMark(pos);
                var node_2 = this.create(nodes.Node);
                node_2.addChild(this._parseBinaryExpr());
                return this.finish(node_2);
            }
            return node;
        };
        return LESSParser;
    }(cssParser.Parser));
    exports.LESSParser = LESSParser;
});

var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/services/lessCompletion',["require", "exports", "./cssCompletion", "vscode-languageserver-types", "vscode-nls"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    var cssCompletion_1 = require("./cssCompletion");
    var vscode_languageserver_types_1 = require("vscode-languageserver-types");
    var nls = require("vscode-nls");
    var localize = nls.loadMessageBundle();
    var LESSCompletion = /** @class */ (function (_super) {
        __extends(LESSCompletion, _super);
        function LESSCompletion() {
            return _super.call(this, '@') || this;
        }
        LESSCompletion.prototype.createFunctionProposals = function (proposals, existingNode, sortToEnd, result) {
            for (var _i = 0, proposals_1 = proposals; _i < proposals_1.length; _i++) {
                var p = proposals_1[_i];
                var item = {
                    label: p.name,
                    detail: p.example,
                    documentation: p.description,
                    textEdit: vscode_languageserver_types_1.TextEdit.replace(this.getCompletionRange(existingNode), p.name + '($0)'),
                    insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,
                    kind: vscode_languageserver_types_1.CompletionItemKind.Function
                };
                if (sortToEnd) {
                    item.sortText = 'z';
                }
                result.items.push(item);
            }
            return result;
        };
        LESSCompletion.prototype.getTermProposals = function (entry, existingNode, result) {
            var functions = LESSCompletion.builtInProposals;
            if (entry) {
                functions = functions.filter(function (f) { return !f.type || entry.restrictions.indexOf(f.type) !== -1; });
            }
            this.createFunctionProposals(functions, existingNode, true, result);
            return _super.prototype.getTermProposals.call(this, entry, existingNode, result);
        };
        LESSCompletion.prototype.getColorProposals = function (entry, existingNode, result) {
            this.createFunctionProposals(LESSCompletion.colorProposals, existingNode, false, result);
            return _super.prototype.getColorProposals.call(this, entry, existingNode, result);
        };
        LESSCompletion.prototype.getCompletionsForDeclarationProperty = function (declaration, result) {
            this.getCompletionsForSelector(null, true, result);
            return _super.prototype.getCompletionsForDeclarationProperty.call(this, declaration, result);
        };
        LESSCompletion.builtInProposals = [
            // Boolean functions
            {
                'name': 'if',
                'example': 'if(condition, trueValue [, falseValue]);',
                'description': localize('less.builtin.if', 'returns one of two values depending on a condition.')
            },
            {
                'name': 'boolean',
                'example': 'boolean(condition);',
                'description': localize('less.builtin.boolean', '"store" a boolean test for later evaluation in a guard or if().')
            },
            // List functions
            {
                'name': 'length',
                'example': 'length(@list);',
                'description': localize('less.builtin.length', 'returns the number of elements in a value list')
            },
            {
                'name': 'extract',
                'example': 'extract(@list, index);',
                'description': localize('less.builtin.extract', 'returns a value at the specified position in the list')
            },
            {
                'name': 'range',
                'example': 'range([start, ] end [, step]);',
                'description': localize('less.builtin.range', 'generate a list spanning a range of values')
            },
            {
                'name': 'each',
                'example': 'each(@list, ruleset);',
                'description': localize('less.builtin.each', 'bind the evaluation of a ruleset to each member of a list.')
            },
            // Other built-ins
            {
                'name': 'escape',
                'example': 'escape(@string);',
                'description': localize('less.builtin.escape', 'URL encodes a string')
            },
            {
                'name': 'e',
                'example': 'e(@string);',
                'description': localize('less.builtin.e', 'escape string content')
            },
            {
                'name': 'replace',
                'example': 'replace(@string, @pattern, @replacement[, @flags]);',
                'description': localize('less.builtin.replace', 'string replace')
            },
            {
                'name': 'unit',
                'example': 'unit(@dimension, [@unit: \'\']);',
                'description': localize('less.builtin.unit', 'remove or change the unit of a dimension')
            },
            {
                'name': 'color',
                'example': 'color(@string);',
                'description': localize('less.builtin.color', 'parses a string to a color'),
                'type': 'color'
            },
            {
                'name': 'convert',
                'example': 'convert(@value, unit);',
                'description': localize('less.builtin.convert', 'converts numbers from one type into another')
            },
            {
                'name': 'data-uri',
                'example': 'data-uri([mimetype,] url);',
                'description': localize('less.builtin.data-uri', 'inlines a resource and falls back to `url()`'),
                'type': 'url'
            },
            {
                'name': 'abs',
                'description': localize('less.builtin.abs', 'absolute value of a number'),
                'example': 'abs(number);'
            },
            {
                'name': 'acos',
                'description': localize('less.builtin.acos', 'arccosine - inverse of cosine function'),
                'example': 'acos(number);'
            },
            {
                'name': 'asin',
                'description': localize('less.builtin.asin', 'arcsine - inverse of sine function'),
                'example': 'asin(number);'
            },
            {
                'name': 'ceil',
                'example': 'ceil(@number);',
                'description': localize('less.builtin.ceil', 'rounds up to an integer')
            },
            {
                'name': 'cos',
                'description': localize('less.builtin.cos', 'cosine function'),
                'example': 'cos(number);'
            },
            {
                'name': 'floor',
                'description': localize('less.builtin.floor', 'rounds down to an integer'),
                'example': 'floor(@number);'
            },
            {
                'name': 'percentage',
                'description': localize('less.builtin.percentage', 'converts to a %, e.g. 0.5 > 50%'),
                'example': 'percentage(@number);',
                'type': 'percentage'
            },
            {
                'name': 'round',
                'description': localize('less.builtin.round', 'rounds a number to a number of places'),
                'example': 'round(number, [places: 0]);'
            },
            {
                'name': 'sqrt',
                'description': localize('less.builtin.sqrt', 'calculates square root of a number'),
                'example': 'sqrt(number);'
            },
            {
                'name': 'sin',
                'description': localize('less.builtin.sin', 'sine function'),
                'example': 'sin(number);'
            },
            {
                'name': 'tan',
                'description': localize('less.builtin.tan', 'tangent function'),
                'example': 'tan(number);'
            },
            {
                'name': 'atan',
                'description': localize('less.builtin.atan', 'arctangent - inverse of tangent function'),
                'example': 'atan(number);'
            },
            {
                'name': 'pi',
                'description': localize('less.builtin.pi', 'returns pi'),
                'example': 'pi();'
            },
            {
                'name': 'pow',
                'description': localize('less.builtin.pow', 'first argument raised to the power of the second argument'),
                'example': 'pow(@base, @exponent);'
            },
            {
                'name': 'mod',
                'description': localize('less.builtin.mod', 'first argument modulus second argument'),
                'example': 'mod(number, number);'
            },
            {
                'name': 'min',
                'description': localize('less.builtin.min', 'returns the lowest of one or more values'),
                'example': 'min(@x, @y);'
            },
            {
                'name': 'max',
                'description': localize('less.builtin.max', 'returns the lowest of one or more values'),
                'example': 'max(@x, @y);'
            }
        ];
        LESSCompletion.colorProposals = [
            {
                'name': 'argb',
                'example': 'argb(@color);',
                'description': localize('less.builtin.argb', 'creates a #AARRGGBB')
            },
            {
                'name': 'hsl',
                'example': 'hsl(@hue, @saturation, @lightness);',
                'description': localize('less.builtin.hsl', 'creates a color')
            },
            {
                'name': 'hsla',
                'example': 'hsla(@hue, @saturation, @lightness, @alpha);',
                'description': localize('less.builtin.hsla', 'creates a color')
            },
            {
                'name': 'hsv',
                'example': 'hsv(@hue, @saturation, @value);',
                'description': localize('less.builtin.hsv', 'creates a color')
            },
            {
                'name': 'hsva',
                'example': 'hsva(@hue, @saturation, @value, @alpha);',
                'description': localize('less.builtin.hsva', 'creates a color')
            },
            {
                'name': 'hue',
                'example': 'hue(@color);',
                'description': localize('less.builtin.hue', 'returns the `hue` channel of `@color` in the HSL space')
            },
            {
                'name': 'saturation',
                'example': 'saturation(@color);',
                'description': localize('less.builtin.saturation', 'returns the `saturation` channel of `@color` in the HSL space')
            },
            {
                'name': 'lightness',
                'example': 'lightness(@color);',
                'description': localize('less.builtin.lightness', 'returns the `lightness` channel of `@color` in the HSL space')
            },
            {
                'name': 'hsvhue',
                'example': 'hsvhue(@color);',
                'description': localize('less.builtin.hsvhue', 'returns the `hue` channel of `@color` in the HSV space')
            },
            {
                'name': 'hsvsaturation',
                'example': 'hsvsaturation(@color);',
                'description': localize('less.builtin.hsvsaturation', 'returns the `saturation` channel of `@color` in the HSV space')
            },
            {
                'name': 'hsvvalue',
                'example': 'hsvvalue(@color);',
                'description': localize('less.builtin.hsvvalue', 'returns the `value` channel of `@color` in the HSV space')
            },
            {
                'name': 'red',
                'example': 'red(@color);',
                'description': localize('less.builtin.red', 'returns the `red` channel of `@color`')
            },
            {
                'name': 'green',
                'example': 'green(@color);',
                'description': localize('less.builtin.green', 'returns the `green` channel of `@color`')
            },
            {
                'name': 'blue',
                'example': 'blue(@color);',
                'description': localize('less.builtin.blue', 'returns the `blue` channel of `@color`')
            },
            {
                'name': 'alpha',
                'example': 'alpha(@color);',
                'description': localize('less.builtin.alpha', 'returns the `alpha` channel of `@color`')
            },
            {
                'name': 'luma',
                'example': 'luma(@color);',
                'description': localize('less.builtin.luma', 'returns the `luma` value (perceptual brightness) of `@color`')
            },
            {
                'name': 'saturate',
                'example': 'saturate(@color, 10%);',
                'description': localize('less.builtin.saturate', 'return `@color` 10% points more saturated')
            },
            {
                'name': 'desaturate',
                'example': 'desaturate(@color, 10%);',
                'description': localize('less.builtin.desaturate', 'return `@color` 10% points less saturated')
            },
            {
                'name': 'lighten',
                'example': 'lighten(@color, 10%);',
                'description': localize('less.builtin.lighten', 'return `@color` 10% points lighter')
            },
            {
                'name': 'darken',
                'example': 'darken(@color, 10%);',
                'description': localize('less.builtin.darken', 'return `@color` 10% points darker')
            },
            {
                'name': 'fadein',
                'example': 'fadein(@color, 10%);',
                'description': localize('less.builtin.fadein', 'return `@color` 10% points less transparent')
            },
            {
                'name': 'fadeout',
                'example': 'fadeout(@color, 10%);',
                'description': localize('less.builtin.fadeout', 'return `@color` 10% points more transparent')
            },
            {
                'name': 'fade',
                'example': 'fade(@color, 50%);',
                'description': localize('less.builtin.fade', 'return `@color` with 50% transparency')
            },
            {
                'name': 'spin',
                'example': 'spin(@color, 10);',
                'description': localize('less.builtin.spin', 'return `@color` with a 10 degree larger in hue')
            },
            {
                'name': 'mix',
                'example': 'mix(@color1, @color2, [@weight: 50%]);',
                'description': localize('less.builtin.mix', 'return a mix of `@color1` and `@color2`')
            },
            {
                'name': 'greyscale',
                'example': 'greyscale(@color);',
                'description': localize('less.builtin.greyscale', 'returns a grey, 100% desaturated color'),
            },
            {
                'name': 'contrast',
                'example': 'contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);',
                'description': localize('less.builtin.contrast', 'return `@darkcolor` if `@color1 is> 43% luma` otherwise return `@lightcolor`, see notes')
            },
            {
                'name': 'multiply',
                'example': 'multiply(@color1, @color2);'
            },
            {
                'name': 'screen',
                'example': 'screen(@color1, @color2);'
            },
            {
                'name': 'overlay',
                'example': 'overlay(@color1, @color2);'
            },
            {
                'name': 'softlight',
                'example': 'softlight(@color1, @color2);'
            },
            {
                'name': 'hardlight',
                'example': 'hardlight(@color1, @color2);'
            },
            {
                'name': 'difference',
                'example': 'difference(@color1, @color2);'
            },
            {
                'name': 'exclusion',
                'example': 'exclusion(@color1, @color2);'
            },
            {
                'name': 'average',
                'example': 'average(@color1, @color2);'
            },
            {
                'name': 'negation',
                'example': 'negation(@color1, @color2);'
            }
        ];
        return LESSCompletion;
    }(cssCompletion_1.CSSCompletion));
    exports.LESSCompletion = LESSCompletion;
});

(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/services/cssFolding',["require", "exports", "../parser/cssScanner", "../parser/scssScanner", "../parser/lessScanner"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    var cssScanner_1 = require("../parser/cssScanner");
    var scssScanner_1 = require("../parser/scssScanner");
    var lessScanner_1 = require("../parser/lessScanner");
    function getFoldingRanges(document, context) {
        var ranges = computeFoldingRanges(document);
        return limitFoldingRanges(ranges, context);
    }
    exports.getFoldingRanges = getFoldingRanges;
    function computeFoldingRanges(document) {
        function getStartLine(t) {
            return document.positionAt(t.offset).line;
        }
        function getEndLine(t) {
            return document.positionAt(t.offset + t.len).line;
        }
        function getScanner() {
            switch (document.languageId) {
                case 'scss':
                    return new scssScanner_1.SCSSScanner();
                case 'less':
                    return new lessScanner_1.LESSScanner();
                default:
                    return new cssScanner_1.Scanner();
            }
        }
        function tokenToRange(t, kind) {
            var startLine = getStartLine(t);
            var endLine = getEndLine(t);
            if (startLine !== endLine) {
                return {
                    startLine: startLine,
                    endLine: endLine,
                    kind: kind
                };
            }
            else {
                return null;
            }
        }
        var ranges = [];
        var delimiterStack = [];
        var scanner = getScanner();
        scanner.ignoreComment = false;
        scanner.setSource(document.getText());
        var token = scanner.scan();
        var prevToken;
        var _loop_1 = function () {
            switch (token.type) {
                case cssScanner_1.TokenType.CurlyL:
                case scssScanner_1.InterpolationFunction:
                    {
                        delimiterStack.push({ line: getStartLine(token), type: 'brace', isStart: true });
                        break;
                    }
                case cssScanner_1.TokenType.CurlyR: {
                    if (delimiterStack.length !== 0) {
                        var prevDelimiter = popPrevStartDelimiterOfType(delimiterStack, 'brace');
                        if (!prevDelimiter) {
                            break;
                        }
                        var endLine = getEndLine(token);
                        if (prevDelimiter.type === 'brace') {
                            /**
                             * Other than the case when curly brace is not on a new line by itself, for example
                             * .foo {
                             *   color: red; }
                             * Use endLine minus one to show ending curly brace
                             */
                            if (getEndLine(prevToken) !== endLine) {
                                endLine--;
                            }
                            if (prevDelimiter.line !== endLine) {
                                ranges.push({
                                    startLine: prevDelimiter.line,
                                    endLine: endLine,
                                    kind: undefined
                                });
                            }
                        }
                    }
                    break;
                }
                /**
                 * In CSS, there is no single line comment prefixed with //
                 * All comments are marked as `Comment`
                 */
                case cssScanner_1.TokenType.Comment: {
                    var commentRegionMarkerToDelimiter_1 = function (marker) {
                        if (marker === '#region') {
                            return { line: getStartLine(token), type: 'comment', isStart: true };
                        }
                        else {
                            return { line: getEndLine(token), type: 'comment', isStart: false };
                        }
                    };
                    var getCurrDelimiter = function (token) {
                        var matches = token.text.match(/^\s*\/\*\s*(#region|#endregion)\b\s*(.*?)\s*\*\//);
                        if (matches) {
                            return commentRegionMarkerToDelimiter_1(matches[1]);
                        }
                        else if (document.languageId === 'scss' || document.languageId === 'less') {
                            var matches_1 = token.text.match(/^\s*\/\/\s*(#region|#endregion)\b\s*(.*?)\s*/);
                            if (matches_1) {
                                return commentRegionMarkerToDelimiter_1(matches_1[1]);
                            }
                        }
                        return null;
                    };
                    var currDelimiter = getCurrDelimiter(token);
                    // /* */ comment region folding
                    // All #region and #endregion cases
                    if (currDelimiter) {
                        if (currDelimiter.isStart) {
                            delimiterStack.push(currDelimiter);
                        }
                        else {
                            var prevDelimiter = popPrevStartDelimiterOfType(delimiterStack, 'comment');
                            if (!prevDelimiter) {
                                break;
                            }
                            if (prevDelimiter.type === 'comment') {
                                if (prevDelimiter.line !== currDelimiter.line) {
                                    ranges.push({
                                        startLine: prevDelimiter.line,
                                        endLine: currDelimiter.line,
                                        kind: 'region'
                                    });
                                }
                            }
                        }
                    }
                    // Multiline comment case
                    else {
                        var range = tokenToRange(token, 'comment');
                        if (range) {
                            ranges.push(range);
                        }
                    }
                    break;
                }
            }
            prevToken = token;
            token = scanner.scan();
        };
        while (token.type !== cssScanner_1.TokenType.EOF) {
            _loop_1();
        }
        return ranges;
    }
    function popPrevStartDelimiterOfType(stack, type) {
        if (stack.length === 0) {
            return null;
        }
        for (var i = stack.length - 1; i >= 0; i--) {
            if (stack[i].type === type && stack[i].isStart) {
                return stack.splice(i, 1)[0];
            }
        }
        return null;
    }
    /**
     * - Sort regions
     * - Remove invalid regions (intersections)
     * - If limit exceeds, only return `rangeLimit` amount of ranges
     */
    function limitFoldingRanges(ranges, context) {
        var maxRanges = context && context.rangeLimit || Number.MAX_VALUE;
        var sortedRanges = ranges.sort(function (r1, r2) {
            var diff = r1.startLine - r2.startLine;
            if (diff === 0) {
                diff = r1.endLine - r2.endLine;
            }
            return diff;
        });
        var validRanges = [];
        var prevEndLine = -1;
        sortedRanges.forEach(function (r) {
            if (!(r.startLine < prevEndLine && prevEndLine < r.endLine)) {
                validRanges.push(r);
                prevEndLine = r.endLine;
            }
        });
        if (validRanges.length < maxRanges) {
            return validRanges;
        }
        else {
            return validRanges.slice(0, maxRanges);
        }
    }
});

(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/cssLanguageTypes',["require", "exports", "vscode-languageserver-types"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    var vscode_languageserver_types_1 = require("vscode-languageserver-types");
    exports.Range = vscode_languageserver_types_1.Range;
    exports.TextEdit = vscode_languageserver_types_1.TextEdit;
    exports.Position = vscode_languageserver_types_1.Position;
    // #region Proposed types, remove once added to vscode-languageserver-types
    /**
     * Enum of known selection range kinds
     */
    var SelectionRangeKind;
    (function (SelectionRangeKind) {
        /**
         * Empty Kind.
         */
        SelectionRangeKind["Empty"] = "";
        /**
         * The statment kind, its value is `statement`, possible extensions can be
         * `statement.if` etc
         */
        SelectionRangeKind["Statement"] = "statement";
        /**
         * The declaration kind, its value is `declaration`, possible extensions can be
         * `declaration.function`, `declaration.class` etc.
         */
        SelectionRangeKind["Declaration"] = "declaration";
    })(SelectionRangeKind = exports.SelectionRangeKind || (exports.SelectionRangeKind = {}));
});

(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/services/cssSelectionRange',["require", "exports", "vscode-languageserver-types", "../parser/cssNodes", "../cssLanguageTypes"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    var vscode_languageserver_types_1 = require("vscode-languageserver-types");
    var cssNodes_1 = require("../parser/cssNodes");
    var cssLanguageTypes_1 = require("../cssLanguageTypes");
    function getSelectionRanges(document, positions, stylesheet) {
        function getSelectionRange(position) {
            var applicableRanges = getApplicableRanges(position);
            var ranges = applicableRanges.map(function (pair) {
                return {
                    range: vscode_languageserver_types_1.Range.create(document.positionAt(pair[0]), document.positionAt(pair[1])),
                    kind: cssLanguageTypes_1.SelectionRangeKind.Statement
                };
            });
            return ranges;
        }
        return positions.map(getSelectionRange);
        function getApplicableRanges(position) {
            var currNode = stylesheet.findChildAtOffset(document.offsetAt(position), true);
            if (!currNode) {
                return [];
            }
            var result = [];
            while (currNode) {
                if (currNode.parent &&
                    currNode.offset === currNode.parent.offset &&
                    currNode.end === currNode.parent.end) {
                    currNode = currNode.parent;
                    continue;
                }
                if (currNode.type === cssNodes_1.NodeType.Declarations) {
                    result.push([currNode.offset + 1, currNode.end - 1]);
                }
                else {
                    result.push([currNode.offset, currNode.end]);
                }
                currNode = currNode.parent;
            }
            return result;
        }
    }
    exports.getSelectionRanges = getSelectionRanges;
});

(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define('vscode-css-languageservice/cssLanguageService',["require", "exports", "./parser/cssParser", "./services/cssCompletion", "./services/cssHover", "./services/cssNavigation", "./services/cssCodeActions", "./services/cssValidation", "./parser/scssParser", "./services/scssCompletion", "./parser/lessParser", "./services/lessCompletion", "./services/cssFolding", "./languageFacts/facts", "./services/cssSelectionRange", "./cssLanguageTypes", "vscode-languageserver-types"], factory);
    }
})(function (require, exports) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    function __export(m) {
        for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
    }
    Object.defineProperty(exports, "__esModule", { value: true });
    var cssParser_1 = require("./parser/cssParser");
    var cssCompletion_1 = require("./services/cssCompletion");
    var cssHover_1 = require("./services/cssHover");
    var cssNavigation_1 = require("./services/cssNavigation");
    var cssCodeActions_1 = require("./services/cssCodeActions");
    var cssValidation_1 = require("./services/cssValidation");
    var scssParser_1 = require("./parser/scssParser");
    var scssCompletion_1 = require("./services/scssCompletion");
    var lessParser_1 = require("./parser/lessParser");
    var lessCompletion_1 = require("./services/lessCompletion");
    var cssFolding_1 = require("./services/cssFolding");
    var facts_1 = require("./languageFacts/facts");
    var cssSelectionRange_1 = require("./services/cssSelectionRange");
    __export(require("./cssLanguageTypes"));
    __export(require("vscode-languageserver-types"));
    function createFacade(parser, completion, hover, navigation, codeActions, validation) {
        return {
            configure: validation.configure.bind(validation),
            doValidation: validation.doValidation.bind(validation),
            parseStylesheet: parser.parseStylesheet.bind(parser),
            doComplete: completion.doComplete.bind(completion),
            setCompletionParticipants: completion.setCompletionParticipants.bind(completion),
            doHover: hover.doHover.bind(hover),
            findDefinition: navigation.findDefinition.bind(navigation),
            findReferences: navigation.findReferences.bind(navigation),
            findDocumentHighlights: navigation.findDocumentHighlights.bind(navigation),
            findDocumentLinks: navigation.findDocumentLinks.bind(navigation),
            findDocumentSymbols: navigation.findDocumentSymbols.bind(navigation),
            doCodeActions: codeActions.doCodeActions.bind(codeActions),
            doCodeActions2: codeActions.doCodeActions2.bind(codeActions),
            findColorSymbols: function (d, s) { return navigation.findDocumentColors(d, s).map(function (s) { return s.range; }); },
            findDocumentColors: navigation.findDocumentColors.bind(navigation),
            getColorPresentations: navigation.getColorPresentations.bind(navigation),
            doRename: navigation.doRename.bind(navigation),
            getFoldingRanges: cssFolding_1.getFoldingRanges,
            getSelectionRanges: cssSelectionRange_1.getSelectionRanges
        };
    }
    function handleCustomData(options) {
        if (options && options.customDataProviders) {
            facts_1.cssDataManager.addDataProviders(options.customDataProviders);
        }
    }
    function getCSSLanguageService(options) {
        handleCustomData(options);
        return createFacade(new cssParser_1.Parser(), new cssCompletion_1.CSSCompletion(), new cssHover_1.CSSHover(), new cssNavigation_1.CSSNavigation(), new cssCodeActions_1.CSSCodeActions(), new cssValidation_1.CSSValidation());
    }
    exports.getCSSLanguageService = getCSSLanguageService;
    function getSCSSLanguageService(options) {
        handleCustomData(options);
        return createFacade(new scssParser_1.SCSSParser(), new scssCompletion_1.SCSSCompletion(), new cssHover_1.CSSHover(), new cssNavigation_1.CSSNavigation(), new cssCodeActions_1.CSSCodeActions(), new cssValidation_1.CSSValidation());
    }
    exports.getSCSSLanguageService = getSCSSLanguageService;
    function getLESSLanguageService(options) {
        handleCustomData(options);
        return createFacade(new lessParser_1.LESSParser(), new lessCompletion_1.LESSCompletion(), new cssHover_1.CSSHover(), new cssNavigation_1.CSSNavigation(), new cssCodeActions_1.CSSCodeActions(), new cssValidation_1.CSSValidation());
    }
    exports.getLESSLanguageService = getLESSLanguageService;
});

define('vscode-css-languageservice', ['vscode-css-languageservice/cssLanguageService'], function (main) { return main; });

define('vs/language/css/cssWorker',["require", "exports", "vscode-css-languageservice", "vscode-languageserver-types"], function (require, exports, cssService, ls) {
    /*---------------------------------------------------------------------------------------------
     *  Copyright (c) Microsoft Corporation. All rights reserved.
     *  Licensed under the MIT License. See License.txt in the project root for license information.
     *--------------------------------------------------------------------------------------------*/
    'use strict';
    Object.defineProperty(exports, "__esModule", { value: true });
    var CSSWorker = /** @class */ (function () {
        function CSSWorker(ctx, createData) {
            this._ctx = ctx;
            this._languageSettings = createData.languageSettings;
            this._languageId = createData.languageId;
            switch (this._languageId) {
                case 'css':
                    this._languageService = cssService.getCSSLanguageService();
                    break;
                case 'less':
                    this._languageService = cssService.getLESSLanguageService();
                    break;
                case 'scss':
                    this._languageService = cssService.getSCSSLanguageService();
                    break;
                default:
                    throw new Error('Invalid language id: ' + this._languageId);
            }
            this._languageService.configure(this._languageSettings);
        }
        // --- language service host ---------------
        CSSWorker.prototype.doValidation = function (uri) {
            var document = this._getTextDocument(uri);
            if (document) {
                var stylesheet = this._languageService.parseStylesheet(document);
                var diagnostics = this._languageService.doValidation(document, stylesheet);
                return Promise.resolve(diagnostics);
            }
            return Promise.resolve([]);
        };
        CSSWorker.prototype.doComplete = function (uri, position) {
            var document = this._getTextDocument(uri);
            var stylesheet = this._languageService.parseStylesheet(document);
            var completions = this._languageService.doComplete(document, position, stylesheet);
            return Promise.resolve(completions);
        };
        CSSWorker.prototype.doHover = function (uri, position) {
            var document = this._getTextDocument(uri);
            var stylesheet = this._languageService.parseStylesheet(document);
            var hover = this._languageService.doHover(document, position, stylesheet);
            return Promise.resolve(hover);
        };
        CSSWorker.prototype.findDefinition = function (uri, position) {
            var document = this._getTextDocument(uri);
            var stylesheet = this._languageService.parseStylesheet(document);
            var definition = this._languageService.findDefinition(document, position, stylesheet);
            return Promise.resolve(definition);
        };
        CSSWorker.prototype.findReferences = function (uri, position) {
            var document = this._getTextDocument(uri);
            var stylesheet = this._languageService.parseStylesheet(document);
            var references = this._languageService.findReferences(document, position, stylesheet);
            return Promise.resolve(references);
        };
        CSSWorker.prototype.findDocumentHighlights = function (uri, position) {
            var document = this._getTextDocument(uri);
            var stylesheet = this._languageService.parseStylesheet(document);
            var highlights = this._languageService.findDocumentHighlights(document, position, stylesheet);
            return Promise.resolve(highlights);
        };
        CSSWorker.prototype.findDocumentSymbols = function (uri) {
            var document = this._getTextDocument(uri);
            var stylesheet = this._languageService.parseStylesheet(document);
            var symbols = this._languageService.findDocumentSymbols(document, stylesheet);
            return Promise.resolve(symbols);
        };
        CSSWorker.prototype.doCodeActions = function (uri, range, context) {
            var document = this._getTextDocument(uri);
            var stylesheet = this._languageService.parseStylesheet(document);
            var actions = this._languageService.doCodeActions(document, range, context, stylesheet);
            return Promise.resolve(actions);
        };
        CSSWorker.prototype.findDocumentColors = function (uri) {
            var document = this._getTextDocument(uri);
            var stylesheet = this._languageService.parseStylesheet(document);
            var colorSymbols = this._languageService.findDocumentColors(document, stylesheet);
            return Promise.resolve(colorSymbols);
        };
        CSSWorker.prototype.getColorPresentations = function (uri, color, range) {
            var document = this._getTextDocument(uri);
            var stylesheet = this._languageService.parseStylesheet(document);
            var colorPresentations = this._languageService.getColorPresentations(document, stylesheet, color, range);
            return Promise.resolve(colorPresentations);
        };
        CSSWorker.prototype.provideFoldingRanges = function (uri, context) {
            var document = this._getTextDocument(uri);
            var ranges = this._languageService.getFoldingRanges(document, context);
            return Promise.resolve(ranges);
        };
        CSSWorker.prototype.doRename = function (uri, position, newName) {
            var document = this._getTextDocument(uri);
            var stylesheet = this._languageService.parseStylesheet(document);
            var renames = this._languageService.doRename(document, position, newName, stylesheet);
            return Promise.resolve(renames);
        };
        CSSWorker.prototype._getTextDocument = function (uri) {
            var models = this._ctx.getMirrorModels();
            for (var _i = 0, models_1 = models; _i < models_1.length; _i++) {
                var model = models_1[_i];
                if (model.uri.toString() === uri) {
                    return ls.TextDocument.create(uri, this._languageId, model.version, model.getValue());
                }
            }
            return null;
        };
        return CSSWorker;
    }());
    exports.CSSWorker = CSSWorker;
    function create(ctx, createData) {
        return new CSSWorker(ctx, createData);
    }
    exports.create = create;
});

