1(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[2],{ 2 3/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/_deps/vscode-languageserver-types/main.js": 4/*!***********************************************************************************************************************************!*\ 5 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/_deps/vscode-languageserver-types/main.js ***! 6 \***********************************************************************************************************************************/ 7/*! exports provided: Position, Range, Location, LocationLink, Color, ColorInformation, ColorPresentation, FoldingRangeKind, FoldingRange, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, DiagnosticCode, Diagnostic, Command, TextEdit, TextDocumentEdit, CreateFile, RenameFile, DeleteFile, WorkspaceEdit, WorkspaceChange, TextDocumentIdentifier, VersionedTextDocumentIdentifier, TextDocumentItem, MarkupKind, MarkupContent, CompletionItemKind, InsertTextFormat, CompletionItemTag, InsertReplaceEdit, CompletionItem, CompletionList, MarkedString, Hover, ParameterInformation, SignatureInformation, DocumentHighlightKind, DocumentHighlight, SymbolKind, SymbolTag, SymbolInformation, DocumentSymbol, CodeActionKind, CodeActionContext, CodeAction, CodeLens, FormattingOptions, DocumentLink, SelectionRange, EOL, TextDocument */ 8/***/ (function(module, __webpack_exports__, __webpack_require__) { 9 10"use strict"; 11__webpack_require__.r(__webpack_exports__); 12/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Position", function() { return Position; }); 13/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Range", function() { return Range; }); 14/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Location", function() { return Location; }); 15/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LocationLink", function() { return LocationLink; }); 16/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color", function() { return Color; }); 17/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColorInformation", function() { return ColorInformation; }); 18/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColorPresentation", function() { return ColorPresentation; }); 19/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FoldingRangeKind", function() { return FoldingRangeKind; }); 20/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FoldingRange", function() { return FoldingRange; }); 21/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DiagnosticRelatedInformation", function() { return DiagnosticRelatedInformation; }); 22/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DiagnosticSeverity", function() { return DiagnosticSeverity; }); 23/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DiagnosticTag", function() { return DiagnosticTag; }); 24/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DiagnosticCode", function() { return DiagnosticCode; }); 25/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Diagnostic", function() { return Diagnostic; }); 26/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Command", function() { return Command; }); 27/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextEdit", function() { return TextEdit; }); 28/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextDocumentEdit", function() { return TextDocumentEdit; }); 29/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateFile", function() { return CreateFile; }); 30/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RenameFile", function() { return RenameFile; }); 31/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteFile", function() { return DeleteFile; }); 32/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WorkspaceEdit", function() { return WorkspaceEdit; }); 33/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WorkspaceChange", function() { return WorkspaceChange; }); 34/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextDocumentIdentifier", function() { return TextDocumentIdentifier; }); 35/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VersionedTextDocumentIdentifier", function() { return VersionedTextDocumentIdentifier; }); 36/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextDocumentItem", function() { return TextDocumentItem; }); 37/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MarkupKind", function() { return MarkupKind; }); 38/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MarkupContent", function() { return MarkupContent; }); 39/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CompletionItemKind", function() { return CompletionItemKind; }); 40/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InsertTextFormat", function() { return InsertTextFormat; }); 41/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CompletionItemTag", function() { return CompletionItemTag; }); 42/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InsertReplaceEdit", function() { return InsertReplaceEdit; }); 43/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CompletionItem", function() { return CompletionItem; }); 44/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CompletionList", function() { return CompletionList; }); 45/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MarkedString", function() { return MarkedString; }); 46/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hover", function() { return Hover; }); 47/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ParameterInformation", function() { return ParameterInformation; }); 48/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SignatureInformation", function() { return SignatureInformation; }); 49/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentHighlightKind", function() { return DocumentHighlightKind; }); 50/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentHighlight", function() { return DocumentHighlight; }); 51/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SymbolKind", function() { return SymbolKind; }); 52/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SymbolTag", function() { return SymbolTag; }); 53/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SymbolInformation", function() { return SymbolInformation; }); 54/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentSymbol", function() { return DocumentSymbol; }); 55/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CodeActionKind", function() { return CodeActionKind; }); 56/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CodeActionContext", function() { return CodeActionContext; }); 57/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CodeAction", function() { return CodeAction; }); 58/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CodeLens", function() { return CodeLens; }); 59/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormattingOptions", function() { return FormattingOptions; }); 60/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentLink", function() { return DocumentLink; }); 61/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SelectionRange", function() { return SelectionRange; }); 62/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EOL", function() { return EOL; }); 63/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextDocument", function() { return TextDocument; }); 64/* -------------------------------------------------------------------------------------------- 65 * Copyright (c) Microsoft Corporation. All rights reserved. 66 * Licensed under the MIT License. See License.txt in the project root for license information. 67 * ------------------------------------------------------------------------------------------ */ 68 69/** 70 * The Position namespace provides helper functions to work with 71 * [Position](#Position) literals. 72 */ 73var Position; 74(function (Position) { 75 /** 76 * Creates a new Position literal from the given line and character. 77 * @param line The position's line. 78 * @param character The position's character. 79 */ 80 function create(line, character) { 81 return { line: line, character: character }; 82 } 83 Position.create = create; 84 /** 85 * Checks whether the given liternal conforms to the [Position](#Position) interface. 86 */ 87 function is(value) { 88 var candidate = value; 89 return Is.objectLiteral(candidate) && Is.number(candidate.line) && Is.number(candidate.character); 90 } 91 Position.is = is; 92})(Position || (Position = {})); 93/** 94 * The Range namespace provides helper functions to work with 95 * [Range](#Range) literals. 96 */ 97var Range; 98(function (Range) { 99 function create(one, two, three, four) { 100 if (Is.number(one) && Is.number(two) && Is.number(three) && Is.number(four)) { 101 return { start: Position.create(one, two), end: Position.create(three, four) }; 102 } 103 else if (Position.is(one) && Position.is(two)) { 104 return { start: one, end: two }; 105 } 106 else { 107 throw new Error("Range#create called with invalid arguments[" + one + ", " + two + ", " + three + ", " + four + "]"); 108 } 109 } 110 Range.create = create; 111 /** 112 * Checks whether the given literal conforms to the [Range](#Range) interface. 113 */ 114 function is(value) { 115 var candidate = value; 116 return Is.objectLiteral(candidate) && Position.is(candidate.start) && Position.is(candidate.end); 117 } 118 Range.is = is; 119})(Range || (Range = {})); 120/** 121 * The Location namespace provides helper functions to work with 122 * [Location](#Location) literals. 123 */ 124var Location; 125(function (Location) { 126 /** 127 * Creates a Location literal. 128 * @param uri The location's uri. 129 * @param range The location's range. 130 */ 131 function create(uri, range) { 132 return { uri: uri, range: range }; 133 } 134 Location.create = create; 135 /** 136 * Checks whether the given literal conforms to the [Location](#Location) interface. 137 */ 138 function is(value) { 139 var candidate = value; 140 return Is.defined(candidate) && Range.is(candidate.range) && (Is.string(candidate.uri) || Is.undefined(candidate.uri)); 141 } 142 Location.is = is; 143})(Location || (Location = {})); 144/** 145 * The LocationLink namespace provides helper functions to work with 146 * [LocationLink](#LocationLink) literals. 147 */ 148var LocationLink; 149(function (LocationLink) { 150 /** 151 * Creates a LocationLink literal. 152 * @param targetUri The definition's uri. 153 * @param targetRange The full range of the definition. 154 * @param targetSelectionRange The span of the symbol definition at the target. 155 * @param originSelectionRange The span of the symbol being defined in the originating source file. 156 */ 157 function create(targetUri, targetRange, targetSelectionRange, originSelectionRange) { 158 return { targetUri: targetUri, targetRange: targetRange, targetSelectionRange: targetSelectionRange, originSelectionRange: originSelectionRange }; 159 } 160 LocationLink.create = create; 161 /** 162 * Checks whether the given literal conforms to the [LocationLink](#LocationLink) interface. 163 */ 164 function is(value) { 165 var candidate = value; 166 return Is.defined(candidate) && Range.is(candidate.targetRange) && Is.string(candidate.targetUri) 167 && (Range.is(candidate.targetSelectionRange) || Is.undefined(candidate.targetSelectionRange)) 168 && (Range.is(candidate.originSelectionRange) || Is.undefined(candidate.originSelectionRange)); 169 } 170 LocationLink.is = is; 171})(LocationLink || (LocationLink = {})); 172/** 173 * The Color namespace provides helper functions to work with 174 * [Color](#Color) literals. 175 */ 176var Color; 177(function (Color) { 178 /** 179 * Creates a new Color literal. 180 */ 181 function create(red, green, blue, alpha) { 182 return { 183 red: red, 184 green: green, 185 blue: blue, 186 alpha: alpha, 187 }; 188 } 189 Color.create = create; 190 /** 191 * Checks whether the given literal conforms to the [Color](#Color) interface. 192 */ 193 function is(value) { 194 var candidate = value; 195 return Is.number(candidate.red) 196 && Is.number(candidate.green) 197 && Is.number(candidate.blue) 198 && Is.number(candidate.alpha); 199 } 200 Color.is = is; 201})(Color || (Color = {})); 202/** 203 * The ColorInformation namespace provides helper functions to work with 204 * [ColorInformation](#ColorInformation) literals. 205 */ 206var ColorInformation; 207(function (ColorInformation) { 208 /** 209 * Creates a new ColorInformation literal. 210 */ 211 function create(range, color) { 212 return { 213 range: range, 214 color: color, 215 }; 216 } 217 ColorInformation.create = create; 218 /** 219 * Checks whether the given literal conforms to the [ColorInformation](#ColorInformation) interface. 220 */ 221 function is(value) { 222 var candidate = value; 223 return Range.is(candidate.range) && Color.is(candidate.color); 224 } 225 ColorInformation.is = is; 226})(ColorInformation || (ColorInformation = {})); 227/** 228 * The Color namespace provides helper functions to work with 229 * [ColorPresentation](#ColorPresentation) literals. 230 */ 231var ColorPresentation; 232(function (ColorPresentation) { 233 /** 234 * Creates a new ColorInformation literal. 235 */ 236 function create(label, textEdit, additionalTextEdits) { 237 return { 238 label: label, 239 textEdit: textEdit, 240 additionalTextEdits: additionalTextEdits, 241 }; 242 } 243 ColorPresentation.create = create; 244 /** 245 * Checks whether the given literal conforms to the [ColorInformation](#ColorInformation) interface. 246 */ 247 function is(value) { 248 var candidate = value; 249 return Is.string(candidate.label) 250 && (Is.undefined(candidate.textEdit) || TextEdit.is(candidate)) 251 && (Is.undefined(candidate.additionalTextEdits) || Is.typedArray(candidate.additionalTextEdits, TextEdit.is)); 252 } 253 ColorPresentation.is = is; 254})(ColorPresentation || (ColorPresentation = {})); 255/** 256 * Enum of known range kinds 257 */ 258var FoldingRangeKind; 259(function (FoldingRangeKind) { 260 /** 261 * Folding range for a comment 262 */ 263 FoldingRangeKind["Comment"] = "comment"; 264 /** 265 * Folding range for a imports or includes 266 */ 267 FoldingRangeKind["Imports"] = "imports"; 268 /** 269 * Folding range for a region (e.g. `#region`) 270 */ 271 FoldingRangeKind["Region"] = "region"; 272})(FoldingRangeKind || (FoldingRangeKind = {})); 273/** 274 * The folding range namespace provides helper functions to work with 275 * [FoldingRange](#FoldingRange) literals. 276 */ 277var FoldingRange; 278(function (FoldingRange) { 279 /** 280 * Creates a new FoldingRange literal. 281 */ 282 function create(startLine, endLine, startCharacter, endCharacter, kind) { 283 var result = { 284 startLine: startLine, 285 endLine: endLine 286 }; 287 if (Is.defined(startCharacter)) { 288 result.startCharacter = startCharacter; 289 } 290 if (Is.defined(endCharacter)) { 291 result.endCharacter = endCharacter; 292 } 293 if (Is.defined(kind)) { 294 result.kind = kind; 295 } 296 return result; 297 } 298 FoldingRange.create = create; 299 /** 300 * Checks whether the given literal conforms to the [FoldingRange](#FoldingRange) interface. 301 */ 302 function is(value) { 303 var candidate = value; 304 return Is.number(candidate.startLine) && Is.number(candidate.startLine) 305 && (Is.undefined(candidate.startCharacter) || Is.number(candidate.startCharacter)) 306 && (Is.undefined(candidate.endCharacter) || Is.number(candidate.endCharacter)) 307 && (Is.undefined(candidate.kind) || Is.string(candidate.kind)); 308 } 309 FoldingRange.is = is; 310})(FoldingRange || (FoldingRange = {})); 311/** 312 * The DiagnosticRelatedInformation namespace provides helper functions to work with 313 * [DiagnosticRelatedInformation](#DiagnosticRelatedInformation) literals. 314 */ 315var DiagnosticRelatedInformation; 316(function (DiagnosticRelatedInformation) { 317 /** 318 * Creates a new DiagnosticRelatedInformation literal. 319 */ 320 function create(location, message) { 321 return { 322 location: location, 323 message: message 324 }; 325 } 326 DiagnosticRelatedInformation.create = create; 327 /** 328 * Checks whether the given literal conforms to the [DiagnosticRelatedInformation](#DiagnosticRelatedInformation) interface. 329 */ 330 function is(value) { 331 var candidate = value; 332 return Is.defined(candidate) && Location.is(candidate.location) && Is.string(candidate.message); 333 } 334 DiagnosticRelatedInformation.is = is; 335})(DiagnosticRelatedInformation || (DiagnosticRelatedInformation = {})); 336/** 337 * The diagnostic's severity. 338 */ 339var DiagnosticSeverity; 340(function (DiagnosticSeverity) { 341 /** 342 * Reports an error. 343 */ 344 DiagnosticSeverity.Error = 1; 345 /** 346 * Reports a warning. 347 */ 348 DiagnosticSeverity.Warning = 2; 349 /** 350 * Reports an information. 351 */ 352 DiagnosticSeverity.Information = 3; 353 /** 354 * Reports a hint. 355 */ 356 DiagnosticSeverity.Hint = 4; 357})(DiagnosticSeverity || (DiagnosticSeverity = {})); 358/** 359 * The diagnostic tags. 360 * 361 * @since 3.15.0 362 */ 363var DiagnosticTag; 364(function (DiagnosticTag) { 365 /** 366 * Unused or unnecessary code. 367 * 368 * Clients are allowed to render diagnostics with this tag faded out instead of having 369 * an error squiggle. 370 */ 371 DiagnosticTag.Unnecessary = 1; 372 /** 373 * Deprecated or obsolete code. 374 * 375 * Clients are allowed to rendered diagnostics with this tag strike through. 376 */ 377 DiagnosticTag.Deprecated = 2; 378})(DiagnosticTag || (DiagnosticTag = {})); 379/** 380 * The DiagnosticCode namespace provides functions to deal with complex diagnostic codes. 381 * 382 * @since 3.16.0 - Proposed state 383 */ 384var DiagnosticCode; 385(function (DiagnosticCode) { 386 /** 387 * Checks whether the given liternal conforms to the [DiagnosticCode](#DiagnosticCode) interface. 388 */ 389 function is(value) { 390 var candidate = value; 391 return candidate !== undefined && candidate !== null && (Is.number(candidate.value) || Is.string(candidate.value)) && Is.string(candidate.target); 392 } 393 DiagnosticCode.is = is; 394})(DiagnosticCode || (DiagnosticCode = {})); 395/** 396 * The Diagnostic namespace provides helper functions to work with 397 * [Diagnostic](#Diagnostic) literals. 398 */ 399var Diagnostic; 400(function (Diagnostic) { 401 /** 402 * Creates a new Diagnostic literal. 403 */ 404 function create(range, message, severity, code, source, relatedInformation) { 405 var result = { range: range, message: message }; 406 if (Is.defined(severity)) { 407 result.severity = severity; 408 } 409 if (Is.defined(code)) { 410 result.code = code; 411 } 412 if (Is.defined(source)) { 413 result.source = source; 414 } 415 if (Is.defined(relatedInformation)) { 416 result.relatedInformation = relatedInformation; 417 } 418 return result; 419 } 420 Diagnostic.create = create; 421 /** 422 * Checks whether the given literal conforms to the [Diagnostic](#Diagnostic) interface. 423 */ 424 function is(value) { 425 var candidate = value; 426 return Is.defined(candidate) 427 && Range.is(candidate.range) 428 && Is.string(candidate.message) 429 && (Is.number(candidate.severity) || Is.undefined(candidate.severity)) 430 && (Is.number(candidate.code) || Is.string(candidate.code) || Is.undefined(candidate.code)) 431 && (Is.string(candidate.source) || Is.undefined(candidate.source)) 432 && (Is.undefined(candidate.relatedInformation) || Is.typedArray(candidate.relatedInformation, DiagnosticRelatedInformation.is)); 433 } 434 Diagnostic.is = is; 435})(Diagnostic || (Diagnostic = {})); 436/** 437 * The Command namespace provides helper functions to work with 438 * [Command](#Command) literals. 439 */ 440var Command; 441(function (Command) { 442 /** 443 * Creates a new Command literal. 444 */ 445 function create(title, command) { 446 var args = []; 447 for (var _i = 2; _i < arguments.length; _i++) { 448 args[_i - 2] = arguments[_i]; 449 } 450 var result = { title: title, command: command }; 451 if (Is.defined(args) && args.length > 0) { 452 result.arguments = args; 453 } 454 return result; 455 } 456 Command.create = create; 457 /** 458 * Checks whether the given literal conforms to the [Command](#Command) interface. 459 */ 460 function is(value) { 461 var candidate = value; 462 return Is.defined(candidate) && Is.string(candidate.title) && Is.string(candidate.command); 463 } 464 Command.is = is; 465})(Command || (Command = {})); 466/** 467 * The TextEdit namespace provides helper function to create replace, 468 * insert and delete edits more easily. 469 */ 470var TextEdit; 471(function (TextEdit) { 472 /** 473 * Creates a replace text edit. 474 * @param range The range of text to be replaced. 475 * @param newText The new text. 476 */ 477 function replace(range, newText) { 478 return { range: range, newText: newText }; 479 } 480 TextEdit.replace = replace; 481 /** 482 * Creates a insert text edit. 483 * @param position The position to insert the text at. 484 * @param newText The text to be inserted. 485 */ 486 function insert(position, newText) { 487 return { range: { start: position, end: position }, newText: newText }; 488 } 489 TextEdit.insert = insert; 490 /** 491 * Creates a delete text edit. 492 * @param range The range of text to be deleted. 493 */ 494 function del(range) { 495 return { range: range, newText: '' }; 496 } 497 TextEdit.del = del; 498 function is(value) { 499 var candidate = value; 500 return Is.objectLiteral(candidate) 501 && Is.string(candidate.newText) 502 && Range.is(candidate.range); 503 } 504 TextEdit.is = is; 505})(TextEdit || (TextEdit = {})); 506/** 507 * The TextDocumentEdit namespace provides helper function to create 508 * an edit that manipulates a text document. 509 */ 510var TextDocumentEdit; 511(function (TextDocumentEdit) { 512 /** 513 * Creates a new `TextDocumentEdit` 514 */ 515 function create(textDocument, edits) { 516 return { textDocument: textDocument, edits: edits }; 517 } 518 TextDocumentEdit.create = create; 519 function is(value) { 520 var candidate = value; 521 return Is.defined(candidate) 522 && VersionedTextDocumentIdentifier.is(candidate.textDocument) 523 && Array.isArray(candidate.edits); 524 } 525 TextDocumentEdit.is = is; 526})(TextDocumentEdit || (TextDocumentEdit = {})); 527var CreateFile; 528(function (CreateFile) { 529 function create(uri, options) { 530 var result = { 531 kind: 'create', 532 uri: uri 533 }; 534 if (options !== void 0 && (options.overwrite !== void 0 || options.ignoreIfExists !== void 0)) { 535 result.options = options; 536 } 537 return result; 538 } 539 CreateFile.create = create; 540 function is(value) { 541 var candidate = value; 542 return candidate && candidate.kind === 'create' && Is.string(candidate.uri) && 543 (candidate.options === void 0 || 544 ((candidate.options.overwrite === void 0 || Is.boolean(candidate.options.overwrite)) && (candidate.options.ignoreIfExists === void 0 || Is.boolean(candidate.options.ignoreIfExists)))); 545 } 546 CreateFile.is = is; 547})(CreateFile || (CreateFile = {})); 548var RenameFile; 549(function (RenameFile) { 550 function create(oldUri, newUri, options) { 551 var result = { 552 kind: 'rename', 553 oldUri: oldUri, 554 newUri: newUri 555 }; 556 if (options !== void 0 && (options.overwrite !== void 0 || options.ignoreIfExists !== void 0)) { 557 result.options = options; 558 } 559 return result; 560 } 561 RenameFile.create = create; 562 function is(value) { 563 var candidate = value; 564 return candidate && candidate.kind === 'rename' && Is.string(candidate.oldUri) && Is.string(candidate.newUri) && 565 (candidate.options === void 0 || 566 ((candidate.options.overwrite === void 0 || Is.boolean(candidate.options.overwrite)) && (candidate.options.ignoreIfExists === void 0 || Is.boolean(candidate.options.ignoreIfExists)))); 567 } 568 RenameFile.is = is; 569})(RenameFile || (RenameFile = {})); 570var DeleteFile; 571(function (DeleteFile) { 572 function create(uri, options) { 573 var result = { 574 kind: 'delete', 575 uri: uri 576 }; 577 if (options !== void 0 && (options.recursive !== void 0 || options.ignoreIfNotExists !== void 0)) { 578 result.options = options; 579 } 580 return result; 581 } 582 DeleteFile.create = create; 583 function is(value) { 584 var candidate = value; 585 return candidate && candidate.kind === 'delete' && Is.string(candidate.uri) && 586 (candidate.options === void 0 || 587 ((candidate.options.recursive === void 0 || Is.boolean(candidate.options.recursive)) && (candidate.options.ignoreIfNotExists === void 0 || Is.boolean(candidate.options.ignoreIfNotExists)))); 588 } 589 DeleteFile.is = is; 590})(DeleteFile || (DeleteFile = {})); 591var WorkspaceEdit; 592(function (WorkspaceEdit) { 593 function is(value) { 594 var candidate = value; 595 return candidate && 596 (candidate.changes !== void 0 || candidate.documentChanges !== void 0) && 597 (candidate.documentChanges === void 0 || candidate.documentChanges.every(function (change) { 598 if (Is.string(change.kind)) { 599 return CreateFile.is(change) || RenameFile.is(change) || DeleteFile.is(change); 600 } 601 else { 602 return TextDocumentEdit.is(change); 603 } 604 })); 605 } 606 WorkspaceEdit.is = is; 607})(WorkspaceEdit || (WorkspaceEdit = {})); 608var TextEditChangeImpl = /** @class */ (function () { 609 function TextEditChangeImpl(edits) { 610 this.edits = edits; 611 } 612 TextEditChangeImpl.prototype.insert = function (position, newText) { 613 this.edits.push(TextEdit.insert(position, newText)); 614 }; 615 TextEditChangeImpl.prototype.replace = function (range, newText) { 616 this.edits.push(TextEdit.replace(range, newText)); 617 }; 618 TextEditChangeImpl.prototype.delete = function (range) { 619 this.edits.push(TextEdit.del(range)); 620 }; 621 TextEditChangeImpl.prototype.add = function (edit) { 622 this.edits.push(edit); 623 }; 624 TextEditChangeImpl.prototype.all = function () { 625 return this.edits; 626 }; 627 TextEditChangeImpl.prototype.clear = function () { 628 this.edits.splice(0, this.edits.length); 629 }; 630 return TextEditChangeImpl; 631}()); 632/** 633 * A workspace change helps constructing changes to a workspace. 634 */ 635var WorkspaceChange = /** @class */ (function () { 636 function WorkspaceChange(workspaceEdit) { 637 var _this = this; 638 this._textEditChanges = Object.create(null); 639 if (workspaceEdit) { 640 this._workspaceEdit = workspaceEdit; 641 if (workspaceEdit.documentChanges) { 642 workspaceEdit.documentChanges.forEach(function (change) { 643 if (TextDocumentEdit.is(change)) { 644 var textEditChange = new TextEditChangeImpl(change.edits); 645 _this._textEditChanges[change.textDocument.uri] = textEditChange; 646 } 647 }); 648 } 649 else if (workspaceEdit.changes) { 650 Object.keys(workspaceEdit.changes).forEach(function (key) { 651 var textEditChange = new TextEditChangeImpl(workspaceEdit.changes[key]); 652 _this._textEditChanges[key] = textEditChange; 653 }); 654 } 655 } 656 } 657 Object.defineProperty(WorkspaceChange.prototype, "edit", { 658 /** 659 * Returns the underlying [WorkspaceEdit](#WorkspaceEdit) literal 660 * use to be returned from a workspace edit operation like rename. 661 */ 662 get: function () { 663 if (this._workspaceEdit === undefined) { 664 return { documentChanges: [] }; 665 } 666 return this._workspaceEdit; 667 }, 668 enumerable: true, 669 configurable: true 670 }); 671 WorkspaceChange.prototype.getTextEditChange = function (key) { 672 if (VersionedTextDocumentIdentifier.is(key)) { 673 if (!this._workspaceEdit) { 674 this._workspaceEdit = { 675 documentChanges: [] 676 }; 677 } 678 if (!this._workspaceEdit.documentChanges) { 679 throw new Error('Workspace edit is not configured for document changes.'); 680 } 681 var textDocument = key; 682 var result = this._textEditChanges[textDocument.uri]; 683 if (!result) { 684 var edits = []; 685 var textDocumentEdit = { 686 textDocument: textDocument, 687 edits: edits 688 }; 689 this._workspaceEdit.documentChanges.push(textDocumentEdit); 690 result = new TextEditChangeImpl(edits); 691 this._textEditChanges[textDocument.uri] = result; 692 } 693 return result; 694 } 695 else { 696 if (!this._workspaceEdit) { 697 this._workspaceEdit = { 698 changes: Object.create(null) 699 }; 700 } 701 if (!this._workspaceEdit.changes) { 702 throw new Error('Workspace edit is not configured for normal text edit changes.'); 703 } 704 var result = this._textEditChanges[key]; 705 if (!result) { 706 var edits = []; 707 this._workspaceEdit.changes[key] = edits; 708 result = new TextEditChangeImpl(edits); 709 this._textEditChanges[key] = result; 710 } 711 return result; 712 } 713 }; 714 WorkspaceChange.prototype.createFile = function (uri, options) { 715 this.checkDocumentChanges(); 716 this._workspaceEdit.documentChanges.push(CreateFile.create(uri, options)); 717 }; 718 WorkspaceChange.prototype.renameFile = function (oldUri, newUri, options) { 719 this.checkDocumentChanges(); 720 this._workspaceEdit.documentChanges.push(RenameFile.create(oldUri, newUri, options)); 721 }; 722 WorkspaceChange.prototype.deleteFile = function (uri, options) { 723 this.checkDocumentChanges(); 724 this._workspaceEdit.documentChanges.push(DeleteFile.create(uri, options)); 725 }; 726 WorkspaceChange.prototype.checkDocumentChanges = function () { 727 if (!this._workspaceEdit || !this._workspaceEdit.documentChanges) { 728 throw new Error('Workspace edit is not configured for document changes.'); 729 } 730 }; 731 return WorkspaceChange; 732}()); 733 734/** 735 * The TextDocumentIdentifier namespace provides helper functions to work with 736 * [TextDocumentIdentifier](#TextDocumentIdentifier) literals. 737 */ 738var TextDocumentIdentifier; 739(function (TextDocumentIdentifier) { 740 /** 741 * Creates a new TextDocumentIdentifier literal. 742 * @param uri The document's uri. 743 */ 744 function create(uri) { 745 return { uri: uri }; 746 } 747 TextDocumentIdentifier.create = create; 748 /** 749 * Checks whether the given literal conforms to the [TextDocumentIdentifier](#TextDocumentIdentifier) interface. 750 */ 751 function is(value) { 752 var candidate = value; 753 return Is.defined(candidate) && Is.string(candidate.uri); 754 } 755 TextDocumentIdentifier.is = is; 756})(TextDocumentIdentifier || (TextDocumentIdentifier = {})); 757/** 758 * The VersionedTextDocumentIdentifier namespace provides helper functions to work with 759 * [VersionedTextDocumentIdentifier](#VersionedTextDocumentIdentifier) literals. 760 */ 761var VersionedTextDocumentIdentifier; 762(function (VersionedTextDocumentIdentifier) { 763 /** 764 * Creates a new VersionedTextDocumentIdentifier literal. 765 * @param uri The document's uri. 766 * @param uri The document's text. 767 */ 768 function create(uri, version) { 769 return { uri: uri, version: version }; 770 } 771 VersionedTextDocumentIdentifier.create = create; 772 /** 773 * Checks whether the given literal conforms to the [VersionedTextDocumentIdentifier](#VersionedTextDocumentIdentifier) interface. 774 */ 775 function is(value) { 776 var candidate = value; 777 return Is.defined(candidate) && Is.string(candidate.uri) && (candidate.version === null || Is.number(candidate.version)); 778 } 779 VersionedTextDocumentIdentifier.is = is; 780})(VersionedTextDocumentIdentifier || (VersionedTextDocumentIdentifier = {})); 781/** 782 * The TextDocumentItem namespace provides helper functions to work with 783 * [TextDocumentItem](#TextDocumentItem) literals. 784 */ 785var TextDocumentItem; 786(function (TextDocumentItem) { 787 /** 788 * Creates a new TextDocumentItem literal. 789 * @param uri The document's uri. 790 * @param languageId The document's language identifier. 791 * @param version The document's version number. 792 * @param text The document's text. 793 */ 794 function create(uri, languageId, version, text) { 795 return { uri: uri, languageId: languageId, version: version, text: text }; 796 } 797 TextDocumentItem.create = create; 798 /** 799 * Checks whether the given literal conforms to the [TextDocumentItem](#TextDocumentItem) interface. 800 */ 801 function is(value) { 802 var candidate = value; 803 return Is.defined(candidate) && Is.string(candidate.uri) && Is.string(candidate.languageId) && Is.number(candidate.version) && Is.string(candidate.text); 804 } 805 TextDocumentItem.is = is; 806})(TextDocumentItem || (TextDocumentItem = {})); 807/** 808 * Describes the content type that a client supports in various 809 * result literals like `Hover`, `ParameterInfo` or `CompletionItem`. 810 * 811 * Please note that `MarkupKinds` must not start with a `$`. This kinds 812 * are reserved for internal usage. 813 */ 814var MarkupKind; 815(function (MarkupKind) { 816 /** 817 * Plain text is supported as a content format 818 */ 819 MarkupKind.PlainText = 'plaintext'; 820 /** 821 * Markdown is supported as a content format 822 */ 823 MarkupKind.Markdown = 'markdown'; 824})(MarkupKind || (MarkupKind = {})); 825(function (MarkupKind) { 826 /** 827 * Checks whether the given value is a value of the [MarkupKind](#MarkupKind) type. 828 */ 829 function is(value) { 830 var candidate = value; 831 return candidate === MarkupKind.PlainText || candidate === MarkupKind.Markdown; 832 } 833 MarkupKind.is = is; 834})(MarkupKind || (MarkupKind = {})); 835var MarkupContent; 836(function (MarkupContent) { 837 /** 838 * Checks whether the given value conforms to the [MarkupContent](#MarkupContent) interface. 839 */ 840 function is(value) { 841 var candidate = value; 842 return Is.objectLiteral(value) && MarkupKind.is(candidate.kind) && Is.string(candidate.value); 843 } 844 MarkupContent.is = is; 845})(MarkupContent || (MarkupContent = {})); 846/** 847 * The kind of a completion entry. 848 */ 849var CompletionItemKind; 850(function (CompletionItemKind) { 851 CompletionItemKind.Text = 1; 852 CompletionItemKind.Method = 2; 853 CompletionItemKind.Function = 3; 854 CompletionItemKind.Constructor = 4; 855 CompletionItemKind.Field = 5; 856 CompletionItemKind.Variable = 6; 857 CompletionItemKind.Class = 7; 858 CompletionItemKind.Interface = 8; 859 CompletionItemKind.Module = 9; 860 CompletionItemKind.Property = 10; 861 CompletionItemKind.Unit = 11; 862 CompletionItemKind.Value = 12; 863 CompletionItemKind.Enum = 13; 864 CompletionItemKind.Keyword = 14; 865 CompletionItemKind.Snippet = 15; 866 CompletionItemKind.Color = 16; 867 CompletionItemKind.File = 17; 868 CompletionItemKind.Reference = 18; 869 CompletionItemKind.Folder = 19; 870 CompletionItemKind.EnumMember = 20; 871 CompletionItemKind.Constant = 21; 872 CompletionItemKind.Struct = 22; 873 CompletionItemKind.Event = 23; 874 CompletionItemKind.Operator = 24; 875 CompletionItemKind.TypeParameter = 25; 876})(CompletionItemKind || (CompletionItemKind = {})); 877/** 878 * Defines whether the insert text in a completion item should be interpreted as 879 * plain text or a snippet. 880 */ 881var InsertTextFormat; 882(function (InsertTextFormat) { 883 /** 884 * The primary text to be inserted is treated as a plain string. 885 */ 886 InsertTextFormat.PlainText = 1; 887 /** 888 * The primary text to be inserted is treated as a snippet. 889 * 890 * A snippet can define tab stops and placeholders with `$1`, `$2` 891 * and `${3:foo}`. `$0` defines the final tab stop, it defaults to 892 * the end of the snippet. Placeholders with equal identifiers are linked, 893 * that is typing in one will update others too. 894 * 895 * See also: https://microsoft.github.io/language-server-protocol/specifications/specification-current/#snippet_syntax 896 */ 897 InsertTextFormat.Snippet = 2; 898})(InsertTextFormat || (InsertTextFormat = {})); 899/** 900 * Completion item tags are extra annotations that tweak the rendering of a completion 901 * item. 902 * 903 * @since 3.15.0 904 */ 905var CompletionItemTag; 906(function (CompletionItemTag) { 907 /** 908 * Render a completion as obsolete, usually using a strike-out. 909 */ 910 CompletionItemTag.Deprecated = 1; 911})(CompletionItemTag || (CompletionItemTag = {})); 912/** 913 * The InsertReplaceEdit namespace provides functions to deal with insert / replace edits. 914 * 915 * @since 3.16.0 - Proposed state 916 */ 917var InsertReplaceEdit; 918(function (InsertReplaceEdit) { 919 /** 920 * Creates a new insert / replace edit 921 */ 922 function create(newText, insert, replace) { 923 return { newText: newText, insert: insert, replace: replace }; 924 } 925 InsertReplaceEdit.create = create; 926 /** 927 * Checks whether the given liternal conforms to the [InsertReplaceEdit](#InsertReplaceEdit) interface. 928 */ 929 function is(value) { 930 var candidate = value; 931 return candidate && Is.string(candidate.newText) && Range.is(candidate.insert) && Range.is(candidate.replace); 932 } 933 InsertReplaceEdit.is = is; 934})(InsertReplaceEdit || (InsertReplaceEdit = {})); 935/** 936 * The CompletionItem namespace provides functions to deal with 937 * completion items. 938 */ 939var CompletionItem; 940(function (CompletionItem) { 941 /** 942 * Create a completion item and seed it with a label. 943 * @param label The completion item's label 944 */ 945 function create(label) { 946 return { label: label }; 947 } 948 CompletionItem.create = create; 949})(CompletionItem || (CompletionItem = {})); 950/** 951 * The CompletionList namespace provides functions to deal with 952 * completion lists. 953 */ 954var CompletionList; 955(function (CompletionList) { 956 /** 957 * Creates a new completion list. 958 * 959 * @param items The completion items. 960 * @param isIncomplete The list is not complete. 961 */ 962 function create(items, isIncomplete) { 963 return { items: items ? items : [], isIncomplete: !!isIncomplete }; 964 } 965 CompletionList.create = create; 966})(CompletionList || (CompletionList = {})); 967var MarkedString; 968(function (MarkedString) { 969 /** 970 * Creates a marked string from plain text. 971 * 972 * @param plainText The plain text. 973 */ 974 function fromPlainText(plainText) { 975 return plainText.replace(/[\\`*_{}[\]()#+\-.!]/g, '\\$&'); // escape markdown syntax tokens: http://daringfireball.net/projects/markdown/syntax#backslash 976 } 977 MarkedString.fromPlainText = fromPlainText; 978 /** 979 * Checks whether the given value conforms to the [MarkedString](#MarkedString) type. 980 */ 981 function is(value) { 982 var candidate = value; 983 return Is.string(candidate) || (Is.objectLiteral(candidate) && Is.string(candidate.language) && Is.string(candidate.value)); 984 } 985 MarkedString.is = is; 986})(MarkedString || (MarkedString = {})); 987var Hover; 988(function (Hover) { 989 /** 990 * Checks whether the given value conforms to the [Hover](#Hover) interface. 991 */ 992 function is(value) { 993 var candidate = value; 994 return !!candidate && Is.objectLiteral(candidate) && (MarkupContent.is(candidate.contents) || 995 MarkedString.is(candidate.contents) || 996 Is.typedArray(candidate.contents, MarkedString.is)) && (value.range === void 0 || Range.is(value.range)); 997 } 998 Hover.is = is; 999})(Hover || (Hover = {})); 1000/** 1001 * The ParameterInformation namespace provides helper functions to work with 1002 * [ParameterInformation](#ParameterInformation) literals. 1003 */ 1004var ParameterInformation; 1005(function (ParameterInformation) { 1006 /** 1007 * Creates a new parameter information literal. 1008 * 1009 * @param label A label string. 1010 * @param documentation A doc string. 1011 */ 1012 function create(label, documentation) { 1013 return documentation ? { label: label, documentation: documentation } : { label: label }; 1014 } 1015 ParameterInformation.create = create; 1016})(ParameterInformation || (ParameterInformation = {})); 1017/** 1018 * The SignatureInformation namespace provides helper functions to work with 1019 * [SignatureInformation](#SignatureInformation) literals. 1020 */ 1021var SignatureInformation; 1022(function (SignatureInformation) { 1023 function create(label, documentation) { 1024 var parameters = []; 1025 for (var _i = 2; _i < arguments.length; _i++) { 1026 parameters[_i - 2] = arguments[_i]; 1027 } 1028 var result = { label: label }; 1029 if (Is.defined(documentation)) { 1030 result.documentation = documentation; 1031 } 1032 if (Is.defined(parameters)) { 1033 result.parameters = parameters; 1034 } 1035 else { 1036 result.parameters = []; 1037 } 1038 return result; 1039 } 1040 SignatureInformation.create = create; 1041})(SignatureInformation || (SignatureInformation = {})); 1042/** 1043 * A document highlight kind. 1044 */ 1045var DocumentHighlightKind; 1046(function (DocumentHighlightKind) { 1047 /** 1048 * A textual occurrence. 1049 */ 1050 DocumentHighlightKind.Text = 1; 1051 /** 1052 * Read-access of a symbol, like reading a variable. 1053 */ 1054 DocumentHighlightKind.Read = 2; 1055 /** 1056 * Write-access of a symbol, like writing to a variable. 1057 */ 1058 DocumentHighlightKind.Write = 3; 1059})(DocumentHighlightKind || (DocumentHighlightKind = {})); 1060/** 1061 * DocumentHighlight namespace to provide helper functions to work with 1062 * [DocumentHighlight](#DocumentHighlight) literals. 1063 */ 1064var DocumentHighlight; 1065(function (DocumentHighlight) { 1066 /** 1067 * Create a DocumentHighlight object. 1068 * @param range The range the highlight applies to. 1069 */ 1070 function create(range, kind) { 1071 var result = { range: range }; 1072 if (Is.number(kind)) { 1073 result.kind = kind; 1074 } 1075 return result; 1076 } 1077 DocumentHighlight.create = create; 1078})(DocumentHighlight || (DocumentHighlight = {})); 1079/** 1080 * A symbol kind. 1081 */ 1082var SymbolKind; 1083(function (SymbolKind) { 1084 SymbolKind.File = 1; 1085 SymbolKind.Module = 2; 1086 SymbolKind.Namespace = 3; 1087 SymbolKind.Package = 4; 1088 SymbolKind.Class = 5; 1089 SymbolKind.Method = 6; 1090 SymbolKind.Property = 7; 1091 SymbolKind.Field = 8; 1092 SymbolKind.Constructor = 9; 1093 SymbolKind.Enum = 10; 1094 SymbolKind.Interface = 11; 1095 SymbolKind.Function = 12; 1096 SymbolKind.Variable = 13; 1097 SymbolKind.Constant = 14; 1098 SymbolKind.String = 15; 1099 SymbolKind.Number = 16; 1100 SymbolKind.Boolean = 17; 1101 SymbolKind.Array = 18; 1102 SymbolKind.Object = 19; 1103 SymbolKind.Key = 20; 1104 SymbolKind.Null = 21; 1105 SymbolKind.EnumMember = 22; 1106 SymbolKind.Struct = 23; 1107 SymbolKind.Event = 24; 1108 SymbolKind.Operator = 25; 1109 SymbolKind.TypeParameter = 26; 1110})(SymbolKind || (SymbolKind = {})); 1111/** 1112 * Symbol tags are extra annotations that tweak the rendering of a symbol. 1113 * @since 3.15 1114 */ 1115var SymbolTag; 1116(function (SymbolTag) { 1117 /** 1118 * Render a symbol as obsolete, usually using a strike-out. 1119 */ 1120 SymbolTag.Deprecated = 1; 1121})(SymbolTag || (SymbolTag = {})); 1122var SymbolInformation; 1123(function (SymbolInformation) { 1124 /** 1125 * Creates a new symbol information literal. 1126 * 1127 * @param name The name of the symbol. 1128 * @param kind The kind of the symbol. 1129 * @param range The range of the location of the symbol. 1130 * @param uri The resource of the location of symbol, defaults to the current document. 1131 * @param containerName The name of the symbol containing the symbol. 1132 */ 1133 function create(name, kind, range, uri, containerName) { 1134 var result = { 1135 name: name, 1136 kind: kind, 1137 location: { uri: uri, range: range } 1138 }; 1139 if (containerName) { 1140 result.containerName = containerName; 1141 } 1142 return result; 1143 } 1144 SymbolInformation.create = create; 1145})(SymbolInformation || (SymbolInformation = {})); 1146var DocumentSymbol; 1147(function (DocumentSymbol) { 1148 /** 1149 * Creates a new symbol information literal. 1150 * 1151 * @param name The name of the symbol. 1152 * @param detail The detail of the symbol. 1153 * @param kind The kind of the symbol. 1154 * @param range The range of the symbol. 1155 * @param selectionRange The selectionRange of the symbol. 1156 * @param children Children of the symbol. 1157 */ 1158 function create(name, detail, kind, range, selectionRange, children) { 1159 var result = { 1160 name: name, 1161 detail: detail, 1162 kind: kind, 1163 range: range, 1164 selectionRange: selectionRange 1165 }; 1166 if (children !== void 0) { 1167 result.children = children; 1168 } 1169 return result; 1170 } 1171 DocumentSymbol.create = create; 1172 /** 1173 * Checks whether the given literal conforms to the [DocumentSymbol](#DocumentSymbol) interface. 1174 */ 1175 function is(value) { 1176 var candidate = value; 1177 return candidate && 1178 Is.string(candidate.name) && Is.number(candidate.kind) && 1179 Range.is(candidate.range) && Range.is(candidate.selectionRange) && 1180 (candidate.detail === void 0 || Is.string(candidate.detail)) && 1181 (candidate.deprecated === void 0 || Is.boolean(candidate.deprecated)) && 1182 (candidate.children === void 0 || Array.isArray(candidate.children)) && 1183 (candidate.tags === void 0 || Array.isArray(candidate.tags)); 1184 } 1185 DocumentSymbol.is = is; 1186})(DocumentSymbol || (DocumentSymbol = {})); 1187/** 1188 * A set of predefined code action kinds 1189 */ 1190var CodeActionKind; 1191(function (CodeActionKind) { 1192 /** 1193 * Empty kind. 1194 */ 1195 CodeActionKind.Empty = ''; 1196 /** 1197 * Base kind for quickfix actions: 'quickfix' 1198 */ 1199 CodeActionKind.QuickFix = 'quickfix'; 1200 /** 1201 * Base kind for refactoring actions: 'refactor' 1202 */ 1203 CodeActionKind.Refactor = 'refactor'; 1204 /** 1205 * Base kind for refactoring extraction actions: 'refactor.extract' 1206 * 1207 * Example extract actions: 1208 * 1209 * - Extract method 1210 * - Extract function 1211 * - Extract variable 1212 * - Extract interface from class 1213 * - ... 1214 */ 1215 CodeActionKind.RefactorExtract = 'refactor.extract'; 1216 /** 1217 * Base kind for refactoring inline actions: 'refactor.inline' 1218 * 1219 * Example inline actions: 1220 * 1221 * - Inline function 1222 * - Inline variable 1223 * - Inline constant 1224 * - ... 1225 */ 1226 CodeActionKind.RefactorInline = 'refactor.inline'; 1227 /** 1228 * Base kind for refactoring rewrite actions: 'refactor.rewrite' 1229 * 1230 * Example rewrite actions: 1231 * 1232 * - Convert JavaScript function to class 1233 * - Add or remove parameter 1234 * - Encapsulate field 1235 * - Make method static 1236 * - Move method to base class 1237 * - ... 1238 */ 1239 CodeActionKind.RefactorRewrite = 'refactor.rewrite'; 1240 /** 1241 * Base kind for source actions: `source` 1242 * 1243 * Source code actions apply to the entire file. 1244 */ 1245 CodeActionKind.Source = 'source'; 1246 /** 1247 * Base kind for an organize imports source action: `source.organizeImports` 1248 */ 1249 CodeActionKind.SourceOrganizeImports = 'source.organizeImports'; 1250 /** 1251 * Base kind for auto-fix source actions: `source.fixAll`. 1252 * 1253 * Fix all actions automatically fix errors that have a clear fix that do not require user input. 1254 * They should not suppress errors or perform unsafe fixes such as generating new types or classes. 1255 * 1256 * @since 3.15.0 1257 */ 1258 CodeActionKind.SourceFixAll = 'source.fixAll'; 1259})(CodeActionKind || (CodeActionKind = {})); 1260/** 1261 * The CodeActionContext namespace provides helper functions to work with 1262 * [CodeActionContext](#CodeActionContext) literals. 1263 */ 1264var CodeActionContext; 1265(function (CodeActionContext) { 1266 /** 1267 * Creates a new CodeActionContext literal. 1268 */ 1269 function create(diagnostics, only) { 1270 var result = { diagnostics: diagnostics }; 1271 if (only !== void 0 && only !== null) { 1272 result.only = only; 1273 } 1274 return result; 1275 } 1276 CodeActionContext.create = create; 1277 /** 1278 * Checks whether the given literal conforms to the [CodeActionContext](#CodeActionContext) interface. 1279 */ 1280 function is(value) { 1281 var candidate = value; 1282 return Is.defined(candidate) && Is.typedArray(candidate.diagnostics, Diagnostic.is) && (candidate.only === void 0 || Is.typedArray(candidate.only, Is.string)); 1283 } 1284 CodeActionContext.is = is; 1285})(CodeActionContext || (CodeActionContext = {})); 1286var CodeAction; 1287(function (CodeAction) { 1288 function create(title, commandOrEdit, kind) { 1289 var result = { title: title }; 1290 if (Command.is(commandOrEdit)) { 1291 result.command = commandOrEdit; 1292 } 1293 else { 1294 result.edit = commandOrEdit; 1295 } 1296 if (kind !== void 0) { 1297 result.kind = kind; 1298 } 1299 return result; 1300 } 1301 CodeAction.create = create; 1302 function is(value) { 1303 var candidate = value; 1304 return candidate && Is.string(candidate.title) && 1305 (candidate.diagnostics === void 0 || Is.typedArray(candidate.diagnostics, Diagnostic.is)) && 1306 (candidate.kind === void 0 || Is.string(candidate.kind)) && 1307 (candidate.edit !== void 0 || candidate.command !== void 0) && 1308 (candidate.command === void 0 || Command.is(candidate.command)) && 1309 (candidate.isPreferred === void 0 || Is.boolean(candidate.isPreferred)) && 1310 (candidate.edit === void 0 || WorkspaceEdit.is(candidate.edit)); 1311 } 1312 CodeAction.is = is; 1313})(CodeAction || (CodeAction = {})); 1314/** 1315 * The CodeLens namespace provides helper functions to work with 1316 * [CodeLens](#CodeLens) literals. 1317 */ 1318var CodeLens; 1319(function (CodeLens) { 1320 /** 1321 * Creates a new CodeLens literal. 1322 */ 1323 function create(range, data) { 1324 var result = { range: range }; 1325 if (Is.defined(data)) { 1326 result.data = data; 1327 } 1328 return result; 1329 } 1330 CodeLens.create = create; 1331 /** 1332 * Checks whether the given literal conforms to the [CodeLens](#CodeLens) interface. 1333 */ 1334 function is(value) { 1335 var candidate = value; 1336 return Is.defined(candidate) && Range.is(candidate.range) && (Is.undefined(candidate.command) || Command.is(candidate.command)); 1337 } 1338 CodeLens.is = is; 1339})(CodeLens || (CodeLens = {})); 1340/** 1341 * The FormattingOptions namespace provides helper functions to work with 1342 * [FormattingOptions](#FormattingOptions) literals. 1343 */ 1344var FormattingOptions; 1345(function (FormattingOptions) { 1346 /** 1347 * Creates a new FormattingOptions literal. 1348 */ 1349 function create(tabSize, insertSpaces) { 1350 return { tabSize: tabSize, insertSpaces: insertSpaces }; 1351 } 1352 FormattingOptions.create = create; 1353 /** 1354 * Checks whether the given literal conforms to the [FormattingOptions](#FormattingOptions) interface. 1355 */ 1356 function is(value) { 1357 var candidate = value; 1358 return Is.defined(candidate) && Is.number(candidate.tabSize) && Is.boolean(candidate.insertSpaces); 1359 } 1360 FormattingOptions.is = is; 1361})(FormattingOptions || (FormattingOptions = {})); 1362/** 1363 * The DocumentLink namespace provides helper functions to work with 1364 * [DocumentLink](#DocumentLink) literals. 1365 */ 1366var DocumentLink; 1367(function (DocumentLink) { 1368 /** 1369 * Creates a new DocumentLink literal. 1370 */ 1371 function create(range, target, data) { 1372 return { range: range, target: target, data: data }; 1373 } 1374 DocumentLink.create = create; 1375 /** 1376 * Checks whether the given literal conforms to the [DocumentLink](#DocumentLink) interface. 1377 */ 1378 function is(value) { 1379 var candidate = value; 1380 return Is.defined(candidate) && Range.is(candidate.range) && (Is.undefined(candidate.target) || Is.string(candidate.target)); 1381 } 1382 DocumentLink.is = is; 1383})(DocumentLink || (DocumentLink = {})); 1384/** 1385 * The SelectionRange namespace provides helper function to work with 1386 * SelectionRange literals. 1387 */ 1388var SelectionRange; 1389(function (SelectionRange) { 1390 /** 1391 * Creates a new SelectionRange 1392 * @param range the range. 1393 * @param parent an optional parent. 1394 */ 1395 function create(range, parent) { 1396 return { range: range, parent: parent }; 1397 } 1398 SelectionRange.create = create; 1399 function is(value) { 1400 var candidate = value; 1401 return candidate !== undefined && Range.is(candidate.range) && (candidate.parent === undefined || SelectionRange.is(candidate.parent)); 1402 } 1403 SelectionRange.is = is; 1404})(SelectionRange || (SelectionRange = {})); 1405var EOL = ['\n', '\r\n', '\r']; 1406/** 1407 * @deprecated Use the text document from the new vscode-languageserver-textdocument package. 1408 */ 1409var TextDocument; 1410(function (TextDocument) { 1411 /** 1412 * Creates a new ITextDocument literal from the given uri and content. 1413 * @param uri The document's uri. 1414 * @param languageId The document's language Id. 1415 * @param content The document's content. 1416 */ 1417 function create(uri, languageId, version, content) { 1418 return new FullTextDocument(uri, languageId, version, content); 1419 } 1420 TextDocument.create = create; 1421 /** 1422 * Checks whether the given literal conforms to the [ITextDocument](#ITextDocument) interface. 1423 */ 1424 function is(value) { 1425 var candidate = value; 1426 return Is.defined(candidate) && Is.string(candidate.uri) && (Is.undefined(candidate.languageId) || Is.string(candidate.languageId)) && Is.number(candidate.lineCount) 1427 && Is.func(candidate.getText) && Is.func(candidate.positionAt) && Is.func(candidate.offsetAt) ? true : false; 1428 } 1429 TextDocument.is = is; 1430 function applyEdits(document, edits) { 1431 var text = document.getText(); 1432 var sortedEdits = mergeSort(edits, function (a, b) { 1433 var diff = a.range.start.line - b.range.start.line; 1434 if (diff === 0) { 1435 return a.range.start.character - b.range.start.character; 1436 } 1437 return diff; 1438 }); 1439 var lastModifiedOffset = text.length; 1440 for (var i = sortedEdits.length - 1; i >= 0; i--) { 1441 var e = sortedEdits[i]; 1442 var startOffset = document.offsetAt(e.range.start); 1443 var endOffset = document.offsetAt(e.range.end); 1444 if (endOffset <= lastModifiedOffset) { 1445 text = text.substring(0, startOffset) + e.newText + text.substring(endOffset, text.length); 1446 } 1447 else { 1448 throw new Error('Overlapping edit'); 1449 } 1450 lastModifiedOffset = startOffset; 1451 } 1452 return text; 1453 } 1454 TextDocument.applyEdits = applyEdits; 1455 function mergeSort(data, compare) { 1456 if (data.length <= 1) { 1457 // sorted 1458 return data; 1459 } 1460 var p = (data.length / 2) | 0; 1461 var left = data.slice(0, p); 1462 var right = data.slice(p); 1463 mergeSort(left, compare); 1464 mergeSort(right, compare); 1465 var leftIdx = 0; 1466 var rightIdx = 0; 1467 var i = 0; 1468 while (leftIdx < left.length && rightIdx < right.length) { 1469 var ret = compare(left[leftIdx], right[rightIdx]); 1470 if (ret <= 0) { 1471 // smaller_equal -> take left to preserve order 1472 data[i++] = left[leftIdx++]; 1473 } 1474 else { 1475 // greater -> take right 1476 data[i++] = right[rightIdx++]; 1477 } 1478 } 1479 while (leftIdx < left.length) { 1480 data[i++] = left[leftIdx++]; 1481 } 1482 while (rightIdx < right.length) { 1483 data[i++] = right[rightIdx++]; 1484 } 1485 return data; 1486 } 1487})(TextDocument || (TextDocument = {})); 1488var FullTextDocument = /** @class */ (function () { 1489 function FullTextDocument(uri, languageId, version, content) { 1490 this._uri = uri; 1491 this._languageId = languageId; 1492 this._version = version; 1493 this._content = content; 1494 this._lineOffsets = undefined; 1495 } 1496 Object.defineProperty(FullTextDocument.prototype, "uri", { 1497 get: function () { 1498 return this._uri; 1499 }, 1500 enumerable: true, 1501 configurable: true 1502 }); 1503 Object.defineProperty(FullTextDocument.prototype, "languageId", { 1504 get: function () { 1505 return this._languageId; 1506 }, 1507 enumerable: true, 1508 configurable: true 1509 }); 1510 Object.defineProperty(FullTextDocument.prototype, "version", { 1511 get: function () { 1512 return this._version; 1513 }, 1514 enumerable: true, 1515 configurable: true 1516 }); 1517 FullTextDocument.prototype.getText = function (range) { 1518 if (range) { 1519 var start = this.offsetAt(range.start); 1520 var end = this.offsetAt(range.end); 1521 return this._content.substring(start, end); 1522 } 1523 return this._content; 1524 }; 1525 FullTextDocument.prototype.update = function (event, version) { 1526 this._content = event.text; 1527 this._version = version; 1528 this._lineOffsets = undefined; 1529 }; 1530 FullTextDocument.prototype.getLineOffsets = function () { 1531 if (this._lineOffsets === undefined) { 1532 var lineOffsets = []; 1533 var text = this._content; 1534 var isLineStart = true; 1535 for (var i = 0; i < text.length; i++) { 1536 if (isLineStart) { 1537 lineOffsets.push(i); 1538 isLineStart = false; 1539 } 1540 var ch = text.charAt(i); 1541 isLineStart = (ch === '\r' || ch === '\n'); 1542 if (ch === '\r' && i + 1 < text.length && text.charAt(i + 1) === '\n') { 1543 i++; 1544 } 1545 } 1546 if (isLineStart && text.length > 0) { 1547 lineOffsets.push(text.length); 1548 } 1549 this._lineOffsets = lineOffsets; 1550 } 1551 return this._lineOffsets; 1552 }; 1553 FullTextDocument.prototype.positionAt = function (offset) { 1554 offset = Math.max(Math.min(offset, this._content.length), 0); 1555 var lineOffsets = this.getLineOffsets(); 1556 var low = 0, high = lineOffsets.length; 1557 if (high === 0) { 1558 return Position.create(0, offset); 1559 } 1560 while (low < high) { 1561 var mid = Math.floor((low + high) / 2); 1562 if (lineOffsets[mid] > offset) { 1563 high = mid; 1564 } 1565 else { 1566 low = mid + 1; 1567 } 1568 } 1569 // low is the least x for which the line offset is larger than the current offset 1570 // or array.length if no line offset is larger than the current offset 1571 var line = low - 1; 1572 return Position.create(line, offset - lineOffsets[line]); 1573 }; 1574 FullTextDocument.prototype.offsetAt = function (position) { 1575 var lineOffsets = this.getLineOffsets(); 1576 if (position.line >= lineOffsets.length) { 1577 return this._content.length; 1578 } 1579 else if (position.line < 0) { 1580 return 0; 1581 } 1582 var lineOffset = lineOffsets[position.line]; 1583 var nextLineOffset = (position.line + 1 < lineOffsets.length) ? lineOffsets[position.line + 1] : this._content.length; 1584 return Math.max(Math.min(lineOffset + position.character, nextLineOffset), lineOffset); 1585 }; 1586 Object.defineProperty(FullTextDocument.prototype, "lineCount", { 1587 get: function () { 1588 return this.getLineOffsets().length; 1589 }, 1590 enumerable: true, 1591 configurable: true 1592 }); 1593 return FullTextDocument; 1594}()); 1595var Is; 1596(function (Is) { 1597 var toString = Object.prototype.toString; 1598 function defined(value) { 1599 return typeof value !== 'undefined'; 1600 } 1601 Is.defined = defined; 1602 function undefined(value) { 1603 return typeof value === 'undefined'; 1604 } 1605 Is.undefined = undefined; 1606 function boolean(value) { 1607 return value === true || value === false; 1608 } 1609 Is.boolean = boolean; 1610 function string(value) { 1611 return toString.call(value) === '[object String]'; 1612 } 1613 Is.string = string; 1614 function number(value) { 1615 return toString.call(value) === '[object Number]'; 1616 } 1617 Is.number = number; 1618 function func(value) { 1619 return toString.call(value) === '[object Function]'; 1620 } 1621 Is.func = func; 1622 function objectLiteral(value) { 1623 // Strictly speaking class instances pass this check as well. Since the LSP 1624 // doesn't use classes we ignore this for now. If we do we need to add something 1625 // like this: `Object.getPrototypeOf(Object.getPrototypeOf(x)) === null` 1626 return value !== null && typeof value === 'object'; 1627 } 1628 Is.objectLiteral = objectLiteral; 1629 function typedArray(value, check) { 1630 return Array.isArray(value) && value.every(check); 1631 } 1632 Is.typedArray = typedArray; 1633})(Is || (Is = {})); 1634 1635 1636/***/ }), 1637 1638/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/cssLanguageService.js": 1639/*!***************************************************************************************************************!*\ 1640 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/cssLanguageService.js ***! 1641 \***************************************************************************************************************/ 1642/*! exports provided: getDefaultCSSDataProvider, newCSSDataProvider, getCSSLanguageService, getSCSSLanguageService, getLESSLanguageService, TextDocument, ClientCapabilities, FileType, Position, Range, Location, LocationLink, Color, ColorInformation, ColorPresentation, FoldingRangeKind, FoldingRange, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, DiagnosticCode, Diagnostic, Command, TextEdit, TextDocumentEdit, CreateFile, RenameFile, DeleteFile, WorkspaceEdit, WorkspaceChange, TextDocumentIdentifier, VersionedTextDocumentIdentifier, TextDocumentItem, MarkupKind, MarkupContent, CompletionItemKind, InsertTextFormat, CompletionItemTag, InsertReplaceEdit, CompletionItem, CompletionList, MarkedString, Hover, ParameterInformation, SignatureInformation, DocumentHighlightKind, DocumentHighlight, SymbolKind, SymbolTag, SymbolInformation, DocumentSymbol, CodeActionKind, CodeActionContext, CodeAction, CodeLens, FormattingOptions, DocumentLink, SelectionRange, EOL */ 1643/***/ (function(module, __webpack_exports__, __webpack_require__) { 1644 1645"use strict"; 1646__webpack_require__.r(__webpack_exports__); 1647/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDefaultCSSDataProvider", function() { return getDefaultCSSDataProvider; }); 1648/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "newCSSDataProvider", function() { return newCSSDataProvider; }); 1649/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCSSLanguageService", function() { return getCSSLanguageService; }); 1650/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSCSSLanguageService", function() { return getSCSSLanguageService; }); 1651/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLESSLanguageService", function() { return getLESSLanguageService; }); 1652/* harmony import */ var _parser_cssParser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./parser/cssParser.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssParser.js"); 1653/* harmony import */ var _services_cssCompletion_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./services/cssCompletion.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/cssCompletion.js"); 1654/* harmony import */ var _services_cssHover_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./services/cssHover.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/cssHover.js"); 1655/* harmony import */ var _services_cssNavigation_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./services/cssNavigation.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/cssNavigation.js"); 1656/* harmony import */ var _services_cssCodeActions_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./services/cssCodeActions.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/cssCodeActions.js"); 1657/* harmony import */ var _services_cssValidation_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./services/cssValidation.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/cssValidation.js"); 1658/* harmony import */ var _parser_scssParser_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./parser/scssParser.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/scssParser.js"); 1659/* harmony import */ var _services_scssCompletion_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./services/scssCompletion.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/scssCompletion.js"); 1660/* harmony import */ var _parser_lessParser_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./parser/lessParser.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/lessParser.js"); 1661/* harmony import */ var _services_lessCompletion_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./services/lessCompletion.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion.js"); 1662/* harmony import */ var _services_cssFolding_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./services/cssFolding.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/cssFolding.js"); 1663/* harmony import */ var _languageFacts_dataManager_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./languageFacts/dataManager.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/languageFacts/dataManager.js"); 1664/* harmony import */ var _languageFacts_dataProvider_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./languageFacts/dataProvider.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/languageFacts/dataProvider.js"); 1665/* harmony import */ var _services_cssSelectionRange_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./services/cssSelectionRange.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/cssSelectionRange.js"); 1666/* harmony import */ var _services_scssNavigation_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./services/scssNavigation.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/scssNavigation.js"); 1667/* harmony import */ var _data_webCustomData_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./data/webCustomData.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/data/webCustomData.js"); 1668/* harmony import */ var _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./cssLanguageTypes.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/cssLanguageTypes.js"); 1669/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextDocument", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["TextDocument"]; }); 1670 1671/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ClientCapabilities", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["ClientCapabilities"]; }); 1672 1673/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FileType", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["FileType"]; }); 1674 1675/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Position", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["Position"]; }); 1676 1677/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Range", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["Range"]; }); 1678 1679/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Location", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["Location"]; }); 1680 1681/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LocationLink", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["LocationLink"]; }); 1682 1683/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Color", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["Color"]; }); 1684 1685/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ColorInformation", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["ColorInformation"]; }); 1686 1687/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ColorPresentation", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["ColorPresentation"]; }); 1688 1689/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FoldingRangeKind", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["FoldingRangeKind"]; }); 1690 1691/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FoldingRange", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["FoldingRange"]; }); 1692 1693/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DiagnosticRelatedInformation", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["DiagnosticRelatedInformation"]; }); 1694 1695/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DiagnosticSeverity", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["DiagnosticSeverity"]; }); 1696 1697/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DiagnosticTag", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["DiagnosticTag"]; }); 1698 1699/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DiagnosticCode", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["DiagnosticCode"]; }); 1700 1701/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Diagnostic", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["Diagnostic"]; }); 1702 1703/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Command", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["Command"]; }); 1704 1705/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextEdit", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["TextEdit"]; }); 1706 1707/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextDocumentEdit", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["TextDocumentEdit"]; }); 1708 1709/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateFile", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["CreateFile"]; }); 1710 1711/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RenameFile", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["RenameFile"]; }); 1712 1713/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteFile", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["DeleteFile"]; }); 1714 1715/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WorkspaceEdit", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["WorkspaceEdit"]; }); 1716 1717/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WorkspaceChange", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["WorkspaceChange"]; }); 1718 1719/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextDocumentIdentifier", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["TextDocumentIdentifier"]; }); 1720 1721/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VersionedTextDocumentIdentifier", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["VersionedTextDocumentIdentifier"]; }); 1722 1723/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextDocumentItem", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["TextDocumentItem"]; }); 1724 1725/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MarkupKind", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["MarkupKind"]; }); 1726 1727/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MarkupContent", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["MarkupContent"]; }); 1728 1729/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CompletionItemKind", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["CompletionItemKind"]; }); 1730 1731/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InsertTextFormat", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["InsertTextFormat"]; }); 1732 1733/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CompletionItemTag", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["CompletionItemTag"]; }); 1734 1735/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InsertReplaceEdit", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["InsertReplaceEdit"]; }); 1736 1737/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CompletionItem", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["CompletionItem"]; }); 1738 1739/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CompletionList", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["CompletionList"]; }); 1740 1741/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MarkedString", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["MarkedString"]; }); 1742 1743/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Hover", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["Hover"]; }); 1744 1745/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ParameterInformation", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["ParameterInformation"]; }); 1746 1747/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SignatureInformation", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["SignatureInformation"]; }); 1748 1749/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentHighlightKind", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["DocumentHighlightKind"]; }); 1750 1751/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentHighlight", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["DocumentHighlight"]; }); 1752 1753/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SymbolKind", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["SymbolKind"]; }); 1754 1755/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SymbolTag", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["SymbolTag"]; }); 1756 1757/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SymbolInformation", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["SymbolInformation"]; }); 1758 1759/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentSymbol", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["DocumentSymbol"]; }); 1760 1761/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CodeActionKind", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["CodeActionKind"]; }); 1762 1763/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CodeActionContext", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["CodeActionContext"]; }); 1764 1765/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CodeAction", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["CodeAction"]; }); 1766 1767/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CodeLens", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["CodeLens"]; }); 1768 1769/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormattingOptions", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["FormattingOptions"]; }); 1770 1771/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentLink", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["DocumentLink"]; }); 1772 1773/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectionRange", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["SelectionRange"]; }); 1774 1775/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EOL", function() { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_16__["EOL"]; }); 1776 1777/*--------------------------------------------------------------------------------------------- 1778 * Copyright (c) Microsoft Corporation. All rights reserved. 1779 * Licensed under the MIT License. See License.txt in the project root for license information. 1780 *--------------------------------------------------------------------------------------------*/ 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799function getDefaultCSSDataProvider() { 1800 return newCSSDataProvider(_data_webCustomData_js__WEBPACK_IMPORTED_MODULE_15__["cssData"]); 1801} 1802function newCSSDataProvider(data) { 1803 return new _languageFacts_dataProvider_js__WEBPACK_IMPORTED_MODULE_12__["CSSDataProvider"](data); 1804} 1805function createFacade(parser, completion, hover, navigation, codeActions, validation, cssDataManager) { 1806 return { 1807 configure: function (settings) { 1808 validation.configure(settings); 1809 completion.configure(settings); 1810 }, 1811 setDataProviders: cssDataManager.setDataProviders.bind(cssDataManager), 1812 doValidation: validation.doValidation.bind(validation), 1813 parseStylesheet: parser.parseStylesheet.bind(parser), 1814 doComplete: completion.doComplete.bind(completion), 1815 doComplete2: completion.doComplete2.bind(completion), 1816 setCompletionParticipants: completion.setCompletionParticipants.bind(completion), 1817 doHover: hover.doHover.bind(hover), 1818 findDefinition: navigation.findDefinition.bind(navigation), 1819 findReferences: navigation.findReferences.bind(navigation), 1820 findDocumentHighlights: navigation.findDocumentHighlights.bind(navigation), 1821 findDocumentLinks: navigation.findDocumentLinks.bind(navigation), 1822 findDocumentLinks2: navigation.findDocumentLinks2.bind(navigation), 1823 findDocumentSymbols: navigation.findDocumentSymbols.bind(navigation), 1824 doCodeActions: codeActions.doCodeActions.bind(codeActions), 1825 doCodeActions2: codeActions.doCodeActions2.bind(codeActions), 1826 findColorSymbols: function (d, s) { return navigation.findDocumentColors(d, s).map(function (s) { return s.range; }); }, 1827 findDocumentColors: navigation.findDocumentColors.bind(navigation), 1828 getColorPresentations: navigation.getColorPresentations.bind(navigation), 1829 doRename: navigation.doRename.bind(navigation), 1830 getFoldingRanges: _services_cssFolding_js__WEBPACK_IMPORTED_MODULE_10__["getFoldingRanges"], 1831 getSelectionRanges: _services_cssSelectionRange_js__WEBPACK_IMPORTED_MODULE_13__["getSelectionRanges"] 1832 }; 1833} 1834var defaultLanguageServiceOptions = {}; 1835function getCSSLanguageService(options) { 1836 if (options === void 0) { options = defaultLanguageServiceOptions; } 1837 var cssDataManager = new _languageFacts_dataManager_js__WEBPACK_IMPORTED_MODULE_11__["CSSDataManager"](options); 1838 return createFacade(new _parser_cssParser_js__WEBPACK_IMPORTED_MODULE_0__["Parser"](), new _services_cssCompletion_js__WEBPACK_IMPORTED_MODULE_1__["CSSCompletion"](null, options, cssDataManager), new _services_cssHover_js__WEBPACK_IMPORTED_MODULE_2__["CSSHover"](options && options.clientCapabilities, cssDataManager), new _services_cssNavigation_js__WEBPACK_IMPORTED_MODULE_3__["CSSNavigation"](options && options.fileSystemProvider), new _services_cssCodeActions_js__WEBPACK_IMPORTED_MODULE_4__["CSSCodeActions"](cssDataManager), new _services_cssValidation_js__WEBPACK_IMPORTED_MODULE_5__["CSSValidation"](cssDataManager), cssDataManager); 1839} 1840function getSCSSLanguageService(options) { 1841 if (options === void 0) { options = defaultLanguageServiceOptions; } 1842 var cssDataManager = new _languageFacts_dataManager_js__WEBPACK_IMPORTED_MODULE_11__["CSSDataManager"](options); 1843 return createFacade(new _parser_scssParser_js__WEBPACK_IMPORTED_MODULE_6__["SCSSParser"](), new _services_scssCompletion_js__WEBPACK_IMPORTED_MODULE_7__["SCSSCompletion"](options, cssDataManager), new _services_cssHover_js__WEBPACK_IMPORTED_MODULE_2__["CSSHover"](options && options.clientCapabilities, cssDataManager), new _services_scssNavigation_js__WEBPACK_IMPORTED_MODULE_14__["SCSSNavigation"](options && options.fileSystemProvider), new _services_cssCodeActions_js__WEBPACK_IMPORTED_MODULE_4__["CSSCodeActions"](cssDataManager), new _services_cssValidation_js__WEBPACK_IMPORTED_MODULE_5__["CSSValidation"](cssDataManager), cssDataManager); 1844} 1845function getLESSLanguageService(options) { 1846 if (options === void 0) { options = defaultLanguageServiceOptions; } 1847 var cssDataManager = new _languageFacts_dataManager_js__WEBPACK_IMPORTED_MODULE_11__["CSSDataManager"](options); 1848 return createFacade(new _parser_lessParser_js__WEBPACK_IMPORTED_MODULE_8__["LESSParser"](), new _services_lessCompletion_js__WEBPACK_IMPORTED_MODULE_9__["LESSCompletion"](options, cssDataManager), new _services_cssHover_js__WEBPACK_IMPORTED_MODULE_2__["CSSHover"](options && options.clientCapabilities, cssDataManager), new _services_cssNavigation_js__WEBPACK_IMPORTED_MODULE_3__["CSSNavigation"](options && options.fileSystemProvider), new _services_cssCodeActions_js__WEBPACK_IMPORTED_MODULE_4__["CSSCodeActions"](cssDataManager), new _services_cssValidation_js__WEBPACK_IMPORTED_MODULE_5__["CSSValidation"](cssDataManager), cssDataManager); 1849} 1850 1851 1852/***/ }), 1853 1854/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/cssLanguageTypes.js": 1855/*!*************************************************************************************************************!*\ 1856 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/cssLanguageTypes.js ***! 1857 \*************************************************************************************************************/ 1858/*! exports provided: TextDocument, ClientCapabilities, FileType, Position, Range, Location, LocationLink, Color, ColorInformation, ColorPresentation, FoldingRangeKind, FoldingRange, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, DiagnosticCode, Diagnostic, Command, TextEdit, TextDocumentEdit, CreateFile, RenameFile, DeleteFile, WorkspaceEdit, WorkspaceChange, TextDocumentIdentifier, VersionedTextDocumentIdentifier, TextDocumentItem, MarkupKind, MarkupContent, CompletionItemKind, InsertTextFormat, CompletionItemTag, InsertReplaceEdit, CompletionItem, CompletionList, MarkedString, Hover, ParameterInformation, SignatureInformation, DocumentHighlightKind, DocumentHighlight, SymbolKind, SymbolTag, SymbolInformation, DocumentSymbol, CodeActionKind, CodeActionContext, CodeAction, CodeLens, FormattingOptions, DocumentLink, SelectionRange, EOL */ 1859/***/ (function(module, __webpack_exports__, __webpack_require__) { 1860 1861"use strict"; 1862__webpack_require__.r(__webpack_exports__); 1863/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientCapabilities", function() { return ClientCapabilities; }); 1864/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FileType", function() { return FileType; }); 1865/* harmony import */ var _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_deps/vscode-languageserver-types/main.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/_deps/vscode-languageserver-types/main.js"); 1866/* harmony import */ var _vscode_languageserver_textdocument_lib_esm_main_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../vscode-languageserver-textdocument/lib/esm/main.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-languageserver-textdocument/lib/esm/main.js"); 1867/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextDocument", function() { return _vscode_languageserver_textdocument_lib_esm_main_js__WEBPACK_IMPORTED_MODULE_1__["TextDocument"]; }); 1868 1869/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Position", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["Position"]; }); 1870 1871/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Range", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["Range"]; }); 1872 1873/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Location", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["Location"]; }); 1874 1875/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LocationLink", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["LocationLink"]; }); 1876 1877/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Color", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["Color"]; }); 1878 1879/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ColorInformation", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["ColorInformation"]; }); 1880 1881/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ColorPresentation", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["ColorPresentation"]; }); 1882 1883/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FoldingRangeKind", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["FoldingRangeKind"]; }); 1884 1885/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FoldingRange", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["FoldingRange"]; }); 1886 1887/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DiagnosticRelatedInformation", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["DiagnosticRelatedInformation"]; }); 1888 1889/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DiagnosticSeverity", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["DiagnosticSeverity"]; }); 1890 1891/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DiagnosticTag", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["DiagnosticTag"]; }); 1892 1893/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DiagnosticCode", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["DiagnosticCode"]; }); 1894 1895/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Diagnostic", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["Diagnostic"]; }); 1896 1897/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Command", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["Command"]; }); 1898 1899/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextEdit", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["TextEdit"]; }); 1900 1901/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextDocumentEdit", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["TextDocumentEdit"]; }); 1902 1903/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateFile", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["CreateFile"]; }); 1904 1905/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RenameFile", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["RenameFile"]; }); 1906 1907/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteFile", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["DeleteFile"]; }); 1908 1909/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WorkspaceEdit", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["WorkspaceEdit"]; }); 1910 1911/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WorkspaceChange", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["WorkspaceChange"]; }); 1912 1913/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextDocumentIdentifier", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["TextDocumentIdentifier"]; }); 1914 1915/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VersionedTextDocumentIdentifier", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["VersionedTextDocumentIdentifier"]; }); 1916 1917/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextDocumentItem", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["TextDocumentItem"]; }); 1918 1919/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MarkupKind", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["MarkupKind"]; }); 1920 1921/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MarkupContent", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["MarkupContent"]; }); 1922 1923/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CompletionItemKind", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["CompletionItemKind"]; }); 1924 1925/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InsertTextFormat", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["InsertTextFormat"]; }); 1926 1927/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CompletionItemTag", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["CompletionItemTag"]; }); 1928 1929/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InsertReplaceEdit", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["InsertReplaceEdit"]; }); 1930 1931/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CompletionItem", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["CompletionItem"]; }); 1932 1933/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CompletionList", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["CompletionList"]; }); 1934 1935/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MarkedString", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["MarkedString"]; }); 1936 1937/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Hover", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["Hover"]; }); 1938 1939/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ParameterInformation", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["ParameterInformation"]; }); 1940 1941/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SignatureInformation", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["SignatureInformation"]; }); 1942 1943/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentHighlightKind", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["DocumentHighlightKind"]; }); 1944 1945/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentHighlight", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["DocumentHighlight"]; }); 1946 1947/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SymbolKind", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["SymbolKind"]; }); 1948 1949/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SymbolTag", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["SymbolTag"]; }); 1950 1951/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SymbolInformation", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["SymbolInformation"]; }); 1952 1953/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentSymbol", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["DocumentSymbol"]; }); 1954 1955/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CodeActionKind", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["CodeActionKind"]; }); 1956 1957/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CodeActionContext", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["CodeActionContext"]; }); 1958 1959/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CodeAction", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["CodeAction"]; }); 1960 1961/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CodeLens", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["CodeLens"]; }); 1962 1963/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormattingOptions", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["FormattingOptions"]; }); 1964 1965/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentLink", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["DocumentLink"]; }); 1966 1967/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectionRange", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["SelectionRange"]; }); 1968 1969/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EOL", function() { return _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["EOL"]; }); 1970 1971/*--------------------------------------------------------------------------------------------- 1972 * Copyright (c) Microsoft Corporation. All rights reserved. 1973 * Licensed under the MIT License. See License.txt in the project root for license information. 1974 *--------------------------------------------------------------------------------------------*/ 1975 1976 1977 1978 1979var ClientCapabilities; 1980(function (ClientCapabilities) { 1981 ClientCapabilities.LATEST = { 1982 textDocument: { 1983 completion: { 1984 completionItem: { 1985 documentationFormat: [_deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["MarkupKind"].Markdown, _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["MarkupKind"].PlainText] 1986 } 1987 }, 1988 hover: { 1989 contentFormat: [_deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["MarkupKind"].Markdown, _deps_vscode_languageserver_types_main_js__WEBPACK_IMPORTED_MODULE_0__["MarkupKind"].PlainText] 1990 } 1991 } 1992 }; 1993})(ClientCapabilities || (ClientCapabilities = {})); 1994var FileType; 1995(function (FileType) { 1996 /** 1997 * The file type is unknown. 1998 */ 1999 FileType[FileType["Unknown"] = 0] = "Unknown"; 2000 /** 2001 * A regular file. 2002 */ 2003 FileType[FileType["File"] = 1] = "File"; 2004 /** 2005 * A directory. 2006 */ 2007 FileType[FileType["Directory"] = 2] = "Directory"; 2008 /** 2009 * A symbolic link to a file. 2010 */ 2011 FileType[FileType["SymbolicLink"] = 64] = "SymbolicLink"; 2012})(FileType || (FileType = {})); 2013 2014 2015/***/ }), 2016 2017/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/data/webCustomData.js": 2018/*!***************************************************************************************************************!*\ 2019 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/data/webCustomData.js ***! 2020 \***************************************************************************************************************/ 2021/*! exports provided: cssData */ 2022/***/ (function(module, __webpack_exports__, __webpack_require__) { 2023 2024"use strict"; 2025__webpack_require__.r(__webpack_exports__); 2026/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cssData", function() { return cssData; }); 2027/*--------------------------------------------------------------------------------------------- 2028 * Copyright (c) Microsoft Corporation. All rights reserved. 2029 * Licensed under the MIT License. See License.txt in the project root for license information. 2030 *--------------------------------------------------------------------------------------------*/ 2031// file generated from vscode-web-custom-data NPM package 2032var cssData = { 2033 "version": 1.1, 2034 "properties": [ 2035 { 2036 "name": "additive-symbols", 2037 "browsers": [ 2038 "FF33" 2039 ], 2040 "syntax": "[ <integer> && <symbol> ]#", 2041 "relevance": 50, 2042 "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'.", 2043 "restrictions": [ 2044 "integer", 2045 "string", 2046 "image", 2047 "identifier" 2048 ] 2049 }, 2050 { 2051 "name": "align-content", 2052 "values": [ 2053 { 2054 "name": "center", 2055 "description": "Lines are packed toward the center of the flex container." 2056 }, 2057 { 2058 "name": "flex-end", 2059 "description": "Lines are packed toward the end of the flex container." 2060 }, 2061 { 2062 "name": "flex-start", 2063 "description": "Lines are packed toward the start of the flex container." 2064 }, 2065 { 2066 "name": "space-around", 2067 "description": "Lines are evenly distributed in the flex container, with half-size spaces on either end." 2068 }, 2069 { 2070 "name": "space-between", 2071 "description": "Lines are evenly distributed in the flex container." 2072 }, 2073 { 2074 "name": "stretch", 2075 "description": "Lines stretch to take up the remaining space." 2076 } 2077 ], 2078 "syntax": "normal | <baseline-position> | <content-distribution> | <overflow-position>? <content-position>", 2079 "relevance": 59, 2080 "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.", 2081 "restrictions": [ 2082 "enum" 2083 ] 2084 }, 2085 { 2086 "name": "align-items", 2087 "values": [ 2088 { 2089 "name": "baseline", 2090 "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." 2091 }, 2092 { 2093 "name": "center", 2094 "description": "The flex item’s margin box is centered in the cross axis within the line." 2095 }, 2096 { 2097 "name": "flex-end", 2098 "description": "The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line." 2099 }, 2100 { 2101 "name": "flex-start", 2102 "description": "The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line." 2103 }, 2104 { 2105 "name": "stretch", 2106 "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." 2107 } 2108 ], 2109 "syntax": "normal | stretch | <baseline-position> | [ <overflow-position>? <self-position> ]", 2110 "relevance": 81, 2111 "description": "Aligns flex items along the cross axis of the current line of the flex container.", 2112 "restrictions": [ 2113 "enum" 2114 ] 2115 }, 2116 { 2117 "name": "justify-items", 2118 "values": [ 2119 { 2120 "name": "auto" 2121 }, 2122 { 2123 "name": "normal" 2124 }, 2125 { 2126 "name": "end" 2127 }, 2128 { 2129 "name": "start" 2130 }, 2131 { 2132 "name": "flex-end", 2133 "description": "\"Flex items are packed toward the end of the line.\"" 2134 }, 2135 { 2136 "name": "flex-start", 2137 "description": "\"Flex items are packed toward the start of the line.\"" 2138 }, 2139 { 2140 "name": "self-end", 2141 "description": "The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis." 2142 }, 2143 { 2144 "name": "self-start", 2145 "description": "The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.." 2146 }, 2147 { 2148 "name": "center", 2149 "description": "The items are packed flush to each other toward the center of the of the alignment container." 2150 }, 2151 { 2152 "name": "left" 2153 }, 2154 { 2155 "name": "right" 2156 }, 2157 { 2158 "name": "baseline" 2159 }, 2160 { 2161 "name": "first baseline" 2162 }, 2163 { 2164 "name": "last baseline" 2165 }, 2166 { 2167 "name": "stretch", 2168 "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." 2169 }, 2170 { 2171 "name": "save" 2172 }, 2173 { 2174 "name": "unsave" 2175 }, 2176 { 2177 "name": "legacy" 2178 } 2179 ], 2180 "syntax": "normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ] | legacy | legacy && [ left | right | center ]", 2181 "relevance": 50, 2182 "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", 2183 "restrictions": [ 2184 "enum" 2185 ] 2186 }, 2187 { 2188 "name": "justify-self", 2189 "browsers": [ 2190 "E16", 2191 "FF45", 2192 "S10.1", 2193 "C57", 2194 "O44" 2195 ], 2196 "values": [ 2197 { 2198 "name": "auto" 2199 }, 2200 { 2201 "name": "normal" 2202 }, 2203 { 2204 "name": "end" 2205 }, 2206 { 2207 "name": "start" 2208 }, 2209 { 2210 "name": "flex-end", 2211 "description": "\"Flex items are packed toward the end of the line.\"" 2212 }, 2213 { 2214 "name": "flex-start", 2215 "description": "\"Flex items are packed toward the start of the line.\"" 2216 }, 2217 { 2218 "name": "self-end", 2219 "description": "The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis." 2220 }, 2221 { 2222 "name": "self-start", 2223 "description": "The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.." 2224 }, 2225 { 2226 "name": "center", 2227 "description": "The items are packed flush to each other toward the center of the of the alignment container." 2228 }, 2229 { 2230 "name": "left" 2231 }, 2232 { 2233 "name": "right" 2234 }, 2235 { 2236 "name": "baseline" 2237 }, 2238 { 2239 "name": "first baseline" 2240 }, 2241 { 2242 "name": "last baseline" 2243 }, 2244 { 2245 "name": "stretch", 2246 "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." 2247 }, 2248 { 2249 "name": "save" 2250 }, 2251 { 2252 "name": "unsave" 2253 } 2254 ], 2255 "syntax": "auto | normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ]", 2256 "relevance": 52, 2257 "description": "Defines the way of justifying a box inside its container along the appropriate axis.", 2258 "restrictions": [ 2259 "enum" 2260 ] 2261 }, 2262 { 2263 "name": "align-self", 2264 "values": [ 2265 { 2266 "name": "auto", 2267 "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." 2268 }, 2269 { 2270 "name": "baseline", 2271 "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." 2272 }, 2273 { 2274 "name": "center", 2275 "description": "The flex item’s margin box is centered in the cross axis within the line." 2276 }, 2277 { 2278 "name": "flex-end", 2279 "description": "The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line." 2280 }, 2281 { 2282 "name": "flex-start", 2283 "description": "The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line." 2284 }, 2285 { 2286 "name": "stretch", 2287 "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." 2288 } 2289 ], 2290 "syntax": "auto | normal | stretch | <baseline-position> | <overflow-position>? <self-position>", 2291 "relevance": 69, 2292 "description": "Allows the default alignment along the cross axis to be overridden for individual flex items.", 2293 "restrictions": [ 2294 "enum" 2295 ] 2296 }, 2297 { 2298 "name": "all", 2299 "browsers": [ 2300 "E79", 2301 "FF27", 2302 "S9.1", 2303 "C37", 2304 "O24" 2305 ], 2306 "values": [], 2307 "syntax": "initial | inherit | unset | revert", 2308 "relevance": 51, 2309 "references": [ 2310 { 2311 "name": "MDN Reference", 2312 "url": "https://developer.mozilla.org/docs/Web/CSS/all" 2313 } 2314 ], 2315 "description": "Shorthand that resets all properties except 'direction' and 'unicode-bidi'.", 2316 "restrictions": [ 2317 "enum" 2318 ] 2319 }, 2320 { 2321 "name": "alt", 2322 "browsers": [ 2323 "S9" 2324 ], 2325 "values": [], 2326 "relevance": 50, 2327 "references": [ 2328 { 2329 "name": "MDN Reference", 2330 "url": "https://developer.mozilla.org/docs/Web/CSS/alt" 2331 } 2332 ], 2333 "description": "Provides alternative text for assistive technology to replace the generated content of a ::before or ::after element.", 2334 "restrictions": [ 2335 "string", 2336 "enum" 2337 ] 2338 }, 2339 { 2340 "name": "animation", 2341 "values": [ 2342 { 2343 "name": "alternate", 2344 "description": "The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction." 2345 }, 2346 { 2347 "name": "alternate-reverse", 2348 "description": "The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction." 2349 }, 2350 { 2351 "name": "backwards", 2352 "description": "The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'." 2353 }, 2354 { 2355 "name": "both", 2356 "description": "Both forwards and backwards fill modes are applied." 2357 }, 2358 { 2359 "name": "forwards", 2360 "description": "The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes." 2361 }, 2362 { 2363 "name": "infinite", 2364 "description": "Causes the animation to repeat forever." 2365 }, 2366 { 2367 "name": "none", 2368 "description": "No animation is performed" 2369 }, 2370 { 2371 "name": "normal", 2372 "description": "Normal playback." 2373 }, 2374 { 2375 "name": "reverse", 2376 "description": "All iterations of the animation are played in the reverse direction from the way they were specified." 2377 } 2378 ], 2379 "syntax": "<single-animation>#", 2380 "relevance": 79, 2381 "references": [ 2382 { 2383 "name": "MDN Reference", 2384 "url": "https://developer.mozilla.org/docs/Web/CSS/animation" 2385 } 2386 ], 2387 "description": "Shorthand property combines six of the animation properties into a single property.", 2388 "restrictions": [ 2389 "time", 2390 "timing-function", 2391 "enum", 2392 "identifier", 2393 "number" 2394 ] 2395 }, 2396 { 2397 "name": "animation-delay", 2398 "syntax": "<time>#", 2399 "relevance": 62, 2400 "references": [ 2401 { 2402 "name": "MDN Reference", 2403 "url": "https://developer.mozilla.org/docs/Web/CSS/animation-delay" 2404 } 2405 ], 2406 "description": "Defines when the animation will start.", 2407 "restrictions": [ 2408 "time" 2409 ] 2410 }, 2411 { 2412 "name": "animation-direction", 2413 "values": [ 2414 { 2415 "name": "alternate", 2416 "description": "The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction." 2417 }, 2418 { 2419 "name": "alternate-reverse", 2420 "description": "The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction." 2421 }, 2422 { 2423 "name": "normal", 2424 "description": "Normal playback." 2425 }, 2426 { 2427 "name": "reverse", 2428 "description": "All iterations of the animation are played in the reverse direction from the way they were specified." 2429 } 2430 ], 2431 "syntax": "<single-animation-direction>#", 2432 "relevance": 55, 2433 "references": [ 2434 { 2435 "name": "MDN Reference", 2436 "url": "https://developer.mozilla.org/docs/Web/CSS/animation-direction" 2437 } 2438 ], 2439 "description": "Defines whether or not the animation should play in reverse on alternate cycles.", 2440 "restrictions": [ 2441 "enum" 2442 ] 2443 }, 2444 { 2445 "name": "animation-duration", 2446 "syntax": "<time>#", 2447 "relevance": 64, 2448 "references": [ 2449 { 2450 "name": "MDN Reference", 2451 "url": "https://developer.mozilla.org/docs/Web/CSS/animation-duration" 2452 } 2453 ], 2454 "description": "Defines the length of time that an animation takes to complete one cycle.", 2455 "restrictions": [ 2456 "time" 2457 ] 2458 }, 2459 { 2460 "name": "animation-fill-mode", 2461 "values": [ 2462 { 2463 "name": "backwards", 2464 "description": "The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'." 2465 }, 2466 { 2467 "name": "both", 2468 "description": "Both forwards and backwards fill modes are applied." 2469 }, 2470 { 2471 "name": "forwards", 2472 "description": "The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes." 2473 }, 2474 { 2475 "name": "none", 2476 "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." 2477 } 2478 ], 2479 "syntax": "<single-animation-fill-mode>#", 2480 "relevance": 61, 2481 "references": [ 2482 { 2483 "name": "MDN Reference", 2484 "url": "https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode" 2485 } 2486 ], 2487 "description": "Defines what values are applied by the animation outside the time it is executing.", 2488 "restrictions": [ 2489 "enum" 2490 ] 2491 }, 2492 { 2493 "name": "animation-iteration-count", 2494 "values": [ 2495 { 2496 "name": "infinite", 2497 "description": "Causes the animation to repeat forever." 2498 } 2499 ], 2500 "syntax": "<single-animation-iteration-count>#", 2501 "relevance": 59, 2502 "references": [ 2503 { 2504 "name": "MDN Reference", 2505 "url": "https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count" 2506 } 2507 ], 2508 "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.", 2509 "restrictions": [ 2510 "number", 2511 "enum" 2512 ] 2513 }, 2514 { 2515 "name": "animation-name", 2516 "values": [ 2517 { 2518 "name": "none", 2519 "description": "No animation is performed" 2520 } 2521 ], 2522 "syntax": "[ none | <keyframes-name> ]#", 2523 "relevance": 64, 2524 "references": [ 2525 { 2526 "name": "MDN Reference", 2527 "url": "https://developer.mozilla.org/docs/Web/CSS/animation-name" 2528 } 2529 ], 2530 "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.", 2531 "restrictions": [ 2532 "identifier", 2533 "enum" 2534 ] 2535 }, 2536 { 2537 "name": "animation-play-state", 2538 "values": [ 2539 { 2540 "name": "paused", 2541 "description": "A running animation will be paused." 2542 }, 2543 { 2544 "name": "running", 2545 "description": "Resume playback of a paused animation." 2546 } 2547 ], 2548 "syntax": "<single-animation-play-state>#", 2549 "relevance": 53, 2550 "references": [ 2551 { 2552 "name": "MDN Reference", 2553 "url": "https://developer.mozilla.org/docs/Web/CSS/animation-play-state" 2554 } 2555 ], 2556 "description": "Defines whether the animation is running or paused.", 2557 "restrictions": [ 2558 "enum" 2559 ] 2560 }, 2561 { 2562 "name": "animation-timing-function", 2563 "syntax": "<timing-function>#", 2564 "relevance": 68, 2565 "references": [ 2566 { 2567 "name": "MDN Reference", 2568 "url": "https://developer.mozilla.org/docs/Web/CSS/animation-timing-function" 2569 } 2570 ], 2571 "description": "Describes how the animation will progress over one cycle of its duration.", 2572 "restrictions": [ 2573 "timing-function" 2574 ] 2575 }, 2576 { 2577 "name": "backface-visibility", 2578 "values": [ 2579 { 2580 "name": "hidden", 2581 "description": "Back side is hidden." 2582 }, 2583 { 2584 "name": "visible", 2585 "description": "Back side is visible." 2586 } 2587 ], 2588 "syntax": "visible | hidden", 2589 "relevance": 59, 2590 "references": [ 2591 { 2592 "name": "MDN Reference", 2593 "url": "https://developer.mozilla.org/docs/Web/CSS/backface-visibility" 2594 } 2595 ], 2596 "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.", 2597 "restrictions": [ 2598 "enum" 2599 ] 2600 }, 2601 { 2602 "name": "background", 2603 "values": [ 2604 { 2605 "name": "fixed", 2606 "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." 2607 }, 2608 { 2609 "name": "local", 2610 "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." 2611 }, 2612 { 2613 "name": "none", 2614 "description": "A value of 'none' counts as an image layer but draws nothing." 2615 }, 2616 { 2617 "name": "scroll", 2618 "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.)" 2619 } 2620 ], 2621 "syntax": "[ <bg-layer> , ]* <final-bg-layer>", 2622 "relevance": 93, 2623 "references": [ 2624 { 2625 "name": "MDN Reference", 2626 "url": "https://developer.mozilla.org/docs/Web/CSS/background" 2627 } 2628 ], 2629 "description": "Shorthand property for setting most background properties at the same place in the style sheet.", 2630 "restrictions": [ 2631 "enum", 2632 "image", 2633 "color", 2634 "position", 2635 "length", 2636 "repeat", 2637 "percentage", 2638 "box" 2639 ] 2640 }, 2641 { 2642 "name": "background-attachment", 2643 "values": [ 2644 { 2645 "name": "fixed", 2646 "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." 2647 }, 2648 { 2649 "name": "local", 2650 "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." 2651 }, 2652 { 2653 "name": "scroll", 2654 "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.)" 2655 } 2656 ], 2657 "syntax": "<attachment>#", 2658 "relevance": 53, 2659 "references": [ 2660 { 2661 "name": "MDN Reference", 2662 "url": "https://developer.mozilla.org/docs/Web/CSS/background-attachment" 2663 } 2664 ], 2665 "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').", 2666 "restrictions": [ 2667 "enum" 2668 ] 2669 }, 2670 { 2671 "name": "background-blend-mode", 2672 "browsers": [ 2673 "E79", 2674 "FF30", 2675 "S8", 2676 "C35", 2677 "O22" 2678 ], 2679 "values": [ 2680 { 2681 "name": "normal", 2682 "description": "Default attribute which specifies no blending" 2683 }, 2684 { 2685 "name": "multiply", 2686 "description": "The source color is multiplied by the destination color and replaces the destination." 2687 }, 2688 { 2689 "name": "screen", 2690 "description": "Multiplies the complements of the backdrop and source color values, then complements the result." 2691 }, 2692 { 2693 "name": "overlay", 2694 "description": "Multiplies or screens the colors, depending on the backdrop color value." 2695 }, 2696 { 2697 "name": "darken", 2698 "description": "Selects the darker of the backdrop and source colors." 2699 }, 2700 { 2701 "name": "lighten", 2702 "description": "Selects the lighter of the backdrop and source colors." 2703 }, 2704 { 2705 "name": "color-dodge", 2706 "description": "Brightens the backdrop color to reflect the source color." 2707 }, 2708 { 2709 "name": "color-burn", 2710 "description": "Darkens the backdrop color to reflect the source color." 2711 }, 2712 { 2713 "name": "hard-light", 2714 "description": "Multiplies or screens the colors, depending on the source color value." 2715 }, 2716 { 2717 "name": "soft-light", 2718 "description": "Darkens or lightens the colors, depending on the source color value." 2719 }, 2720 { 2721 "name": "difference", 2722 "description": "Subtracts the darker of the two constituent colors from the lighter color.." 2723 }, 2724 { 2725 "name": "exclusion", 2726 "description": "Produces an effect similar to that of the Difference mode but lower in contrast." 2727 }, 2728 { 2729 "name": "hue", 2730 "browsers": [ 2731 "E79", 2732 "FF30", 2733 "S8", 2734 "C35", 2735 "O22" 2736 ], 2737 "description": "Creates a color with the hue of the source color and the saturation and luminosity of the backdrop color." 2738 }, 2739 { 2740 "name": "saturation", 2741 "browsers": [ 2742 "E79", 2743 "FF30", 2744 "S8", 2745 "C35", 2746 "O22" 2747 ], 2748 "description": "Creates a color with the saturation of the source color and the hue and luminosity of the backdrop color." 2749 }, 2750 { 2751 "name": "color", 2752 "browsers": [ 2753 "E79", 2754 "FF30", 2755 "S8", 2756 "C35", 2757 "O22" 2758 ], 2759 "description": "Creates a color with the hue and saturation of the source color and the luminosity of the backdrop color." 2760 }, 2761 { 2762 "name": "luminosity", 2763 "browsers": [ 2764 "E79", 2765 "FF30", 2766 "S8", 2767 "C35", 2768 "O22" 2769 ], 2770 "description": "Creates a color with the luminosity of the source color and the hue and saturation of the backdrop color." 2771 } 2772 ], 2773 "syntax": "<blend-mode>#", 2774 "relevance": 50, 2775 "references": [ 2776 { 2777 "name": "MDN Reference", 2778 "url": "https://developer.mozilla.org/docs/Web/CSS/background-blend-mode" 2779 } 2780 ], 2781 "description": "Defines the blending mode of each background layer.", 2782 "restrictions": [ 2783 "enum" 2784 ] 2785 }, 2786 { 2787 "name": "background-clip", 2788 "syntax": "<box>#", 2789 "relevance": 67, 2790 "references": [ 2791 { 2792 "name": "MDN Reference", 2793 "url": "https://developer.mozilla.org/docs/Web/CSS/background-clip" 2794 } 2795 ], 2796 "description": "Determines the background painting area.", 2797 "restrictions": [ 2798 "box" 2799 ] 2800 }, 2801 { 2802 "name": "background-color", 2803 "syntax": "<color>", 2804 "relevance": 94, 2805 "references": [ 2806 { 2807 "name": "MDN Reference", 2808 "url": "https://developer.mozilla.org/docs/Web/CSS/background-color" 2809 } 2810 ], 2811 "description": "Sets the background color of an element.", 2812 "restrictions": [ 2813 "color" 2814 ] 2815 }, 2816 { 2817 "name": "background-image", 2818 "values": [ 2819 { 2820 "name": "none", 2821 "description": "Counts as an image layer but draws nothing." 2822 } 2823 ], 2824 "syntax": "<bg-image>#", 2825 "relevance": 88, 2826 "references": [ 2827 { 2828 "name": "MDN Reference", 2829 "url": "https://developer.mozilla.org/docs/Web/CSS/background-image" 2830 } 2831 ], 2832 "description": "Sets the background image(s) of an element.", 2833 "restrictions": [ 2834 "image", 2835 "enum" 2836 ] 2837 }, 2838 { 2839 "name": "background-origin", 2840 "syntax": "<box>#", 2841 "relevance": 53, 2842 "references": [ 2843 { 2844 "name": "MDN Reference", 2845 "url": "https://developer.mozilla.org/docs/Web/CSS/background-origin" 2846 } 2847 ], 2848 "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).", 2849 "restrictions": [ 2850 "box" 2851 ] 2852 }, 2853 { 2854 "name": "background-position", 2855 "syntax": "<bg-position>#", 2856 "relevance": 87, 2857 "references": [ 2858 { 2859 "name": "MDN Reference", 2860 "url": "https://developer.mozilla.org/docs/Web/CSS/background-position" 2861 } 2862 ], 2863 "description": "Specifies the initial position of the background image(s) (after any resizing) within their corresponding background positioning area.", 2864 "restrictions": [ 2865 "position", 2866 "length", 2867 "percentage" 2868 ] 2869 }, 2870 { 2871 "name": "background-position-x", 2872 "values": [ 2873 { 2874 "name": "center", 2875 "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." 2876 }, 2877 { 2878 "name": "left", 2879 "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." 2880 }, 2881 { 2882 "name": "right", 2883 "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." 2884 } 2885 ], 2886 "status": "experimental", 2887 "syntax": "[ center | [ [ left | right | x-start | x-end ]? <length-percentage>? ]! ]#", 2888 "relevance": 54, 2889 "references": [ 2890 { 2891 "name": "MDN Reference", 2892 "url": "https://developer.mozilla.org/docs/Web/CSS/background-position-x" 2893 } 2894 ], 2895 "description": "If background images have been specified, this property specifies their initial position (after any resizing) within their corresponding background positioning area.", 2896 "restrictions": [ 2897 "length", 2898 "percentage" 2899 ] 2900 }, 2901 { 2902 "name": "background-position-y", 2903 "values": [ 2904 { 2905 "name": "bottom", 2906 "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." 2907 }, 2908 { 2909 "name": "center", 2910 "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." 2911 }, 2912 { 2913 "name": "top", 2914 "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." 2915 } 2916 ], 2917 "status": "experimental", 2918 "syntax": "[ center | [ [ top | bottom | y-start | y-end ]? <length-percentage>? ]! ]#", 2919 "relevance": 53, 2920 "references": [ 2921 { 2922 "name": "MDN Reference", 2923 "url": "https://developer.mozilla.org/docs/Web/CSS/background-position-y" 2924 } 2925 ], 2926 "description": "If background images have been specified, this property specifies their initial position (after any resizing) within their corresponding background positioning area.", 2927 "restrictions": [ 2928 "length", 2929 "percentage" 2930 ] 2931 }, 2932 { 2933 "name": "background-repeat", 2934 "values": [], 2935 "syntax": "<repeat-style>#", 2936 "relevance": 85, 2937 "references": [ 2938 { 2939 "name": "MDN Reference", 2940 "url": "https://developer.mozilla.org/docs/Web/CSS/background-repeat" 2941 } 2942 ], 2943 "description": "Specifies how background images are tiled after they have been sized and positioned.", 2944 "restrictions": [ 2945 "repeat" 2946 ] 2947 }, 2948 { 2949 "name": "background-size", 2950 "values": [ 2951 { 2952 "name": "auto", 2953 "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%." 2954 }, 2955 { 2956 "name": "contain", 2957 "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." 2958 }, 2959 { 2960 "name": "cover", 2961 "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." 2962 } 2963 ], 2964 "syntax": "<bg-size>#", 2965 "relevance": 85, 2966 "references": [ 2967 { 2968 "name": "MDN Reference", 2969 "url": "https://developer.mozilla.org/docs/Web/CSS/background-size" 2970 } 2971 ], 2972 "description": "Specifies the size of the background images.", 2973 "restrictions": [ 2974 "length", 2975 "percentage" 2976 ] 2977 }, 2978 { 2979 "name": "behavior", 2980 "browsers": [ 2981 "IE6" 2982 ], 2983 "relevance": 50, 2984 "description": "IE only. Used to extend behaviors of the browser.", 2985 "restrictions": [ 2986 "url" 2987 ] 2988 }, 2989 { 2990 "name": "block-size", 2991 "browsers": [ 2992 "E79", 2993 "FF41", 2994 "S12.1", 2995 "C57", 2996 "O44" 2997 ], 2998 "values": [ 2999 { 3000 "name": "auto", 3001 "description": "Depends on the values of other properties." 3002 } 3003 ], 3004 "syntax": "<'width'>", 3005 "relevance": 50, 3006 "references": [ 3007 { 3008 "name": "MDN Reference", 3009 "url": "https://developer.mozilla.org/docs/Web/CSS/block-size" 3010 } 3011 ], 3012 "description": "Logical 'width'. Mapping depends on the element’s 'writing-mode'.", 3013 "restrictions": [ 3014 "length", 3015 "percentage" 3016 ] 3017 }, 3018 { 3019 "name": "border", 3020 "syntax": "<line-width> || <line-style> || <color>", 3021 "relevance": 95, 3022 "references": [ 3023 { 3024 "name": "MDN Reference", 3025 "url": "https://developer.mozilla.org/docs/Web/CSS/border" 3026 } 3027 ], 3028 "description": "Shorthand property for setting border width, style, and color.", 3029 "restrictions": [ 3030 "length", 3031 "line-width", 3032 "line-style", 3033 "color" 3034 ] 3035 }, 3036 { 3037 "name": "border-block-end", 3038 "browsers": [ 3039 "E79", 3040 "FF41", 3041 "S12.1", 3042 "C69", 3043 "O56" 3044 ], 3045 "syntax": "<'border-top-width'> || <'border-top-style'> || <'color'>", 3046 "relevance": 50, 3047 "references": [ 3048 { 3049 "name": "MDN Reference", 3050 "url": "https://developer.mozilla.org/docs/Web/CSS/border-block-end" 3051 } 3052 ], 3053 "description": "Logical 'border-bottom'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.", 3054 "restrictions": [ 3055 "length", 3056 "line-width", 3057 "line-style", 3058 "color" 3059 ] 3060 }, 3061 { 3062 "name": "border-block-start", 3063 "browsers": [ 3064 "E79", 3065 "FF41", 3066 "S12.1", 3067 "C69", 3068 "O56" 3069 ], 3070 "syntax": "<'border-top-width'> || <'border-top-style'> || <'color'>", 3071 "relevance": 50, 3072 "references": [ 3073 { 3074 "name": "MDN Reference", 3075 "url": "https://developer.mozilla.org/docs/Web/CSS/border-block-start" 3076 } 3077 ], 3078 "description": "Logical 'border-top'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.", 3079 "restrictions": [ 3080 "length", 3081 "line-width", 3082 "line-style", 3083 "color" 3084 ] 3085 }, 3086 { 3087 "name": "border-block-end-color", 3088 "browsers": [ 3089 "E79", 3090 "FF41", 3091 "S12.1", 3092 "C69", 3093 "O56" 3094 ], 3095 "syntax": "<'border-top-color'>", 3096 "relevance": 50, 3097 "references": [ 3098 { 3099 "name": "MDN Reference", 3100 "url": "https://developer.mozilla.org/docs/Web/CSS/border-block-end-color" 3101 } 3102 ], 3103 "description": "Logical 'border-bottom-color'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.", 3104 "restrictions": [ 3105 "color" 3106 ] 3107 }, 3108 { 3109 "name": "border-block-start-color", 3110 "browsers": [ 3111 "E79", 3112 "FF41", 3113 "S12.1", 3114 "C69", 3115 "O56" 3116 ], 3117 "syntax": "<'border-top-color'>", 3118 "relevance": 50, 3119 "references": [ 3120 { 3121 "name": "MDN Reference", 3122 "url": "https://developer.mozilla.org/docs/Web/CSS/border-block-start-color" 3123 } 3124 ], 3125 "description": "Logical 'border-top-color'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.", 3126 "restrictions": [ 3127 "color" 3128 ] 3129 }, 3130 { 3131 "name": "border-block-end-style", 3132 "browsers": [ 3133 "E79", 3134 "FF41", 3135 "S12.1", 3136 "C69", 3137 "O56" 3138 ], 3139 "syntax": "<'border-top-style'>", 3140 "relevance": 50, 3141 "references": [ 3142 { 3143 "name": "MDN Reference", 3144 "url": "https://developer.mozilla.org/docs/Web/CSS/border-block-end-style" 3145 } 3146 ], 3147 "description": "Logical 'border-bottom-style'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.", 3148 "restrictions": [ 3149 "line-style" 3150 ] 3151 }, 3152 { 3153 "name": "border-block-start-style", 3154 "browsers": [ 3155 "E79", 3156 "FF41", 3157 "S12.1", 3158 "C69", 3159 "O56" 3160 ], 3161 "syntax": "<'border-top-style'>", 3162 "relevance": 50, 3163 "references": [ 3164 { 3165 "name": "MDN Reference", 3166 "url": "https://developer.mozilla.org/docs/Web/CSS/border-block-start-style" 3167 } 3168 ], 3169 "description": "Logical 'border-top-style'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.", 3170 "restrictions": [ 3171 "line-style" 3172 ] 3173 }, 3174 { 3175 "name": "border-block-end-width", 3176 "browsers": [ 3177 "E79", 3178 "FF41", 3179 "S12.1", 3180 "C69", 3181 "O56" 3182 ], 3183 "syntax": "<'border-top-width'>", 3184 "relevance": 50, 3185 "references": [ 3186 { 3187 "name": "MDN Reference", 3188 "url": "https://developer.mozilla.org/docs/Web/CSS/border-block-end-width" 3189 } 3190 ], 3191 "description": "Logical 'border-bottom-width'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.", 3192 "restrictions": [ 3193 "length", 3194 "line-width" 3195 ] 3196 }, 3197 { 3198 "name": "border-block-start-width", 3199 "browsers": [ 3200 "E79", 3201 "FF41", 3202 "S12.1", 3203 "C69", 3204 "O56" 3205 ], 3206 "syntax": "<'border-top-width'>", 3207 "relevance": 50, 3208 "references": [ 3209 { 3210 "name": "MDN Reference", 3211 "url": "https://developer.mozilla.org/docs/Web/CSS/border-block-start-width" 3212 } 3213 ], 3214 "description": "Logical 'border-top-width'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.", 3215 "restrictions": [ 3216 "length", 3217 "line-width" 3218 ] 3219 }, 3220 { 3221 "name": "border-bottom", 3222 "syntax": "<line-width> || <line-style> || <color>", 3223 "relevance": 88, 3224 "references": [ 3225 { 3226 "name": "MDN Reference", 3227 "url": "https://developer.mozilla.org/docs/Web/CSS/border-bottom" 3228 } 3229 ], 3230 "description": "Shorthand property for setting border width, style and color.", 3231 "restrictions": [ 3232 "length", 3233 "line-width", 3234 "line-style", 3235 "color" 3236 ] 3237 }, 3238 { 3239 "name": "border-bottom-color", 3240 "syntax": "<'border-top-color'>", 3241 "relevance": 71, 3242 "references": [ 3243 { 3244 "name": "MDN Reference", 3245 "url": "https://developer.mozilla.org/docs/Web/CSS/border-bottom-color" 3246 } 3247 ], 3248 "description": "Sets the color of the bottom border.", 3249 "restrictions": [ 3250 "color" 3251 ] 3252 }, 3253 { 3254 "name": "border-bottom-left-radius", 3255 "syntax": "<length-percentage>{1,2}", 3256 "relevance": 74, 3257 "references": [ 3258 { 3259 "name": "MDN Reference", 3260 "url": "https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius" 3261 } 3262 ], 3263 "description": "Defines the radii of the bottom left outer border edge.", 3264 "restrictions": [ 3265 "length", 3266 "percentage" 3267 ] 3268 }, 3269 { 3270 "name": "border-bottom-right-radius", 3271 "syntax": "<length-percentage>{1,2}", 3272 "relevance": 73, 3273 "references": [ 3274 { 3275 "name": "MDN Reference", 3276 "url": "https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius" 3277 } 3278 ], 3279 "description": "Defines the radii of the bottom right outer border edge.", 3280 "restrictions": [ 3281 "length", 3282 "percentage" 3283 ] 3284 }, 3285 { 3286 "name": "border-bottom-style", 3287 "syntax": "<line-style>", 3288 "relevance": 57, 3289 "references": [ 3290 { 3291 "name": "MDN Reference", 3292 "url": "https://developer.mozilla.org/docs/Web/CSS/border-bottom-style" 3293 } 3294 ], 3295 "description": "Sets the style of the bottom border.", 3296 "restrictions": [ 3297 "line-style" 3298 ] 3299 }, 3300 { 3301 "name": "border-bottom-width", 3302 "syntax": "<line-width>", 3303 "relevance": 62, 3304 "references": [ 3305 { 3306 "name": "MDN Reference", 3307 "url": "https://developer.mozilla.org/docs/Web/CSS/border-bottom-width" 3308 } 3309 ], 3310 "description": "Sets the thickness of the bottom border.", 3311 "restrictions": [ 3312 "length", 3313 "line-width" 3314 ] 3315 }, 3316 { 3317 "name": "border-collapse", 3318 "values": [ 3319 { 3320 "name": "collapse", 3321 "description": "Selects the collapsing borders model." 3322 }, 3323 { 3324 "name": "separate", 3325 "description": "Selects the separated borders border model." 3326 } 3327 ], 3328 "syntax": "collapse | separate", 3329 "relevance": 75, 3330 "references": [ 3331 { 3332 "name": "MDN Reference", 3333 "url": "https://developer.mozilla.org/docs/Web/CSS/border-collapse" 3334 } 3335 ], 3336 "description": "Selects a table's border model.", 3337 "restrictions": [ 3338 "enum" 3339 ] 3340 }, 3341 { 3342 "name": "border-color", 3343 "values": [], 3344 "syntax": "<color>{1,4}", 3345 "relevance": 86, 3346 "references": [ 3347 { 3348 "name": "MDN Reference", 3349 "url": "https://developer.mozilla.org/docs/Web/CSS/border-color" 3350 } 3351 ], 3352 "description": "The color of the border around all four edges of an element.", 3353 "restrictions": [ 3354 "color" 3355 ] 3356 }, 3357 { 3358 "name": "border-image", 3359 "values": [ 3360 { 3361 "name": "auto", 3362 "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." 3363 }, 3364 { 3365 "name": "fill", 3366 "description": "Causes the middle part of the border-image to be preserved." 3367 }, 3368 { 3369 "name": "none", 3370 "description": "Use the border styles." 3371 }, 3372 { 3373 "name": "repeat", 3374 "description": "The image is tiled (repeated) to fill the area." 3375 }, 3376 { 3377 "name": "round", 3378 "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." 3379 }, 3380 { 3381 "name": "space", 3382 "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." 3383 }, 3384 { 3385 "name": "stretch", 3386 "description": "The image is stretched to fill the area." 3387 }, 3388 { 3389 "name": "url()" 3390 } 3391 ], 3392 "syntax": "<'border-image-source'> || <'border-image-slice'> [ / <'border-image-width'> | / <'border-image-width'>? / <'border-image-outset'> ]? || <'border-image-repeat'>", 3393 "relevance": 52, 3394 "references": [ 3395 { 3396 "name": "MDN Reference", 3397 "url": "https://developer.mozilla.org/docs/Web/CSS/border-image" 3398 } 3399 ], 3400 "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.", 3401 "restrictions": [ 3402 "length", 3403 "percentage", 3404 "number", 3405 "url", 3406 "enum" 3407 ] 3408 }, 3409 { 3410 "name": "border-image-outset", 3411 "syntax": "[ <length> | <number> ]{1,4}", 3412 "relevance": 50, 3413 "references": [ 3414 { 3415 "name": "MDN Reference", 3416 "url": "https://developer.mozilla.org/docs/Web/CSS/border-image-outset" 3417 } 3418 ], 3419 "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.", 3420 "restrictions": [ 3421 "length", 3422 "number" 3423 ] 3424 }, 3425 { 3426 "name": "border-image-repeat", 3427 "values": [ 3428 { 3429 "name": "repeat", 3430 "description": "The image is tiled (repeated) to fill the area." 3431 }, 3432 { 3433 "name": "round", 3434 "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." 3435 }, 3436 { 3437 "name": "space", 3438 "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." 3439 }, 3440 { 3441 "name": "stretch", 3442 "description": "The image is stretched to fill the area." 3443 } 3444 ], 3445 "syntax": "[ stretch | repeat | round | space ]{1,2}", 3446 "relevance": 51, 3447 "references": [ 3448 { 3449 "name": "MDN Reference", 3450 "url": "https://developer.mozilla.org/docs/Web/CSS/border-image-repeat" 3451 } 3452 ], 3453 "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.", 3454 "restrictions": [ 3455 "enum" 3456 ] 3457 }, 3458 { 3459 "name": "border-image-slice", 3460 "values": [ 3461 { 3462 "name": "fill", 3463 "description": "Causes the middle part of the border-image to be preserved." 3464 } 3465 ], 3466 "syntax": "<number-percentage>{1,4} && fill?", 3467 "relevance": 51, 3468 "references": [ 3469 { 3470 "name": "MDN Reference", 3471 "url": "https://developer.mozilla.org/docs/Web/CSS/border-image-slice" 3472 } 3473 ], 3474 "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.", 3475 "restrictions": [ 3476 "number", 3477 "percentage" 3478 ] 3479 }, 3480 { 3481 "name": "border-image-source", 3482 "values": [ 3483 { 3484 "name": "none", 3485 "description": "Use the border styles." 3486 } 3487 ], 3488 "syntax": "none | <image>", 3489 "relevance": 50, 3490 "references": [ 3491 { 3492 "name": "MDN Reference", 3493 "url": "https://developer.mozilla.org/docs/Web/CSS/border-image-source" 3494 } 3495 ], 3496 "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.", 3497 "restrictions": [ 3498 "image" 3499 ] 3500 }, 3501 { 3502 "name": "border-image-width", 3503 "values": [ 3504 { 3505 "name": "auto", 3506 "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." 3507 } 3508 ], 3509 "syntax": "[ <length-percentage> | <number> | auto ]{1,4}", 3510 "relevance": 51, 3511 "references": [ 3512 { 3513 "name": "MDN Reference", 3514 "url": "https://developer.mozilla.org/docs/Web/CSS/border-image-width" 3515 } 3516 ], 3517 "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.", 3518 "restrictions": [ 3519 "length", 3520 "percentage", 3521 "number" 3522 ] 3523 }, 3524 { 3525 "name": "border-inline-end", 3526 "browsers": [ 3527 "E79", 3528 "FF41", 3529 "S12.1", 3530 "C69", 3531 "O56" 3532 ], 3533 "syntax": "<'border-top-width'> || <'border-top-style'> || <'color'>", 3534 "relevance": 50, 3535 "references": [ 3536 { 3537 "name": "MDN Reference", 3538 "url": "https://developer.mozilla.org/docs/Web/CSS/border-inline-end" 3539 } 3540 ], 3541 "description": "Logical 'border-right'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.", 3542 "restrictions": [ 3543 "length", 3544 "line-width", 3545 "line-style", 3546 "color" 3547 ] 3548 }, 3549 { 3550 "name": "border-inline-start", 3551 "browsers": [ 3552 "E79", 3553 "FF41", 3554 "S12.1", 3555 "C69", 3556 "O56" 3557 ], 3558 "syntax": "<'border-top-width'> || <'border-top-style'> || <'color'>", 3559 "relevance": 50, 3560 "references": [ 3561 { 3562 "name": "MDN Reference", 3563 "url": "https://developer.mozilla.org/docs/Web/CSS/border-inline-start" 3564 } 3565 ], 3566 "description": "Logical 'border-left'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.", 3567 "restrictions": [ 3568 "length", 3569 "line-width", 3570 "line-style", 3571 "color" 3572 ] 3573 }, 3574 { 3575 "name": "border-inline-end-color", 3576 "browsers": [ 3577 "E79", 3578 "FF41", 3579 "S12.1", 3580 "C69", 3581 "O56" 3582 ], 3583 "syntax": "<'border-top-color'>", 3584 "relevance": 50, 3585 "references": [ 3586 { 3587 "name": "MDN Reference", 3588 "url": "https://developer.mozilla.org/docs/Web/CSS/border-inline-end-color" 3589 } 3590 ], 3591 "description": "Logical 'border-right-color'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.", 3592 "restrictions": [ 3593 "color" 3594 ] 3595 }, 3596 { 3597 "name": "border-inline-start-color", 3598 "browsers": [ 3599 "E79", 3600 "FF41", 3601 "S12.1", 3602 "C69", 3603 "O56" 3604 ], 3605 "syntax": "<'border-top-color'>", 3606 "relevance": 50, 3607 "references": [ 3608 { 3609 "name": "MDN Reference", 3610 "url": "https://developer.mozilla.org/docs/Web/CSS/border-inline-start-color" 3611 } 3612 ], 3613 "description": "Logical 'border-left-color'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.", 3614 "restrictions": [ 3615 "color" 3616 ] 3617 }, 3618 { 3619 "name": "border-inline-end-style", 3620 "browsers": [ 3621 "E79", 3622 "FF41", 3623 "S12.1", 3624 "C69", 3625 "O56" 3626 ], 3627 "syntax": "<'border-top-style'>", 3628 "relevance": 50, 3629 "references": [ 3630 { 3631 "name": "MDN Reference", 3632 "url": "https://developer.mozilla.org/docs/Web/CSS/border-inline-end-style" 3633 } 3634 ], 3635 "description": "Logical 'border-right-style'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.", 3636 "restrictions": [ 3637 "line-style" 3638 ] 3639 }, 3640 { 3641 "name": "border-inline-start-style", 3642 "browsers": [ 3643 "E79", 3644 "FF41", 3645 "S12.1", 3646 "C69", 3647 "O56" 3648 ], 3649 "syntax": "<'border-top-style'>", 3650 "relevance": 50, 3651 "references": [ 3652 { 3653 "name": "MDN Reference", 3654 "url": "https://developer.mozilla.org/docs/Web/CSS/border-inline-start-style" 3655 } 3656 ], 3657 "description": "Logical 'border-left-style'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.", 3658 "restrictions": [ 3659 "line-style" 3660 ] 3661 }, 3662 { 3663 "name": "border-inline-end-width", 3664 "browsers": [ 3665 "E79", 3666 "FF41", 3667 "S12.1", 3668 "C69", 3669 "O56" 3670 ], 3671 "syntax": "<'border-top-width'>", 3672 "relevance": 50, 3673 "references": [ 3674 { 3675 "name": "MDN Reference", 3676 "url": "https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width" 3677 } 3678 ], 3679 "description": "Logical 'border-right-width'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.", 3680 "restrictions": [ 3681 "length", 3682 "line-width" 3683 ] 3684 }, 3685 { 3686 "name": "border-inline-start-width", 3687 "browsers": [ 3688 "E79", 3689 "FF41", 3690 "S12.1", 3691 "C69", 3692 "O56" 3693 ], 3694 "syntax": "<'border-top-width'>", 3695 "relevance": 50, 3696 "references": [ 3697 { 3698 "name": "MDN Reference", 3699 "url": "https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width" 3700 } 3701 ], 3702 "description": "Logical 'border-left-width'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.", 3703 "restrictions": [ 3704 "length", 3705 "line-width" 3706 ] 3707 }, 3708 { 3709 "name": "border-left", 3710 "syntax": "<line-width> || <line-style> || <color>", 3711 "relevance": 82, 3712 "references": [ 3713 { 3714 "name": "MDN Reference", 3715 "url": "https://developer.mozilla.org/docs/Web/CSS/border-left" 3716 } 3717 ], 3718 "description": "Shorthand property for setting border width, style and color", 3719 "restrictions": [ 3720 "length", 3721 "line-width", 3722 "line-style", 3723 "color" 3724 ] 3725 }, 3726 { 3727 "name": "border-left-color", 3728 "syntax": "<color>", 3729 "relevance": 65, 3730 "references": [ 3731 { 3732 "name": "MDN Reference", 3733 "url": "https://developer.mozilla.org/docs/Web/CSS/border-left-color" 3734 } 3735 ], 3736 "description": "Sets the color of the left border.", 3737 "restrictions": [ 3738 "color" 3739 ] 3740 }, 3741 { 3742 "name": "border-left-style", 3743 "syntax": "<line-style>", 3744 "relevance": 54, 3745 "references": [ 3746 { 3747 "name": "MDN Reference", 3748 "url": "https://developer.mozilla.org/docs/Web/CSS/border-left-style" 3749 } 3750 ], 3751 "description": "Sets the style of the left border.", 3752 "restrictions": [ 3753 "line-style" 3754 ] 3755 }, 3756 { 3757 "name": "border-left-width", 3758 "syntax": "<line-width>", 3759 "relevance": 58, 3760 "references": [ 3761 { 3762 "name": "MDN Reference", 3763 "url": "https://developer.mozilla.org/docs/Web/CSS/border-left-width" 3764 } 3765 ], 3766 "description": "Sets the thickness of the left border.", 3767 "restrictions": [ 3768 "length", 3769 "line-width" 3770 ] 3771 }, 3772 { 3773 "name": "border-radius", 3774 "syntax": "<length-percentage>{1,4} [ / <length-percentage>{1,4} ]?", 3775 "relevance": 91, 3776 "references": [ 3777 { 3778 "name": "MDN Reference", 3779 "url": "https://developer.mozilla.org/docs/Web/CSS/border-radius" 3780 } 3781 ], 3782 "description": "Defines the radii of the outer border edge.", 3783 "restrictions": [ 3784 "length", 3785 "percentage" 3786 ] 3787 }, 3788 { 3789 "name": "border-right", 3790 "syntax": "<line-width> || <line-style> || <color>", 3791 "relevance": 81, 3792 "references": [ 3793 { 3794 "name": "MDN Reference", 3795 "url": "https://developer.mozilla.org/docs/Web/CSS/border-right" 3796 } 3797 ], 3798 "description": "Shorthand property for setting border width, style and color", 3799 "restrictions": [ 3800 "length", 3801 "line-width", 3802 "line-style", 3803 "color" 3804 ] 3805 }, 3806 { 3807 "name": "border-right-color", 3808 "syntax": "<color>", 3809 "relevance": 64, 3810 "references": [ 3811 { 3812 "name": "MDN Reference", 3813 "url": "https://developer.mozilla.org/docs/Web/CSS/border-right-color" 3814 } 3815 ], 3816 "description": "Sets the color of the right border.", 3817 "restrictions": [ 3818 "color" 3819 ] 3820 }, 3821 { 3822 "name": "border-right-style", 3823 "syntax": "<line-style>", 3824 "relevance": 54, 3825 "references": [ 3826 { 3827 "name": "MDN Reference", 3828 "url": "https://developer.mozilla.org/docs/Web/CSS/border-right-style" 3829 } 3830 ], 3831 "description": "Sets the style of the right border.", 3832 "restrictions": [ 3833 "line-style" 3834 ] 3835 }, 3836 { 3837 "name": "border-right-width", 3838 "syntax": "<line-width>", 3839 "relevance": 60, 3840 "references": [ 3841 { 3842 "name": "MDN Reference", 3843 "url": "https://developer.mozilla.org/docs/Web/CSS/border-right-width" 3844 } 3845 ], 3846 "description": "Sets the thickness of the right border.", 3847 "restrictions": [ 3848 "length", 3849 "line-width" 3850 ] 3851 }, 3852 { 3853 "name": "border-spacing", 3854 "syntax": "<length> <length>?", 3855 "relevance": 68, 3856 "references": [ 3857 { 3858 "name": "MDN Reference", 3859 "url": "https://developer.mozilla.org/docs/Web/CSS/border-spacing" 3860 } 3861 ], 3862 "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.", 3863 "restrictions": [ 3864 "length" 3865 ] 3866 }, 3867 { 3868 "name": "border-style", 3869 "values": [], 3870 "syntax": "<line-style>{1,4}", 3871 "relevance": 79, 3872 "references": [ 3873 { 3874 "name": "MDN Reference", 3875 "url": "https://developer.mozilla.org/docs/Web/CSS/border-style" 3876 } 3877 ], 3878 "description": "The style of the border around edges of an element.", 3879 "restrictions": [ 3880 "line-style" 3881 ] 3882 }, 3883 { 3884 "name": "border-top", 3885 "syntax": "<line-width> || <line-style> || <color>", 3886 "relevance": 87, 3887 "references": [ 3888 { 3889 "name": "MDN Reference", 3890 "url": "https://developer.mozilla.org/docs/Web/CSS/border-top" 3891 } 3892 ], 3893 "description": "Shorthand property for setting border width, style and color", 3894 "restrictions": [ 3895 "length", 3896 "line-width", 3897 "line-style", 3898 "color" 3899 ] 3900 }, 3901 { 3902 "name": "border-top-color", 3903 "syntax": "<color>", 3904 "relevance": 71, 3905 "references": [ 3906 { 3907 "name": "MDN Reference", 3908 "url": "https://developer.mozilla.org/docs/Web/CSS/border-top-color" 3909 } 3910 ], 3911 "description": "Sets the color of the top border.", 3912 "restrictions": [ 3913 "color" 3914 ] 3915 }, 3916 { 3917 "name": "border-top-left-radius", 3918 "syntax": "<length-percentage>{1,2}", 3919 "relevance": 74, 3920 "references": [ 3921 { 3922 "name": "MDN Reference", 3923 "url": "https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius" 3924 } 3925 ], 3926 "description": "Defines the radii of the top left outer border edge.", 3927 "restrictions": [ 3928 "length", 3929 "percentage" 3930 ] 3931 }, 3932 { 3933 "name": "border-top-right-radius", 3934 "syntax": "<length-percentage>{1,2}", 3935 "relevance": 72, 3936 "references": [ 3937 { 3938 "name": "MDN Reference", 3939 "url": "https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius" 3940 } 3941 ], 3942 "description": "Defines the radii of the top right outer border edge.", 3943 "restrictions": [ 3944 "length", 3945 "percentage" 3946 ] 3947 }, 3948 { 3949 "name": "border-top-style", 3950 "syntax": "<line-style>", 3951 "relevance": 57, 3952 "references": [ 3953 { 3954 "name": "MDN Reference", 3955 "url": "https://developer.mozilla.org/docs/Web/CSS/border-top-style" 3956 } 3957 ], 3958 "description": "Sets the style of the top border.", 3959 "restrictions": [ 3960 "line-style" 3961 ] 3962 }, 3963 { 3964 "name": "border-top-width", 3965 "syntax": "<line-width>", 3966 "relevance": 61, 3967 "references": [ 3968 { 3969 "name": "MDN Reference", 3970 "url": "https://developer.mozilla.org/docs/Web/CSS/border-top-width" 3971 } 3972 ], 3973 "description": "Sets the thickness of the top border.", 3974 "restrictions": [ 3975 "length", 3976 "line-width" 3977 ] 3978 }, 3979 { 3980 "name": "border-width", 3981 "values": [], 3982 "syntax": "<line-width>{1,4}", 3983 "relevance": 81, 3984 "references": [ 3985 { 3986 "name": "MDN Reference", 3987 "url": "https://developer.mozilla.org/docs/Web/CSS/border-width" 3988 } 3989 ], 3990 "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.", 3991 "restrictions": [ 3992 "length", 3993 "line-width" 3994 ] 3995 }, 3996 { 3997 "name": "bottom", 3998 "values": [ 3999 { 4000 "name": "auto", 4001 "description": "For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well" 4002 } 4003 ], 4004 "syntax": "<length> | <percentage> | auto", 4005 "relevance": 89, 4006 "references": [ 4007 { 4008 "name": "MDN Reference", 4009 "url": "https://developer.mozilla.org/docs/Web/CSS/bottom" 4010 } 4011 ], 4012 "description": "Specifies how far an absolutely positioned box's bottom margin edge is offset above the bottom edge of the box's 'containing block'.", 4013 "restrictions": [ 4014 "length", 4015 "percentage" 4016 ] 4017 }, 4018 { 4019 "name": "box-decoration-break", 4020 "browsers": [ 4021 "E79", 4022 "FF32", 4023 "S6.1", 4024 "C22", 4025 "O15" 4026 ], 4027 "values": [ 4028 { 4029 "name": "clone", 4030 "description": "Each box is independently wrapped with the border and padding." 4031 }, 4032 { 4033 "name": "slice", 4034 "description": "The effect is as though the element were rendered with no breaks present, and then sliced by the breaks afterward." 4035 } 4036 ], 4037 "syntax": "slice | clone", 4038 "relevance": 50, 4039 "references": [ 4040 { 4041 "name": "MDN Reference", 4042 "url": "https://developer.mozilla.org/docs/Web/CSS/box-decoration-break" 4043 } 4044 ], 4045 "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.", 4046 "restrictions": [ 4047 "enum" 4048 ] 4049 }, 4050 { 4051 "name": "box-shadow", 4052 "values": [ 4053 { 4054 "name": "inset", 4055 "description": "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)." 4056 }, 4057 { 4058 "name": "none", 4059 "description": "No shadow." 4060 } 4061 ], 4062 "syntax": "none | <shadow>#", 4063 "relevance": 89, 4064 "references": [ 4065 { 4066 "name": "MDN Reference", 4067 "url": "https://developer.mozilla.org/docs/Web/CSS/box-shadow" 4068 } 4069 ], 4070 "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.", 4071 "restrictions": [ 4072 "length", 4073 "color", 4074 "enum" 4075 ] 4076 }, 4077 { 4078 "name": "box-sizing", 4079 "values": [ 4080 { 4081 "name": "border-box", 4082 "description": "The specified width and height (and respective min/max properties) on this element determine the border box of the element." 4083 }, 4084 { 4085 "name": "content-box", 4086 "description": "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." 4087 } 4088 ], 4089 "syntax": "content-box | border-box", 4090 "relevance": 92, 4091 "references": [ 4092 { 4093 "name": "MDN Reference", 4094 "url": "https://developer.mozilla.org/docs/Web/CSS/box-sizing" 4095 } 4096 ], 4097 "description": "Specifies the behavior of the 'width' and 'height' properties.", 4098 "restrictions": [ 4099 "enum" 4100 ] 4101 }, 4102 { 4103 "name": "break-after", 4104 "values": [ 4105 { 4106 "name": "always", 4107 "description": "Always force a page break before/after the generated box." 4108 }, 4109 { 4110 "name": "auto", 4111 "description": "Neither force nor forbid a page/column break before/after the principal box." 4112 }, 4113 { 4114 "name": "avoid", 4115 "description": "Avoid a break before/after the principal box." 4116 }, 4117 { 4118 "name": "avoid-column", 4119 "description": "Avoid a column break before/after the principal box." 4120 }, 4121 { 4122 "name": "avoid-page", 4123 "description": "Avoid a page break before/after the principal box." 4124 }, 4125 { 4126 "name": "column", 4127 "description": "Always force a column break before/after the principal box." 4128 }, 4129 { 4130 "name": "left", 4131 "description": "Force one or two page breaks before/after the generated box so that the next page is formatted as a left page." 4132 }, 4133 { 4134 "name": "page", 4135 "description": "Always force a page break before/after the principal box." 4136 }, 4137 { 4138 "name": "right", 4139 "description": "Force one or two page breaks before/after the generated box so that the next page is formatted as a right page." 4140 } 4141 ], 4142 "syntax": "auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region", 4143 "relevance": 50, 4144 "description": "Describes the page/column/region break behavior after the generated box.", 4145 "restrictions": [ 4146 "enum" 4147 ] 4148 }, 4149 { 4150 "name": "break-before", 4151 "values": [ 4152 { 4153 "name": "always", 4154 "description": "Always force a page break before/after the generated box." 4155 }, 4156 { 4157 "name": "auto", 4158 "description": "Neither force nor forbid a page/column break before/after the principal box." 4159 }, 4160 { 4161 "name": "avoid", 4162 "description": "Avoid a break before/after the principal box." 4163 }, 4164 { 4165 "name": "avoid-column", 4166 "description": "Avoid a column break before/after the principal box." 4167 }, 4168 { 4169 "name": "avoid-page", 4170 "description": "Avoid a page break before/after the principal box." 4171 }, 4172 { 4173 "name": "column", 4174 "description": "Always force a column break before/after the principal box." 4175 }, 4176 { 4177 "name": "left", 4178 "description": "Force one or two page breaks before/after the generated box so that the next page is formatted as a left page." 4179 }, 4180 { 4181 "name": "page", 4182 "description": "Always force a page break before/after the principal box." 4183 }, 4184 { 4185 "name": "right", 4186 "description": "Force one or two page breaks before/after the generated box so that the next page is formatted as a right page." 4187 } 4188 ], 4189 "syntax": "auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region", 4190 "relevance": 50, 4191 "description": "Describes the page/column/region break behavior before the generated box.", 4192 "restrictions": [ 4193 "enum" 4194 ] 4195 }, 4196 { 4197 "name": "break-inside", 4198 "values": [ 4199 { 4200 "name": "auto", 4201 "description": "Impose no additional breaking constraints within the box." 4202 }, 4203 { 4204 "name": "avoid", 4205 "description": "Avoid breaks within the box." 4206 }, 4207 { 4208 "name": "avoid-column", 4209 "description": "Avoid a column break within the box." 4210 }, 4211 { 4212 "name": "avoid-page", 4213 "description": "Avoid a page break within the box." 4214 } 4215 ], 4216 "syntax": "auto | avoid | avoid-page | avoid-column | avoid-region", 4217 "relevance": 50, 4218 "description": "Describes the page/column/region break behavior inside the principal box.", 4219 "restrictions": [ 4220 "enum" 4221 ] 4222 }, 4223 { 4224 "name": "caption-side", 4225 "values": [ 4226 { 4227 "name": "bottom", 4228 "description": "Positions the caption box below the table box." 4229 }, 4230 { 4231 "name": "top", 4232 "description": "Positions the caption box above the table box." 4233 } 4234 ], 4235 "syntax": "top | bottom | block-start | block-end | inline-start | inline-end", 4236 "relevance": 51, 4237 "references": [ 4238 { 4239 "name": "MDN Reference", 4240 "url": "https://developer.mozilla.org/docs/Web/CSS/caption-side" 4241 } 4242 ], 4243 "description": "Specifies the position of the caption box with respect to the table box.", 4244 "restrictions": [ 4245 "enum" 4246 ] 4247 }, 4248 { 4249 "name": "caret-color", 4250 "browsers": [ 4251 "E79", 4252 "FF53", 4253 "S11.1", 4254 "C57", 4255 "O44" 4256 ], 4257 "values": [ 4258 { 4259 "name": "auto", 4260 "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." 4261 } 4262 ], 4263 "syntax": "auto | <color>", 4264 "relevance": 51, 4265 "references": [ 4266 { 4267 "name": "MDN Reference", 4268 "url": "https://developer.mozilla.org/docs/Web/CSS/caret-color" 4269 } 4270 ], 4271 "description": "Controls the color of the text insertion indicator.", 4272 "restrictions": [ 4273 "color", 4274 "enum" 4275 ] 4276 }, 4277 { 4278 "name": "clear", 4279 "values": [ 4280 { 4281 "name": "both", 4282 "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." 4283 }, 4284 { 4285 "name": "left", 4286 "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." 4287 }, 4288 { 4289 "name": "none", 4290 "description": "No constraint on the box's position with respect to floats." 4291 }, 4292 { 4293 "name": "right", 4294 "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." 4295 } 4296 ], 4297 "syntax": "none | left | right | both | inline-start | inline-end", 4298 "relevance": 84, 4299 "references": [ 4300 { 4301 "name": "MDN Reference", 4302 "url": "https://developer.mozilla.org/docs/Web/CSS/clear" 4303 } 4304 ], 4305 "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.", 4306 "restrictions": [ 4307 "enum" 4308 ] 4309 }, 4310 { 4311 "name": "clip", 4312 "values": [ 4313 { 4314 "name": "auto", 4315 "description": "The element does not clip." 4316 }, 4317 { 4318 "name": "rect()", 4319 "description": "Specifies offsets from the edges of the border box." 4320 } 4321 ], 4322 "syntax": "<shape> | auto", 4323 "relevance": 73, 4324 "references": [ 4325 { 4326 "name": "MDN Reference", 4327 "url": "https://developer.mozilla.org/docs/Web/CSS/clip" 4328 } 4329 ], 4330 "description": "Deprecated. Use the 'clip-path' property when support allows. Defines the visible portion of an element’s box.", 4331 "restrictions": [ 4332 "enum" 4333 ] 4334 }, 4335 { 4336 "name": "clip-path", 4337 "values": [ 4338 { 4339 "name": "none", 4340 "description": "No clipping path gets created." 4341 }, 4342 { 4343 "name": "url()", 4344 "description": "References a <clipPath> element to create a clipping path." 4345 } 4346 ], 4347 "syntax": "<clip-source> | [ <basic-shape> || <geometry-box> ] | none", 4348 "relevance": 55, 4349 "references": [ 4350 { 4351 "name": "MDN Reference", 4352 "url": "https://developer.mozilla.org/docs/Web/CSS/clip-path" 4353 } 4354 ], 4355 "description": "Specifies a clipping path where everything inside the path is visible and everything outside is clipped out.", 4356 "restrictions": [ 4357 "url", 4358 "shape", 4359 "geometry-box", 4360 "enum" 4361 ] 4362 }, 4363 { 4364 "name": "clip-rule", 4365 "browsers": [ 4366 "E", 4367 "C5", 4368 "FF3", 4369 "IE10", 4370 "O9", 4371 "S6" 4372 ], 4373 "values": [ 4374 { 4375 "name": "evenodd", 4376 "description": "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." 4377 }, 4378 { 4379 "name": "nonzero", 4380 "description": "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." 4381 } 4382 ], 4383 "relevance": 50, 4384 "description": "Indicates the algorithm which is to be used to determine what parts of the canvas are included inside the shape.", 4385 "restrictions": [ 4386 "enum" 4387 ] 4388 }, 4389 { 4390 "name": "color", 4391 "syntax": "<color>", 4392 "relevance": 94, 4393 "references": [ 4394 { 4395 "name": "MDN Reference", 4396 "url": "https://developer.mozilla.org/docs/Web/CSS/color" 4397 } 4398 ], 4399 "description": "Sets the color of an element's text", 4400 "restrictions": [ 4401 "color" 4402 ] 4403 }, 4404 { 4405 "name": "color-interpolation-filters", 4406 "browsers": [ 4407 "E", 4408 "C5", 4409 "FF3", 4410 "IE10", 4411 "O9", 4412 "S6" 4413 ], 4414 "values": [ 4415 { 4416 "name": "auto", 4417 "description": "Color operations are not required to occur in a particular color space." 4418 }, 4419 { 4420 "name": "linearRGB", 4421 "description": "Color operations should occur in the linearized RGB color space." 4422 }, 4423 { 4424 "name": "sRGB", 4425 "description": "Color operations should occur in the sRGB color space." 4426 } 4427 ], 4428 "relevance": 50, 4429 "description": "Specifies the color space for imaging operations performed via filter effects.", 4430 "restrictions": [ 4431 "enum" 4432 ] 4433 }, 4434 { 4435 "name": "column-count", 4436 "values": [ 4437 { 4438 "name": "auto", 4439 "description": "Determines the number of columns by the 'column-width' property and the element width." 4440 } 4441 ], 4442 "syntax": "<integer> | auto", 4443 "relevance": 52, 4444 "references": [ 4445 { 4446 "name": "MDN Reference", 4447 "url": "https://developer.mozilla.org/docs/Web/CSS/column-count" 4448 } 4449 ], 4450 "description": "Describes the optimal number of columns into which the content of the element will be flowed.", 4451 "restrictions": [ 4452 "integer", 4453 "enum" 4454 ] 4455 }, 4456 { 4457 "name": "column-fill", 4458 "values": [ 4459 { 4460 "name": "auto", 4461 "description": "Fills columns sequentially." 4462 }, 4463 { 4464 "name": "balance", 4465 "description": "Balance content equally between columns, if possible." 4466 } 4467 ], 4468 "syntax": "auto | balance | balance-all", 4469 "relevance": 50, 4470 "references": [ 4471 { 4472 "name": "MDN Reference", 4473 "url": "https://developer.mozilla.org/docs/Web/CSS/column-fill" 4474 } 4475 ], 4476 "description": "In continuous media, this property will only be consulted if the length of columns has been constrained. Otherwise, columns will automatically be balanced.", 4477 "restrictions": [ 4478 "enum" 4479 ] 4480 }, 4481 { 4482 "name": "column-gap", 4483 "values": [ 4484 { 4485 "name": "normal", 4486 "description": "User agent specific and typically equivalent to 1em." 4487 } 4488 ], 4489 "syntax": "normal | <length-percentage>", 4490 "relevance": 52, 4491 "description": "Sets the gap between columns. If there is a column rule between columns, it will appear in the middle of the gap.", 4492 "restrictions": [ 4493 "length", 4494 "enum" 4495 ] 4496 }, 4497 { 4498 "name": "column-rule", 4499 "syntax": "<'column-rule-width'> || <'column-rule-style'> || <'column-rule-color'>", 4500 "relevance": 51, 4501 "references": [ 4502 { 4503 "name": "MDN Reference", 4504 "url": "https://developer.mozilla.org/docs/Web/CSS/column-rule" 4505 } 4506 ], 4507 "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.", 4508 "restrictions": [ 4509 "length", 4510 "line-width", 4511 "line-style", 4512 "color" 4513 ] 4514 }, 4515 { 4516 "name": "column-rule-color", 4517 "syntax": "<color>", 4518 "relevance": 50, 4519 "references": [ 4520 { 4521 "name": "MDN Reference", 4522 "url": "https://developer.mozilla.org/docs/Web/CSS/column-rule-color" 4523 } 4524 ], 4525 "description": "Sets the color of the column rule", 4526 "restrictions": [ 4527 "color" 4528 ] 4529 }, 4530 { 4531 "name": "column-rule-style", 4532 "syntax": "<'border-style'>", 4533 "relevance": 50, 4534 "references": [ 4535 { 4536 "name": "MDN Reference", 4537 "url": "https://developer.mozilla.org/docs/Web/CSS/column-rule-style" 4538 } 4539 ], 4540 "description": "Sets the style of the rule between columns of an element.", 4541 "restrictions": [ 4542 "line-style" 4543 ] 4544 }, 4545 { 4546 "name": "column-rule-width", 4547 "syntax": "<'border-width'>", 4548 "relevance": 50, 4549 "references": [ 4550 { 4551 "name": "MDN Reference", 4552 "url": "https://developer.mozilla.org/docs/Web/CSS/column-rule-width" 4553 } 4554 ], 4555 "description": "Sets the width of the rule between columns. Negative values are not allowed.", 4556 "restrictions": [ 4557 "length", 4558 "line-width" 4559 ] 4560 }, 4561 { 4562 "name": "columns", 4563 "values": [ 4564 { 4565 "name": "auto", 4566 "description": "The width depends on the values of other properties." 4567 } 4568 ], 4569 "syntax": "<'column-width'> || <'column-count'>", 4570 "relevance": 51, 4571 "references": [ 4572 { 4573 "name": "MDN Reference", 4574 "url": "https://developer.mozilla.org/docs/Web/CSS/columns" 4575 } 4576 ], 4577 "description": "A shorthand property which sets both 'column-width' and 'column-count'.", 4578 "restrictions": [ 4579 "length", 4580 "integer", 4581 "enum" 4582 ] 4583 }, 4584 { 4585 "name": "column-span", 4586 "values": [ 4587 { 4588 "name": "all", 4589 "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." 4590 }, 4591 { 4592 "name": "none", 4593 "description": "The element does not span multiple columns." 4594 } 4595 ], 4596 "syntax": "none | all", 4597 "relevance": 50, 4598 "references": [ 4599 { 4600 "name": "MDN Reference", 4601 "url": "https://developer.mozilla.org/docs/Web/CSS/column-span" 4602 } 4603 ], 4604 "description": "Describes the page/column break behavior after the generated box.", 4605 "restrictions": [ 4606 "enum" 4607 ] 4608 }, 4609 { 4610 "name": "column-width", 4611 "values": [ 4612 { 4613 "name": "auto", 4614 "description": "The width depends on the values of other properties." 4615 } 4616 ], 4617 "syntax": "<length> | auto", 4618 "relevance": 51, 4619 "references": [ 4620 { 4621 "name": "MDN Reference", 4622 "url": "https://developer.mozilla.org/docs/Web/CSS/column-width" 4623 } 4624 ], 4625 "description": "Describes the width of columns in multicol elements.", 4626 "restrictions": [ 4627 "length", 4628 "enum" 4629 ] 4630 }, 4631 { 4632 "name": "contain", 4633 "browsers": [ 4634 "E79", 4635 "FF69", 4636 "C52", 4637 "O40" 4638 ], 4639 "values": [ 4640 { 4641 "name": "none", 4642 "description": "Indicates that the property has no effect." 4643 }, 4644 { 4645 "name": "strict", 4646 "description": "Turns on all forms of containment for the element." 4647 }, 4648 { 4649 "name": "content", 4650 "description": "All containment rules except size are applied to the element." 4651 }, 4652 { 4653 "name": "size", 4654 "description": "For properties that can have effects on more than just an element and its descendants, those effects don't escape the containing element." 4655 }, 4656 { 4657 "name": "layout", 4658 "description": "Turns on layout containment for the element." 4659 }, 4660 { 4661 "name": "style", 4662 "description": "Turns on style containment for the element." 4663 }, 4664 { 4665 "name": "paint", 4666 "description": "Turns on paint containment for the element." 4667 } 4668 ], 4669 "syntax": "none | strict | content | [ size || layout || style || paint ]", 4670 "relevance": 55, 4671 "references": [ 4672 { 4673 "name": "MDN Reference", 4674 "url": "https://developer.mozilla.org/docs/Web/CSS/contain" 4675 } 4676 ], 4677 "description": "Indicates that an element and its contents are, as much as possible, independent of the rest of the document tree.", 4678 "restrictions": [ 4679 "enum" 4680 ] 4681 }, 4682 { 4683 "name": "content", 4684 "values": [ 4685 { 4686 "name": "attr()", 4687 "description": "The attr(n) function returns as a string the value of attribute n for the subject of the selector." 4688 }, 4689 { 4690 "name": "counter(name)", 4691 "description": "Counters are denoted by identifiers (see the 'counter-increment' and 'counter-reset' properties)." 4692 }, 4693 { 4694 "name": "icon", 4695 "description": "The (pseudo-)element is replaced in its entirety by the resource referenced by its 'icon' property, and treated as a replaced element." 4696 }, 4697 { 4698 "name": "none", 4699 "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." 4700 }, 4701 { 4702 "name": "normal", 4703 "description": "See http://www.w3.org/TR/css3-content/#content for computation rules." 4704 }, 4705 { 4706 "name": "url()" 4707 } 4708 ], 4709 "syntax": "normal | none | [ <content-replacement> | <content-list> ] [/ <string> ]?", 4710 "relevance": 89, 4711 "references": [ 4712 { 4713 "name": "MDN Reference", 4714 "url": "https://developer.mozilla.org/docs/Web/CSS/content" 4715 } 4716 ], 4717 "description": "Determines which page-based occurrence of a given element is applied to a counter or string value.", 4718 "restrictions": [ 4719 "string", 4720 "url" 4721 ] 4722 }, 4723 { 4724 "name": "counter-increment", 4725 "values": [ 4726 { 4727 "name": "none", 4728 "description": "This element does not alter the value of any counters." 4729 } 4730 ], 4731 "syntax": "[ <custom-ident> <integer>? ]+ | none", 4732 "relevance": 52, 4733 "references": [ 4734 { 4735 "name": "MDN Reference", 4736 "url": "https://developer.mozilla.org/docs/Web/CSS/counter-increment" 4737 } 4738 ], 4739 "description": "Manipulate the value of existing counters.", 4740 "restrictions": [ 4741 "identifier", 4742 "integer" 4743 ] 4744 }, 4745 { 4746 "name": "counter-reset", 4747 "values": [ 4748 { 4749 "name": "none", 4750 "description": "The counter is not modified." 4751 } 4752 ], 4753 "syntax": "[ <custom-ident> <integer>? ]+ | none", 4754 "relevance": 52, 4755 "references": [ 4756 { 4757 "name": "MDN Reference", 4758 "url": "https://developer.mozilla.org/docs/Web/CSS/counter-reset" 4759 } 4760 ], 4761 "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.", 4762 "restrictions": [ 4763 "identifier", 4764 "integer" 4765 ] 4766 }, 4767 { 4768 "name": "cursor", 4769 "values": [ 4770 { 4771 "name": "alias", 4772 "description": "Indicates an alias of/shortcut to something is to be created. Often rendered as an arrow with a small curved arrow next to it." 4773 }, 4774 { 4775 "name": "all-scroll", 4776 "description": "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." 4777 }, 4778 { 4779 "name": "auto", 4780 "description": "The UA determines the cursor to display based on the current context." 4781 }, 4782 { 4783 "name": "cell", 4784 "description": "Indicates that a cell or set of cells may be selected. Often rendered as a thick plus-sign with a dot in the middle." 4785 }, 4786 { 4787 "name": "col-resize", 4788 "description": "Indicates that the item/column can be resized horizontally. Often rendered as arrows pointing left and right with a vertical bar separating them." 4789 }, 4790 { 4791 "name": "context-menu", 4792 "description": "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." 4793 }, 4794 { 4795 "name": "copy", 4796 "description": "Indicates something is to be copied. Often rendered as an arrow with a small plus sign next to it." 4797 }, 4798 { 4799 "name": "crosshair", 4800 "description": "A simple crosshair (e.g., short line segments resembling a '+' sign). Often used to indicate a two dimensional bitmap selection mode." 4801 }, 4802 { 4803 "name": "default", 4804 "description": "The platform-dependent default cursor. Often rendered as an arrow." 4805 }, 4806 { 4807 "name": "e-resize", 4808 "description": "Indicates that east edge is to be moved." 4809 }, 4810 { 4811 "name": "ew-resize", 4812 "description": "Indicates a bidirectional east-west resize cursor." 4813 }, 4814 { 4815 "name": "grab", 4816 "description": "Indicates that something can be grabbed." 4817 }, 4818 { 4819 "name": "grabbing", 4820 "description": "Indicates that something is being grabbed." 4821 }, 4822 { 4823 "name": "help", 4824 "description": "Help is available for the object under the cursor. Often rendered as a question mark or a balloon." 4825 }, 4826 { 4827 "name": "move", 4828 "description": "Indicates something is to be moved." 4829 }, 4830 { 4831 "name": "-moz-grab", 4832 "description": "Indicates that something can be grabbed." 4833 }, 4834 { 4835 "name": "-moz-grabbing", 4836 "description": "Indicates that something is being grabbed." 4837 }, 4838 { 4839 "name": "-moz-zoom-in", 4840 "description": "Indicates that something can be zoomed (magnified) in." 4841 }, 4842 { 4843 "name": "-moz-zoom-out", 4844 "description": "Indicates that something can be zoomed (magnified) out." 4845 }, 4846 { 4847 "name": "ne-resize", 4848 "description": "Indicates that movement starts from north-east corner." 4849 }, 4850 { 4851 "name": "nesw-resize", 4852 "description": "Indicates a bidirectional north-east/south-west cursor." 4853 }, 4854 { 4855 "name": "no-drop", 4856 "description": "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." 4857 }, 4858 { 4859 "name": "none", 4860 "description": "No cursor is rendered for the element." 4861 }, 4862 { 4863 "name": "not-allowed", 4864 "description": "Indicates that the requested action will not be carried out. Often rendered as a circle with a line through it." 4865 }, 4866 { 4867 "name": "n-resize", 4868 "description": "Indicates that north edge is to be moved." 4869 }, 4870 { 4871 "name": "ns-resize", 4872 "description": "Indicates a bidirectional north-south cursor." 4873 }, 4874 { 4875 "name": "nw-resize", 4876 "description": "Indicates that movement starts from north-west corner." 4877 }, 4878 { 4879 "name": "nwse-resize", 4880 "description": "Indicates a bidirectional north-west/south-east cursor." 4881 }, 4882 { 4883 "name": "pointer", 4884 "description": "The cursor is a pointer that indicates a link." 4885 }, 4886 { 4887 "name": "progress", 4888 "description": "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." 4889 }, 4890 { 4891 "name": "row-resize", 4892 "description": "Indicates that the item/row can be resized vertically. Often rendered as arrows pointing up and down with a horizontal bar separating them." 4893 }, 4894 { 4895 "name": "se-resize", 4896 "description": "Indicates that movement starts from south-east corner." 4897 }, 4898 { 4899 "name": "s-resize", 4900 "description": "Indicates that south edge is to be moved." 4901 }, 4902 { 4903 "name": "sw-resize", 4904 "description": "Indicates that movement starts from south-west corner." 4905 }, 4906 { 4907 "name": "text", 4908 "description": "Indicates text that may be selected. Often rendered as a vertical I-beam." 4909 }, 4910 { 4911 "name": "vertical-text", 4912 "description": "Indicates vertical-text that may be selected. Often rendered as a horizontal I-beam." 4913 }, 4914 { 4915 "name": "wait", 4916 "description": "Indicates that the program is busy and the user should wait. Often rendered as a watch or hourglass." 4917 }, 4918 { 4919 "name": "-webkit-grab", 4920 "description": "Indicates that something can be grabbed." 4921 }, 4922 { 4923 "name": "-webkit-grabbing", 4924 "description": "Indicates that something is being grabbed." 4925 }, 4926 { 4927 "name": "-webkit-zoom-in", 4928 "description": "Indicates that something can be zoomed (magnified) in." 4929 }, 4930 { 4931 "name": "-webkit-zoom-out", 4932 "description": "Indicates that something can be zoomed (magnified) out." 4933 }, 4934 { 4935 "name": "w-resize", 4936 "description": "Indicates that west edge is to be moved." 4937 }, 4938 { 4939 "name": "zoom-in", 4940 "description": "Indicates that something can be zoomed (magnified) in." 4941 }, 4942 { 4943 "name": "zoom-out", 4944 "description": "Indicates that something can be zoomed (magnified) out." 4945 } 4946 ], 4947 "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 ] ]", 4948 "relevance": 91, 4949 "references": [ 4950 { 4951 "name": "MDN Reference", 4952 "url": "https://developer.mozilla.org/docs/Web/CSS/cursor" 4953 } 4954 ], 4955 "description": "Allows control over cursor appearance in an element", 4956 "restrictions": [ 4957 "url", 4958 "number", 4959 "enum" 4960 ] 4961 }, 4962 { 4963 "name": "direction", 4964 "values": [ 4965 { 4966 "name": "ltr", 4967 "description": "Left-to-right direction." 4968 }, 4969 { 4970 "name": "rtl", 4971 "description": "Right-to-left direction." 4972 } 4973 ], 4974 "syntax": "ltr | rtl", 4975 "relevance": 68, 4976 "references": [ 4977 { 4978 "name": "MDN Reference", 4979 "url": "https://developer.mozilla.org/docs/Web/CSS/direction" 4980 } 4981 ], 4982 "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.", 4983 "restrictions": [ 4984 "enum" 4985 ] 4986 }, 4987 { 4988 "name": "display", 4989 "values": [ 4990 { 4991 "name": "block", 4992 "description": "The element generates a block-level box" 4993 }, 4994 { 4995 "name": "contents", 4996 "description": "The element itself does not generate any boxes, but its children and pseudo-elements still generate boxes as normal." 4997 }, 4998 { 4999 "name": "flex", 5000 "description": "The element generates a principal flex container box and establishes a flex formatting context." 5001 }, 5002 { 5003 "name": "flexbox", 5004 "description": "The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'." 5005 }, 5006 { 5007 "name": "flow-root", 5008 "description": "The element generates a block container box, and lays out its contents using flow layout." 5009 }, 5010 { 5011 "name": "grid", 5012 "description": "The element generates a principal grid container box, and establishes a grid formatting context." 5013 }, 5014 { 5015 "name": "inline", 5016 "description": "The element generates an inline-level box." 5017 }, 5018 { 5019 "name": "inline-block", 5020 "description": "A block box, which itself is flowed as a single inline box, similar to a replaced element. The inside of an inline-block is formatted as a block box, and the box itself is formatted as an inline box." 5021 }, 5022 { 5023 "name": "inline-flex", 5024 "description": "Inline-level flex container." 5025 }, 5026 { 5027 "name": "inline-flexbox", 5028 "description": "Inline-level flex container. Standardized as 'inline-flex'" 5029 }, 5030 { 5031 "name": "inline-table", 5032 "description": "Inline-level table wrapper box containing table box." 5033 }, 5034 { 5035 "name": "list-item", 5036 "description": "One or more block boxes and one marker box." 5037 }, 5038 { 5039 "name": "-moz-box", 5040 "description": "The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'." 5041 }, 5042 { 5043 "name": "-moz-deck" 5044 }, 5045 { 5046 "name": "-moz-grid" 5047 }, 5048 { 5049 "name": "-moz-grid-group" 5050 }, 5051 { 5052 "name": "-moz-grid-line" 5053 }, 5054 { 5055 "name": "-moz-groupbox" 5056 }, 5057 { 5058 "name": "-moz-inline-box", 5059 "description": "Inline-level flex container. Standardized as 'inline-flex'" 5060 }, 5061 { 5062 "name": "-moz-inline-grid" 5063 }, 5064 { 5065 "name": "-moz-inline-stack" 5066 }, 5067 { 5068 "name": "-moz-marker" 5069 }, 5070 { 5071 "name": "-moz-popup" 5072 }, 5073 { 5074 "name": "-moz-stack" 5075 }, 5076 { 5077 "name": "-ms-flexbox", 5078 "description": "The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'." 5079 }, 5080 { 5081 "name": "-ms-grid", 5082 "description": "The element generates a principal grid container box, and establishes a grid formatting context." 5083 }, 5084 { 5085 "name": "-ms-inline-flexbox", 5086 "description": "Inline-level flex container. Standardized as 'inline-flex'" 5087 }, 5088 { 5089 "name": "-ms-inline-grid", 5090 "description": "Inline-level grid container." 5091 }, 5092 { 5093 "name": "none", 5094 "description": "The element and its descendants generates no boxes." 5095 }, 5096 { 5097 "name": "ruby", 5098 "description": "The element generates a principal ruby container box, and establishes a ruby formatting context." 5099 }, 5100 { 5101 "name": "ruby-base" 5102 }, 5103 { 5104 "name": "ruby-base-container" 5105 }, 5106 { 5107 "name": "ruby-text" 5108 }, 5109 { 5110 "name": "ruby-text-container" 5111 }, 5112 { 5113 "name": "run-in", 5114 "description": "The element generates a run-in box. Run-in elements act like inlines or blocks, depending on the surrounding elements." 5115 }, 5116 { 5117 "name": "table", 5118 "description": "The element generates a principal table wrapper box containing an additionally-generated table box, and establishes a table formatting context." 5119 }, 5120 { 5121 "name": "table-caption" 5122 }, 5123 { 5124 "name": "table-cell" 5125 }, 5126 { 5127 "name": "table-column" 5128 }, 5129 { 5130 "name": "table-column-group" 5131 }, 5132 { 5133 "name": "table-footer-group" 5134 }, 5135 { 5136 "name": "table-header-group" 5137 }, 5138 { 5139 "name": "table-row" 5140 }, 5141 { 5142 "name": "table-row-group" 5143 }, 5144 { 5145 "name": "-webkit-box", 5146 "description": "The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'." 5147 }, 5148 { 5149 "name": "-webkit-flex", 5150 "description": "The element lays out its contents using flow layout (block-and-inline layout)." 5151 }, 5152 { 5153 "name": "-webkit-inline-box", 5154 "description": "Inline-level flex container. Standardized as 'inline-flex'" 5155 }, 5156 { 5157 "name": "-webkit-inline-flex", 5158 "description": "Inline-level flex container." 5159 } 5160 ], 5161 "syntax": "[ <display-outside> || <display-inside> ] | <display-listitem> | <display-internal> | <display-box> | <display-legacy>", 5162 "relevance": 96, 5163 "references": [ 5164 { 5165 "name": "MDN Reference", 5166 "url": "https://developer.mozilla.org/docs/Web/CSS/display" 5167 } 5168 ], 5169 "description": "In combination with 'float' and 'position', determines the type of box or boxes that are generated for an element.", 5170 "restrictions": [ 5171 "enum" 5172 ] 5173 }, 5174 { 5175 "name": "empty-cells", 5176 "values": [ 5177 { 5178 "name": "hide", 5179 "description": "No borders or backgrounds are drawn around/behind empty cells." 5180 }, 5181 { 5182 "name": "-moz-show-background" 5183 }, 5184 { 5185 "name": "show", 5186 "description": "Borders and backgrounds are drawn around/behind empty cells (like normal cells)." 5187 } 5188 ], 5189 "syntax": "show | hide", 5190 "relevance": 51, 5191 "references": [ 5192 { 5193 "name": "MDN Reference", 5194 "url": "https://developer.mozilla.org/docs/Web/CSS/empty-cells" 5195 } 5196 ], 5197 "description": "In the separated borders model, this property controls the rendering of borders and backgrounds around cells that have no visible content.", 5198 "restrictions": [ 5199 "enum" 5200 ] 5201 }, 5202 { 5203 "name": "enable-background", 5204 "values": [ 5205 { 5206 "name": "accumulate", 5207 "description": "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." 5208 }, 5209 { 5210 "name": "new", 5211 "description": "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." 5212 } 5213 ], 5214 "relevance": 50, 5215 "description": "Deprecated. Use 'isolation' property instead when support allows. Specifies how the accumulation of the background image is managed.", 5216 "restrictions": [ 5217 "integer", 5218 "length", 5219 "percentage", 5220 "enum" 5221 ] 5222 }, 5223 { 5224 "name": "fallback", 5225 "browsers": [ 5226 "FF33" 5227 ], 5228 "syntax": "<counter-style-name>", 5229 "relevance": 50, 5230 "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.", 5231 "restrictions": [ 5232 "identifier" 5233 ] 5234 }, 5235 { 5236 "name": "fill", 5237 "values": [ 5238 { 5239 "name": "url()", 5240 "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’." 5241 }, 5242 { 5243 "name": "none", 5244 "description": "No paint is applied in this layer." 5245 } 5246 ], 5247 "relevance": 74, 5248 "description": "Paints the interior of the given graphical element.", 5249 "restrictions": [ 5250 "color", 5251 "enum", 5252 "url" 5253 ] 5254 }, 5255 { 5256 "name": "fill-opacity", 5257 "relevance": 52, 5258 "description": "Specifies the opacity of the painting operation used to paint the interior the current object.", 5259 "restrictions": [ 5260 "number(0-1)" 5261 ] 5262 }, 5263 { 5264 "name": "fill-rule", 5265 "values": [ 5266 { 5267 "name": "evenodd", 5268 "description": "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." 5269 }, 5270 { 5271 "name": "nonzero", 5272 "description": "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." 5273 } 5274 ], 5275 "relevance": 50, 5276 "description": "Indicates the algorithm (or winding rule) which is to be used to determine what parts of the canvas are included inside the shape.", 5277 "restrictions": [ 5278 "enum" 5279 ] 5280 }, 5281 { 5282 "name": "filter", 5283 "browsers": [ 5284 "E12", 5285 "FF35", 5286 "S9.1", 5287 "C53", 5288 "O40" 5289 ], 5290 "values": [ 5291 { 5292 "name": "none", 5293 "description": "No filter effects are applied." 5294 }, 5295 { 5296 "name": "blur()", 5297 "description": "Applies a Gaussian blur to the input image." 5298 }, 5299 { 5300 "name": "brightness()", 5301 "description": "Applies a linear multiplier to input image, making it appear more or less bright." 5302 }, 5303 { 5304 "name": "contrast()", 5305 "description": "Adjusts the contrast of the input." 5306 }, 5307 { 5308 "name": "drop-shadow()", 5309 "description": "Applies a drop shadow effect to the input image." 5310 }, 5311 { 5312 "name": "grayscale()", 5313 "description": "Converts the input image to grayscale." 5314 }, 5315 { 5316 "name": "hue-rotate()", 5317 "description": "Applies a hue rotation on the input image. " 5318 }, 5319 { 5320 "name": "invert()", 5321 "description": "Inverts the samples in the input image." 5322 }, 5323 { 5324 "name": "opacity()", 5325 "description": "Applies transparency to the samples in the input image." 5326 }, 5327 { 5328 "name": "saturate()", 5329 "description": "Saturates the input image." 5330 }, 5331 { 5332 "name": "sepia()", 5333 "description": "Converts the input image to sepia." 5334 }, 5335 { 5336 "name": "url()", 5337 "browsers": [ 5338 "E12", 5339 "FF35", 5340 "S9.1", 5341 "C53", 5342 "O40" 5343 ], 5344 "description": "A filter reference to a <filter> element." 5345 } 5346 ], 5347 "syntax": "none | <filter-function-list>", 5348 "relevance": 64, 5349 "references": [ 5350 { 5351 "name": "MDN Reference", 5352 "url": "https://developer.mozilla.org/docs/Web/CSS/filter" 5353 } 5354 ], 5355 "description": "Processes an element’s rendering before it is displayed in the document, by applying one or more filter effects.", 5356 "restrictions": [ 5357 "enum", 5358 "url" 5359 ] 5360 }, 5361 { 5362 "name": "flex", 5363 "values": [ 5364 { 5365 "name": "auto", 5366 "description": "Retrieves the value of the main size property as the used 'flex-basis'." 5367 }, 5368 { 5369 "name": "content", 5370 "description": "Indicates automatic sizing, based on the flex item’s content." 5371 }, 5372 { 5373 "name": "none", 5374 "description": "Expands to '0 0 auto'." 5375 } 5376 ], 5377 "syntax": "none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ]", 5378 "relevance": 77, 5379 "references": [ 5380 { 5381 "name": "MDN Reference", 5382 "url": "https://developer.mozilla.org/docs/Web/CSS/flex" 5383 } 5384 ], 5385 "description": "Specifies the components of a flexible length: the flex grow factor and flex shrink factor, and the flex basis.", 5386 "restrictions": [ 5387 "length", 5388 "number", 5389 "percentage" 5390 ] 5391 }, 5392 { 5393 "name": "flex-basis", 5394 "values": [ 5395 { 5396 "name": "auto", 5397 "description": "Retrieves the value of the main size property as the used 'flex-basis'." 5398 }, 5399 { 5400 "name": "content", 5401 "description": "Indicates automatic sizing, based on the flex item’s content." 5402 } 5403 ], 5404 "syntax": "content | <'width'>", 5405 "relevance": 62, 5406 "references": [ 5407 { 5408 "name": "MDN Reference", 5409 "url": "https://developer.mozilla.org/docs/Web/CSS/flex-basis" 5410 } 5411 ], 5412 "description": "Sets the flex basis.", 5413 "restrictions": [ 5414 "length", 5415 "number", 5416 "percentage" 5417 ] 5418 }, 5419 { 5420 "name": "flex-direction", 5421 "values": [ 5422 { 5423 "name": "column", 5424 "description": "The flex container’s main axis has the same orientation as the block axis of the current writing mode." 5425 }, 5426 { 5427 "name": "column-reverse", 5428 "description": "Same as 'column', except the main-start and main-end directions are swapped." 5429 }, 5430 { 5431 "name": "row", 5432 "description": "The flex container’s main axis has the same orientation as the inline axis of the current writing mode." 5433 }, 5434 { 5435 "name": "row-reverse", 5436 "description": "Same as 'row', except the main-start and main-end directions are swapped." 5437 } 5438 ], 5439 "syntax": "row | row-reverse | column | column-reverse", 5440 "relevance": 78, 5441 "references": [ 5442 { 5443 "name": "MDN Reference", 5444 "url": "https://developer.mozilla.org/docs/Web/CSS/flex-direction" 5445 } 5446 ], 5447 "description": "Specifies how flex items are placed in the flex container, by setting the direction of the flex container’s main axis.", 5448 "restrictions": [ 5449 "enum" 5450 ] 5451 }, 5452 { 5453 "name": "flex-flow", 5454 "values": [ 5455 { 5456 "name": "column", 5457 "description": "The flex container’s main axis has the same orientation as the block axis of the current writing mode." 5458 }, 5459 { 5460 "name": "column-reverse", 5461 "description": "Same as 'column', except the main-start and main-end directions are swapped." 5462 }, 5463 { 5464 "name": "nowrap", 5465 "description": "The flex container is single-line." 5466 }, 5467 { 5468 "name": "row", 5469 "description": "The flex container’s main axis has the same orientation as the inline axis of the current writing mode." 5470 }, 5471 { 5472 "name": "row-reverse", 5473 "description": "Same as 'row', except the main-start and main-end directions are swapped." 5474 }, 5475 { 5476 "name": "wrap", 5477 "description": "The flexbox is multi-line." 5478 }, 5479 { 5480 "name": "wrap-reverse", 5481 "description": "Same as 'wrap', except the cross-start and cross-end directions are swapped." 5482 } 5483 ], 5484 "syntax": "<'flex-direction'> || <'flex-wrap'>", 5485 "relevance": 58, 5486 "references": [ 5487 { 5488 "name": "MDN Reference", 5489 "url": "https://developer.mozilla.org/docs/Web/CSS/flex-flow" 5490 } 5491 ], 5492 "description": "Specifies how flexbox items are placed in the flexbox.", 5493 "restrictions": [ 5494 "enum" 5495 ] 5496 }, 5497 { 5498 "name": "flex-grow", 5499 "syntax": "<number>", 5500 "relevance": 71, 5501 "references": [ 5502 { 5503 "name": "MDN Reference", 5504 "url": "https://developer.mozilla.org/docs/Web/CSS/flex-grow" 5505 } 5506 ], 5507 "description": "Sets the flex grow factor. Negative numbers are invalid.", 5508 "restrictions": [ 5509 "number" 5510 ] 5511 }, 5512 { 5513 "name": "flex-shrink", 5514 "syntax": "<number>", 5515 "relevance": 69, 5516 "references": [ 5517 { 5518 "name": "MDN Reference", 5519 "url": "https://developer.mozilla.org/docs/Web/CSS/flex-shrink" 5520 } 5521 ], 5522 "description": "Sets the flex shrink factor. Negative numbers are invalid.", 5523 "restrictions": [ 5524 "number" 5525 ] 5526 }, 5527 { 5528 "name": "flex-wrap", 5529 "values": [ 5530 { 5531 "name": "nowrap", 5532 "description": "The flex container is single-line." 5533 }, 5534 { 5535 "name": "wrap", 5536 "description": "The flexbox is multi-line." 5537 }, 5538 { 5539 "name": "wrap-reverse", 5540 "description": "Same as 'wrap', except the cross-start and cross-end directions are swapped." 5541 } 5542 ], 5543 "syntax": "nowrap | wrap | wrap-reverse", 5544 "relevance": 74, 5545 "references": [ 5546 { 5547 "name": "MDN Reference", 5548 "url": "https://developer.mozilla.org/docs/Web/CSS/flex-wrap" 5549 } 5550 ], 5551 "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.", 5552 "restrictions": [ 5553 "enum" 5554 ] 5555 }, 5556 { 5557 "name": "float", 5558 "values": [ 5559 { 5560 "name": "inline-end", 5561 "description": "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." 5562 }, 5563 { 5564 "name": "inline-start", 5565 "description": "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." 5566 }, 5567 { 5568 "name": "left", 5569 "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)." 5570 }, 5571 { 5572 "name": "none", 5573 "description": "The box is not floated." 5574 }, 5575 { 5576 "name": "right", 5577 "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." 5578 } 5579 ], 5580 "syntax": "left | right | none | inline-start | inline-end", 5581 "relevance": 92, 5582 "references": [ 5583 { 5584 "name": "MDN Reference", 5585 "url": "https://developer.mozilla.org/docs/Web/CSS/float" 5586 } 5587 ], 5588 "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.", 5589 "restrictions": [ 5590 "enum" 5591 ] 5592 }, 5593 { 5594 "name": "flood-color", 5595 "browsers": [ 5596 "E", 5597 "C5", 5598 "FF3", 5599 "IE10", 5600 "O9", 5601 "S6" 5602 ], 5603 "relevance": 50, 5604 "description": "Indicates what color to use to flood the current filter primitive subregion.", 5605 "restrictions": [ 5606 "color" 5607 ] 5608 }, 5609 { 5610 "name": "flood-opacity", 5611 "browsers": [ 5612 "E", 5613 "C5", 5614 "FF3", 5615 "IE10", 5616 "O9", 5617 "S6" 5618 ], 5619 "relevance": 50, 5620 "description": "Indicates what opacity to use to flood the current filter primitive subregion.", 5621 "restrictions": [ 5622 "number(0-1)", 5623 "percentage" 5624 ] 5625 }, 5626 { 5627 "name": "font", 5628 "values": [ 5629 { 5630 "name": "100", 5631 "description": "Thin" 5632 }, 5633 { 5634 "name": "200", 5635 "description": "Extra Light (Ultra Light)" 5636 }, 5637 { 5638 "name": "300", 5639 "description": "Light" 5640 }, 5641 { 5642 "name": "400", 5643 "description": "Normal" 5644 }, 5645 { 5646 "name": "500", 5647 "description": "Medium" 5648 }, 5649 { 5650 "name": "600", 5651 "description": "Semi Bold (Demi Bold)" 5652 }, 5653 { 5654 "name": "700", 5655 "description": "Bold" 5656 }, 5657 { 5658 "name": "800", 5659 "description": "Extra Bold (Ultra Bold)" 5660 }, 5661 { 5662 "name": "900", 5663 "description": "Black (Heavy)" 5664 }, 5665 { 5666 "name": "bold", 5667 "description": "Same as 700" 5668 }, 5669 { 5670 "name": "bolder", 5671 "description": "Specifies the weight of the face bolder than the inherited value." 5672 }, 5673 { 5674 "name": "caption", 5675 "description": "The font used for captioned controls (e.g., buttons, drop-downs, etc.)." 5676 }, 5677 { 5678 "name": "icon", 5679 "description": "The font used to label icons." 5680 }, 5681 { 5682 "name": "italic", 5683 "description": "Selects a font that is labeled 'italic', or, if that is not available, one labeled 'oblique'." 5684 }, 5685 { 5686 "name": "large" 5687 }, 5688 { 5689 "name": "larger" 5690 }, 5691 { 5692 "name": "lighter", 5693 "description": "Specifies the weight of the face lighter than the inherited value." 5694 }, 5695 { 5696 "name": "medium" 5697 }, 5698 { 5699 "name": "menu", 5700 "description": "The font used in menus (e.g., dropdown menus and menu lists)." 5701 }, 5702 { 5703 "name": "message-box", 5704 "description": "The font used in dialog boxes." 5705 }, 5706 { 5707 "name": "normal", 5708 "description": "Specifies a face that is not labeled as a small-caps font." 5709 }, 5710 { 5711 "name": "oblique", 5712 "description": "Selects a font that is labeled 'oblique'." 5713 }, 5714 { 5715 "name": "small" 5716 }, 5717 { 5718 "name": "small-caps", 5719 "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." 5720 }, 5721 { 5722 "name": "small-caption", 5723 "description": "The font used for labeling small controls." 5724 }, 5725 { 5726 "name": "smaller" 5727 }, 5728 { 5729 "name": "status-bar", 5730 "description": "The font used in window status bars." 5731 }, 5732 { 5733 "name": "x-large" 5734 }, 5735 { 5736 "name": "x-small" 5737 }, 5738 { 5739 "name": "xx-large" 5740 }, 5741 { 5742 "name": "xx-small" 5743 } 5744 ], 5745 "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", 5746 "relevance": 82, 5747 "references": [ 5748 { 5749 "name": "MDN Reference", 5750 "url": "https://developer.mozilla.org/docs/Web/CSS/font" 5751 } 5752 ], 5753 "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.", 5754 "restrictions": [ 5755 "font" 5756 ] 5757 }, 5758 { 5759 "name": "font-family", 5760 "values": [ 5761 { 5762 "name": "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif" 5763 }, 5764 { 5765 "name": "Arial, Helvetica, sans-serif" 5766 }, 5767 { 5768 "name": "Cambria, Cochin, Georgia, Times, 'Times New Roman', serif" 5769 }, 5770 { 5771 "name": "'Courier New', Courier, monospace" 5772 }, 5773 { 5774 "name": "cursive" 5775 }, 5776 { 5777 "name": "fantasy" 5778 }, 5779 { 5780 "name": "'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif" 5781 }, 5782 { 5783 "name": "Georgia, 'Times New Roman', Times, serif" 5784 }, 5785 { 5786 "name": "'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif" 5787 }, 5788 { 5789 "name": "Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif" 5790 }, 5791 { 5792 "name": "'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif" 5793 }, 5794 { 5795 "name": "monospace" 5796 }, 5797 { 5798 "name": "sans-serif" 5799 }, 5800 { 5801 "name": "'Segoe UI', Tahoma, Geneva, Verdana, sans-serif" 5802 }, 5803 { 5804 "name": "serif" 5805 }, 5806 { 5807 "name": "'Times New Roman', Times, serif" 5808 }, 5809 { 5810 "name": "'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif" 5811 }, 5812 { 5813 "name": "Verdana, Geneva, Tahoma, sans-serif" 5814 } 5815 ], 5816 "syntax": "<family-name>", 5817 "relevance": 92, 5818 "references": [ 5819 { 5820 "name": "MDN Reference", 5821 "url": "https://developer.mozilla.org/docs/Web/CSS/font-family" 5822 } 5823 ], 5824 "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.", 5825 "restrictions": [ 5826 "font" 5827 ] 5828 }, 5829 { 5830 "name": "font-feature-settings", 5831 "values": [ 5832 { 5833 "name": "\"aalt\"", 5834 "description": "Access All Alternates." 5835 }, 5836 { 5837 "name": "\"abvf\"", 5838 "description": "Above-base Forms. Required in Khmer script." 5839 }, 5840 { 5841 "name": "\"abvm\"", 5842 "description": "Above-base Mark Positioning. Required in Indic scripts." 5843 }, 5844 { 5845 "name": "\"abvs\"", 5846 "description": "Above-base Substitutions. Required in Indic scripts." 5847 }, 5848 { 5849 "name": "\"afrc\"", 5850 "description": "Alternative Fractions." 5851 }, 5852 { 5853 "name": "\"akhn\"", 5854 "description": "Akhand. Required in most Indic scripts." 5855 }, 5856 { 5857 "name": "\"blwf\"", 5858 "description": "Below-base Form. Required in a number of Indic scripts." 5859 }, 5860 { 5861 "name": "\"blwm\"", 5862 "description": "Below-base Mark Positioning. Required in Indic scripts." 5863 }, 5864 { 5865 "name": "\"blws\"", 5866 "description": "Below-base Substitutions. Required in Indic scripts." 5867 }, 5868 { 5869 "name": "\"calt\"", 5870 "description": "Contextual Alternates." 5871 }, 5872 { 5873 "name": "\"case\"", 5874 "description": "Case-Sensitive Forms. Applies only to European scripts; particularly prominent in Spanish-language setting." 5875 }, 5876 { 5877 "name": "\"ccmp\"", 5878 "description": "Glyph Composition/Decomposition." 5879 }, 5880 { 5881 "name": "\"cfar\"", 5882 "description": "Conjunct Form After Ro. Required in Khmer scripts." 5883 }, 5884 { 5885 "name": "\"cjct\"", 5886 "description": "Conjunct Forms. Required in Indic scripts that show similarity to Devanagari." 5887 }, 5888 { 5889 "name": "\"clig\"", 5890 "description": "Contextual Ligatures." 5891 }, 5892 { 5893 "name": "\"cpct\"", 5894 "description": "Centered CJK Punctuation. Used primarily in Chinese fonts." 5895 }, 5896 { 5897 "name": "\"cpsp\"", 5898 "description": "Capital Spacing. Should not be used in connecting scripts (e.g. most Arabic)." 5899 }, 5900 { 5901 "name": "\"cswh\"", 5902 "description": "Contextual Swash." 5903 }, 5904 { 5905 "name": "\"curs\"", 5906 "description": "Cursive Positioning. Can be used in any cursive script." 5907 }, 5908 { 5909 "name": "\"c2pc\"", 5910 "description": "Petite Capitals From Capitals. Applies only to bicameral scripts." 5911 }, 5912 { 5913 "name": "\"c2sc\"", 5914 "description": "Small Capitals From Capitals. Applies only to bicameral scripts." 5915 }, 5916 { 5917 "name": "\"dist\"", 5918 "description": "Distances. Required in Indic scripts." 5919 }, 5920 { 5921 "name": "\"dlig\"", 5922 "description": "Discretionary ligatures." 5923 }, 5924 { 5925 "name": "\"dnom\"", 5926 "description": "Denominators." 5927 }, 5928 { 5929 "name": "\"dtls\"", 5930 "description": "Dotless Forms. Applied to math formula layout." 5931 }, 5932 { 5933 "name": "\"expt\"", 5934 "description": "Expert Forms. Applies only to Japanese." 5935 }, 5936 { 5937 "name": "\"falt\"", 5938 "description": "Final Glyph on Line Alternates. Can be used in any cursive script." 5939 }, 5940 { 5941 "name": "\"fin2\"", 5942 "description": "Terminal Form #2. Used only with the Syriac script." 5943 }, 5944 { 5945 "name": "\"fin3\"", 5946 "description": "Terminal Form #3. Used only with the Syriac script." 5947 }, 5948 { 5949 "name": "\"fina\"", 5950 "description": "Terminal Forms. Can be used in any alphabetic script." 5951 }, 5952 { 5953 "name": "\"flac\"", 5954 "description": "Flattened ascent forms. Applied to math formula layout." 5955 }, 5956 { 5957 "name": "\"frac\"", 5958 "description": "Fractions." 5959 }, 5960 { 5961 "name": "\"fwid\"", 5962 "description": "Full Widths. Applies to any script which can use monospaced forms." 5963 }, 5964 { 5965 "name": "\"half\"", 5966 "description": "Half Forms. Required in Indic scripts that show similarity to Devanagari." 5967 }, 5968 { 5969 "name": "\"haln\"", 5970 "description": "Halant Forms. Required in Indic scripts." 5971 }, 5972 { 5973 "name": "\"halt\"", 5974 "description": "Alternate Half Widths. Used only in CJKV fonts." 5975 }, 5976 { 5977 "name": "\"hist\"", 5978 "description": "Historical Forms." 5979 }, 5980 { 5981 "name": "\"hkna\"", 5982 "description": "Horizontal Kana Alternates. Applies only to fonts that support kana (hiragana and katakana)." 5983 }, 5984 { 5985 "name": "\"hlig\"", 5986 "description": "Historical Ligatures." 5987 }, 5988 { 5989 "name": "\"hngl\"", 5990 "description": "Hangul. Korean only." 5991 }, 5992 { 5993 "name": "\"hojo\"", 5994 "description": "Hojo Kanji Forms (JIS X 0212-1990 Kanji Forms). Used only with Kanji script." 5995 }, 5996 { 5997 "name": "\"hwid\"", 5998 "description": "Half Widths. Generally used only in CJKV fonts." 5999 }, 6000 { 6001 "name": "\"init\"", 6002 "description": "Initial Forms. Can be used in any alphabetic script." 6003 }, 6004 { 6005 "name": "\"isol\"", 6006 "description": "Isolated Forms. Can be used in any cursive script." 6007 }, 6008 { 6009 "name": "\"ital\"", 6010 "description": "Italics. Applies mostly to Latin; note that many non-Latin fonts contain Latin as well." 6011 }, 6012 { 6013 "name": "\"jalt\"", 6014 "description": "Justification Alternates. Can be used in any cursive script." 6015 }, 6016 { 6017 "name": "\"jp78\"", 6018 "description": "JIS78 Forms. Applies only to Japanese." 6019 }, 6020 { 6021 "name": "\"jp83\"", 6022 "description": "JIS83 Forms. Applies only to Japanese." 6023 }, 6024 { 6025 "name": "\"jp90\"", 6026 "description": "JIS90 Forms. Applies only to Japanese." 6027 }, 6028 { 6029 "name": "\"jp04\"", 6030 "description": "JIS2004 Forms. Applies only to Japanese." 6031 }, 6032 { 6033 "name": "\"kern\"", 6034 "description": "Kerning." 6035 }, 6036 { 6037 "name": "\"lfbd\"", 6038 "description": "Left Bounds." 6039 }, 6040 { 6041 "name": "\"liga\"", 6042 "description": "Standard Ligatures." 6043 }, 6044 { 6045 "name": "\"ljmo\"", 6046 "description": "Leading Jamo Forms. Required for Hangul script when Ancient Hangul writing system is supported." 6047 }, 6048 { 6049 "name": "\"lnum\"", 6050 "description": "Lining Figures." 6051 }, 6052 { 6053 "name": "\"locl\"", 6054 "description": "Localized Forms." 6055 }, 6056 { 6057 "name": "\"ltra\"", 6058 "description": "Left-to-right glyph alternates." 6059 }, 6060 { 6061 "name": "\"ltrm\"", 6062 "description": "Left-to-right mirrored forms." 6063 }, 6064 { 6065 "name": "\"mark\"", 6066 "description": "Mark Positioning." 6067 }, 6068 { 6069 "name": "\"med2\"", 6070 "description": "Medial Form #2. Used only with the Syriac script." 6071 }, 6072 { 6073 "name": "\"medi\"", 6074 "description": "Medial Forms." 6075 }, 6076 { 6077 "name": "\"mgrk\"", 6078 "description": "Mathematical Greek." 6079 }, 6080 { 6081 "name": "\"mkmk\"", 6082 "description": "Mark to Mark Positioning." 6083 }, 6084 { 6085 "name": "\"nalt\"", 6086 "description": "Alternate Annotation Forms." 6087 }, 6088 { 6089 "name": "\"nlck\"", 6090 "description": "NLC Kanji Forms. Used only with Kanji script." 6091 }, 6092 { 6093 "name": "\"nukt\"", 6094 "description": "Nukta Forms. Required in Indic scripts.." 6095 }, 6096 { 6097 "name": "\"numr\"", 6098 "description": "Numerators." 6099 }, 6100 { 6101 "name": "\"onum\"", 6102 "description": "Oldstyle Figures." 6103 }, 6104 { 6105 "name": "\"opbd\"", 6106 "description": "Optical Bounds." 6107 }, 6108 { 6109 "name": "\"ordn\"", 6110 "description": "Ordinals. Applies mostly to Latin script." 6111 }, 6112 { 6113 "name": "\"ornm\"", 6114 "description": "Ornaments." 6115 }, 6116 { 6117 "name": "\"palt\"", 6118 "description": "Proportional Alternate Widths. Used mostly in CJKV fonts." 6119 }, 6120 { 6121 "name": "\"pcap\"", 6122 "description": "Petite Capitals." 6123 }, 6124 { 6125 "name": "\"pkna\"", 6126 "description": "Proportional Kana. Generally used only in Japanese fonts." 6127 }, 6128 { 6129 "name": "\"pnum\"", 6130 "description": "Proportional Figures." 6131 }, 6132 { 6133 "name": "\"pref\"", 6134 "description": "Pre-base Forms. Required in Khmer and Myanmar (Burmese) scripts and southern Indic scripts that may display a pre-base form of Ra." 6135 }, 6136 { 6137 "name": "\"pres\"", 6138 "description": "Pre-base Substitutions. Required in Indic scripts." 6139 }, 6140 { 6141 "name": "\"pstf\"", 6142 "description": "Post-base Forms. Required in scripts of south and southeast Asia that have post-base forms for consonants eg: Gurmukhi, Malayalam, Khmer." 6143 }, 6144 { 6145 "name": "\"psts\"", 6146 "description": "Post-base Substitutions." 6147 }, 6148 { 6149 "name": "\"pwid\"", 6150 "description": "Proportional Widths." 6151 }, 6152 { 6153 "name": "\"qwid\"", 6154 "description": "Quarter Widths. Generally used only in CJKV fonts." 6155 }, 6156 { 6157 "name": "\"rand\"", 6158 "description": "Randomize." 6159 }, 6160 { 6161 "name": "\"rclt\"", 6162 "description": "Required Contextual Alternates. May apply to any script, but is especially important for many styles of Arabic." 6163 }, 6164 { 6165 "name": "\"rlig\"", 6166 "description": "Required Ligatures. Applies to Arabic and Syriac. May apply to some other scripts." 6167 }, 6168 { 6169 "name": "\"rkrf\"", 6170 "description": "Rakar Forms. Required in Devanagari and Gujarati scripts." 6171 }, 6172 { 6173 "name": "\"rphf\"", 6174 "description": "Reph Form. Required in Indic scripts. E.g. Devanagari, Kannada." 6175 }, 6176 { 6177 "name": "\"rtbd\"", 6178 "description": "Right Bounds." 6179 }, 6180 { 6181 "name": "\"rtla\"", 6182 "description": "Right-to-left alternates." 6183 }, 6184 { 6185 "name": "\"rtlm\"", 6186 "description": "Right-to-left mirrored forms." 6187 }, 6188 { 6189 "name": "\"ruby\"", 6190 "description": "Ruby Notation Forms. Applies only to Japanese." 6191 }, 6192 { 6193 "name": "\"salt\"", 6194 "description": "Stylistic Alternates." 6195 }, 6196 { 6197 "name": "\"sinf\"", 6198 "description": "Scientific Inferiors." 6199 }, 6200 { 6201 "name": "\"size\"", 6202 "description": "Optical size." 6203 }, 6204 { 6205 "name": "\"smcp\"", 6206 "description": "Small Capitals. Applies only to bicameral scripts." 6207 }, 6208 { 6209 "name": "\"smpl\"", 6210 "description": "Simplified Forms. Applies only to Chinese and Japanese." 6211 }, 6212 { 6213 "name": "\"ssty\"", 6214 "description": "Math script style alternates." 6215 }, 6216 { 6217 "name": "\"stch\"", 6218 "description": "Stretching Glyph Decomposition." 6219 }, 6220 { 6221 "name": "\"subs\"", 6222 "description": "Subscript." 6223 }, 6224 { 6225 "name": "\"sups\"", 6226 "description": "Superscript." 6227 }, 6228 { 6229 "name": "\"swsh\"", 6230 "description": "Swash. Does not apply to ideographic scripts." 6231 }, 6232 { 6233 "name": "\"titl\"", 6234 "description": "Titling." 6235 }, 6236 { 6237 "name": "\"tjmo\"", 6238 "description": "Trailing Jamo Forms. Required for Hangul script when Ancient Hangul writing system is supported." 6239 }, 6240 { 6241 "name": "\"tnam\"", 6242 "description": "Traditional Name Forms. Applies only to Japanese." 6243 }, 6244 { 6245 "name": "\"tnum\"", 6246 "description": "Tabular Figures." 6247 }, 6248 { 6249 "name": "\"trad\"", 6250 "description": "Traditional Forms. Applies only to Chinese and Japanese." 6251 }, 6252 { 6253 "name": "\"twid\"", 6254 "description": "Third Widths. Generally used only in CJKV fonts." 6255 }, 6256 { 6257 "name": "\"unic\"", 6258 "description": "Unicase." 6259 }, 6260 { 6261 "name": "\"valt\"", 6262 "description": "Alternate Vertical Metrics. Applies only to scripts with vertical writing modes." 6263 }, 6264 { 6265 "name": "\"vatu\"", 6266 "description": "Vattu Variants. Used for Indic scripts. E.g. Devanagari." 6267 }, 6268 { 6269 "name": "\"vert\"", 6270 "description": "Vertical Alternates. Applies only to scripts with vertical writing modes." 6271 }, 6272 { 6273 "name": "\"vhal\"", 6274 "description": "Alternate Vertical Half Metrics. Used only in CJKV fonts." 6275 }, 6276 { 6277 "name": "\"vjmo\"", 6278 "description": "Vowel Jamo Forms. Required for Hangul script when Ancient Hangul writing system is supported." 6279 }, 6280 { 6281 "name": "\"vkna\"", 6282 "description": "Vertical Kana Alternates. Applies only to fonts that support kana (hiragana and katakana)." 6283 }, 6284 { 6285 "name": "\"vkrn\"", 6286 "description": "Vertical Kerning." 6287 }, 6288 { 6289 "name": "\"vpal\"", 6290 "description": "Proportional Alternate Vertical Metrics. Used mostly in CJKV fonts." 6291 }, 6292 { 6293 "name": "\"vrt2\"", 6294 "description": "Vertical Alternates and Rotation. Applies only to scripts with vertical writing modes." 6295 }, 6296 { 6297 "name": "\"zero\"", 6298 "description": "Slashed Zero." 6299 }, 6300 { 6301 "name": "normal", 6302 "description": "No change in glyph substitution or positioning occurs." 6303 }, 6304 { 6305 "name": "off", 6306 "description": "Disable feature." 6307 }, 6308 { 6309 "name": "on", 6310 "description": "Enable feature." 6311 } 6312 ], 6313 "syntax": "normal | <feature-tag-value>#", 6314 "relevance": 55, 6315 "references": [ 6316 { 6317 "name": "MDN Reference", 6318 "url": "https://developer.mozilla.org/docs/Web/CSS/font-feature-settings" 6319 } 6320 ], 6321 "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.", 6322 "restrictions": [ 6323 "string", 6324 "integer" 6325 ] 6326 }, 6327 { 6328 "name": "font-kerning", 6329 "browsers": [ 6330 "E79", 6331 "FF32", 6332 "S9", 6333 "C33", 6334 "O20" 6335 ], 6336 "values": [ 6337 { 6338 "name": "auto", 6339 "description": "Specifies that kerning is applied at the discretion of the user agent." 6340 }, 6341 { 6342 "name": "none", 6343 "description": "Specifies that kerning is not applied." 6344 }, 6345 { 6346 "name": "normal", 6347 "description": "Specifies that kerning is applied." 6348 } 6349 ], 6350 "syntax": "auto | normal | none", 6351 "relevance": 51, 6352 "references": [ 6353 { 6354 "name": "MDN Reference", 6355 "url": "https://developer.mozilla.org/docs/Web/CSS/font-kerning" 6356 } 6357 ], 6358 "description": "Kerning is the contextual adjustment of inter-glyph spacing. This property controls metric kerning, kerning that utilizes adjustment data contained in the font.", 6359 "restrictions": [ 6360 "enum" 6361 ] 6362 }, 6363 { 6364 "name": "font-language-override", 6365 "browsers": [ 6366 "FF34" 6367 ], 6368 "values": [ 6369 { 6370 "name": "normal", 6371 "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." 6372 } 6373 ], 6374 "syntax": "normal | <string>", 6375 "relevance": 50, 6376 "references": [ 6377 { 6378 "name": "MDN Reference", 6379 "url": "https://developer.mozilla.org/docs/Web/CSS/font-language-override" 6380 } 6381 ], 6382 "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.", 6383 "restrictions": [ 6384 "string" 6385 ] 6386 }, 6387 { 6388 "name": "font-size", 6389 "values": [ 6390 { 6391 "name": "large" 6392 }, 6393 { 6394 "name": "larger" 6395 }, 6396 { 6397 "name": "medium" 6398 }, 6399 { 6400 "name": "small" 6401 }, 6402 { 6403 "name": "smaller" 6404 }, 6405 { 6406 "name": "x-large" 6407 }, 6408 { 6409 "name": "x-small" 6410 }, 6411 { 6412 "name": "xx-large" 6413 }, 6414 { 6415 "name": "xx-small" 6416 } 6417 ], 6418 "syntax": "<absolute-size> | <relative-size> | <length-percentage>", 6419 "relevance": 94, 6420 "references": [ 6421 { 6422 "name": "MDN Reference", 6423 "url": "https://developer.mozilla.org/docs/Web/CSS/font-size" 6424 } 6425 ], 6426 "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.", 6427 "restrictions": [ 6428 "length", 6429 "percentage" 6430 ] 6431 }, 6432 { 6433 "name": "font-size-adjust", 6434 "browsers": [ 6435 "E79", 6436 "FF40", 6437 "C43", 6438 "O30" 6439 ], 6440 "values": [ 6441 { 6442 "name": "none", 6443 "description": "Do not preserve the font’s x-height." 6444 } 6445 ], 6446 "syntax": "none | <number>", 6447 "relevance": 50, 6448 "references": [ 6449 { 6450 "name": "MDN Reference", 6451 "url": "https://developer.mozilla.org/docs/Web/CSS/font-size-adjust" 6452 } 6453 ], 6454 "description": "Preserves the readability of text when font fallback occurs by adjusting the font-size so that the x-height is the same regardless of the font used.", 6455 "restrictions": [ 6456 "number" 6457 ] 6458 }, 6459 { 6460 "name": "font-stretch", 6461 "values": [ 6462 { 6463 "name": "condensed" 6464 }, 6465 { 6466 "name": "expanded" 6467 }, 6468 { 6469 "name": "extra-condensed" 6470 }, 6471 { 6472 "name": "extra-expanded" 6473 }, 6474 { 6475 "name": "narrower", 6476 "description": "Indicates a narrower value relative to the width of the parent element." 6477 }, 6478 { 6479 "name": "normal" 6480 }, 6481 { 6482 "name": "semi-condensed" 6483 }, 6484 { 6485 "name": "semi-expanded" 6486 }, 6487 { 6488 "name": "ultra-condensed" 6489 }, 6490 { 6491 "name": "ultra-expanded" 6492 }, 6493 { 6494 "name": "wider", 6495 "description": "Indicates a wider value relative to the width of the parent element." 6496 } 6497 ], 6498 "syntax": "<font-stretch-absolute>{1,2}", 6499 "relevance": 53, 6500 "references": [ 6501 { 6502 "name": "MDN Reference", 6503 "url": "https://developer.mozilla.org/docs/Web/CSS/font-stretch" 6504 } 6505 ], 6506 "description": "Selects a normal, condensed, or expanded face from a font family.", 6507 "restrictions": [ 6508 "enum" 6509 ] 6510 }, 6511 { 6512 "name": "font-style", 6513 "values": [ 6514 { 6515 "name": "italic", 6516 "description": "Selects a font that is labeled as an 'italic' face, or an 'oblique' face if one is not" 6517 }, 6518 { 6519 "name": "normal", 6520 "description": "Selects a face that is classified as 'normal'." 6521 }, 6522 { 6523 "name": "oblique", 6524 "description": "Selects a font that is labeled as an 'oblique' face, or an 'italic' face if one is not." 6525 } 6526 ], 6527 "syntax": "normal | italic | oblique <angle>{0,2}", 6528 "relevance": 83, 6529 "references": [ 6530 { 6531 "name": "MDN Reference", 6532 "url": "https://developer.mozilla.org/docs/Web/CSS/font-style" 6533 } 6534 ], 6535 "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.", 6536 "restrictions": [ 6537 "enum" 6538 ] 6539 }, 6540 { 6541 "name": "font-synthesis", 6542 "browsers": [ 6543 "FF34", 6544 "S9" 6545 ], 6546 "values": [ 6547 { 6548 "name": "none", 6549 "description": "Disallow all synthetic faces." 6550 }, 6551 { 6552 "name": "style", 6553 "description": "Allow synthetic italic faces." 6554 }, 6555 { 6556 "name": "weight", 6557 "description": "Allow synthetic bold faces." 6558 } 6559 ], 6560 "syntax": "none | [ weight || style ]", 6561 "relevance": 50, 6562 "references": [ 6563 { 6564 "name": "MDN Reference", 6565 "url": "https://developer.mozilla.org/docs/Web/CSS/font-synthesis" 6566 } 6567 ], 6568 "description": "Controls whether user agents are allowed to synthesize bold or oblique font faces when a font family lacks bold or italic faces.", 6569 "restrictions": [ 6570 "enum" 6571 ] 6572 }, 6573 { 6574 "name": "font-variant", 6575 "values": [ 6576 { 6577 "name": "normal", 6578 "description": "Specifies a face that is not labeled as a small-caps font." 6579 }, 6580 { 6581 "name": "small-caps", 6582 "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." 6583 } 6584 ], 6585 "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 ]", 6586 "relevance": 63, 6587 "references": [ 6588 { 6589 "name": "MDN Reference", 6590 "url": "https://developer.mozilla.org/docs/Web/CSS/font-variant" 6591 } 6592 ], 6593 "description": "Specifies variant representations of the font", 6594 "restrictions": [ 6595 "enum" 6596 ] 6597 }, 6598 { 6599 "name": "font-variant-alternates", 6600 "browsers": [ 6601 "FF34" 6602 ], 6603 "values": [ 6604 { 6605 "name": "annotation()", 6606 "description": "Enables display of alternate annotation forms." 6607 }, 6608 { 6609 "name": "character-variant()", 6610 "description": "Enables display of specific character variants." 6611 }, 6612 { 6613 "name": "historical-forms", 6614 "description": "Enables display of historical forms." 6615 }, 6616 { 6617 "name": "normal", 6618 "description": "None of the features are enabled." 6619 }, 6620 { 6621 "name": "ornaments()", 6622 "description": "Enables replacement of default glyphs with ornaments, if provided in the font." 6623 }, 6624 { 6625 "name": "styleset()", 6626 "description": "Enables display with stylistic sets." 6627 }, 6628 { 6629 "name": "stylistic()", 6630 "description": "Enables display of stylistic alternates." 6631 }, 6632 { 6633 "name": "swash()", 6634 "description": "Enables display of swash glyphs." 6635 } 6636 ], 6637 "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> ) ]", 6638 "relevance": 50, 6639 "references": [ 6640 { 6641 "name": "MDN Reference", 6642 "url": "https://developer.mozilla.org/docs/Web/CSS/font-variant-alternates" 6643 } 6644 ], 6645 "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.", 6646 "restrictions": [ 6647 "enum" 6648 ] 6649 }, 6650 { 6651 "name": "font-variant-caps", 6652 "browsers": [ 6653 "E79", 6654 "FF34", 6655 "C52", 6656 "O39" 6657 ], 6658 "values": [ 6659 { 6660 "name": "all-petite-caps", 6661 "description": "Enables display of petite capitals for both upper and lowercase letters." 6662 }, 6663 { 6664 "name": "all-small-caps", 6665 "description": "Enables display of small capitals for both upper and lowercase letters." 6666 }, 6667 { 6668 "name": "normal", 6669 "description": "None of the features are enabled." 6670 }, 6671 { 6672 "name": "petite-caps", 6673 "description": "Enables display of petite capitals." 6674 }, 6675 { 6676 "name": "small-caps", 6677 "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." 6678 }, 6679 { 6680 "name": "titling-caps", 6681 "description": "Enables display of titling capitals." 6682 }, 6683 { 6684 "name": "unicase", 6685 "description": "Enables display of mixture of small capitals for uppercase letters with normal lowercase letters." 6686 } 6687 ], 6688 "syntax": "normal | small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps", 6689 "relevance": 50, 6690 "references": [ 6691 { 6692 "name": "MDN Reference", 6693 "url": "https://developer.mozilla.org/docs/Web/CSS/font-variant-caps" 6694 } 6695 ], 6696 "description": "Specifies control over capitalized forms.", 6697 "restrictions": [ 6698 "enum" 6699 ] 6700 }, 6701 { 6702 "name": "font-variant-east-asian", 6703 "browsers": [ 6704 "E79", 6705 "FF34", 6706 "C63", 6707 "O50" 6708 ], 6709 "values": [ 6710 { 6711 "name": "full-width", 6712 "description": "Enables rendering of full-width variants." 6713 }, 6714 { 6715 "name": "jis04", 6716 "description": "Enables rendering of JIS04 forms." 6717 }, 6718 { 6719 "name": "jis78", 6720 "description": "Enables rendering of JIS78 forms." 6721 }, 6722 { 6723 "name": "jis83", 6724 "description": "Enables rendering of JIS83 forms." 6725 }, 6726 { 6727 "name": "jis90", 6728 "description": "Enables rendering of JIS90 forms." 6729 }, 6730 { 6731 "name": "normal", 6732 "description": "None of the features are enabled." 6733 }, 6734 { 6735 "name": "proportional-width", 6736 "description": "Enables rendering of proportionally-spaced variants." 6737 }, 6738 { 6739 "name": "ruby", 6740 "description": "Enables display of ruby variant glyphs." 6741 }, 6742 { 6743 "name": "simplified", 6744 "description": "Enables rendering of simplified forms." 6745 }, 6746 { 6747 "name": "traditional", 6748 "description": "Enables rendering of traditional forms." 6749 } 6750 ], 6751 "syntax": "normal | [ <east-asian-variant-values> || <east-asian-width-values> || ruby ]", 6752 "relevance": 50, 6753 "references": [ 6754 { 6755 "name": "MDN Reference", 6756 "url": "https://developer.mozilla.org/docs/Web/CSS/font-variant-east-asian" 6757 } 6758 ], 6759 "description": "Allows control of glyph substitute and positioning in East Asian text.", 6760 "restrictions": [ 6761 "enum" 6762 ] 6763 }, 6764 { 6765 "name": "font-variant-ligatures", 6766 "browsers": [ 6767 "E79", 6768 "FF34", 6769 "S9.1", 6770 "C34", 6771 "O21" 6772 ], 6773 "values": [ 6774 { 6775 "name": "additional-ligatures", 6776 "description": "Enables display of additional ligatures." 6777 }, 6778 { 6779 "name": "common-ligatures", 6780 "description": "Enables display of common ligatures." 6781 }, 6782 { 6783 "name": "contextual", 6784 "browsers": [ 6785 "E79", 6786 "FF34", 6787 "S9.1", 6788 "C34", 6789 "O21" 6790 ], 6791 "description": "Enables display of contextual alternates." 6792 }, 6793 { 6794 "name": "discretionary-ligatures", 6795 "description": "Enables display of discretionary ligatures." 6796 }, 6797 { 6798 "name": "historical-ligatures", 6799 "description": "Enables display of historical ligatures." 6800 }, 6801 { 6802 "name": "no-additional-ligatures", 6803 "description": "Disables display of additional ligatures." 6804 }, 6805 { 6806 "name": "no-common-ligatures", 6807 "description": "Disables display of common ligatures." 6808 }, 6809 { 6810 "name": "no-contextual", 6811 "browsers": [ 6812 "E79", 6813 "FF34", 6814 "S9.1", 6815 "C34", 6816 "O21" 6817 ], 6818 "description": "Disables display of contextual alternates." 6819 }, 6820 { 6821 "name": "no-discretionary-ligatures", 6822 "description": "Disables display of discretionary ligatures." 6823 }, 6824 { 6825 "name": "no-historical-ligatures", 6826 "description": "Disables display of historical ligatures." 6827 }, 6828 { 6829 "name": "none", 6830 "browsers": [ 6831 "E79", 6832 "FF34", 6833 "S9.1", 6834 "C34", 6835 "O21" 6836 ], 6837 "description": "Disables all ligatures." 6838 }, 6839 { 6840 "name": "normal", 6841 "description": "Implies that the defaults set by the font are used." 6842 } 6843 ], 6844 "syntax": "normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> ]", 6845 "relevance": 51, 6846 "references": [ 6847 { 6848 "name": "MDN Reference", 6849 "url": "https://developer.mozilla.org/docs/Web/CSS/font-variant-ligatures" 6850 } 6851 ], 6852 "description": "Specifies control over which ligatures are enabled or disabled. A value of ‘normal’ implies that the defaults set by the font are used.", 6853 "restrictions": [ 6854 "enum" 6855 ] 6856 }, 6857 { 6858 "name": "font-variant-numeric", 6859 "browsers": [ 6860 "E79", 6861 "FF34", 6862 "S9.1", 6863 "C52", 6864 "O39" 6865 ], 6866 "values": [ 6867 { 6868 "name": "diagonal-fractions", 6869 "description": "Enables display of lining diagonal fractions." 6870 }, 6871 { 6872 "name": "lining-nums", 6873 "description": "Enables display of lining numerals." 6874 }, 6875 { 6876 "name": "normal", 6877 "description": "None of the features are enabled." 6878 }, 6879 { 6880 "name": "oldstyle-nums", 6881 "description": "Enables display of old-style numerals." 6882 }, 6883 { 6884 "name": "ordinal", 6885 "description": "Enables display of letter forms used with ordinal numbers." 6886 }, 6887 { 6888 "name": "proportional-nums", 6889 "description": "Enables display of proportional numerals." 6890 }, 6891 { 6892 "name": "slashed-zero", 6893 "description": "Enables display of slashed zeros." 6894 }, 6895 { 6896 "name": "stacked-fractions", 6897 "description": "Enables display of lining stacked fractions." 6898 }, 6899 { 6900 "name": "tabular-nums", 6901 "description": "Enables display of tabular numerals." 6902 } 6903 ], 6904 "syntax": "normal | [ <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero ]", 6905 "relevance": 50, 6906 "references": [ 6907 { 6908 "name": "MDN Reference", 6909 "url": "https://developer.mozilla.org/docs/Web/CSS/font-variant-numeric" 6910 } 6911 ], 6912 "description": "Specifies control over numerical forms.", 6913 "restrictions": [ 6914 "enum" 6915 ] 6916 }, 6917 { 6918 "name": "font-variant-position", 6919 "browsers": [ 6920 "FF34" 6921 ], 6922 "values": [ 6923 { 6924 "name": "normal", 6925 "description": "None of the features are enabled." 6926 }, 6927 { 6928 "name": "sub", 6929 "description": "Enables display of subscript variants (OpenType feature: subs)." 6930 }, 6931 { 6932 "name": "super", 6933 "description": "Enables display of superscript variants (OpenType feature: sups)." 6934 } 6935 ], 6936 "syntax": "normal | sub | super", 6937 "relevance": 50, 6938 "references": [ 6939 { 6940 "name": "MDN Reference", 6941 "url": "https://developer.mozilla.org/docs/Web/CSS/font-variant-position" 6942 } 6943 ], 6944 "description": "Specifies the vertical position", 6945 "restrictions": [ 6946 "enum" 6947 ] 6948 }, 6949 { 6950 "name": "font-weight", 6951 "values": [ 6952 { 6953 "name": "100", 6954 "description": "Thin" 6955 }, 6956 { 6957 "name": "200", 6958 "description": "Extra Light (Ultra Light)" 6959 }, 6960 { 6961 "name": "300", 6962 "description": "Light" 6963 }, 6964 { 6965 "name": "400", 6966 "description": "Normal" 6967 }, 6968 { 6969 "name": "500", 6970 "description": "Medium" 6971 }, 6972 { 6973 "name": "600", 6974 "description": "Semi Bold (Demi Bold)" 6975 }, 6976 { 6977 "name": "700", 6978 "description": "Bold" 6979 }, 6980 { 6981 "name": "800", 6982 "description": "Extra Bold (Ultra Bold)" 6983 }, 6984 { 6985 "name": "900", 6986 "description": "Black (Heavy)" 6987 }, 6988 { 6989 "name": "bold", 6990 "description": "Same as 700" 6991 }, 6992 { 6993 "name": "bolder", 6994 "description": "Specifies the weight of the face bolder than the inherited value." 6995 }, 6996 { 6997 "name": "lighter", 6998 "description": "Specifies the weight of the face lighter than the inherited value." 6999 }, 7000 { 7001 "name": "normal", 7002 "description": "Same as 400" 7003 } 7004 ], 7005 "syntax": "<font-weight-absolute>{1,2}", 7006 "relevance": 93, 7007 "references": [ 7008 { 7009 "name": "MDN Reference", 7010 "url": "https://developer.mozilla.org/docs/Web/CSS/font-weight" 7011 } 7012 ], 7013 "description": "Specifies weight of glyphs in the font, their degree of blackness or stroke thickness.", 7014 "restrictions": [ 7015 "enum" 7016 ] 7017 }, 7018 { 7019 "name": "glyph-orientation-horizontal", 7020 "relevance": 50, 7021 "description": "Controls glyph orientation when the inline-progression-direction is horizontal.", 7022 "restrictions": [ 7023 "angle", 7024 "number" 7025 ] 7026 }, 7027 { 7028 "name": "glyph-orientation-vertical", 7029 "values": [ 7030 { 7031 "name": "auto", 7032 "description": "Sets the orientation based on the fullwidth or non-fullwidth characters and the most common orientation." 7033 } 7034 ], 7035 "relevance": 50, 7036 "description": "Controls glyph orientation when the inline-progression-direction is vertical.", 7037 "restrictions": [ 7038 "angle", 7039 "number", 7040 "enum" 7041 ] 7042 }, 7043 { 7044 "name": "grid-area", 7045 "browsers": [ 7046 "E16", 7047 "FF52", 7048 "S10.1", 7049 "C57", 7050 "O44" 7051 ], 7052 "values": [ 7053 { 7054 "name": "auto", 7055 "description": "The property contributes nothing to the grid item’s placement, indicating auto-placement, an automatic span, or a default span of one." 7056 }, 7057 { 7058 "name": "span", 7059 "description": "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." 7060 } 7061 ], 7062 "syntax": "<grid-line> [ / <grid-line> ]{0,3}", 7063 "relevance": 51, 7064 "references": [ 7065 { 7066 "name": "MDN Reference", 7067 "url": "https://developer.mozilla.org/docs/Web/CSS/grid-area" 7068 } 7069 ], 7070 "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'.", 7071 "restrictions": [ 7072 "identifier", 7073 "integer" 7074 ] 7075 }, 7076 { 7077 "name": "grid", 7078 "browsers": [ 7079 "E16", 7080 "FF52", 7081 "S10.1", 7082 "C57", 7083 "O44" 7084 ], 7085 "syntax": "<'grid-template'> | <'grid-template-rows'> / [ auto-flow && dense? ] <'grid-auto-columns'>? | [ auto-flow && dense? ] <'grid-auto-rows'>? / <'grid-template-columns'>", 7086 "relevance": 50, 7087 "references": [ 7088 { 7089 "name": "MDN Reference", 7090 "url": "https://developer.mozilla.org/docs/Web/CSS/grid" 7091 } 7092 ], 7093 "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.", 7094 "restrictions": [ 7095 "identifier", 7096 "length", 7097 "percentage", 7098 "string", 7099 "enum" 7100 ] 7101 }, 7102 { 7103 "name": "grid-auto-columns", 7104 "values": [ 7105 { 7106 "name": "min-content", 7107 "description": "Represents the largest min-content contribution of the grid items occupying the grid track." 7108 }, 7109 { 7110 "name": "max-content", 7111 "description": "Represents the largest max-content contribution of the grid items occupying the grid track." 7112 }, 7113 { 7114 "name": "auto", 7115 "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." 7116 }, 7117 { 7118 "name": "minmax()", 7119 "description": "Defines a size range greater than or equal to min and less than or equal to max." 7120 } 7121 ], 7122 "syntax": "<track-size>+", 7123 "relevance": 50, 7124 "references": [ 7125 { 7126 "name": "MDN Reference", 7127 "url": "https://developer.mozilla.org/docs/Web/CSS/grid-auto-columns" 7128 } 7129 ], 7130 "description": "Specifies the size of implicitly created columns.", 7131 "restrictions": [ 7132 "length", 7133 "percentage" 7134 ] 7135 }, 7136 { 7137 "name": "grid-auto-flow", 7138 "browsers": [ 7139 "E16", 7140 "FF52", 7141 "S10.1", 7142 "C57", 7143 "O44" 7144 ], 7145 "values": [ 7146 { 7147 "name": "row", 7148 "description": "The auto-placement algorithm places items by filling each row in turn, adding new rows as necessary." 7149 }, 7150 { 7151 "name": "column", 7152 "description": "The auto-placement algorithm places items by filling each column in turn, adding new columns as necessary." 7153 }, 7154 { 7155 "name": "dense", 7156 "description": "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." 7157 } 7158 ], 7159 "syntax": "[ row | column ] || dense", 7160 "relevance": 50, 7161 "references": [ 7162 { 7163 "name": "MDN Reference", 7164 "url": "https://developer.mozilla.org/docs/Web/CSS/grid-auto-flow" 7165 } 7166 ], 7167 "description": "Controls how the auto-placement algorithm works, specifying exactly how auto-placed items get flowed into the grid.", 7168 "restrictions": [ 7169 "enum" 7170 ] 7171 }, 7172 { 7173 "name": "grid-auto-rows", 7174 "values": [ 7175 { 7176 "name": "min-content", 7177 "description": "Represents the largest min-content contribution of the grid items occupying the grid track." 7178 }, 7179 { 7180 "name": "max-content", 7181 "description": "Represents the largest max-content contribution of the grid items occupying the grid track." 7182 }, 7183 { 7184 "name": "auto", 7185 "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." 7186 }, 7187 { 7188 "name": "minmax()", 7189 "description": "Defines a size range greater than or equal to min and less than or equal to max." 7190 } 7191 ], 7192 "syntax": "<track-size>+", 7193 "relevance": 50, 7194 "references": [ 7195 { 7196 "name": "MDN Reference", 7197 "url": "https://developer.mozilla.org/docs/Web/CSS/grid-auto-rows" 7198 } 7199 ], 7200 "description": "Specifies the size of implicitly created rows.", 7201 "restrictions": [ 7202 "length", 7203 "percentage" 7204 ] 7205 }, 7206 { 7207 "name": "grid-column", 7208 "browsers": [ 7209 "E16", 7210 "FF52", 7211 "S10.1", 7212 "C57", 7213 "O44" 7214 ], 7215 "values": [ 7216 { 7217 "name": "auto", 7218 "description": "The property contributes nothing to the grid item’s placement, indicating auto-placement, an automatic span, or a default span of one." 7219 }, 7220 { 7221 "name": "span", 7222 "description": "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." 7223 } 7224 ], 7225 "syntax": "<grid-line> [ / <grid-line> ]?", 7226 "relevance": 51, 7227 "references": [ 7228 { 7229 "name": "MDN Reference", 7230 "url": "https://developer.mozilla.org/docs/Web/CSS/grid-column" 7231 } 7232 ], 7233 "description": "Shorthand for 'grid-column-start' and 'grid-column-end'.", 7234 "restrictions": [ 7235 "identifier", 7236 "integer", 7237 "enum" 7238 ] 7239 }, 7240 { 7241 "name": "grid-column-end", 7242 "browsers": [ 7243 "E16", 7244 "FF52", 7245 "S10.1", 7246 "C57", 7247 "O44" 7248 ], 7249 "values": [ 7250 { 7251 "name": "auto", 7252 "description": "The property contributes nothing to the grid item’s placement, indicating auto-placement, an automatic span, or a default span of one." 7253 }, 7254 { 7255 "name": "span", 7256 "description": "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." 7257 } 7258 ], 7259 "syntax": "<grid-line>", 7260 "relevance": 50, 7261 "references": [ 7262 { 7263 "name": "MDN Reference", 7264 "url": "https://developer.mozilla.org/docs/Web/CSS/grid-column-end" 7265 } 7266 ], 7267 "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.", 7268 "restrictions": [ 7269 "identifier", 7270 "integer", 7271 "enum" 7272 ] 7273 }, 7274 { 7275 "name": "grid-column-gap", 7276 "browsers": [ 7277 "FF52", 7278 "C57", 7279 "S10.1", 7280 "O44" 7281 ], 7282 "status": "obsolete", 7283 "syntax": "<length-percentage>", 7284 "relevance": 1, 7285 "description": "Specifies the gutters between grid columns. Replaced by 'column-gap' property.", 7286 "restrictions": [ 7287 "length" 7288 ] 7289 }, 7290 { 7291 "name": "grid-column-start", 7292 "browsers": [ 7293 "E16", 7294 "FF52", 7295 "S10.1", 7296 "C57", 7297 "O44" 7298 ], 7299 "values": [ 7300 { 7301 "name": "auto", 7302 "description": "The property contributes nothing to the grid item’s placement, indicating auto-placement, an automatic span, or a default span of one." 7303 }, 7304 { 7305 "name": "span", 7306 "description": "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." 7307 } 7308 ], 7309 "syntax": "<grid-line>", 7310 "relevance": 50, 7311 "references": [ 7312 { 7313 "name": "MDN Reference", 7314 "url": "https://developer.mozilla.org/docs/Web/CSS/grid-column-start" 7315 } 7316 ], 7317 "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.", 7318 "restrictions": [ 7319 "identifier", 7320 "integer", 7321 "enum" 7322 ] 7323 }, 7324 { 7325 "name": "grid-gap", 7326 "browsers": [ 7327 "FF52", 7328 "C57", 7329 "S10.1", 7330 "O44" 7331 ], 7332 "status": "obsolete", 7333 "syntax": "<'grid-row-gap'> <'grid-column-gap'>?", 7334 "relevance": 1, 7335 "description": "Shorthand that specifies the gutters between grid columns and grid rows in one declaration. Replaced by 'gap' property.", 7336 "restrictions": [ 7337 "length" 7338 ] 7339 }, 7340 { 7341 "name": "grid-row", 7342 "browsers": [ 7343 "E16", 7344 "FF52", 7345 "S10.1", 7346 "C57", 7347 "O44" 7348 ], 7349 "values": [ 7350 { 7351 "name": "auto", 7352 "description": "The property contributes nothing to the grid item’s placement, indicating auto-placement, an automatic span, or a default span of one." 7353 }, 7354 { 7355 "name": "span", 7356 "description": "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." 7357 } 7358 ], 7359 "syntax": "<grid-line> [ / <grid-line> ]?", 7360 "relevance": 51, 7361 "references": [ 7362 { 7363 "name": "MDN Reference", 7364 "url": "https://developer.mozilla.org/docs/Web/CSS/grid-row" 7365 } 7366 ], 7367 "description": "Shorthand for 'grid-row-start' and 'grid-row-end'.", 7368 "restrictions": [ 7369 "identifier", 7370 "integer", 7371 "enum" 7372 ] 7373 }, 7374 { 7375 "name": "grid-row-end", 7376 "browsers": [ 7377 "E16", 7378 "FF52", 7379 "S10.1", 7380 "C57", 7381 "O44" 7382 ], 7383 "values": [ 7384 { 7385 "name": "auto", 7386 "description": "The property contributes nothing to the grid item’s placement, indicating auto-placement, an automatic span, or a default span of one." 7387 }, 7388 { 7389 "name": "span", 7390 "description": "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." 7391 } 7392 ], 7393 "syntax": "<grid-line>", 7394 "relevance": 50, 7395 "references": [ 7396 { 7397 "name": "MDN Reference", 7398 "url": "https://developer.mozilla.org/docs/Web/CSS/grid-row-end" 7399 } 7400 ], 7401 "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.", 7402 "restrictions": [ 7403 "identifier", 7404 "integer", 7405 "enum" 7406 ] 7407 }, 7408 { 7409 "name": "grid-row-gap", 7410 "browsers": [ 7411 "FF52", 7412 "C57", 7413 "S10.1", 7414 "O44" 7415 ], 7416 "status": "obsolete", 7417 "syntax": "<length-percentage>", 7418 "relevance": 1, 7419 "description": "Specifies the gutters between grid rows. Replaced by 'row-gap' property.", 7420 "restrictions": [ 7421 "length" 7422 ] 7423 }, 7424 { 7425 "name": "grid-row-start", 7426 "browsers": [ 7427 "E16", 7428 "FF52", 7429 "S10.1", 7430 "C57", 7431 "O44" 7432 ], 7433 "values": [ 7434 { 7435 "name": "auto", 7436 "description": "The property contributes nothing to the grid item’s placement, indicating auto-placement, an automatic span, or a default span of one." 7437 }, 7438 { 7439 "name": "span", 7440 "description": "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." 7441 } 7442 ], 7443 "syntax": "<grid-line>", 7444 "relevance": 50, 7445 "references": [ 7446 { 7447 "name": "MDN Reference", 7448 "url": "https://developer.mozilla.org/docs/Web/CSS/grid-row-start" 7449 } 7450 ], 7451 "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.", 7452 "restrictions": [ 7453 "identifier", 7454 "integer", 7455 "enum" 7456 ] 7457 }, 7458 { 7459 "name": "grid-template", 7460 "browsers": [ 7461 "E16", 7462 "FF52", 7463 "S10.1", 7464 "C57", 7465 "O44" 7466 ], 7467 "values": [ 7468 { 7469 "name": "none", 7470 "description": "Sets all three properties to their initial values." 7471 }, 7472 { 7473 "name": "min-content", 7474 "description": "Represents the largest min-content contribution of the grid items occupying the grid track." 7475 }, 7476 { 7477 "name": "max-content", 7478 "description": "Represents the largest max-content contribution of the grid items occupying the grid track." 7479 }, 7480 { 7481 "name": "auto", 7482 "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." 7483 }, 7484 { 7485 "name": "subgrid", 7486 "description": "Sets 'grid-template-rows' and 'grid-template-columns' to 'subgrid', and 'grid-template-areas' to its initial value." 7487 }, 7488 { 7489 "name": "minmax()", 7490 "description": "Defines a size range greater than or equal to min and less than or equal to max." 7491 }, 7492 { 7493 "name": "repeat()", 7494 "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." 7495 } 7496 ], 7497 "syntax": "none | [ <'grid-template-rows'> / <'grid-template-columns'> ] | [ <line-names>? <string> <track-size>? <line-names>? ]+ [ / <explicit-track-list> ]?", 7498 "relevance": 50, 7499 "references": [ 7500 { 7501 "name": "MDN Reference", 7502 "url": "https://developer.mozilla.org/docs/Web/CSS/grid-template" 7503 } 7504 ], 7505 "description": "Shorthand for setting grid-template-columns, grid-template-rows, and grid-template-areas in a single declaration.", 7506 "restrictions": [ 7507 "identifier", 7508 "length", 7509 "percentage", 7510 "string", 7511 "enum" 7512 ] 7513 }, 7514 { 7515 "name": "grid-template-areas", 7516 "browsers": [ 7517 "E16", 7518 "FF52", 7519 "S10.1", 7520 "C57", 7521 "O44" 7522 ], 7523 "values": [ 7524 { 7525 "name": "none", 7526 "description": "The grid container doesn’t define any named grid areas." 7527 } 7528 ], 7529 "syntax": "none | <string>+", 7530 "relevance": 50, 7531 "references": [ 7532 { 7533 "name": "MDN Reference", 7534 "url": "https://developer.mozilla.org/docs/Web/CSS/grid-template-areas" 7535 } 7536 ], 7537 "description": "Specifies named grid areas, which are not associated with any particular grid item, but can be referenced from the grid-placement properties.", 7538 "restrictions": [ 7539 "string" 7540 ] 7541 }, 7542 { 7543 "name": "grid-template-columns", 7544 "browsers": [ 7545 "E16", 7546 "FF52", 7547 "S10.1", 7548 "C57", 7549 "O44" 7550 ], 7551 "values": [ 7552 { 7553 "name": "none", 7554 "description": "There is no explicit grid; any rows/columns will be implicitly generated." 7555 }, 7556 { 7557 "name": "min-content", 7558 "description": "Represents the largest min-content contribution of the grid items occupying the grid track." 7559 }, 7560 { 7561 "name": "max-content", 7562 "description": "Represents the largest max-content contribution of the grid items occupying the grid track." 7563 }, 7564 { 7565 "name": "auto", 7566 "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." 7567 }, 7568 { 7569 "name": "subgrid", 7570 "description": "Indicates that the grid will align to its parent grid in that axis." 7571 }, 7572 { 7573 "name": "minmax()", 7574 "description": "Defines a size range greater than or equal to min and less than or equal to max." 7575 }, 7576 { 7577 "name": "repeat()", 7578 "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." 7579 } 7580 ], 7581 "syntax": "none | <track-list> | <auto-track-list> | subgrid <line-name-list>?", 7582 "relevance": 55, 7583 "references": [ 7584 { 7585 "name": "MDN Reference", 7586 "url": "https://developer.mozilla.org/docs/Web/CSS/grid-template-columns" 7587 } 7588 ], 7589 "description": "specifies, as a space-separated track list, the line names and track sizing functions of the grid.", 7590 "restrictions": [ 7591 "identifier", 7592 "length", 7593 "percentage", 7594 "enum" 7595 ] 7596 }, 7597 { 7598 "name": "grid-template-rows", 7599 "browsers": [ 7600 "E16", 7601 "FF52", 7602 "S10.1", 7603 "C57", 7604 "O44" 7605 ], 7606 "values": [ 7607 { 7608 "name": "none", 7609 "description": "There is no explicit grid; any rows/columns will be implicitly generated." 7610 }, 7611 { 7612 "name": "min-content", 7613 "description": "Represents the largest min-content contribution of the grid items occupying the grid track." 7614 }, 7615 { 7616 "name": "max-content", 7617 "description": "Represents the largest max-content contribution of the grid items occupying the grid track." 7618 }, 7619 { 7620 "name": "auto", 7621 "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." 7622 }, 7623 { 7624 "name": "subgrid", 7625 "description": "Indicates that the grid will align to its parent grid in that axis." 7626 }, 7627 { 7628 "name": "minmax()", 7629 "description": "Defines a size range greater than or equal to min and less than or equal to max." 7630 }, 7631 { 7632 "name": "repeat()", 7633 "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." 7634 } 7635 ], 7636 "syntax": "none | <track-list> | <auto-track-list> | subgrid <line-name-list>?", 7637 "relevance": 52, 7638 "references": [ 7639 { 7640 "name": "MDN Reference", 7641 "url": "https://developer.mozilla.org/docs/Web/CSS/grid-template-rows" 7642 } 7643 ], 7644 "description": "specifies, as a space-separated track list, the line names and track sizing functions of the grid.", 7645 "restrictions": [ 7646 "identifier", 7647 "length", 7648 "percentage", 7649 "string", 7650 "enum" 7651 ] 7652 }, 7653 { 7654 "name": "height", 7655 "values": [ 7656 { 7657 "name": "auto", 7658 "description": "The height depends on the values of other properties." 7659 }, 7660 { 7661 "name": "fit-content", 7662 "description": "Use the fit-content inline size or fit-content block size, as appropriate to the writing mode." 7663 }, 7664 { 7665 "name": "max-content", 7666 "description": "Use the max-content inline size or max-content block size, as appropriate to the writing mode." 7667 }, 7668 { 7669 "name": "min-content", 7670 "description": "Use the min-content inline size or min-content block size, as appropriate to the writing mode." 7671 } 7672 ], 7673 "syntax": "<viewport-length>{1,2}", 7674 "relevance": 96, 7675 "references": [ 7676 { 7677 "name": "MDN Reference", 7678 "url": "https://developer.mozilla.org/docs/Web/CSS/height" 7679 } 7680 ], 7681 "description": "Specifies the height of the content area, padding area or border area (depending on 'box-sizing') of certain boxes.", 7682 "restrictions": [ 7683 "length", 7684 "percentage" 7685 ] 7686 }, 7687 { 7688 "name": "hyphens", 7689 "values": [ 7690 { 7691 "name": "auto", 7692 "description": "Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word." 7693 }, 7694 { 7695 "name": "manual", 7696 "description": "Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities" 7697 }, 7698 { 7699 "name": "none", 7700 "description": "Words are not broken at line breaks, even if characters inside the word suggest line break points." 7701 } 7702 ], 7703 "syntax": "none | manual | auto", 7704 "relevance": 53, 7705 "references": [ 7706 { 7707 "name": "MDN Reference", 7708 "url": "https://developer.mozilla.org/docs/Web/CSS/hyphens" 7709 } 7710 ], 7711 "description": "Controls whether hyphenation is allowed to create more break opportunities within a line of text.", 7712 "restrictions": [ 7713 "enum" 7714 ] 7715 }, 7716 { 7717 "name": "image-orientation", 7718 "browsers": [ 7719 "E81", 7720 "FF26", 7721 "S13.1", 7722 "C81", 7723 "O67" 7724 ], 7725 "values": [ 7726 { 7727 "name": "flip", 7728 "description": "After rotating by the precededing angle, the image is flipped horizontally. Defaults to 0deg if the angle is ommitted." 7729 }, 7730 { 7731 "name": "from-image", 7732 "description": "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." 7733 } 7734 ], 7735 "syntax": "from-image | <angle> | [ <angle>? flip ]", 7736 "relevance": 50, 7737 "references": [ 7738 { 7739 "name": "MDN Reference", 7740 "url": "https://developer.mozilla.org/docs/Web/CSS/image-orientation" 7741 } 7742 ], 7743 "description": "Specifies an orthogonal rotation to be applied to an image before it is laid out.", 7744 "restrictions": [ 7745 "angle" 7746 ] 7747 }, 7748 { 7749 "name": "image-rendering", 7750 "browsers": [ 7751 "E79", 7752 "FF3.6", 7753 "S6", 7754 "C13", 7755 "O15" 7756 ], 7757 "values": [ 7758 { 7759 "name": "auto", 7760 "description": "The image should be scaled with an algorithm that maximizes the appearance of the image." 7761 }, 7762 { 7763 "name": "crisp-edges", 7764 "description": "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." 7765 }, 7766 { 7767 "name": "-moz-crisp-edges", 7768 "browsers": [ 7769 "E79", 7770 "FF3.6", 7771 "S6", 7772 "C13", 7773 "O15" 7774 ] 7775 }, 7776 { 7777 "name": "optimizeQuality", 7778 "description": "Deprecated." 7779 }, 7780 { 7781 "name": "optimizeSpeed", 7782 "description": "Deprecated." 7783 }, 7784 { 7785 "name": "pixelated", 7786 "description": "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." 7787 } 7788 ], 7789 "syntax": "auto | crisp-edges | pixelated", 7790 "relevance": 55, 7791 "references": [ 7792 { 7793 "name": "MDN Reference", 7794 "url": "https://developer.mozilla.org/docs/Web/CSS/image-rendering" 7795 } 7796 ], 7797 "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.", 7798 "restrictions": [ 7799 "enum" 7800 ] 7801 }, 7802 { 7803 "name": "ime-mode", 7804 "browsers": [ 7805 "E12", 7806 "FF3", 7807 "IE5" 7808 ], 7809 "values": [ 7810 { 7811 "name": "active", 7812 "description": "The input method editor is initially active; text entry is performed using it unless the user specifically dismisses it." 7813 }, 7814 { 7815 "name": "auto", 7816 "description": "No change is made to the current input method editor state. This is the default." 7817 }, 7818 { 7819 "name": "disabled", 7820 "description": "The input method editor is disabled and may not be activated by the user." 7821 }, 7822 { 7823 "name": "inactive", 7824 "description": "The input method editor is initially inactive, but the user may activate it if they wish." 7825 }, 7826 { 7827 "name": "normal", 7828 "description": "The IME state should be normal; this value can be used in a user style sheet to override the page setting." 7829 } 7830 ], 7831 "status": "obsolete", 7832 "syntax": "auto | normal | active | inactive | disabled", 7833 "relevance": 0, 7834 "references": [ 7835 { 7836 "name": "MDN Reference", 7837 "url": "https://developer.mozilla.org/docs/Web/CSS/ime-mode" 7838 } 7839 ], 7840 "description": "Controls the state of the input method editor for text fields.", 7841 "restrictions": [ 7842 "enum" 7843 ] 7844 }, 7845 { 7846 "name": "inline-size", 7847 "browsers": [ 7848 "E79", 7849 "FF41", 7850 "S12.1", 7851 "C57", 7852 "O44" 7853 ], 7854 "values": [ 7855 { 7856 "name": "auto", 7857 "description": "Depends on the values of other properties." 7858 } 7859 ], 7860 "syntax": "<'width'>", 7861 "relevance": 50, 7862 "references": [ 7863 { 7864 "name": "MDN Reference", 7865 "url": "https://developer.mozilla.org/docs/Web/CSS/inline-size" 7866 } 7867 ], 7868 "description": "Logical 'height'. Mapping depends on the element’s 'writing-mode'.", 7869 "restrictions": [ 7870 "length", 7871 "percentage" 7872 ] 7873 }, 7874 { 7875 "name": "isolation", 7876 "browsers": [ 7877 "E79", 7878 "FF36", 7879 "S8", 7880 "C41", 7881 "O30" 7882 ], 7883 "values": [ 7884 { 7885 "name": "auto", 7886 "description": "Elements are not isolated unless an operation is applied that causes the creation of a stacking context." 7887 }, 7888 { 7889 "name": "isolate", 7890 "description": "In CSS will turn the element into a stacking context." 7891 } 7892 ], 7893 "syntax": "auto | isolate", 7894 "relevance": 50, 7895 "references": [ 7896 { 7897 "name": "MDN Reference", 7898 "url": "https://developer.mozilla.org/docs/Web/CSS/isolation" 7899 } 7900 ], 7901 "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.", 7902 "restrictions": [ 7903 "enum" 7904 ] 7905 }, 7906 { 7907 "name": "justify-content", 7908 "values": [ 7909 { 7910 "name": "center", 7911 "description": "Flex items are packed toward the center of the line." 7912 }, 7913 { 7914 "name": "start", 7915 "description": "The items are packed flush to each other toward the start edge of the alignment container in the main axis." 7916 }, 7917 { 7918 "name": "end", 7919 "description": "The items are packed flush to each other toward the end edge of the alignment container in the main axis." 7920 }, 7921 { 7922 "name": "left", 7923 "description": "The items are packed flush to each other toward the left edge of the alignment container in the main axis." 7924 }, 7925 { 7926 "name": "right", 7927 "description": "The items are packed flush to each other toward the right edge of the alignment container in the main axis." 7928 }, 7929 { 7930 "name": "safe", 7931 "description": "If the size of the item overflows the alignment container, the item is instead aligned as if the alignment mode were start." 7932 }, 7933 { 7934 "name": "unsafe", 7935 "description": "Regardless of the relative sizes of the item and alignment container, the given alignment value is honored." 7936 }, 7937 { 7938 "name": "stretch", 7939 "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." 7940 }, 7941 { 7942 "name": "space-evenly", 7943 "description": "The items are evenly distributed within the alignment container along the main axis." 7944 }, 7945 { 7946 "name": "flex-end", 7947 "description": "Flex items are packed toward the end of the line." 7948 }, 7949 { 7950 "name": "flex-start", 7951 "description": "Flex items are packed toward the start of the line." 7952 }, 7953 { 7954 "name": "space-around", 7955 "description": "Flex items are evenly distributed in the line, with half-size spaces on either end." 7956 }, 7957 { 7958 "name": "space-between", 7959 "description": "Flex items are evenly distributed in the line." 7960 }, 7961 { 7962 "name": "baseline", 7963 "description": "Specifies participation in first-baseline alignment." 7964 }, 7965 { 7966 "name": "first baseline", 7967 "description": "Specifies participation in first-baseline alignment." 7968 }, 7969 { 7970 "name": "last baseline", 7971 "description": "Specifies participation in last-baseline alignment." 7972 } 7973 ], 7974 "syntax": "normal | <content-distribution> | <overflow-position>? [ <content-position> | left | right ]", 7975 "relevance": 82, 7976 "description": "Aligns flex items along the main axis of the current line of the flex container.", 7977 "restrictions": [ 7978 "enum" 7979 ] 7980 }, 7981 { 7982 "name": "kerning", 7983 "values": [ 7984 { 7985 "name": "auto", 7986 "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." 7987 } 7988 ], 7989 "relevance": 50, 7990 "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.", 7991 "restrictions": [ 7992 "length", 7993 "enum" 7994 ] 7995 }, 7996 { 7997 "name": "left", 7998 "values": [ 7999 { 8000 "name": "auto", 8001 "description": "For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well" 8002 } 8003 ], 8004 "syntax": "<length> | <percentage> | auto", 8005 "relevance": 95, 8006 "references": [ 8007 { 8008 "name": "MDN Reference", 8009 "url": "https://developer.mozilla.org/docs/Web/CSS/left" 8010 } 8011 ], 8012 "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'.", 8013 "restrictions": [ 8014 "length", 8015 "percentage" 8016 ] 8017 }, 8018 { 8019 "name": "letter-spacing", 8020 "values": [ 8021 { 8022 "name": "normal", 8023 "description": "The spacing is the normal spacing for the current font. It is typically zero-length." 8024 } 8025 ], 8026 "syntax": "normal | <length>", 8027 "relevance": 79, 8028 "references": [ 8029 { 8030 "name": "MDN Reference", 8031 "url": "https://developer.mozilla.org/docs/Web/CSS/letter-spacing" 8032 } 8033 ], 8034 "description": "Specifies the minimum, maximum, and optimal spacing between grapheme clusters.", 8035 "restrictions": [ 8036 "length" 8037 ] 8038 }, 8039 { 8040 "name": "lighting-color", 8041 "browsers": [ 8042 "E", 8043 "C5", 8044 "FF3", 8045 "IE10", 8046 "O9", 8047 "S6" 8048 ], 8049 "relevance": 50, 8050 "description": "Defines the color of the light source for filter primitives 'feDiffuseLighting' and 'feSpecularLighting'.", 8051 "restrictions": [ 8052 "color" 8053 ] 8054 }, 8055 { 8056 "name": "line-break", 8057 "values": [ 8058 { 8059 "name": "auto", 8060 "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." 8061 }, 8062 { 8063 "name": "loose", 8064 "description": "Breaks text using the least restrictive set of line-breaking rules. Typically used for short lines, such as in newspapers." 8065 }, 8066 { 8067 "name": "normal", 8068 "description": "Breaks text using the most common set of line-breaking rules." 8069 }, 8070 { 8071 "name": "strict", 8072 "description": "Breaks CJK scripts using a more restrictive set of line-breaking rules than 'normal'." 8073 } 8074 ], 8075 "syntax": "auto | loose | normal | strict | anywhere", 8076 "relevance": 51, 8077 "references": [ 8078 { 8079 "name": "MDN Reference", 8080 "url": "https://developer.mozilla.org/docs/Web/CSS/line-break" 8081 } 8082 ], 8083 "description": "Specifies what set of line breaking restrictions are in effect within the element.", 8084 "restrictions": [ 8085 "enum" 8086 ] 8087 }, 8088 { 8089 "name": "line-height", 8090 "values": [ 8091 { 8092 "name": "normal", 8093 "description": "Tells user agents to set the computed value to a 'reasonable' value based on the font size of the element." 8094 } 8095 ], 8096 "syntax": "normal | <number> | <length> | <percentage>", 8097 "relevance": 92, 8098 "references": [ 8099 { 8100 "name": "MDN Reference", 8101 "url": "https://developer.mozilla.org/docs/Web/CSS/line-height" 8102 } 8103 ], 8104 "description": "Determines the block-progression dimension of the text content area of an inline box.", 8105 "restrictions": [ 8106 "number", 8107 "length", 8108 "percentage" 8109 ] 8110 }, 8111 { 8112 "name": "list-style", 8113 "values": [ 8114 { 8115 "name": "armenian" 8116 }, 8117 { 8118 "name": "circle", 8119 "description": "A hollow circle." 8120 }, 8121 { 8122 "name": "decimal" 8123 }, 8124 { 8125 "name": "decimal-leading-zero" 8126 }, 8127 { 8128 "name": "disc", 8129 "description": "A filled circle." 8130 }, 8131 { 8132 "name": "georgian" 8133 }, 8134 { 8135 "name": "inside", 8136 "description": "The marker box is outside the principal block box, as described in the section on the ::marker pseudo-element below." 8137 }, 8138 { 8139 "name": "lower-alpha" 8140 }, 8141 { 8142 "name": "lower-greek" 8143 }, 8144 { 8145 "name": "lower-latin" 8146 }, 8147 { 8148 "name": "lower-roman" 8149 }, 8150 { 8151 "name": "none" 8152 }, 8153 { 8154 "name": "outside", 8155 "description": "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." 8156 }, 8157 { 8158 "name": "square", 8159 "description": "A filled square." 8160 }, 8161 { 8162 "name": "symbols()", 8163 "description": "Allows a counter style to be defined inline." 8164 }, 8165 { 8166 "name": "upper-alpha" 8167 }, 8168 { 8169 "name": "upper-latin" 8170 }, 8171 { 8172 "name": "upper-roman" 8173 }, 8174 { 8175 "name": "url()" 8176 } 8177 ], 8178 "syntax": "<'list-style-type'> || <'list-style-position'> || <'list-style-image'>", 8179 "relevance": 84, 8180 "references": [ 8181 { 8182 "name": "MDN Reference", 8183 "url": "https://developer.mozilla.org/docs/Web/CSS/list-style" 8184 } 8185 ], 8186 "description": "Shorthand for setting 'list-style-type', 'list-style-position' and 'list-style-image'", 8187 "restrictions": [ 8188 "image", 8189 "enum", 8190 "url" 8191 ] 8192 }, 8193 { 8194 "name": "list-style-image", 8195 "values": [ 8196 { 8197 "name": "none", 8198 "description": "The default contents of the of the list item’s marker are given by 'list-style-type' instead." 8199 } 8200 ], 8201 "syntax": "<url> | none", 8202 "relevance": 52, 8203 "references": [ 8204 { 8205 "name": "MDN Reference", 8206 "url": "https://developer.mozilla.org/docs/Web/CSS/list-style-image" 8207 } 8208 ], 8209 "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.", 8210 "restrictions": [ 8211 "image" 8212 ] 8213 }, 8214 { 8215 "name": "list-style-position", 8216 "values": [ 8217 { 8218 "name": "inside", 8219 "description": "The marker box is outside the principal block box, as described in the section on the ::marker pseudo-element below." 8220 }, 8221 { 8222 "name": "outside", 8223 "description": "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." 8224 } 8225 ], 8226 "syntax": "inside | outside", 8227 "relevance": 55, 8228 "references": [ 8229 { 8230 "name": "MDN Reference", 8231 "url": "https://developer.mozilla.org/docs/Web/CSS/list-style-position" 8232 } 8233 ], 8234 "description": "Specifies the position of the '::marker' pseudo-element's box in the list item.", 8235 "restrictions": [ 8236 "enum" 8237 ] 8238 }, 8239 { 8240 "name": "list-style-type", 8241 "values": [ 8242 { 8243 "name": "armenian", 8244 "description": "Traditional uppercase Armenian numbering." 8245 }, 8246 { 8247 "name": "circle", 8248 "description": "A hollow circle." 8249 }, 8250 { 8251 "name": "decimal", 8252 "description": "Western decimal numbers." 8253 }, 8254 { 8255 "name": "decimal-leading-zero", 8256 "description": "Decimal numbers padded by initial zeros." 8257 }, 8258 { 8259 "name": "disc", 8260 "description": "A filled circle." 8261 }, 8262 { 8263 "name": "georgian", 8264 "description": "Traditional Georgian numbering." 8265 }, 8266 { 8267 "name": "lower-alpha", 8268 "description": "Lowercase ASCII letters." 8269 }, 8270 { 8271 "name": "lower-greek", 8272 "description": "Lowercase classical Greek." 8273 }, 8274 { 8275 "name": "lower-latin", 8276 "description": "Lowercase ASCII letters." 8277 }, 8278 { 8279 "name": "lower-roman", 8280 "description": "Lowercase ASCII Roman numerals." 8281 }, 8282 { 8283 "name": "none", 8284 "description": "No marker" 8285 }, 8286 { 8287 "name": "square", 8288 "description": "A filled square." 8289 }, 8290 { 8291 "name": "symbols()", 8292 "description": "Allows a counter style to be defined inline." 8293 }, 8294 { 8295 "name": "upper-alpha", 8296 "description": "Uppercase ASCII letters." 8297 }, 8298 { 8299 "name": "upper-latin", 8300 "description": "Uppercase ASCII letters." 8301 }, 8302 { 8303 "name": "upper-roman", 8304 "description": "Uppercase ASCII Roman numerals." 8305 } 8306 ], 8307 "syntax": "<counter-style> | <string> | none", 8308 "relevance": 74, 8309 "references": [ 8310 { 8311 "name": "MDN Reference", 8312 "url": "https://developer.mozilla.org/docs/Web/CSS/list-style-type" 8313 } 8314 ], 8315 "description": "Used to construct the default contents of a list item’s marker", 8316 "restrictions": [ 8317 "enum", 8318 "string" 8319 ] 8320 }, 8321 { 8322 "name": "margin", 8323 "values": [ 8324 { 8325 "name": "auto" 8326 } 8327 ], 8328 "syntax": "[ <length> | <percentage> | auto ]{1,4}", 8329 "relevance": 95, 8330 "references": [ 8331 { 8332 "name": "MDN Reference", 8333 "url": "https://developer.mozilla.org/docs/Web/CSS/margin" 8334 } 8335 ], 8336 "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.", 8337 "restrictions": [ 8338 "length", 8339 "percentage" 8340 ] 8341 }, 8342 { 8343 "name": "margin-block-end", 8344 "browsers": [ 8345 "E79", 8346 "FF41", 8347 "S12.1", 8348 "C69", 8349 "O56" 8350 ], 8351 "values": [ 8352 { 8353 "name": "auto" 8354 } 8355 ], 8356 "syntax": "<'margin-left'>", 8357 "relevance": 53, 8358 "references": [ 8359 { 8360 "name": "MDN Reference", 8361 "url": "https://developer.mozilla.org/docs/Web/CSS/margin-block-end" 8362 } 8363 ], 8364 "description": "Logical 'margin-bottom'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.", 8365 "restrictions": [ 8366 "length", 8367 "percentage" 8368 ] 8369 }, 8370 { 8371 "name": "margin-block-start", 8372 "browsers": [ 8373 "E79", 8374 "FF41", 8375 "S12.1", 8376 "C69", 8377 "O56" 8378 ], 8379 "values": [ 8380 { 8381 "name": "auto" 8382 } 8383 ], 8384 "syntax": "<'margin-left'>", 8385 "relevance": 52, 8386 "references": [ 8387 { 8388 "name": "MDN Reference", 8389 "url": "https://developer.mozilla.org/docs/Web/CSS/margin-block-start" 8390 } 8391 ], 8392 "description": "Logical 'margin-top'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.", 8393 "restrictions": [ 8394 "length", 8395 "percentage" 8396 ] 8397 }, 8398 { 8399 "name": "margin-bottom", 8400 "values": [ 8401 { 8402 "name": "auto" 8403 } 8404 ], 8405 "syntax": "<length> | <percentage> | auto", 8406 "relevance": 91, 8407 "references": [ 8408 { 8409 "name": "MDN Reference", 8410 "url": "https://developer.mozilla.org/docs/Web/CSS/margin-bottom" 8411 } 8412 ], 8413 "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..", 8414 "restrictions": [ 8415 "length", 8416 "percentage" 8417 ] 8418 }, 8419 { 8420 "name": "margin-inline-end", 8421 "browsers": [ 8422 "E79", 8423 "FF41", 8424 "S12.1", 8425 "C69", 8426 "O56" 8427 ], 8428 "values": [ 8429 { 8430 "name": "auto" 8431 } 8432 ], 8433 "syntax": "<'margin-left'>", 8434 "relevance": 51, 8435 "references": [ 8436 { 8437 "name": "MDN Reference", 8438 "url": "https://developer.mozilla.org/docs/Web/CSS/margin-inline-end" 8439 } 8440 ], 8441 "description": "Logical 'margin-right'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.", 8442 "restrictions": [ 8443 "length", 8444 "percentage" 8445 ] 8446 }, 8447 { 8448 "name": "margin-inline-start", 8449 "browsers": [ 8450 "E79", 8451 "FF41", 8452 "S12.1", 8453 "C69", 8454 "O56" 8455 ], 8456 "values": [ 8457 { 8458 "name": "auto" 8459 } 8460 ], 8461 "syntax": "<'margin-left'>", 8462 "relevance": 51, 8463 "references": [ 8464 { 8465 "name": "MDN Reference", 8466 "url": "https://developer.mozilla.org/docs/Web/CSS/margin-inline-start" 8467 } 8468 ], 8469 "description": "Logical 'margin-left'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.", 8470 "restrictions": [ 8471 "length", 8472 "percentage" 8473 ] 8474 }, 8475 { 8476 "name": "margin-left", 8477 "values": [ 8478 { 8479 "name": "auto" 8480 } 8481 ], 8482 "syntax": "<length> | <percentage> | auto", 8483 "relevance": 91, 8484 "references": [ 8485 { 8486 "name": "MDN Reference", 8487 "url": "https://developer.mozilla.org/docs/Web/CSS/margin-left" 8488 } 8489 ], 8490 "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..", 8491 "restrictions": [ 8492 "length", 8493 "percentage" 8494 ] 8495 }, 8496 { 8497 "name": "margin-right", 8498 "values": [ 8499 { 8500 "name": "auto" 8501 } 8502 ], 8503 "syntax": "<length> | <percentage> | auto", 8504 "relevance": 90, 8505 "references": [ 8506 { 8507 "name": "MDN Reference", 8508 "url": "https://developer.mozilla.org/docs/Web/CSS/margin-right" 8509 } 8510 ], 8511 "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..", 8512 "restrictions": [ 8513 "length", 8514 "percentage" 8515 ] 8516 }, 8517 { 8518 "name": "margin-top", 8519 "values": [ 8520 { 8521 "name": "auto" 8522 } 8523 ], 8524 "syntax": "<length> | <percentage> | auto", 8525 "relevance": 95, 8526 "references": [ 8527 { 8528 "name": "MDN Reference", 8529 "url": "https://developer.mozilla.org/docs/Web/CSS/margin-top" 8530 } 8531 ], 8532 "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..", 8533 "restrictions": [ 8534 "length", 8535 "percentage" 8536 ] 8537 }, 8538 { 8539 "name": "marker", 8540 "values": [ 8541 { 8542 "name": "none", 8543 "description": "Indicates that no marker symbol will be drawn at the given vertex or vertices." 8544 }, 8545 { 8546 "name": "url()", 8547 "description": "Indicates that the <marker> element referenced will be used." 8548 } 8549 ], 8550 "relevance": 50, 8551 "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.", 8552 "restrictions": [ 8553 "url" 8554 ] 8555 }, 8556 { 8557 "name": "marker-end", 8558 "values": [ 8559 { 8560 "name": "none", 8561 "description": "Indicates that no marker symbol will be drawn at the given vertex or vertices." 8562 }, 8563 { 8564 "name": "url()", 8565 "description": "Indicates that the <marker> element referenced will be used." 8566 } 8567 ], 8568 "relevance": 50, 8569 "description": "Specifies the marker that will be drawn at the last vertices of the given markable element.", 8570 "restrictions": [ 8571 "url" 8572 ] 8573 }, 8574 { 8575 "name": "marker-mid", 8576 "values": [ 8577 { 8578 "name": "none", 8579 "description": "Indicates that no marker symbol will be drawn at the given vertex or vertices." 8580 }, 8581 { 8582 "name": "url()", 8583 "description": "Indicates that the <marker> element referenced will be used." 8584 } 8585 ], 8586 "relevance": 50, 8587 "description": "Specifies the marker that will be drawn at all vertices except the first and last.", 8588 "restrictions": [ 8589 "url" 8590 ] 8591 }, 8592 { 8593 "name": "marker-start", 8594 "values": [ 8595 { 8596 "name": "none", 8597 "description": "Indicates that no marker symbol will be drawn at the given vertex or vertices." 8598 }, 8599 { 8600 "name": "url()", 8601 "description": "Indicates that the <marker> element referenced will be used." 8602 } 8603 ], 8604 "relevance": 50, 8605 "description": "Specifies the marker that will be drawn at the first vertices of the given markable element.", 8606 "restrictions": [ 8607 "url" 8608 ] 8609 }, 8610 { 8611 "name": "mask-image", 8612 "browsers": [ 8613 "E16", 8614 "FF53", 8615 "S4", 8616 "C1", 8617 "O15" 8618 ], 8619 "values": [ 8620 { 8621 "name": "none", 8622 "description": "Counts as a transparent black image layer." 8623 }, 8624 { 8625 "name": "url()", 8626 "description": "Reference to a <mask element or to a CSS image." 8627 } 8628 ], 8629 "syntax": "<mask-reference>#", 8630 "relevance": 50, 8631 "references": [ 8632 { 8633 "name": "MDN Reference", 8634 "url": "https://developer.mozilla.org/docs/Web/CSS/mask-image" 8635 } 8636 ], 8637 "description": "Sets the mask layer image of an element.", 8638 "restrictions": [ 8639 "url", 8640 "image", 8641 "enum" 8642 ] 8643 }, 8644 { 8645 "name": "mask-mode", 8646 "browsers": [ 8647 "FF53" 8648 ], 8649 "values": [ 8650 { 8651 "name": "alpha", 8652 "description": "Alpha values of the mask layer image should be used as the mask values." 8653 }, 8654 { 8655 "name": "auto", 8656 "description": "Use alpha values if 'mask-image' is an image, luminance if a <mask> element or a CSS image." 8657 }, 8658 { 8659 "name": "luminance", 8660 "description": "Luminance values of the mask layer image should be used as the mask values." 8661 } 8662 ], 8663 "syntax": "<masking-mode>#", 8664 "relevance": 50, 8665 "references": [ 8666 { 8667 "name": "MDN Reference", 8668 "url": "https://developer.mozilla.org/docs/Web/CSS/mask-mode" 8669 } 8670 ], 8671 "description": "Indicates whether the mask layer image is treated as luminance mask or alpha mask.", 8672 "restrictions": [ 8673 "url", 8674 "image", 8675 "enum" 8676 ] 8677 }, 8678 { 8679 "name": "mask-origin", 8680 "browsers": [ 8681 "E79", 8682 "FF53", 8683 "S4", 8684 "C1", 8685 "O15" 8686 ], 8687 "syntax": "<geometry-box>#", 8688 "relevance": 50, 8689 "references": [ 8690 { 8691 "name": "MDN Reference", 8692 "url": "https://developer.mozilla.org/docs/Web/CSS/mask-origin" 8693 } 8694 ], 8695 "description": "Specifies the mask positioning area.", 8696 "restrictions": [ 8697 "geometry-box", 8698 "enum" 8699 ] 8700 }, 8701 { 8702 "name": "mask-position", 8703 "browsers": [ 8704 "E18", 8705 "FF53", 8706 "S3.2", 8707 "C1", 8708 "O15" 8709 ], 8710 "syntax": "<position>#", 8711 "relevance": 50, 8712 "references": [ 8713 { 8714 "name": "MDN Reference", 8715 "url": "https://developer.mozilla.org/docs/Web/CSS/mask-position" 8716 } 8717 ], 8718 "description": "Specifies how mask layer images are positioned.", 8719 "restrictions": [ 8720 "position", 8721 "length", 8722 "percentage" 8723 ] 8724 }, 8725 { 8726 "name": "mask-repeat", 8727 "browsers": [ 8728 "E18", 8729 "FF53", 8730 "S3.2", 8731 "C1", 8732 "O15" 8733 ], 8734 "syntax": "<repeat-style>#", 8735 "relevance": 50, 8736 "references": [ 8737 { 8738 "name": "MDN Reference", 8739 "url": "https://developer.mozilla.org/docs/Web/CSS/mask-repeat" 8740 } 8741 ], 8742 "description": "Specifies how mask layer images are tiled after they have been sized and positioned.", 8743 "restrictions": [ 8744 "repeat" 8745 ] 8746 }, 8747 { 8748 "name": "mask-size", 8749 "browsers": [ 8750 "E18", 8751 "FF53", 8752 "S4", 8753 "C4", 8754 "O15" 8755 ], 8756 "values": [ 8757 { 8758 "name": "auto", 8759 "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%." 8760 }, 8761 { 8762 "name": "contain", 8763 "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." 8764 }, 8765 { 8766 "name": "cover", 8767 "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." 8768 } 8769 ], 8770 "syntax": "<bg-size>#", 8771 "relevance": 50, 8772 "references": [ 8773 { 8774 "name": "MDN Reference", 8775 "url": "https://developer.mozilla.org/docs/Web/CSS/mask-size" 8776 } 8777 ], 8778 "description": "Specifies the size of the mask layer images.", 8779 "restrictions": [ 8780 "length", 8781 "percentage", 8782 "enum" 8783 ] 8784 }, 8785 { 8786 "name": "mask-type", 8787 "browsers": [ 8788 "E79", 8789 "FF35", 8790 "S6.1", 8791 "C24", 8792 "O15" 8793 ], 8794 "values": [ 8795 { 8796 "name": "alpha", 8797 "description": "Indicates that the alpha values of the mask should be used." 8798 }, 8799 { 8800 "name": "luminance", 8801 "description": "Indicates that the luminance values of the mask should be used." 8802 } 8803 ], 8804 "syntax": "luminance | alpha", 8805 "relevance": 50, 8806 "references": [ 8807 { 8808 "name": "MDN Reference", 8809 "url": "https://developer.mozilla.org/docs/Web/CSS/mask-type" 8810 } 8811 ], 8812 "description": "Defines whether the content of the <mask> element is treated as as luminance mask or alpha mask.", 8813 "restrictions": [ 8814 "enum" 8815 ] 8816 }, 8817 { 8818 "name": "max-block-size", 8819 "browsers": [ 8820 "E79", 8821 "FF41", 8822 "S12.1", 8823 "C57", 8824 "O44" 8825 ], 8826 "values": [ 8827 { 8828 "name": "none", 8829 "description": "No limit on the width of the box." 8830 } 8831 ], 8832 "syntax": "<'max-width'>", 8833 "relevance": 50, 8834 "references": [ 8835 { 8836 "name": "MDN Reference", 8837 "url": "https://developer.mozilla.org/docs/Web/CSS/max-block-size" 8838 } 8839 ], 8840 "description": "Logical 'max-width'. Mapping depends on the element’s 'writing-mode'.", 8841 "restrictions": [ 8842 "length", 8843 "percentage" 8844 ] 8845 }, 8846 { 8847 "name": "max-height", 8848 "values": [ 8849 { 8850 "name": "none", 8851 "description": "No limit on the height of the box." 8852 }, 8853 { 8854 "name": "fit-content", 8855 "description": "Use the fit-content inline size or fit-content block size, as appropriate to the writing mode." 8856 }, 8857 { 8858 "name": "max-content", 8859 "description": "Use the max-content inline size or max-content block size, as appropriate to the writing mode." 8860 }, 8861 { 8862 "name": "min-content", 8863 "description": "Use the min-content inline size or min-content block size, as appropriate to the writing mode." 8864 } 8865 ], 8866 "syntax": "<viewport-length>", 8867 "relevance": 84, 8868 "references": [ 8869 { 8870 "name": "MDN Reference", 8871 "url": "https://developer.mozilla.org/docs/Web/CSS/max-height" 8872 } 8873 ], 8874 "description": "Allows authors to constrain content height to a certain range.", 8875 "restrictions": [ 8876 "length", 8877 "percentage" 8878 ] 8879 }, 8880 { 8881 "name": "max-inline-size", 8882 "browsers": [ 8883 "E79", 8884 "FF41", 8885 "S10.1", 8886 "C57", 8887 "O44" 8888 ], 8889 "values": [ 8890 { 8891 "name": "none", 8892 "description": "No limit on the height of the box." 8893 } 8894 ], 8895 "syntax": "<'max-width'>", 8896 "relevance": 50, 8897 "references": [ 8898 { 8899 "name": "MDN Reference", 8900 "url": "https://developer.mozilla.org/docs/Web/CSS/max-inline-size" 8901 } 8902 ], 8903 "description": "Logical 'max-height'. Mapping depends on the element’s 'writing-mode'.", 8904 "restrictions": [ 8905 "length", 8906 "percentage" 8907 ] 8908 }, 8909 { 8910 "name": "max-width", 8911 "values": [ 8912 { 8913 "name": "none", 8914 "description": "No limit on the width of the box." 8915 }, 8916 { 8917 "name": "fit-content", 8918 "description": "Use the fit-content inline size or fit-content block size, as appropriate to the writing mode." 8919 }, 8920 { 8921 "name": "max-content", 8922 "description": "Use the max-content inline size or max-content block size, as appropriate to the writing mode." 8923 }, 8924 { 8925 "name": "min-content", 8926 "description": "Use the min-content inline size or min-content block size, as appropriate to the writing mode." 8927 } 8928 ], 8929 "syntax": "<viewport-length>", 8930 "relevance": 89, 8931 "references": [ 8932 { 8933 "name": "MDN Reference", 8934 "url": "https://developer.mozilla.org/docs/Web/CSS/max-width" 8935 } 8936 ], 8937 "description": "Allows authors to constrain content width to a certain range.", 8938 "restrictions": [ 8939 "length", 8940 "percentage" 8941 ] 8942 }, 8943 { 8944 "name": "min-block-size", 8945 "browsers": [ 8946 "E79", 8947 "FF41", 8948 "S12.1", 8949 "C57", 8950 "O44" 8951 ], 8952 "syntax": "<'min-width'>", 8953 "relevance": 50, 8954 "references": [ 8955 { 8956 "name": "MDN Reference", 8957 "url": "https://developer.mozilla.org/docs/Web/CSS/min-block-size" 8958 } 8959 ], 8960 "description": "Logical 'min-width'. Mapping depends on the element’s 'writing-mode'.", 8961 "restrictions": [ 8962 "length", 8963 "percentage" 8964 ] 8965 }, 8966 { 8967 "name": "min-height", 8968 "values": [ 8969 { 8970 "name": "auto" 8971 }, 8972 { 8973 "name": "fit-content", 8974 "description": "Use the fit-content inline size or fit-content block size, as appropriate to the writing mode." 8975 }, 8976 { 8977 "name": "max-content", 8978 "description": "Use the max-content inline size or max-content block size, as appropriate to the writing mode." 8979 }, 8980 { 8981 "name": "min-content", 8982 "description": "Use the min-content inline size or min-content block size, as appropriate to the writing mode." 8983 } 8984 ], 8985 "syntax": "<viewport-length>", 8986 "relevance": 88, 8987 "references": [ 8988 { 8989 "name": "MDN Reference", 8990 "url": "https://developer.mozilla.org/docs/Web/CSS/min-height" 8991 } 8992 ], 8993 "description": "Allows authors to constrain content height to a certain range.", 8994 "restrictions": [ 8995 "length", 8996 "percentage" 8997 ] 8998 }, 8999 { 9000 "name": "min-inline-size", 9001 "browsers": [ 9002 "E79", 9003 "FF41", 9004 "S12.1", 9005 "C57", 9006 "O44" 9007 ], 9008 "syntax": "<'min-width'>", 9009 "relevance": 50, 9010 "references": [ 9011 { 9012 "name": "MDN Reference", 9013 "url": "https://developer.mozilla.org/docs/Web/CSS/min-inline-size" 9014 } 9015 ], 9016 "description": "Logical 'min-height'. Mapping depends on the element’s 'writing-mode'.", 9017 "restrictions": [ 9018 "length", 9019 "percentage" 9020 ] 9021 }, 9022 { 9023 "name": "min-width", 9024 "values": [ 9025 { 9026 "name": "auto" 9027 }, 9028 { 9029 "name": "fit-content", 9030 "description": "Use the fit-content inline size or fit-content block size, as appropriate to the writing mode." 9031 }, 9032 { 9033 "name": "max-content", 9034 "description": "Use the max-content inline size or max-content block size, as appropriate to the writing mode." 9035 }, 9036 { 9037 "name": "min-content", 9038 "description": "Use the min-content inline size or min-content block size, as appropriate to the writing mode." 9039 } 9040 ], 9041 "syntax": "<viewport-length>", 9042 "relevance": 87, 9043 "references": [ 9044 { 9045 "name": "MDN Reference", 9046 "url": "https://developer.mozilla.org/docs/Web/CSS/min-width" 9047 } 9048 ], 9049 "description": "Allows authors to constrain content width to a certain range.", 9050 "restrictions": [ 9051 "length", 9052 "percentage" 9053 ] 9054 }, 9055 { 9056 "name": "mix-blend-mode", 9057 "browsers": [ 9058 "E79", 9059 "FF32", 9060 "S8", 9061 "C41", 9062 "O28" 9063 ], 9064 "values": [ 9065 { 9066 "name": "normal", 9067 "description": "Default attribute which specifies no blending" 9068 }, 9069 { 9070 "name": "multiply", 9071 "description": "The source color is multiplied by the destination color and replaces the destination." 9072 }, 9073 { 9074 "name": "screen", 9075 "description": "Multiplies the complements of the backdrop and source color values, then complements the result." 9076 }, 9077 { 9078 "name": "overlay", 9079 "description": "Multiplies or screens the colors, depending on the backdrop color value." 9080 }, 9081 { 9082 "name": "darken", 9083 "description": "Selects the darker of the backdrop and source colors." 9084 }, 9085 { 9086 "name": "lighten", 9087 "description": "Selects the lighter of the backdrop and source colors." 9088 }, 9089 { 9090 "name": "color-dodge", 9091 "description": "Brightens the backdrop color to reflect the source color." 9092 }, 9093 { 9094 "name": "color-burn", 9095 "description": "Darkens the backdrop color to reflect the source color." 9096 }, 9097 { 9098 "name": "hard-light", 9099 "description": "Multiplies or screens the colors, depending on the source color value." 9100 }, 9101 { 9102 "name": "soft-light", 9103 "description": "Darkens or lightens the colors, depending on the source color value." 9104 }, 9105 { 9106 "name": "difference", 9107 "description": "Subtracts the darker of the two constituent colors from the lighter color.." 9108 }, 9109 { 9110 "name": "exclusion", 9111 "description": "Produces an effect similar to that of the Difference mode but lower in contrast." 9112 }, 9113 { 9114 "name": "hue", 9115 "browsers": [ 9116 "E79", 9117 "FF32", 9118 "S8", 9119 "C41", 9120 "O28" 9121 ], 9122 "description": "Creates a color with the hue of the source color and the saturation and luminosity of the backdrop color." 9123 }, 9124 { 9125 "name": "saturation", 9126 "browsers": [ 9127 "E79", 9128 "FF32", 9129 "S8", 9130 "C41", 9131 "O28" 9132 ], 9133 "description": "Creates a color with the saturation of the source color and the hue and luminosity of the backdrop color." 9134 }, 9135 { 9136 "name": "color", 9137 "browsers": [ 9138 "E79", 9139 "FF32", 9140 "S8", 9141 "C41", 9142 "O28" 9143 ], 9144 "description": "Creates a color with the hue and saturation of the source color and the luminosity of the backdrop color." 9145 }, 9146 { 9147 "name": "luminosity", 9148 "browsers": [ 9149 "E79", 9150 "FF32", 9151 "S8", 9152 "C41", 9153 "O28" 9154 ], 9155 "description": "Creates a color with the luminosity of the source color and the hue and saturation of the backdrop color." 9156 } 9157 ], 9158 "syntax": "<blend-mode>", 9159 "relevance": 51, 9160 "references": [ 9161 { 9162 "name": "MDN Reference", 9163 "url": "https://developer.mozilla.org/docs/Web/CSS/mix-blend-mode" 9164 } 9165 ], 9166 "description": "Defines the formula that must be used to mix the colors with the backdrop.", 9167 "restrictions": [ 9168 "enum" 9169 ] 9170 }, 9171 { 9172 "name": "motion", 9173 "browsers": [ 9174 "C46", 9175 "O33" 9176 ], 9177 "values": [ 9178 { 9179 "name": "none", 9180 "description": "No motion path gets created." 9181 }, 9182 { 9183 "name": "path()", 9184 "description": "Defines an SVG path as a string, with optional 'fill-rule' as the first argument." 9185 }, 9186 { 9187 "name": "auto", 9188 "description": "Indicates that the object is rotated by the angle of the direction of the motion path." 9189 }, 9190 { 9191 "name": "reverse", 9192 "description": "Indicates that the object is rotated by the angle of the direction of the motion path plus 180 degrees." 9193 } 9194 ], 9195 "relevance": 50, 9196 "description": "Shorthand property for setting 'motion-path', 'motion-offset' and 'motion-rotation'.", 9197 "restrictions": [ 9198 "url", 9199 "length", 9200 "percentage", 9201 "angle", 9202 "shape", 9203 "geometry-box", 9204 "enum" 9205 ] 9206 }, 9207 { 9208 "name": "motion-offset", 9209 "browsers": [ 9210 "C46", 9211 "O33" 9212 ], 9213 "relevance": 50, 9214 "description": "A distance that describes the position along the specified motion path.", 9215 "restrictions": [ 9216 "length", 9217 "percentage" 9218 ] 9219 }, 9220 { 9221 "name": "motion-path", 9222 "browsers": [ 9223 "C46", 9224 "O33" 9225 ], 9226 "values": [ 9227 { 9228 "name": "none", 9229 "description": "No motion path gets created." 9230 }, 9231 { 9232 "name": "path()", 9233 "description": "Defines an SVG path as a string, with optional 'fill-rule' as the first argument." 9234 } 9235 ], 9236 "relevance": 50, 9237 "description": "Specifies the motion path the element gets positioned at.", 9238 "restrictions": [ 9239 "url", 9240 "shape", 9241 "geometry-box", 9242 "enum" 9243 ] 9244 }, 9245 { 9246 "name": "motion-rotation", 9247 "browsers": [ 9248 "C46", 9249 "O33" 9250 ], 9251 "values": [ 9252 { 9253 "name": "auto", 9254 "description": "Indicates that the object is rotated by the angle of the direction of the motion path." 9255 }, 9256 { 9257 "name": "reverse", 9258 "description": "Indicates that the object is rotated by the angle of the direction of the motion path plus 180 degrees." 9259 } 9260 ], 9261 "relevance": 50, 9262 "description": "Defines the direction of the element while positioning along the motion path.", 9263 "restrictions": [ 9264 "angle" 9265 ] 9266 }, 9267 { 9268 "name": "-moz-animation", 9269 "browsers": [ 9270 "FF9" 9271 ], 9272 "values": [ 9273 { 9274 "name": "alternate", 9275 "description": "The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction." 9276 }, 9277 { 9278 "name": "alternate-reverse", 9279 "description": "The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction." 9280 }, 9281 { 9282 "name": "backwards", 9283 "description": "The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'." 9284 }, 9285 { 9286 "name": "both", 9287 "description": "Both forwards and backwards fill modes are applied." 9288 }, 9289 { 9290 "name": "forwards", 9291 "description": "The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes." 9292 }, 9293 { 9294 "name": "infinite", 9295 "description": "Causes the animation to repeat forever." 9296 }, 9297 { 9298 "name": "none", 9299 "description": "No animation is performed" 9300 }, 9301 { 9302 "name": "normal", 9303 "description": "Normal playback." 9304 }, 9305 { 9306 "name": "reverse", 9307 "description": "All iterations of the animation are played in the reverse direction from the way they were specified." 9308 } 9309 ], 9310 "relevance": 50, 9311 "description": "Shorthand property combines six of the animation properties into a single property.", 9312 "restrictions": [ 9313 "time", 9314 "enum", 9315 "timing-function", 9316 "identifier", 9317 "number" 9318 ] 9319 }, 9320 { 9321 "name": "-moz-animation-delay", 9322 "browsers": [ 9323 "FF9" 9324 ], 9325 "relevance": 50, 9326 "description": "Defines when the animation will start.", 9327 "restrictions": [ 9328 "time" 9329 ] 9330 }, 9331 { 9332 "name": "-moz-animation-direction", 9333 "browsers": [ 9334 "FF9" 9335 ], 9336 "values": [ 9337 { 9338 "name": "alternate", 9339 "description": "The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction." 9340 }, 9341 { 9342 "name": "alternate-reverse", 9343 "description": "The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction." 9344 }, 9345 { 9346 "name": "normal", 9347 "description": "Normal playback." 9348 }, 9349 { 9350 "name": "reverse", 9351 "description": "All iterations of the animation are played in the reverse direction from the way they were specified." 9352 } 9353 ], 9354 "relevance": 50, 9355 "description": "Defines whether or not the animation should play in reverse on alternate cycles.", 9356 "restrictions": [ 9357 "enum" 9358 ] 9359 }, 9360 { 9361 "name": "-moz-animation-duration", 9362 "browsers": [ 9363 "FF9" 9364 ], 9365 "relevance": 50, 9366 "description": "Defines the length of time that an animation takes to complete one cycle.", 9367 "restrictions": [ 9368 "time" 9369 ] 9370 }, 9371 { 9372 "name": "-moz-animation-iteration-count", 9373 "browsers": [ 9374 "FF9" 9375 ], 9376 "values": [ 9377 { 9378 "name": "infinite", 9379 "description": "Causes the animation to repeat forever." 9380 } 9381 ], 9382 "relevance": 50, 9383 "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.", 9384 "restrictions": [ 9385 "number", 9386 "enum" 9387 ] 9388 }, 9389 { 9390 "name": "-moz-animation-name", 9391 "browsers": [ 9392 "FF9" 9393 ], 9394 "values": [ 9395 { 9396 "name": "none", 9397 "description": "No animation is performed" 9398 } 9399 ], 9400 "relevance": 50, 9401 "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.", 9402 "restrictions": [ 9403 "identifier", 9404 "enum" 9405 ] 9406 }, 9407 { 9408 "name": "-moz-animation-play-state", 9409 "browsers": [ 9410 "FF9" 9411 ], 9412 "values": [ 9413 { 9414 "name": "paused", 9415 "description": "A running animation will be paused." 9416 }, 9417 { 9418 "name": "running", 9419 "description": "Resume playback of a paused animation." 9420 } 9421 ], 9422 "relevance": 50, 9423 "description": "Defines whether the animation is running or paused.", 9424 "restrictions": [ 9425 "enum" 9426 ] 9427 }, 9428 { 9429 "name": "-moz-animation-timing-function", 9430 "browsers": [ 9431 "FF9" 9432 ], 9433 "relevance": 50, 9434 "description": "Describes how the animation will progress over one cycle of its duration. See the 'transition-timing-function'.", 9435 "restrictions": [ 9436 "timing-function" 9437 ] 9438 }, 9439 { 9440 "name": "-moz-appearance", 9441 "browsers": [ 9442 "FF1" 9443 ], 9444 "values": [ 9445 { 9446 "name": "button" 9447 }, 9448 { 9449 "name": "button-arrow-down" 9450 }, 9451 { 9452 "name": "button-arrow-next" 9453 }, 9454 { 9455 "name": "button-arrow-previous" 9456 }, 9457 { 9458 "name": "button-arrow-up" 9459 }, 9460 { 9461 "name": "button-bevel" 9462 }, 9463 { 9464 "name": "checkbox" 9465 }, 9466 { 9467 "name": "checkbox-container" 9468 }, 9469 { 9470 "name": "checkbox-label" 9471 }, 9472 { 9473 "name": "dialog" 9474 }, 9475 { 9476 "name": "groupbox" 9477 }, 9478 { 9479 "name": "listbox" 9480 }, 9481 { 9482 "name": "menuarrow" 9483 }, 9484 { 9485 "name": "menuimage" 9486 }, 9487 { 9488 "name": "menuitem" 9489 }, 9490 { 9491 "name": "menuitemtext" 9492 }, 9493 { 9494 "name": "menulist" 9495 }, 9496 { 9497 "name": "menulist-button" 9498 }, 9499 { 9500 "name": "menulist-text" 9501 }, 9502 { 9503 "name": "menulist-textfield" 9504 }, 9505 { 9506 "name": "menupopup" 9507 }, 9508 { 9509 "name": "menuradio" 9510 }, 9511 { 9512 "name": "menuseparator" 9513 }, 9514 { 9515 "name": "-moz-mac-unified-toolbar" 9516 }, 9517 { 9518 "name": "-moz-win-borderless-glass" 9519 }, 9520 { 9521 "name": "-moz-win-browsertabbar-toolbox" 9522 }, 9523 { 9524 "name": "-moz-win-communications-toolbox" 9525 }, 9526 { 9527 "name": "-moz-win-glass" 9528 }, 9529 { 9530 "name": "-moz-win-media-toolbox" 9531 }, 9532 { 9533 "name": "none" 9534 }, 9535 { 9536 "name": "progressbar" 9537 }, 9538 { 9539 "name": "progresschunk" 9540 }, 9541 { 9542 "name": "radio" 9543 }, 9544 { 9545 "name": "radio-container" 9546 }, 9547 { 9548 "name": "radio-label" 9549 }, 9550 { 9551 "name": "radiomenuitem" 9552 }, 9553 { 9554 "name": "resizer" 9555 }, 9556 { 9557 "name": "resizerpanel" 9558 }, 9559 { 9560 "name": "scrollbarbutton-down" 9561 }, 9562 { 9563 "name": "scrollbarbutton-left" 9564 }, 9565 { 9566 "name": "scrollbarbutton-right" 9567 }, 9568 { 9569 "name": "scrollbarbutton-up" 9570 }, 9571 { 9572 "name": "scrollbar-small" 9573 }, 9574 { 9575 "name": "scrollbartrack-horizontal" 9576 }, 9577 { 9578 "name": "scrollbartrack-vertical" 9579 }, 9580 { 9581 "name": "separator" 9582 }, 9583 { 9584 "name": "spinner" 9585 }, 9586 { 9587 "name": "spinner-downbutton" 9588 }, 9589 { 9590 "name": "spinner-textfield" 9591 }, 9592 { 9593 "name": "spinner-upbutton" 9594 }, 9595 { 9596 "name": "statusbar" 9597 }, 9598 { 9599 "name": "statusbarpanel" 9600 }, 9601 { 9602 "name": "tab" 9603 }, 9604 { 9605 "name": "tabpanels" 9606 }, 9607 { 9608 "name": "tab-scroll-arrow-back" 9609 }, 9610 { 9611 "name": "tab-scroll-arrow-forward" 9612 }, 9613 { 9614 "name": "textfield" 9615 }, 9616 { 9617 "name": "textfield-multiline" 9618 }, 9619 { 9620 "name": "toolbar" 9621 }, 9622 { 9623 "name": "toolbox" 9624 }, 9625 { 9626 "name": "tooltip" 9627 }, 9628 { 9629 "name": "treeheadercell" 9630 }, 9631 { 9632 "name": "treeheadersortarrow" 9633 }, 9634 { 9635 "name": "treeitem" 9636 }, 9637 { 9638 "name": "treetwistyopen" 9639 }, 9640 { 9641 "name": "treeview" 9642 }, 9643 { 9644 "name": "treewisty" 9645 }, 9646 { 9647 "name": "window" 9648 } 9649 ], 9650 "status": "nonstandard", 9651 "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", 9652 "relevance": 0, 9653 "description": "Used in Gecko (Firefox) to display an element using a platform-native styling based on the operating system's theme.", 9654 "restrictions": [ 9655 "enum" 9656 ] 9657 }, 9658 { 9659 "name": "-moz-backface-visibility", 9660 "browsers": [ 9661 "FF10" 9662 ], 9663 "values": [ 9664 { 9665 "name": "hidden" 9666 }, 9667 { 9668 "name": "visible" 9669 } 9670 ], 9671 "relevance": 50, 9672 "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.", 9673 "restrictions": [ 9674 "enum" 9675 ] 9676 }, 9677 { 9678 "name": "-moz-background-clip", 9679 "browsers": [ 9680 "FF1-3.6" 9681 ], 9682 "values": [ 9683 { 9684 "name": "padding" 9685 } 9686 ], 9687 "relevance": 50, 9688 "description": "Determines the background painting area.", 9689 "restrictions": [ 9690 "box", 9691 "enum" 9692 ] 9693 }, 9694 { 9695 "name": "-moz-background-inline-policy", 9696 "browsers": [ 9697 "FF1" 9698 ], 9699 "values": [ 9700 { 9701 "name": "bounding-box" 9702 }, 9703 { 9704 "name": "continuous" 9705 }, 9706 { 9707 "name": "each-box" 9708 } 9709 ], 9710 "relevance": 50, 9711 "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.", 9712 "restrictions": [ 9713 "enum" 9714 ] 9715 }, 9716 { 9717 "name": "-moz-background-origin", 9718 "browsers": [ 9719 "FF1" 9720 ], 9721 "relevance": 50, 9722 "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).", 9723 "restrictions": [ 9724 "box" 9725 ] 9726 }, 9727 { 9728 "name": "-moz-border-bottom-colors", 9729 "browsers": [ 9730 "FF1" 9731 ], 9732 "status": "nonstandard", 9733 "syntax": "<color>+ | none", 9734 "relevance": 0, 9735 "description": "Sets a list of colors for the bottom border.", 9736 "restrictions": [ 9737 "color" 9738 ] 9739 }, 9740 { 9741 "name": "-moz-border-image", 9742 "browsers": [ 9743 "FF3.6" 9744 ], 9745 "values": [ 9746 { 9747 "name": "auto", 9748 "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." 9749 }, 9750 { 9751 "name": "fill", 9752 "description": "Causes the middle part of the border-image to be preserved." 9753 }, 9754 { 9755 "name": "none" 9756 }, 9757 { 9758 "name": "repeat", 9759 "description": "The image is tiled (repeated) to fill the area." 9760 }, 9761 { 9762 "name": "round", 9763 "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." 9764 }, 9765 { 9766 "name": "space", 9767 "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." 9768 }, 9769 { 9770 "name": "stretch", 9771 "description": "The image is stretched to fill the area." 9772 }, 9773 { 9774 "name": "url()" 9775 } 9776 ], 9777 "relevance": 50, 9778 "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.", 9779 "restrictions": [ 9780 "length", 9781 "percentage", 9782 "number", 9783 "url", 9784 "enum" 9785 ] 9786 }, 9787 { 9788 "name": "-moz-border-left-colors", 9789 "browsers": [ 9790 "FF1" 9791 ], 9792 "status": "nonstandard", 9793 "syntax": "<color>+ | none", 9794 "relevance": 0, 9795 "description": "Sets a list of colors for the bottom border.", 9796 "restrictions": [ 9797 "color" 9798 ] 9799 }, 9800 { 9801 "name": "-moz-border-right-colors", 9802 "browsers": [ 9803 "FF1" 9804 ], 9805 "status": "nonstandard", 9806 "syntax": "<color>+ | none", 9807 "relevance": 0, 9808 "description": "Sets a list of colors for the bottom border.", 9809 "restrictions": [ 9810 "color" 9811 ] 9812 }, 9813 { 9814 "name": "-moz-border-top-colors", 9815 "browsers": [ 9816 "FF1" 9817 ], 9818 "status": "nonstandard", 9819 "syntax": "<color>+ | none", 9820 "relevance": 0, 9821 "description": "Ske Firefox, -moz-border-bottom-colors sets a list of colors for the bottom border.", 9822 "restrictions": [ 9823 "color" 9824 ] 9825 }, 9826 { 9827 "name": "-moz-box-align", 9828 "browsers": [ 9829 "FF1" 9830 ], 9831 "values": [ 9832 { 9833 "name": "baseline", 9834 "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." 9835 }, 9836 { 9837 "name": "center", 9838 "description": "Any extra space is divided evenly, with half placed above the child and the other half placed after the child." 9839 }, 9840 { 9841 "name": "end", 9842 "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." 9843 }, 9844 { 9845 "name": "start", 9846 "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." 9847 }, 9848 { 9849 "name": "stretch", 9850 "description": "The height of each child is adjusted to that of the containing block." 9851 } 9852 ], 9853 "relevance": 50, 9854 "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.", 9855 "restrictions": [ 9856 "enum" 9857 ] 9858 }, 9859 { 9860 "name": "-moz-box-direction", 9861 "browsers": [ 9862 "FF1" 9863 ], 9864 "values": [ 9865 { 9866 "name": "normal", 9867 "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." 9868 }, 9869 { 9870 "name": "reverse", 9871 "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." 9872 } 9873 ], 9874 "relevance": 50, 9875 "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).", 9876 "restrictions": [ 9877 "enum" 9878 ] 9879 }, 9880 { 9881 "name": "-moz-box-flex", 9882 "browsers": [ 9883 "FF1" 9884 ], 9885 "relevance": 50, 9886 "description": "Specifies how a box grows to fill the box that contains it, in the direction of the containing box's layout.", 9887 "restrictions": [ 9888 "number" 9889 ] 9890 }, 9891 { 9892 "name": "-moz-box-flexgroup", 9893 "browsers": [ 9894 "FF1" 9895 ], 9896 "relevance": 50, 9897 "description": "Flexible elements can be assigned to flex groups using the 'box-flex-group' property.", 9898 "restrictions": [ 9899 "integer" 9900 ] 9901 }, 9902 { 9903 "name": "-moz-box-ordinal-group", 9904 "browsers": [ 9905 "FF1" 9906 ], 9907 "relevance": 50, 9908 "description": "Indicates the ordinal group the element belongs to. Elements with a lower ordinal group are displayed before those with a higher ordinal group.", 9909 "restrictions": [ 9910 "integer" 9911 ] 9912 }, 9913 { 9914 "name": "-moz-box-orient", 9915 "browsers": [ 9916 "FF1" 9917 ], 9918 "values": [ 9919 { 9920 "name": "block-axis", 9921 "description": "Elements are oriented along the box's axis." 9922 }, 9923 { 9924 "name": "horizontal", 9925 "description": "The box displays its children from left to right in a horizontal line." 9926 }, 9927 { 9928 "name": "inline-axis", 9929 "description": "Elements are oriented vertically." 9930 }, 9931 { 9932 "name": "vertical", 9933 "description": "The box displays its children from stacked from top to bottom vertically." 9934 } 9935 ], 9936 "relevance": 50, 9937 "description": "In Mozilla applications, -moz-box-orient specifies whether a box lays out its contents horizontally or vertically.", 9938 "restrictions": [ 9939 "enum" 9940 ] 9941 }, 9942 { 9943 "name": "-moz-box-pack", 9944 "browsers": [ 9945 "FF1" 9946 ], 9947 "values": [ 9948 { 9949 "name": "center", 9950 "description": "The extra space is divided evenly, with half placed before the first child and the other half placed after the last child." 9951 }, 9952 { 9953 "name": "end", 9954 "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." 9955 }, 9956 { 9957 "name": "justify", 9958 "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." 9959 }, 9960 { 9961 "name": "start", 9962 "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." 9963 } 9964 ], 9965 "relevance": 50, 9966 "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.", 9967 "restrictions": [ 9968 "enum" 9969 ] 9970 }, 9971 { 9972 "name": "-moz-box-sizing", 9973 "browsers": [ 9974 "FF1" 9975 ], 9976 "values": [ 9977 { 9978 "name": "border-box", 9979 "description": "The specified width and height (and respective min/max properties) on this element determine the border box of the element." 9980 }, 9981 { 9982 "name": "content-box", 9983 "description": "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." 9984 }, 9985 { 9986 "name": "padding-box", 9987 "description": "The specified width and height (and respective min/max properties) on this element determine the padding box of the element." 9988 } 9989 ], 9990 "relevance": 50, 9991 "description": "Box Model addition in CSS3.", 9992 "restrictions": [ 9993 "enum" 9994 ] 9995 }, 9996 { 9997 "name": "-moz-column-count", 9998 "browsers": [ 9999 "FF3.5" 10000 ], 10001 "values": [ 10002 { 10003 "name": "auto", 10004 "description": "Determines the number of columns by the 'column-width' property and the element width." 10005 } 10006 ], 10007 "relevance": 50, 10008 "description": "Describes the optimal number of columns into which the content of the element will be flowed.", 10009 "restrictions": [ 10010 "integer" 10011 ] 10012 }, 10013 { 10014 "name": "-moz-column-gap", 10015 "browsers": [ 10016 "FF3.5" 10017 ], 10018 "values": [ 10019 { 10020 "name": "normal", 10021 "description": "User agent specific and typically equivalent to 1em." 10022 } 10023 ], 10024 "relevance": 50, 10025 "description": "Sets the gap between columns. If there is a column rule between columns, it will appear in the middle of the gap.", 10026 "restrictions": [ 10027 "length" 10028 ] 10029 }, 10030 { 10031 "name": "-moz-column-rule", 10032 "browsers": [ 10033 "FF3.5" 10034 ], 10035 "relevance": 50, 10036 "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.", 10037 "restrictions": [ 10038 "length", 10039 "line-width", 10040 "line-style", 10041 "color" 10042 ] 10043 }, 10044 { 10045 "name": "-moz-column-rule-color", 10046 "browsers": [ 10047 "FF3.5" 10048 ], 10049 "relevance": 50, 10050 "description": "Sets the color of the column rule", 10051 "restrictions": [ 10052 "color" 10053 ] 10054 }, 10055 { 10056 "name": "-moz-column-rule-style", 10057 "browsers": [ 10058 "FF3.5" 10059 ], 10060 "relevance": 50, 10061 "description": "Sets the style of the rule between columns of an element.", 10062 "restrictions": [ 10063 "line-style" 10064 ] 10065 }, 10066 { 10067 "name": "-moz-column-rule-width", 10068 "browsers": [ 10069 "FF3.5" 10070 ], 10071 "relevance": 50, 10072 "description": "Sets the width of the rule between columns. Negative values are not allowed.", 10073 "restrictions": [ 10074 "length", 10075 "line-width" 10076 ] 10077 }, 10078 { 10079 "name": "-moz-columns", 10080 "browsers": [ 10081 "FF9" 10082 ], 10083 "values": [ 10084 { 10085 "name": "auto", 10086 "description": "The width depends on the values of other properties." 10087 } 10088 ], 10089 "relevance": 50, 10090 "description": "A shorthand property which sets both 'column-width' and 'column-count'.", 10091 "restrictions": [ 10092 "length", 10093 "integer" 10094 ] 10095 }, 10096 { 10097 "name": "-moz-column-width", 10098 "browsers": [ 10099 "FF3.5" 10100 ], 10101 "values": [ 10102 { 10103 "name": "auto", 10104 "description": "The width depends on the values of other properties." 10105 } 10106 ], 10107 "relevance": 50, 10108 "description": "This property describes the width of columns in multicol elements.", 10109 "restrictions": [ 10110 "length" 10111 ] 10112 }, 10113 { 10114 "name": "-moz-font-feature-settings", 10115 "browsers": [ 10116 "FF4" 10117 ], 10118 "values": [ 10119 { 10120 "name": "\"c2cs\"" 10121 }, 10122 { 10123 "name": "\"dlig\"" 10124 }, 10125 { 10126 "name": "\"kern\"" 10127 }, 10128 { 10129 "name": "\"liga\"" 10130 }, 10131 { 10132 "name": "\"lnum\"" 10133 }, 10134 { 10135 "name": "\"onum\"" 10136 }, 10137 { 10138 "name": "\"smcp\"" 10139 }, 10140 { 10141 "name": "\"swsh\"" 10142 }, 10143 { 10144 "name": "\"tnum\"" 10145 }, 10146 { 10147 "name": "normal", 10148 "description": "No change in glyph substitution or positioning occurs." 10149 }, 10150 { 10151 "name": "off", 10152 "browsers": [ 10153 "FF4" 10154 ] 10155 }, 10156 { 10157 "name": "on", 10158 "browsers": [ 10159 "FF4" 10160 ] 10161 } 10162 ], 10163 "relevance": 50, 10164 "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.", 10165 "restrictions": [ 10166 "string", 10167 "integer" 10168 ] 10169 }, 10170 { 10171 "name": "-moz-hyphens", 10172 "browsers": [ 10173 "FF9" 10174 ], 10175 "values": [ 10176 { 10177 "name": "auto", 10178 "description": "Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word." 10179 }, 10180 { 10181 "name": "manual", 10182 "description": "Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities" 10183 }, 10184 { 10185 "name": "none", 10186 "description": "Words are not broken at line breaks, even if characters inside the word suggest line break points." 10187 } 10188 ], 10189 "relevance": 50, 10190 "description": "Controls whether hyphenation is allowed to create more break opportunities within a line of text.", 10191 "restrictions": [ 10192 "enum" 10193 ] 10194 }, 10195 { 10196 "name": "-moz-perspective", 10197 "browsers": [ 10198 "FF10" 10199 ], 10200 "values": [ 10201 { 10202 "name": "none", 10203 "description": "No perspective transform is applied." 10204 } 10205 ], 10206 "relevance": 50, 10207 "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.", 10208 "restrictions": [ 10209 "length" 10210 ] 10211 }, 10212 { 10213 "name": "-moz-perspective-origin", 10214 "browsers": [ 10215 "FF10" 10216 ], 10217 "relevance": 50, 10218 "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.", 10219 "restrictions": [ 10220 "position", 10221 "percentage", 10222 "length" 10223 ] 10224 }, 10225 { 10226 "name": "-moz-text-align-last", 10227 "browsers": [ 10228 "FF12" 10229 ], 10230 "values": [ 10231 { 10232 "name": "auto" 10233 }, 10234 { 10235 "name": "center", 10236 "description": "The inline contents are centered within the line box." 10237 }, 10238 { 10239 "name": "justify", 10240 "description": "The text is justified according to the method specified by the 'text-justify' property." 10241 }, 10242 { 10243 "name": "left", 10244 "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." 10245 }, 10246 { 10247 "name": "right", 10248 "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." 10249 } 10250 ], 10251 "relevance": 50, 10252 "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'.", 10253 "restrictions": [ 10254 "enum" 10255 ] 10256 }, 10257 { 10258 "name": "-moz-text-decoration-color", 10259 "browsers": [ 10260 "FF6" 10261 ], 10262 "relevance": 50, 10263 "description": "Specifies the color of text decoration (underlines overlines, and line-throughs) set on the element with text-decoration-line.", 10264 "restrictions": [ 10265 "color" 10266 ] 10267 }, 10268 { 10269 "name": "-moz-text-decoration-line", 10270 "browsers": [ 10271 "FF6" 10272 ], 10273 "values": [ 10274 { 10275 "name": "line-through", 10276 "description": "Each line of text has a line through the middle." 10277 }, 10278 { 10279 "name": "none", 10280 "description": "Neither produces nor inhibits text decoration." 10281 }, 10282 { 10283 "name": "overline", 10284 "description": "Each line of text has a line above it." 10285 }, 10286 { 10287 "name": "underline", 10288 "description": "Each line of text is underlined." 10289 } 10290 ], 10291 "relevance": 50, 10292 "description": "Specifies what line decorations, if any, are added to the element.", 10293 "restrictions": [ 10294 "enum" 10295 ] 10296 }, 10297 { 10298 "name": "-moz-text-decoration-style", 10299 "browsers": [ 10300 "FF6" 10301 ], 10302 "values": [ 10303 { 10304 "name": "dashed", 10305 "description": "Produces a dashed line style." 10306 }, 10307 { 10308 "name": "dotted", 10309 "description": "Produces a dotted line." 10310 }, 10311 { 10312 "name": "double", 10313 "description": "Produces a double line." 10314 }, 10315 { 10316 "name": "none", 10317 "description": "Produces no line." 10318 }, 10319 { 10320 "name": "solid", 10321 "description": "Produces a solid line." 10322 }, 10323 { 10324 "name": "wavy", 10325 "description": "Produces a wavy line." 10326 } 10327 ], 10328 "relevance": 50, 10329 "description": "Specifies the line style for underline, line-through and overline text decoration.", 10330 "restrictions": [ 10331 "enum" 10332 ] 10333 }, 10334 { 10335 "name": "-moz-text-size-adjust", 10336 "browsers": [ 10337 "FF" 10338 ], 10339 "values": [ 10340 { 10341 "name": "auto", 10342 "description": "Renderers must use the default size adjustment when displaying on a small device." 10343 }, 10344 { 10345 "name": "none", 10346 "description": "Renderers must not do size adjustment when displaying on a small device." 10347 } 10348 ], 10349 "relevance": 50, 10350 "description": "Specifies a size adjustment for displaying text content in mobile browsers.", 10351 "restrictions": [ 10352 "enum", 10353 "percentage" 10354 ] 10355 }, 10356 { 10357 "name": "-moz-transform", 10358 "browsers": [ 10359 "FF3.5" 10360 ], 10361 "values": [ 10362 { 10363 "name": "matrix()", 10364 "description": "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]" 10365 }, 10366 { 10367 "name": "matrix3d()", 10368 "description": "Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order." 10369 }, 10370 { 10371 "name": "none" 10372 }, 10373 { 10374 "name": "perspective", 10375 "description": "Specifies a perspective projection matrix." 10376 }, 10377 { 10378 "name": "rotate()", 10379 "description": "Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property." 10380 }, 10381 { 10382 "name": "rotate3d()", 10383 "description": "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." 10384 }, 10385 { 10386 "name": "rotateX('angle')", 10387 "description": "Specifies a clockwise rotation by the given angle about the X axis." 10388 }, 10389 { 10390 "name": "rotateY('angle')", 10391 "description": "Specifies a clockwise rotation by the given angle about the Y axis." 10392 }, 10393 { 10394 "name": "rotateZ('angle')", 10395 "description": "Specifies a clockwise rotation by the given angle about the Z axis." 10396 }, 10397 { 10398 "name": "scale()", 10399 "description": "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." 10400 }, 10401 { 10402 "name": "scale3d()", 10403 "description": "Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters." 10404 }, 10405 { 10406 "name": "scaleX()", 10407 "description": "Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter." 10408 }, 10409 { 10410 "name": "scaleY()", 10411 "description": "Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter." 10412 }, 10413 { 10414 "name": "scaleZ()", 10415 "description": "Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter." 10416 }, 10417 { 10418 "name": "skew()", 10419 "description": "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)." 10420 }, 10421 { 10422 "name": "skewX()", 10423 "description": "Specifies a skew transformation along the X axis by the given angle." 10424 }, 10425 { 10426 "name": "skewY()", 10427 "description": "Specifies a skew transformation along the Y axis by the given angle." 10428 }, 10429 { 10430 "name": "translate()", 10431 "description": "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." 10432 }, 10433 { 10434 "name": "translate3d()", 10435 "description": "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." 10436 }, 10437 { 10438 "name": "translateX()", 10439 "description": "Specifies a translation by the given amount in the X direction." 10440 }, 10441 { 10442 "name": "translateY()", 10443 "description": "Specifies a translation by the given amount in the Y direction." 10444 }, 10445 { 10446 "name": "translateZ()", 10447 "description": "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." 10448 } 10449 ], 10450 "relevance": 50, 10451 "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.", 10452 "restrictions": [ 10453 "enum" 10454 ] 10455 }, 10456 { 10457 "name": "-moz-transform-origin", 10458 "browsers": [ 10459 "FF3.5" 10460 ], 10461 "relevance": 50, 10462 "description": "Establishes the origin of transformation for an element.", 10463 "restrictions": [ 10464 "position", 10465 "length", 10466 "percentage" 10467 ] 10468 }, 10469 { 10470 "name": "-moz-transition", 10471 "browsers": [ 10472 "FF4" 10473 ], 10474 "values": [ 10475 { 10476 "name": "all", 10477 "description": "Every property that is able to undergo a transition will do so." 10478 }, 10479 { 10480 "name": "none", 10481 "description": "No property will transition." 10482 } 10483 ], 10484 "relevance": 50, 10485 "description": "Shorthand property combines four of the transition properties into a single property.", 10486 "restrictions": [ 10487 "time", 10488 "property", 10489 "timing-function", 10490 "enum" 10491 ] 10492 }, 10493 { 10494 "name": "-moz-transition-delay", 10495 "browsers": [ 10496 "FF4" 10497 ], 10498 "relevance": 50, 10499 "description": "Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.", 10500 "restrictions": [ 10501 "time" 10502 ] 10503 }, 10504 { 10505 "name": "-moz-transition-duration", 10506 "browsers": [ 10507 "FF4" 10508 ], 10509 "relevance": 50, 10510 "description": "Specifies how long the transition from the old value to the new value should take.", 10511 "restrictions": [ 10512 "time" 10513 ] 10514 }, 10515 { 10516 "name": "-moz-transition-property", 10517 "browsers": [ 10518 "FF4" 10519 ], 10520 "values": [ 10521 { 10522 "name": "all", 10523 "description": "Every property that is able to undergo a transition will do so." 10524 }, 10525 { 10526 "name": "none", 10527 "description": "No property will transition." 10528 } 10529 ], 10530 "relevance": 50, 10531 "description": "Specifies the name of the CSS property to which the transition is applied.", 10532 "restrictions": [ 10533 "property" 10534 ] 10535 }, 10536 { 10537 "name": "-moz-transition-timing-function", 10538 "browsers": [ 10539 "FF4" 10540 ], 10541 "relevance": 50, 10542 "description": "Describes how the intermediate values used during a transition will be calculated.", 10543 "restrictions": [ 10544 "timing-function" 10545 ] 10546 }, 10547 { 10548 "name": "-moz-user-focus", 10549 "browsers": [ 10550 "FF1" 10551 ], 10552 "values": [ 10553 { 10554 "name": "ignore" 10555 }, 10556 { 10557 "name": "normal" 10558 } 10559 ], 10560 "status": "nonstandard", 10561 "syntax": "ignore | normal | select-after | select-before | select-menu | select-same | select-all | none", 10562 "relevance": 0, 10563 "references": [ 10564 { 10565 "name": "MDN Reference", 10566 "url": "https://developer.mozilla.org/docs/Web/CSS/-moz-user-focus" 10567 } 10568 ], 10569 "description": "Used to indicate whether the element can have focus." 10570 }, 10571 { 10572 "name": "-moz-user-select", 10573 "browsers": [ 10574 "FF1.5" 10575 ], 10576 "values": [ 10577 { 10578 "name": "all" 10579 }, 10580 { 10581 "name": "element" 10582 }, 10583 { 10584 "name": "elements" 10585 }, 10586 { 10587 "name": "-moz-all" 10588 }, 10589 { 10590 "name": "-moz-none" 10591 }, 10592 { 10593 "name": "none" 10594 }, 10595 { 10596 "name": "text" 10597 }, 10598 { 10599 "name": "toggle" 10600 } 10601 ], 10602 "relevance": 50, 10603 "description": "Controls the appearance of selection.", 10604 "restrictions": [ 10605 "enum" 10606 ] 10607 }, 10608 { 10609 "name": "-ms-accelerator", 10610 "browsers": [ 10611 "E", 10612 "IE10" 10613 ], 10614 "values": [ 10615 { 10616 "name": "false", 10617 "description": "The element does not contain an accelerator key sequence." 10618 }, 10619 { 10620 "name": "true", 10621 "description": "The element contains an accelerator key sequence." 10622 } 10623 ], 10624 "status": "nonstandard", 10625 "syntax": "false | true", 10626 "relevance": 0, 10627 "description": "IE only. Has the ability to turn off its system underlines for accelerator keys until the ALT key is pressed", 10628 "restrictions": [ 10629 "enum" 10630 ] 10631 }, 10632 { 10633 "name": "-ms-behavior", 10634 "browsers": [ 10635 "IE8" 10636 ], 10637 "relevance": 50, 10638 "description": "IE only. Used to extend behaviors of the browser", 10639 "restrictions": [ 10640 "url" 10641 ] 10642 }, 10643 { 10644 "name": "-ms-block-progression", 10645 "browsers": [ 10646 "IE8" 10647 ], 10648 "values": [ 10649 { 10650 "name": "bt", 10651 "description": "Bottom-to-top block flow. Layout is horizontal." 10652 }, 10653 { 10654 "name": "lr", 10655 "description": "Left-to-right direction. The flow orientation is vertical." 10656 }, 10657 { 10658 "name": "rl", 10659 "description": "Right-to-left direction. The flow orientation is vertical." 10660 }, 10661 { 10662 "name": "tb", 10663 "description": "Top-to-bottom direction. The flow orientation is horizontal." 10664 } 10665 ], 10666 "status": "nonstandard", 10667 "syntax": "tb | rl | bt | lr", 10668 "relevance": 0, 10669 "description": "Sets the block-progression value and the flow orientation", 10670 "restrictions": [ 10671 "enum" 10672 ] 10673 }, 10674 { 10675 "name": "-ms-content-zoom-chaining", 10676 "browsers": [ 10677 "E", 10678 "IE10" 10679 ], 10680 "values": [ 10681 { 10682 "name": "chained", 10683 "description": "The nearest zoomable parent element begins zooming when the user hits a zoom limit during a manipulation. No bounce effect is shown." 10684 }, 10685 { 10686 "name": "none", 10687 "description": "A bounce effect is shown when the user hits a zoom limit during a manipulation." 10688 } 10689 ], 10690 "status": "nonstandard", 10691 "syntax": "none | chained", 10692 "relevance": 0, 10693 "description": "Specifies the zoom behavior that occurs when a user hits the zoom limit during a manipulation." 10694 }, 10695 { 10696 "name": "-ms-content-zooming", 10697 "browsers": [ 10698 "E", 10699 "IE10" 10700 ], 10701 "values": [ 10702 { 10703 "name": "none", 10704 "description": "The element is not zoomable." 10705 }, 10706 { 10707 "name": "zoom", 10708 "description": "The element is zoomable." 10709 } 10710 ], 10711 "status": "nonstandard", 10712 "syntax": "none | zoom", 10713 "relevance": 0, 10714 "description": "Specifies whether zooming is enabled.", 10715 "restrictions": [ 10716 "enum" 10717 ] 10718 }, 10719 { 10720 "name": "-ms-content-zoom-limit", 10721 "browsers": [ 10722 "E", 10723 "IE10" 10724 ], 10725 "status": "nonstandard", 10726 "syntax": "<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>", 10727 "relevance": 0, 10728 "description": "Shorthand property for the -ms-content-zoom-limit-min and -ms-content-zoom-limit-max properties.", 10729 "restrictions": [ 10730 "percentage" 10731 ] 10732 }, 10733 { 10734 "name": "-ms-content-zoom-limit-max", 10735 "browsers": [ 10736 "E", 10737 "IE10" 10738 ], 10739 "status": "nonstandard", 10740 "syntax": "<percentage>", 10741 "relevance": 0, 10742 "description": "Specifies the maximum zoom factor.", 10743 "restrictions": [ 10744 "percentage" 10745 ] 10746 }, 10747 { 10748 "name": "-ms-content-zoom-limit-min", 10749 "browsers": [ 10750 "E", 10751 "IE10" 10752 ], 10753 "status": "nonstandard", 10754 "syntax": "<percentage>", 10755 "relevance": 0, 10756 "description": "Specifies the minimum zoom factor.", 10757 "restrictions": [ 10758 "percentage" 10759 ] 10760 }, 10761 { 10762 "name": "-ms-content-zoom-snap", 10763 "browsers": [ 10764 "E", 10765 "IE10" 10766 ], 10767 "values": [ 10768 { 10769 "name": "mandatory", 10770 "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." 10771 }, 10772 { 10773 "name": "none", 10774 "description": "Indicates that zooming is unaffected by any defined snap-points." 10775 }, 10776 { 10777 "name": "proximity", 10778 "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." 10779 }, 10780 { 10781 "name": "snapInterval(100%, 100%)", 10782 "description": "Specifies where the snap-points will be placed." 10783 }, 10784 { 10785 "name": "snapList()", 10786 "description": "Specifies the position of individual snap-points as a comma-separated list of zoom factors." 10787 } 10788 ], 10789 "status": "nonstandard", 10790 "syntax": "<'-ms-content-zoom-snap-type'> || <'-ms-content-zoom-snap-points'>", 10791 "relevance": 0, 10792 "description": "Shorthand property for the -ms-content-zoom-snap-type and -ms-content-zoom-snap-points properties." 10793 }, 10794 { 10795 "name": "-ms-content-zoom-snap-points", 10796 "browsers": [ 10797 "E", 10798 "IE10" 10799 ], 10800 "values": [ 10801 { 10802 "name": "snapInterval(100%, 100%)", 10803 "description": "Specifies where the snap-points will be placed." 10804 }, 10805 { 10806 "name": "snapList()", 10807 "description": "Specifies the position of individual snap-points as a comma-separated list of zoom factors." 10808 } 10809 ], 10810 "status": "nonstandard", 10811 "syntax": "snapInterval( <percentage>, <percentage> ) | snapList( <percentage># )", 10812 "relevance": 0, 10813 "description": "Defines where zoom snap-points are located." 10814 }, 10815 { 10816 "name": "-ms-content-zoom-snap-type", 10817 "browsers": [ 10818 "E", 10819 "IE10" 10820 ], 10821 "values": [ 10822 { 10823 "name": "mandatory", 10824 "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." 10825 }, 10826 { 10827 "name": "none", 10828 "description": "Indicates that zooming is unaffected by any defined snap-points." 10829 }, 10830 { 10831 "name": "proximity", 10832 "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." 10833 } 10834 ], 10835 "status": "nonstandard", 10836 "syntax": "none | proximity | mandatory", 10837 "relevance": 0, 10838 "description": "Specifies how zooming is affected by defined snap-points.", 10839 "restrictions": [ 10840 "enum" 10841 ] 10842 }, 10843 { 10844 "name": "-ms-filter", 10845 "browsers": [ 10846 "IE8-9" 10847 ], 10848 "status": "nonstandard", 10849 "syntax": "<string>", 10850 "relevance": 0, 10851 "description": "IE only. Used to produce visual effects.", 10852 "restrictions": [ 10853 "string" 10854 ] 10855 }, 10856 { 10857 "name": "-ms-flex", 10858 "browsers": [ 10859 "IE10" 10860 ], 10861 "values": [ 10862 { 10863 "name": "auto", 10864 "description": "Retrieves the value of the main size property as the used 'flex-basis'." 10865 }, 10866 { 10867 "name": "none", 10868 "description": "Expands to '0 0 auto'." 10869 } 10870 ], 10871 "relevance": 50, 10872 "description": "specifies the parameters of a flexible length: the positive and negative flexibility, and the preferred size.", 10873 "restrictions": [ 10874 "length", 10875 "number", 10876 "percentage" 10877 ] 10878 }, 10879 { 10880 "name": "-ms-flex-align", 10881 "browsers": [ 10882 "IE10" 10883 ], 10884 "values": [ 10885 { 10886 "name": "baseline", 10887 "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." 10888 }, 10889 { 10890 "name": "center", 10891 "description": "The flex item’s margin box is centered in the cross axis within the line." 10892 }, 10893 { 10894 "name": "end", 10895 "description": "The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line." 10896 }, 10897 { 10898 "name": "start", 10899 "description": "The cross-start margin edge of the flexbox item is placed flush with the cross-start edge of the line." 10900 }, 10901 { 10902 "name": "stretch", 10903 "description": "If the cross size property of the flexbox item is anything other than 'auto', this value is identical to 'start'." 10904 } 10905 ], 10906 "relevance": 50, 10907 "description": "Aligns flex items along the cross axis of the current line of the flex container.", 10908 "restrictions": [ 10909 "enum" 10910 ] 10911 }, 10912 { 10913 "name": "-ms-flex-direction", 10914 "browsers": [ 10915 "IE10" 10916 ], 10917 "values": [ 10918 { 10919 "name": "column", 10920 "description": "The flex container’s main axis has the same orientation as the block axis of the current writing mode." 10921 }, 10922 { 10923 "name": "column-reverse", 10924 "description": "Same as 'column', except the main-start and main-end directions are swapped." 10925 }, 10926 { 10927 "name": "row", 10928 "description": "The flex container’s main axis has the same orientation as the inline axis of the current writing mode." 10929 }, 10930 { 10931 "name": "row-reverse", 10932 "description": "Same as 'row', except the main-start and main-end directions are swapped." 10933 } 10934 ], 10935 "relevance": 50, 10936 "description": "Specifies how flex items are placed in the flex container, by setting the direction of the flex container’s main axis.", 10937 "restrictions": [ 10938 "enum" 10939 ] 10940 }, 10941 { 10942 "name": "-ms-flex-flow", 10943 "browsers": [ 10944 "IE10" 10945 ], 10946 "values": [ 10947 { 10948 "name": "column", 10949 "description": "The flex container’s main axis has the same orientation as the block axis of the current writing mode." 10950 }, 10951 { 10952 "name": "column-reverse", 10953 "description": "Same as 'column', except the main-start and main-end directions are swapped." 10954 }, 10955 { 10956 "name": "nowrap", 10957 "description": "The flex container is single-line." 10958 }, 10959 { 10960 "name": "row", 10961 "description": "The flex container’s main axis has the same orientation as the inline axis of the current writing mode." 10962 }, 10963 { 10964 "name": "wrap", 10965 "description": "The flexbox is multi-line." 10966 }, 10967 { 10968 "name": "wrap-reverse", 10969 "description": "Same as 'wrap', except the cross-start and cross-end directions are swapped." 10970 } 10971 ], 10972 "relevance": 50, 10973 "description": "Specifies how flexbox items are placed in the flexbox.", 10974 "restrictions": [ 10975 "enum" 10976 ] 10977 }, 10978 { 10979 "name": "-ms-flex-item-align", 10980 "browsers": [ 10981 "IE10" 10982 ], 10983 "values": [ 10984 { 10985 "name": "auto", 10986 "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." 10987 }, 10988 { 10989 "name": "baseline", 10990 "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." 10991 }, 10992 { 10993 "name": "center", 10994 "description": "The flex item’s margin box is centered in the cross axis within the line." 10995 }, 10996 { 10997 "name": "end", 10998 "description": "The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line." 10999 }, 11000 { 11001 "name": "start", 11002 "description": "The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line." 11003 }, 11004 { 11005 "name": "stretch", 11006 "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." 11007 } 11008 ], 11009 "relevance": 50, 11010 "description": "Allows the default alignment along the cross axis to be overridden for individual flex items.", 11011 "restrictions": [ 11012 "enum" 11013 ] 11014 }, 11015 { 11016 "name": "-ms-flex-line-pack", 11017 "browsers": [ 11018 "IE10" 11019 ], 11020 "values": [ 11021 { 11022 "name": "center", 11023 "description": "Lines are packed toward the center of the flex container." 11024 }, 11025 { 11026 "name": "distribute", 11027 "description": "Lines are evenly distributed in the flex container, with half-size spaces on either end." 11028 }, 11029 { 11030 "name": "end", 11031 "description": "Lines are packed toward the end of the flex container." 11032 }, 11033 { 11034 "name": "justify", 11035 "description": "Lines are evenly distributed in the flex container." 11036 }, 11037 { 11038 "name": "start", 11039 "description": "Lines are packed toward the start of the flex container." 11040 }, 11041 { 11042 "name": "stretch", 11043 "description": "Lines stretch to take up the remaining space." 11044 } 11045 ], 11046 "relevance": 50, 11047 "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.", 11048 "restrictions": [ 11049 "enum" 11050 ] 11051 }, 11052 { 11053 "name": "-ms-flex-order", 11054 "browsers": [ 11055 "IE10" 11056 ], 11057 "relevance": 50, 11058 "description": "Controls the order in which children of a flex container appear within the flex container, by assigning them to ordinal groups.", 11059 "restrictions": [ 11060 "integer" 11061 ] 11062 }, 11063 { 11064 "name": "-ms-flex-pack", 11065 "browsers": [ 11066 "IE10" 11067 ], 11068 "values": [ 11069 { 11070 "name": "center", 11071 "description": "Flex items are packed toward the center of the line." 11072 }, 11073 { 11074 "name": "distribute", 11075 "description": "Flex items are evenly distributed in the line, with half-size spaces on either end." 11076 }, 11077 { 11078 "name": "end", 11079 "description": "Flex items are packed toward the end of the line." 11080 }, 11081 { 11082 "name": "justify", 11083 "description": "Flex items are evenly distributed in the line." 11084 }, 11085 { 11086 "name": "start", 11087 "description": "Flex items are packed toward the start of the line." 11088 } 11089 ], 11090 "relevance": 50, 11091 "description": "Aligns flex items along the main axis of the current line of the flex container.", 11092 "restrictions": [ 11093 "enum" 11094 ] 11095 }, 11096 { 11097 "name": "-ms-flex-wrap", 11098 "browsers": [ 11099 "IE10" 11100 ], 11101 "values": [ 11102 { 11103 "name": "nowrap", 11104 "description": "The flex container is single-line." 11105 }, 11106 { 11107 "name": "wrap", 11108 "description": "The flexbox is multi-line." 11109 }, 11110 { 11111 "name": "wrap-reverse", 11112 "description": "Same as 'wrap', except the cross-start and cross-end directions are swapped." 11113 } 11114 ], 11115 "relevance": 50, 11116 "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.", 11117 "restrictions": [ 11118 "enum" 11119 ] 11120 }, 11121 { 11122 "name": "-ms-flow-from", 11123 "browsers": [ 11124 "E", 11125 "IE10" 11126 ], 11127 "values": [ 11128 { 11129 "name": "none", 11130 "description": "The block container is not a CSS Region." 11131 } 11132 ], 11133 "status": "nonstandard", 11134 "syntax": "[ none | <custom-ident> ]#", 11135 "relevance": 0, 11136 "description": "Makes a block container a region and associates it with a named flow.", 11137 "restrictions": [ 11138 "identifier" 11139 ] 11140 }, 11141 { 11142 "name": "-ms-flow-into", 11143 "browsers": [ 11144 "E", 11145 "IE10" 11146 ], 11147 "values": [ 11148 { 11149 "name": "none", 11150 "description": "The element is not moved to a named flow and normal CSS processing takes place." 11151 } 11152 ], 11153 "status": "nonstandard", 11154 "syntax": "[ none | <custom-ident> ]#", 11155 "relevance": 0, 11156 "description": "Places an element or its contents into a named flow.", 11157 "restrictions": [ 11158 "identifier" 11159 ] 11160 }, 11161 { 11162 "name": "-ms-grid-column", 11163 "browsers": [ 11164 "E12", 11165 "IE10" 11166 ], 11167 "values": [ 11168 { 11169 "name": "auto" 11170 }, 11171 { 11172 "name": "end" 11173 }, 11174 { 11175 "name": "start" 11176 } 11177 ], 11178 "relevance": 50, 11179 "description": "Used to place grid items and explicitly defined grid cells in the Grid.", 11180 "restrictions": [ 11181 "integer", 11182 "string", 11183 "enum" 11184 ] 11185 }, 11186 { 11187 "name": "-ms-grid-column-align", 11188 "browsers": [ 11189 "E12", 11190 "IE10" 11191 ], 11192 "values": [ 11193 { 11194 "name": "center", 11195 "description": "Places the center of the Grid Item's margin box at the center of the Grid Item's column." 11196 }, 11197 { 11198 "name": "end", 11199 "description": "Aligns the end edge of the Grid Item's margin box to the end edge of the Grid Item's column." 11200 }, 11201 { 11202 "name": "start", 11203 "description": "Aligns the starting edge of the Grid Item's margin box to the starting edge of the Grid Item's column." 11204 }, 11205 { 11206 "name": "stretch", 11207 "description": "Ensures that the Grid Item's margin box is equal to the size of the Grid Item's column." 11208 } 11209 ], 11210 "relevance": 50, 11211 "description": "Aligns the columns in a grid.", 11212 "restrictions": [ 11213 "enum" 11214 ] 11215 }, 11216 { 11217 "name": "-ms-grid-columns", 11218 "browsers": [ 11219 "E12", 11220 "IE10" 11221 ], 11222 "relevance": 50, 11223 "description": "Lays out the columns of the grid." 11224 }, 11225 { 11226 "name": "-ms-grid-column-span", 11227 "browsers": [ 11228 "E12", 11229 "IE10" 11230 ], 11231 "relevance": 50, 11232 "description": "Specifies the number of columns to span.", 11233 "restrictions": [ 11234 "integer" 11235 ] 11236 }, 11237 { 11238 "name": "-ms-grid-layer", 11239 "browsers": [ 11240 "E", 11241 "IE10" 11242 ], 11243 "relevance": 50, 11244 "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.", 11245 "restrictions": [ 11246 "integer" 11247 ] 11248 }, 11249 { 11250 "name": "-ms-grid-row", 11251 "browsers": [ 11252 "E12", 11253 "IE10" 11254 ], 11255 "values": [ 11256 { 11257 "name": "auto" 11258 }, 11259 { 11260 "name": "end" 11261 }, 11262 { 11263 "name": "start" 11264 } 11265 ], 11266 "relevance": 50, 11267 "description": "grid-row is used to place grid items and explicitly defined grid cells in the Grid.", 11268 "restrictions": [ 11269 "integer", 11270 "string", 11271 "enum" 11272 ] 11273 }, 11274 { 11275 "name": "-ms-grid-row-align", 11276 "browsers": [ 11277 "E12", 11278 "IE10" 11279 ], 11280 "values": [ 11281 { 11282 "name": "center", 11283 "description": "Places the center of the Grid Item's margin box at the center of the Grid Item's row." 11284 }, 11285 { 11286 "name": "end", 11287 "description": "Aligns the end edge of the Grid Item's margin box to the end edge of the Grid Item's row." 11288 }, 11289 { 11290 "name": "start", 11291 "description": "Aligns the starting edge of the Grid Item's margin box to the starting edge of the Grid Item's row." 11292 }, 11293 { 11294 "name": "stretch", 11295 "description": "Ensures that the Grid Item's margin box is equal to the size of the Grid Item's row." 11296 } 11297 ], 11298 "relevance": 50, 11299 "description": "Aligns the rows in a grid.", 11300 "restrictions": [ 11301 "enum" 11302 ] 11303 }, 11304 { 11305 "name": "-ms-grid-rows", 11306 "browsers": [ 11307 "E12", 11308 "IE10" 11309 ], 11310 "relevance": 50, 11311 "description": "Lays out the columns of the grid." 11312 }, 11313 { 11314 "name": "-ms-grid-row-span", 11315 "browsers": [ 11316 "E12", 11317 "IE10" 11318 ], 11319 "relevance": 50, 11320 "description": "Specifies the number of rows to span.", 11321 "restrictions": [ 11322 "integer" 11323 ] 11324 }, 11325 { 11326 "name": "-ms-high-contrast-adjust", 11327 "browsers": [ 11328 "E", 11329 "IE10" 11330 ], 11331 "values": [ 11332 { 11333 "name": "auto", 11334 "description": "Properties will be adjusted as applicable." 11335 }, 11336 { 11337 "name": "none", 11338 "description": "No adjustments will be applied." 11339 } 11340 ], 11341 "status": "nonstandard", 11342 "syntax": "auto | none", 11343 "relevance": 0, 11344 "description": "Specifies if properties should be adjusted in high contrast mode.", 11345 "restrictions": [ 11346 "enum" 11347 ] 11348 }, 11349 { 11350 "name": "-ms-hyphenate-limit-chars", 11351 "browsers": [ 11352 "E", 11353 "IE10" 11354 ], 11355 "values": [ 11356 { 11357 "name": "auto", 11358 "description": "The user agent chooses a value that adapts to the current layout." 11359 } 11360 ], 11361 "status": "nonstandard", 11362 "syntax": "auto | <integer>{1,3}", 11363 "relevance": 0, 11364 "description": "Specifies the minimum number of characters in a hyphenated word.", 11365 "restrictions": [ 11366 "integer" 11367 ] 11368 }, 11369 { 11370 "name": "-ms-hyphenate-limit-lines", 11371 "browsers": [ 11372 "E", 11373 "IE10" 11374 ], 11375 "values": [ 11376 { 11377 "name": "no-limit", 11378 "description": "There is no limit." 11379 } 11380 ], 11381 "status": "nonstandard", 11382 "syntax": "no-limit | <integer>", 11383 "relevance": 0, 11384 "description": "Indicates the maximum number of successive hyphenated lines in an element.", 11385 "restrictions": [ 11386 "integer" 11387 ] 11388 }, 11389 { 11390 "name": "-ms-hyphenate-limit-zone", 11391 "browsers": [ 11392 "E", 11393 "IE10" 11394 ], 11395 "status": "nonstandard", 11396 "syntax": "<percentage> | <length>", 11397 "relevance": 0, 11398 "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.", 11399 "restrictions": [ 11400 "percentage", 11401 "length" 11402 ] 11403 }, 11404 { 11405 "name": "-ms-hyphens", 11406 "browsers": [ 11407 "E", 11408 "IE10" 11409 ], 11410 "values": [ 11411 { 11412 "name": "auto", 11413 "description": "Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word." 11414 }, 11415 { 11416 "name": "manual", 11417 "description": "Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities" 11418 }, 11419 { 11420 "name": "none", 11421 "description": "Words are not broken at line breaks, even if characters inside the word suggest line break points." 11422 } 11423 ], 11424 "relevance": 50, 11425 "description": "Controls whether hyphenation is allowed to create more break opportunities within a line of text.", 11426 "restrictions": [ 11427 "enum" 11428 ] 11429 }, 11430 { 11431 "name": "-ms-ime-mode", 11432 "browsers": [ 11433 "IE10" 11434 ], 11435 "values": [ 11436 { 11437 "name": "active", 11438 "description": "The input method editor is initially active; text entry is performed using it unless the user specifically dismisses it." 11439 }, 11440 { 11441 "name": "auto", 11442 "description": "No change is made to the current input method editor state. This is the default." 11443 }, 11444 { 11445 "name": "disabled", 11446 "description": "The input method editor is disabled and may not be activated by the user." 11447 }, 11448 { 11449 "name": "inactive", 11450 "description": "The input method editor is initially inactive, but the user may activate it if they wish." 11451 }, 11452 { 11453 "name": "normal", 11454 "description": "The IME state should be normal; this value can be used in a user style sheet to override the page setting." 11455 } 11456 ], 11457 "relevance": 50, 11458 "description": "Controls the state of the input method editor for text fields.", 11459 "restrictions": [ 11460 "enum" 11461 ] 11462 }, 11463 { 11464 "name": "-ms-interpolation-mode", 11465 "browsers": [ 11466 "IE7" 11467 ], 11468 "values": [ 11469 { 11470 "name": "bicubic" 11471 }, 11472 { 11473 "name": "nearest-neighbor" 11474 } 11475 ], 11476 "relevance": 50, 11477 "description": "Gets or sets the interpolation (resampling) method used to stretch images.", 11478 "restrictions": [ 11479 "enum" 11480 ] 11481 }, 11482 { 11483 "name": "-ms-layout-grid", 11484 "browsers": [ 11485 "E", 11486 "IE10" 11487 ], 11488 "values": [ 11489 { 11490 "name": "char", 11491 "description": "Any of the range of character values available to the -ms-layout-grid-char property." 11492 }, 11493 { 11494 "name": "line", 11495 "description": "Any of the range of line values available to the -ms-layout-grid-line property." 11496 }, 11497 { 11498 "name": "mode", 11499 "description": "Any of the range of mode values available to the -ms-layout-grid-mode property." 11500 }, 11501 { 11502 "name": "type", 11503 "description": "Any of the range of type values available to the -ms-layout-grid-type property." 11504 } 11505 ], 11506 "relevance": 50, 11507 "description": "Sets or retrieves the composite document grid properties that specify the layout of text characters." 11508 }, 11509 { 11510 "name": "-ms-layout-grid-char", 11511 "browsers": [ 11512 "E", 11513 "IE10" 11514 ], 11515 "values": [ 11516 { 11517 "name": "auto", 11518 "description": "Largest character in the font of the element is used to set the character grid." 11519 }, 11520 { 11521 "name": "none", 11522 "description": "Default. No character grid is set." 11523 } 11524 ], 11525 "relevance": 50, 11526 "description": "Sets or retrieves the size of the character grid used for rendering the text content of an element.", 11527 "restrictions": [ 11528 "enum", 11529 "length", 11530 "percentage" 11531 ] 11532 }, 11533 { 11534 "name": "-ms-layout-grid-line", 11535 "browsers": [ 11536 "E", 11537 "IE10" 11538 ], 11539 "values": [ 11540 { 11541 "name": "auto", 11542 "description": "Largest character in the font of the element is used to set the character grid." 11543 }, 11544 { 11545 "name": "none", 11546 "description": "Default. No grid line is set." 11547 } 11548 ], 11549 "relevance": 50, 11550 "description": "Sets or retrieves the gridline value used for rendering the text content of an element.", 11551 "restrictions": [ 11552 "length" 11553 ] 11554 }, 11555 { 11556 "name": "-ms-layout-grid-mode", 11557 "browsers": [ 11558 "E", 11559 "IE10" 11560 ], 11561 "values": [ 11562 { 11563 "name": "both", 11564 "description": "Default. Both the char and line grid modes are enabled. This setting is necessary to fully enable the layout grid on an element." 11565 }, 11566 { 11567 "name": "char", 11568 "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." 11569 }, 11570 { 11571 "name": "line", 11572 "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." 11573 }, 11574 { 11575 "name": "none", 11576 "description": "No grid is used." 11577 } 11578 ], 11579 "relevance": 50, 11580 "description": "Gets or sets whether the text layout grid uses two dimensions.", 11581 "restrictions": [ 11582 "enum" 11583 ] 11584 }, 11585 { 11586 "name": "-ms-layout-grid-type", 11587 "browsers": [ 11588 "E", 11589 "IE10" 11590 ], 11591 "values": [ 11592 { 11593 "name": "fixed", 11594 "description": "Grid used for monospaced layout. All noncursive characters are treated as equal; every character is centered within a single grid space by default." 11595 }, 11596 { 11597 "name": "loose", 11598 "description": "Default. Grid used for Japanese and Korean characters." 11599 }, 11600 { 11601 "name": "strict", 11602 "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." 11603 } 11604 ], 11605 "relevance": 50, 11606 "description": "Sets or retrieves the type of grid used for rendering the text content of an element.", 11607 "restrictions": [ 11608 "enum" 11609 ] 11610 }, 11611 { 11612 "name": "-ms-line-break", 11613 "browsers": [ 11614 "E", 11615 "IE10" 11616 ], 11617 "values": [ 11618 { 11619 "name": "auto", 11620 "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." 11621 }, 11622 { 11623 "name": "keep-all", 11624 "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." 11625 }, 11626 { 11627 "name": "newspaper", 11628 "description": "Breaks CJK scripts using the least restrictive set of line-breaking rules. Typically used for short lines, such as in newspapers." 11629 }, 11630 { 11631 "name": "normal", 11632 "description": "Breaks CJK scripts using a normal set of line-breaking rules." 11633 }, 11634 { 11635 "name": "strict", 11636 "description": "Breaks CJK scripts using a more restrictive set of line-breaking rules than 'normal'." 11637 } 11638 ], 11639 "relevance": 50, 11640 "description": "Specifies what set of line breaking restrictions are in effect within the element.", 11641 "restrictions": [ 11642 "enum" 11643 ] 11644 }, 11645 { 11646 "name": "-ms-overflow-style", 11647 "browsers": [ 11648 "E", 11649 "IE10" 11650 ], 11651 "values": [ 11652 { 11653 "name": "auto", 11654 "description": "No preference, UA should use the first scrolling method in the list that it supports." 11655 }, 11656 { 11657 "name": "-ms-autohiding-scrollbar", 11658 "description": "Indicates the element displays auto-hiding scrollbars during mouse interactions and panning indicators during touch and keyboard interactions." 11659 }, 11660 { 11661 "name": "none", 11662 "description": "Indicates the element does not display scrollbars or panning indicators, even when its content overflows." 11663 }, 11664 { 11665 "name": "scrollbar", 11666 "description": "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." 11667 } 11668 ], 11669 "status": "nonstandard", 11670 "syntax": "auto | none | scrollbar | -ms-autohiding-scrollbar", 11671 "relevance": 0, 11672 "description": "Specify whether content is clipped when it overflows the element's content area.", 11673 "restrictions": [ 11674 "enum" 11675 ] 11676 }, 11677 { 11678 "name": "-ms-perspective", 11679 "browsers": [ 11680 "IE10" 11681 ], 11682 "values": [ 11683 { 11684 "name": "none", 11685 "description": "No perspective transform is applied." 11686 } 11687 ], 11688 "relevance": 50, 11689 "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.", 11690 "restrictions": [ 11691 "length" 11692 ] 11693 }, 11694 { 11695 "name": "-ms-perspective-origin", 11696 "browsers": [ 11697 "IE10" 11698 ], 11699 "relevance": 50, 11700 "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.", 11701 "restrictions": [ 11702 "position", 11703 "percentage", 11704 "length" 11705 ] 11706 }, 11707 { 11708 "name": "-ms-perspective-origin-x", 11709 "browsers": [ 11710 "IE10" 11711 ], 11712 "relevance": 50, 11713 "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.", 11714 "restrictions": [ 11715 "position", 11716 "percentage", 11717 "length" 11718 ] 11719 }, 11720 { 11721 "name": "-ms-perspective-origin-y", 11722 "browsers": [ 11723 "IE10" 11724 ], 11725 "relevance": 50, 11726 "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.", 11727 "restrictions": [ 11728 "position", 11729 "percentage", 11730 "length" 11731 ] 11732 }, 11733 { 11734 "name": "-ms-progress-appearance", 11735 "browsers": [ 11736 "IE10" 11737 ], 11738 "values": [ 11739 { 11740 "name": "bar" 11741 }, 11742 { 11743 "name": "ring" 11744 } 11745 ], 11746 "relevance": 50, 11747 "description": "Gets or sets a value that specifies whether a progress control displays as a bar or a ring.", 11748 "restrictions": [ 11749 "enum" 11750 ] 11751 }, 11752 { 11753 "name": "-ms-scrollbar-3dlight-color", 11754 "browsers": [ 11755 "IE8" 11756 ], 11757 "status": "nonstandard", 11758 "syntax": "<color>", 11759 "relevance": 0, 11760 "description": "Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.", 11761 "restrictions": [ 11762 "color" 11763 ] 11764 }, 11765 { 11766 "name": "-ms-scrollbar-arrow-color", 11767 "browsers": [ 11768 "IE8" 11769 ], 11770 "status": "nonstandard", 11771 "syntax": "<color>", 11772 "relevance": 0, 11773 "description": "Determines the color of the arrow elements of a scroll arrow.", 11774 "restrictions": [ 11775 "color" 11776 ] 11777 }, 11778 { 11779 "name": "-ms-scrollbar-base-color", 11780 "browsers": [ 11781 "IE8" 11782 ], 11783 "status": "nonstandard", 11784 "syntax": "<color>", 11785 "relevance": 0, 11786 "description": "Determines the color of the main elements of a scroll bar, which include the scroll box, track, and scroll arrows.", 11787 "restrictions": [ 11788 "color" 11789 ] 11790 }, 11791 { 11792 "name": "-ms-scrollbar-darkshadow-color", 11793 "browsers": [ 11794 "IE8" 11795 ], 11796 "status": "nonstandard", 11797 "syntax": "<color>", 11798 "relevance": 0, 11799 "description": "Determines the color of the gutter of a scroll bar.", 11800 "restrictions": [ 11801 "color" 11802 ] 11803 }, 11804 { 11805 "name": "-ms-scrollbar-face-color", 11806 "browsers": [ 11807 "IE8" 11808 ], 11809 "status": "nonstandard", 11810 "syntax": "<color>", 11811 "relevance": 0, 11812 "description": "Determines the color of the scroll box and scroll arrows of a scroll bar.", 11813 "restrictions": [ 11814 "color" 11815 ] 11816 }, 11817 { 11818 "name": "-ms-scrollbar-highlight-color", 11819 "browsers": [ 11820 "IE8" 11821 ], 11822 "status": "nonstandard", 11823 "syntax": "<color>", 11824 "relevance": 0, 11825 "description": "Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.", 11826 "restrictions": [ 11827 "color" 11828 ] 11829 }, 11830 { 11831 "name": "-ms-scrollbar-shadow-color", 11832 "browsers": [ 11833 "IE8" 11834 ], 11835 "status": "nonstandard", 11836 "syntax": "<color>", 11837 "relevance": 0, 11838 "description": "Determines the color of the bottom and right edges of the scroll box and scroll arrows of a scroll bar.", 11839 "restrictions": [ 11840 "color" 11841 ] 11842 }, 11843 { 11844 "name": "-ms-scrollbar-track-color", 11845 "browsers": [ 11846 "IE5" 11847 ], 11848 "status": "nonstandard", 11849 "syntax": "<color>", 11850 "relevance": 0, 11851 "references": [ 11852 { 11853 "name": "MDN Reference", 11854 "url": "https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-track-color" 11855 } 11856 ], 11857 "description": "Determines the color of the track element of a scroll bar.", 11858 "restrictions": [ 11859 "color" 11860 ] 11861 }, 11862 { 11863 "name": "-ms-scroll-chaining", 11864 "browsers": [ 11865 "E", 11866 "IE10" 11867 ], 11868 "values": [ 11869 { 11870 "name": "chained" 11871 }, 11872 { 11873 "name": "none" 11874 } 11875 ], 11876 "status": "nonstandard", 11877 "syntax": "chained | none", 11878 "relevance": 0, 11879 "description": "Gets or sets a value that indicates the scrolling behavior that occurs when a user hits the content boundary during a manipulation.", 11880 "restrictions": [ 11881 "enum", 11882 "length" 11883 ] 11884 }, 11885 { 11886 "name": "-ms-scroll-limit", 11887 "browsers": [ 11888 "E", 11889 "IE10" 11890 ], 11891 "values": [ 11892 { 11893 "name": "auto" 11894 } 11895 ], 11896 "status": "nonstandard", 11897 "syntax": "<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>", 11898 "relevance": 0, 11899 "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.", 11900 "restrictions": [ 11901 "length" 11902 ] 11903 }, 11904 { 11905 "name": "-ms-scroll-limit-x-max", 11906 "browsers": [ 11907 "E", 11908 "IE10" 11909 ], 11910 "values": [ 11911 { 11912 "name": "auto" 11913 } 11914 ], 11915 "status": "nonstandard", 11916 "syntax": "auto | <length>", 11917 "relevance": 0, 11918 "description": "Gets or sets a value that specifies the maximum value for the scrollLeft property.", 11919 "restrictions": [ 11920 "length" 11921 ] 11922 }, 11923 { 11924 "name": "-ms-scroll-limit-x-min", 11925 "browsers": [ 11926 "E", 11927 "IE10" 11928 ], 11929 "status": "nonstandard", 11930 "syntax": "<length>", 11931 "relevance": 0, 11932 "description": "Gets or sets a value that specifies the minimum value for the scrollLeft property.", 11933 "restrictions": [ 11934 "length" 11935 ] 11936 }, 11937 { 11938 "name": "-ms-scroll-limit-y-max", 11939 "browsers": [ 11940 "E", 11941 "IE10" 11942 ], 11943 "values": [ 11944 { 11945 "name": "auto" 11946 } 11947 ], 11948 "status": "nonstandard", 11949 "syntax": "auto | <length>", 11950 "relevance": 0, 11951 "description": "Gets or sets a value that specifies the maximum value for the scrollTop property.", 11952 "restrictions": [ 11953 "length" 11954 ] 11955 }, 11956 { 11957 "name": "-ms-scroll-limit-y-min", 11958 "browsers": [ 11959 "E", 11960 "IE10" 11961 ], 11962 "status": "nonstandard", 11963 "syntax": "<length>", 11964 "relevance": 0, 11965 "description": "Gets or sets a value that specifies the minimum value for the scrollTop property.", 11966 "restrictions": [ 11967 "length" 11968 ] 11969 }, 11970 { 11971 "name": "-ms-scroll-rails", 11972 "browsers": [ 11973 "E", 11974 "IE10" 11975 ], 11976 "values": [ 11977 { 11978 "name": "none" 11979 }, 11980 { 11981 "name": "railed" 11982 } 11983 ], 11984 "status": "nonstandard", 11985 "syntax": "none | railed", 11986 "relevance": 0, 11987 "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).", 11988 "restrictions": [ 11989 "enum", 11990 "length" 11991 ] 11992 }, 11993 { 11994 "name": "-ms-scroll-snap-points-x", 11995 "browsers": [ 11996 "E", 11997 "IE10" 11998 ], 11999 "values": [ 12000 { 12001 "name": "snapInterval(100%, 100%)" 12002 }, 12003 { 12004 "name": "snapList()" 12005 } 12006 ], 12007 "status": "nonstandard", 12008 "syntax": "snapInterval( <length-percentage>, <length-percentage> ) | snapList( <length-percentage># )", 12009 "relevance": 0, 12010 "description": "Gets or sets a value that defines where snap-points will be located along the x-axis.", 12011 "restrictions": [ 12012 "enum" 12013 ] 12014 }, 12015 { 12016 "name": "-ms-scroll-snap-points-y", 12017 "browsers": [ 12018 "E", 12019 "IE10" 12020 ], 12021 "values": [ 12022 { 12023 "name": "snapInterval(100%, 100%)" 12024 }, 12025 { 12026 "name": "snapList()" 12027 } 12028 ], 12029 "status": "nonstandard", 12030 "syntax": "snapInterval( <length-percentage>, <length-percentage> ) | snapList( <length-percentage># )", 12031 "relevance": 0, 12032 "description": "Gets or sets a value that defines where snap-points will be located along the y-axis.", 12033 "restrictions": [ 12034 "enum" 12035 ] 12036 }, 12037 { 12038 "name": "-ms-scroll-snap-type", 12039 "browsers": [ 12040 "E", 12041 "IE10" 12042 ], 12043 "values": [ 12044 { 12045 "name": "none", 12046 "description": "The visual viewport of this scroll container must ignore snap points, if any, when scrolled." 12047 }, 12048 { 12049 "name": "mandatory", 12050 "description": "The visual viewport of this scroll container is guaranteed to rest on a snap point when there are no active scrolling operations." 12051 }, 12052 { 12053 "name": "proximity", 12054 "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." 12055 } 12056 ], 12057 "status": "nonstandard", 12058 "syntax": "none | proximity | mandatory", 12059 "relevance": 0, 12060 "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.", 12061 "restrictions": [ 12062 "enum" 12063 ] 12064 }, 12065 { 12066 "name": "-ms-scroll-snap-x", 12067 "browsers": [ 12068 "E", 12069 "IE10" 12070 ], 12071 "values": [ 12072 { 12073 "name": "mandatory" 12074 }, 12075 { 12076 "name": "none" 12077 }, 12078 { 12079 "name": "proximity" 12080 }, 12081 { 12082 "name": "snapInterval(100%, 100%)" 12083 }, 12084 { 12085 "name": "snapList()" 12086 } 12087 ], 12088 "status": "nonstandard", 12089 "syntax": "<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>", 12090 "relevance": 0, 12091 "description": "Gets or sets a shorthand value that sets values for the -ms-scroll-snap-type and -ms-scroll-snap-points-x properties.", 12092 "restrictions": [ 12093 "enum" 12094 ] 12095 }, 12096 { 12097 "name": "-ms-scroll-snap-y", 12098 "browsers": [ 12099 "E", 12100 "IE10" 12101 ], 12102 "values": [ 12103 { 12104 "name": "mandatory" 12105 }, 12106 { 12107 "name": "none" 12108 }, 12109 { 12110 "name": "proximity" 12111 }, 12112 { 12113 "name": "snapInterval(100%, 100%)" 12114 }, 12115 { 12116 "name": "snapList()" 12117 } 12118 ], 12119 "status": "nonstandard", 12120 "syntax": "<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>", 12121 "relevance": 0, 12122 "description": "Gets or sets a shorthand value that sets values for the -ms-scroll-snap-type and -ms-scroll-snap-points-y properties.", 12123 "restrictions": [ 12124 "enum" 12125 ] 12126 }, 12127 { 12128 "name": "-ms-scroll-translation", 12129 "browsers": [ 12130 "E", 12131 "IE10" 12132 ], 12133 "values": [ 12134 { 12135 "name": "none" 12136 }, 12137 { 12138 "name": "vertical-to-horizontal" 12139 } 12140 ], 12141 "status": "nonstandard", 12142 "syntax": "none | vertical-to-horizontal", 12143 "relevance": 0, 12144 "description": "Gets or sets a value that specifies whether vertical-to-horizontal scroll wheel translation occurs on the specified element.", 12145 "restrictions": [ 12146 "enum" 12147 ] 12148 }, 12149 { 12150 "name": "-ms-text-align-last", 12151 "browsers": [ 12152 "E", 12153 "IE8" 12154 ], 12155 "values": [ 12156 { 12157 "name": "auto" 12158 }, 12159 { 12160 "name": "center", 12161 "description": "The inline contents are centered within the line box." 12162 }, 12163 { 12164 "name": "justify", 12165 "description": "The text is justified according to the method specified by the 'text-justify' property." 12166 }, 12167 { 12168 "name": "left", 12169 "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." 12170 }, 12171 { 12172 "name": "right", 12173 "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." 12174 } 12175 ], 12176 "relevance": 50, 12177 "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'.", 12178 "restrictions": [ 12179 "enum" 12180 ] 12181 }, 12182 { 12183 "name": "-ms-text-autospace", 12184 "browsers": [ 12185 "E", 12186 "IE8" 12187 ], 12188 "values": [ 12189 { 12190 "name": "ideograph-alpha", 12191 "description": "Creates 1/4em extra spacing between runs of ideographic letters and non-ideographic letters, such as Latin-based, Cyrillic, Greek, Arabic or Hebrew." 12192 }, 12193 { 12194 "name": "ideograph-numeric", 12195 "description": "Creates 1/4em extra spacing between runs of ideographic letters and numeric glyphs." 12196 }, 12197 { 12198 "name": "ideograph-parenthesis", 12199 "description": "Creates extra spacing between normal (non wide) parenthesis and ideographs." 12200 }, 12201 { 12202 "name": "ideograph-space", 12203 "description": "Extends the width of the space character while surrounded by ideographs." 12204 }, 12205 { 12206 "name": "none", 12207 "description": "No extra space is created." 12208 }, 12209 { 12210 "name": "punctuation", 12211 "description": "Creates extra non-breaking spacing around punctuation as required by language-specific typographic conventions." 12212 } 12213 ], 12214 "status": "nonstandard", 12215 "syntax": "none | ideograph-alpha | ideograph-numeric | ideograph-parenthesis | ideograph-space", 12216 "relevance": 0, 12217 "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.", 12218 "restrictions": [ 12219 "enum" 12220 ] 12221 }, 12222 { 12223 "name": "-ms-text-combine-horizontal", 12224 "browsers": [ 12225 "E", 12226 "IE11" 12227 ], 12228 "values": [ 12229 { 12230 "name": "all", 12231 "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." 12232 }, 12233 { 12234 "name": "digits", 12235 "description": "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." 12236 }, 12237 { 12238 "name": "none", 12239 "description": "No special processing." 12240 } 12241 ], 12242 "relevance": 50, 12243 "description": "This property specifies the combination of multiple characters into the space of a single character.", 12244 "restrictions": [ 12245 "enum", 12246 "integer" 12247 ] 12248 }, 12249 { 12250 "name": "-ms-text-justify", 12251 "browsers": [ 12252 "E", 12253 "IE8" 12254 ], 12255 "values": [ 12256 { 12257 "name": "auto", 12258 "description": "The UA determines the justification algorithm to follow, based on a balance between performance and adequate presentation quality." 12259 }, 12260 { 12261 "name": "distribute", 12262 "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." 12263 }, 12264 { 12265 "name": "inter-cluster", 12266 "description": "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." 12267 }, 12268 { 12269 "name": "inter-ideograph", 12270 "description": "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." 12271 }, 12272 { 12273 "name": "inter-word", 12274 "description": "Justification primarily changes spacing at word separators. This value is typically used for languages that separate words using spaces, like English or (sometimes) Korean." 12275 }, 12276 { 12277 "name": "kashida", 12278 "description": "Justification primarily stretches Arabic and related scripts through the use of kashida or other calligraphic elongation." 12279 } 12280 ], 12281 "relevance": 50, 12282 "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.", 12283 "restrictions": [ 12284 "enum" 12285 ] 12286 }, 12287 { 12288 "name": "-ms-text-kashida-space", 12289 "browsers": [ 12290 "E", 12291 "IE10" 12292 ], 12293 "relevance": 50, 12294 "description": "Sets or retrieves the ratio of kashida expansion to white space expansion when justifying lines of text in the object.", 12295 "restrictions": [ 12296 "percentage" 12297 ] 12298 }, 12299 { 12300 "name": "-ms-text-overflow", 12301 "browsers": [ 12302 "IE10" 12303 ], 12304 "values": [ 12305 { 12306 "name": "clip", 12307 "description": "Clip inline content that overflows. Characters may be only partially rendered." 12308 }, 12309 { 12310 "name": "ellipsis", 12311 "description": "Render an ellipsis character (U+2026) to represent clipped inline content." 12312 } 12313 ], 12314 "relevance": 50, 12315 "description": "Text can overflow for example when it is prevented from wrapping", 12316 "restrictions": [ 12317 "enum" 12318 ] 12319 }, 12320 { 12321 "name": "-ms-text-size-adjust", 12322 "browsers": [ 12323 "E", 12324 "IE10" 12325 ], 12326 "values": [ 12327 { 12328 "name": "auto", 12329 "description": "Renderers must use the default size adjustment when displaying on a small device." 12330 }, 12331 { 12332 "name": "none", 12333 "description": "Renderers must not do size adjustment when displaying on a small device." 12334 } 12335 ], 12336 "relevance": 50, 12337 "description": "Specifies a size adjustment for displaying text content in mobile browsers.", 12338 "restrictions": [ 12339 "enum", 12340 "percentage" 12341 ] 12342 }, 12343 { 12344 "name": "-ms-text-underline-position", 12345 "browsers": [ 12346 "E", 12347 "IE10" 12348 ], 12349 "values": [ 12350 { 12351 "name": "alphabetic", 12352 "description": "The underline is aligned with the alphabetic baseline. In this case the underline is likely to cross some descenders." 12353 }, 12354 { 12355 "name": "auto", 12356 "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." 12357 }, 12358 { 12359 "name": "over", 12360 "description": "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." 12361 }, 12362 { 12363 "name": "under", 12364 "description": "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." 12365 } 12366 ], 12367 "relevance": 50, 12368 "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", 12369 "restrictions": [ 12370 "enum" 12371 ] 12372 }, 12373 { 12374 "name": "-ms-touch-action", 12375 "browsers": [ 12376 "IE10" 12377 ], 12378 "values": [ 12379 { 12380 "name": "auto", 12381 "description": "The element is a passive element, with several exceptions." 12382 }, 12383 { 12384 "name": "double-tap-zoom", 12385 "description": "The element will zoom on double-tap." 12386 }, 12387 { 12388 "name": "manipulation", 12389 "description": "The element is a manipulation-causing element." 12390 }, 12391 { 12392 "name": "none", 12393 "description": "The element is a manipulation-blocking element." 12394 }, 12395 { 12396 "name": "pan-x", 12397 "description": "The element permits touch-driven panning on the horizontal axis. The touch pan is performed on the nearest ancestor with horizontally scrollable content." 12398 }, 12399 { 12400 "name": "pan-y", 12401 "description": "The element permits touch-driven panning on the vertical axis. The touch pan is performed on the nearest ancestor with vertically scrollable content." 12402 }, 12403 { 12404 "name": "pinch-zoom", 12405 "description": "The element permits pinch-zooming. The pinch-zoom is performed on the nearest ancestor with zoomable content." 12406 } 12407 ], 12408 "relevance": 50, 12409 "description": "Gets or sets a value that indicates whether and how a given region can be manipulated by the user.", 12410 "restrictions": [ 12411 "enum" 12412 ] 12413 }, 12414 { 12415 "name": "-ms-touch-select", 12416 "browsers": [ 12417 "E", 12418 "IE10" 12419 ], 12420 "values": [ 12421 { 12422 "name": "grippers", 12423 "description": "Grippers are always on." 12424 }, 12425 { 12426 "name": "none", 12427 "description": "Grippers are always off." 12428 } 12429 ], 12430 "status": "nonstandard", 12431 "syntax": "grippers | none", 12432 "relevance": 0, 12433 "description": "Gets or sets a value that toggles the 'gripper' visual elements that enable touch text selection.", 12434 "restrictions": [ 12435 "enum" 12436 ] 12437 }, 12438 { 12439 "name": "-ms-transform", 12440 "browsers": [ 12441 "IE9-9" 12442 ], 12443 "values": [ 12444 { 12445 "name": "matrix()", 12446 "description": "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]" 12447 }, 12448 { 12449 "name": "matrix3d()", 12450 "description": "Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order." 12451 }, 12452 { 12453 "name": "none" 12454 }, 12455 { 12456 "name": "rotate()", 12457 "description": "Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property." 12458 }, 12459 { 12460 "name": "rotate3d()", 12461 "description": "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." 12462 }, 12463 { 12464 "name": "rotateX('angle')", 12465 "description": "Specifies a clockwise rotation by the given angle about the X axis." 12466 }, 12467 { 12468 "name": "rotateY('angle')", 12469 "description": "Specifies a clockwise rotation by the given angle about the Y axis." 12470 }, 12471 { 12472 "name": "rotateZ('angle')", 12473 "description": "Specifies a clockwise rotation by the given angle about the Z axis." 12474 }, 12475 { 12476 "name": "scale()", 12477 "description": "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." 12478 }, 12479 { 12480 "name": "scale3d()", 12481 "description": "Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters." 12482 }, 12483 { 12484 "name": "scaleX()", 12485 "description": "Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter." 12486 }, 12487 { 12488 "name": "scaleY()", 12489 "description": "Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter." 12490 }, 12491 { 12492 "name": "scaleZ()", 12493 "description": "Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter." 12494 }, 12495 { 12496 "name": "skew()", 12497 "description": "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)." 12498 }, 12499 { 12500 "name": "skewX()", 12501 "description": "Specifies a skew transformation along the X axis by the given angle." 12502 }, 12503 { 12504 "name": "skewY()", 12505 "description": "Specifies a skew transformation along the Y axis by the given angle." 12506 }, 12507 { 12508 "name": "translate()", 12509 "description": "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." 12510 }, 12511 { 12512 "name": "translate3d()", 12513 "description": "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." 12514 }, 12515 { 12516 "name": "translateX()", 12517 "description": "Specifies a translation by the given amount in the X direction." 12518 }, 12519 { 12520 "name": "translateY()", 12521 "description": "Specifies a translation by the given amount in the Y direction." 12522 }, 12523 { 12524 "name": "translateZ()", 12525 "description": "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." 12526 } 12527 ], 12528 "relevance": 50, 12529 "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.", 12530 "restrictions": [ 12531 "enum" 12532 ] 12533 }, 12534 { 12535 "name": "-ms-transform-origin", 12536 "browsers": [ 12537 "IE9-9" 12538 ], 12539 "relevance": 50, 12540 "description": "Establishes the origin of transformation for an element.", 12541 "restrictions": [ 12542 "position", 12543 "length", 12544 "percentage" 12545 ] 12546 }, 12547 { 12548 "name": "-ms-transform-origin-x", 12549 "browsers": [ 12550 "IE10" 12551 ], 12552 "relevance": 50, 12553 "description": "The x coordinate of the origin for transforms applied to an element with respect to its border box.", 12554 "restrictions": [ 12555 "length", 12556 "percentage" 12557 ] 12558 }, 12559 { 12560 "name": "-ms-transform-origin-y", 12561 "browsers": [ 12562 "IE10" 12563 ], 12564 "relevance": 50, 12565 "description": "The y coordinate of the origin for transforms applied to an element with respect to its border box.", 12566 "restrictions": [ 12567 "length", 12568 "percentage" 12569 ] 12570 }, 12571 { 12572 "name": "-ms-transform-origin-z", 12573 "browsers": [ 12574 "IE10" 12575 ], 12576 "relevance": 50, 12577 "description": "The z coordinate of the origin for transforms applied to an element with respect to its border box.", 12578 "restrictions": [ 12579 "length", 12580 "percentage" 12581 ] 12582 }, 12583 { 12584 "name": "-ms-user-select", 12585 "browsers": [ 12586 "E", 12587 "IE10" 12588 ], 12589 "values": [ 12590 { 12591 "name": "element" 12592 }, 12593 { 12594 "name": "none" 12595 }, 12596 { 12597 "name": "text" 12598 } 12599 ], 12600 "status": "nonstandard", 12601 "syntax": "none | element | text", 12602 "relevance": 0, 12603 "description": "Controls the appearance of selection.", 12604 "restrictions": [ 12605 "enum" 12606 ] 12607 }, 12608 { 12609 "name": "-ms-word-break", 12610 "browsers": [ 12611 "IE8" 12612 ], 12613 "values": [ 12614 { 12615 "name": "break-all", 12616 "description": "Lines may break between any two grapheme clusters for non-CJK scripts." 12617 }, 12618 { 12619 "name": "keep-all", 12620 "description": "Block characters can no longer create implied break points." 12621 }, 12622 { 12623 "name": "normal", 12624 "description": "Breaks non-CJK scripts according to their own rules." 12625 } 12626 ], 12627 "relevance": 50, 12628 "description": "Specifies line break opportunities for non-CJK scripts.", 12629 "restrictions": [ 12630 "enum" 12631 ] 12632 }, 12633 { 12634 "name": "-ms-word-wrap", 12635 "browsers": [ 12636 "IE8" 12637 ], 12638 "values": [ 12639 { 12640 "name": "break-word", 12641 "description": "An unbreakable 'word' may be broken at an arbitrary point if there are no otherwise-acceptable break points in the line." 12642 }, 12643 { 12644 "name": "normal", 12645 "description": "Lines may break only at allowed break points." 12646 } 12647 ], 12648 "relevance": 50, 12649 "description": "Specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit.", 12650 "restrictions": [ 12651 "enum" 12652 ] 12653 }, 12654 { 12655 "name": "-ms-wrap-flow", 12656 "browsers": [ 12657 "E", 12658 "IE10" 12659 ], 12660 "values": [ 12661 { 12662 "name": "auto", 12663 "description": "For floats an exclusion is created, for all other elements an exclusion is not created." 12664 }, 12665 { 12666 "name": "both", 12667 "description": "Inline flow content can flow on all sides of the exclusion." 12668 }, 12669 { 12670 "name": "clear", 12671 "description": "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." 12672 }, 12673 { 12674 "name": "end", 12675 "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." 12676 }, 12677 { 12678 "name": "maximum", 12679 "description": "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." 12680 }, 12681 { 12682 "name": "minimum", 12683 "description": "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." 12684 }, 12685 { 12686 "name": "start", 12687 "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." 12688 } 12689 ], 12690 "status": "nonstandard", 12691 "syntax": "auto | both | start | end | maximum | clear", 12692 "relevance": 0, 12693 "description": "An element becomes an exclusion when its 'wrap-flow' property has a computed value other than 'auto'.", 12694 "restrictions": [ 12695 "enum" 12696 ] 12697 }, 12698 { 12699 "name": "-ms-wrap-margin", 12700 "browsers": [ 12701 "E", 12702 "IE10" 12703 ], 12704 "status": "nonstandard", 12705 "syntax": "<length>", 12706 "relevance": 0, 12707 "description": "Gets or sets a value that is used to offset the inner wrap shape from other shapes.", 12708 "restrictions": [ 12709 "length", 12710 "percentage" 12711 ] 12712 }, 12713 { 12714 "name": "-ms-wrap-through", 12715 "browsers": [ 12716 "E", 12717 "IE10" 12718 ], 12719 "values": [ 12720 { 12721 "name": "none", 12722 "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." 12723 }, 12724 { 12725 "name": "wrap", 12726 "description": "The exclusion element inherits its parent node's wrapping context. Its descendant inline content wraps around exclusions defined outside the element." 12727 } 12728 ], 12729 "status": "nonstandard", 12730 "syntax": "wrap | none", 12731 "relevance": 0, 12732 "description": "Specifies if an element inherits its parent wrapping context. In other words if it is subject to the exclusions defined outside the element.", 12733 "restrictions": [ 12734 "enum" 12735 ] 12736 }, 12737 { 12738 "name": "-ms-writing-mode", 12739 "browsers": [ 12740 "IE8" 12741 ], 12742 "values": [ 12743 { 12744 "name": "bt-lr" 12745 }, 12746 { 12747 "name": "bt-rl" 12748 }, 12749 { 12750 "name": "lr-bt" 12751 }, 12752 { 12753 "name": "lr-tb" 12754 }, 12755 { 12756 "name": "rl-bt" 12757 }, 12758 { 12759 "name": "rl-tb" 12760 }, 12761 { 12762 "name": "tb-lr" 12763 }, 12764 { 12765 "name": "tb-rl" 12766 } 12767 ], 12768 "relevance": 50, 12769 "description": "Shorthand property for both 'direction' and 'block-progression'.", 12770 "restrictions": [ 12771 "enum" 12772 ] 12773 }, 12774 { 12775 "name": "-ms-zoom", 12776 "browsers": [ 12777 "IE8" 12778 ], 12779 "values": [ 12780 { 12781 "name": "normal" 12782 } 12783 ], 12784 "relevance": 50, 12785 "description": "Sets or retrieves the magnification scale of the object.", 12786 "restrictions": [ 12787 "enum", 12788 "integer", 12789 "number", 12790 "percentage" 12791 ] 12792 }, 12793 { 12794 "name": "-ms-zoom-animation", 12795 "browsers": [ 12796 "IE10" 12797 ], 12798 "values": [ 12799 { 12800 "name": "default" 12801 }, 12802 { 12803 "name": "none" 12804 } 12805 ], 12806 "relevance": 50, 12807 "description": "Gets or sets a value that indicates whether an animation is used when zooming.", 12808 "restrictions": [ 12809 "enum" 12810 ] 12811 }, 12812 { 12813 "name": "nav-down", 12814 "browsers": [ 12815 "O9.5" 12816 ], 12817 "values": [ 12818 { 12819 "name": "auto", 12820 "description": "The user agent automatically determines which element to navigate the focus to in response to directional navigational input." 12821 }, 12822 { 12823 "name": "current", 12824 "description": "Indicates that the user agent should target the frame that the element is in." 12825 }, 12826 { 12827 "name": "root", 12828 "description": "Indicates that the user agent should target the full window." 12829 } 12830 ], 12831 "relevance": 50, 12832 "description": "Provides an way to control directional focus navigation.", 12833 "restrictions": [ 12834 "enum", 12835 "identifier", 12836 "string" 12837 ] 12838 }, 12839 { 12840 "name": "nav-index", 12841 "browsers": [ 12842 "O9.5" 12843 ], 12844 "values": [ 12845 { 12846 "name": "auto", 12847 "description": "The element's sequential navigation order is assigned automatically by the user agent." 12848 } 12849 ], 12850 "relevance": 50, 12851 "description": "Provides an input-method-neutral way of specifying the sequential navigation order (also known as 'tabbing order').", 12852 "restrictions": [ 12853 "number" 12854 ] 12855 }, 12856 { 12857 "name": "nav-left", 12858 "browsers": [ 12859 "O9.5" 12860 ], 12861 "values": [ 12862 { 12863 "name": "auto", 12864 "description": "The user agent automatically determines which element to navigate the focus to in response to directional navigational input." 12865 }, 12866 { 12867 "name": "current", 12868 "description": "Indicates that the user agent should target the frame that the element is in." 12869 }, 12870 { 12871 "name": "root", 12872 "description": "Indicates that the user agent should target the full window." 12873 } 12874 ], 12875 "relevance": 50, 12876 "description": "Provides an way to control directional focus navigation.", 12877 "restrictions": [ 12878 "enum", 12879 "identifier", 12880 "string" 12881 ] 12882 }, 12883 { 12884 "name": "nav-right", 12885 "browsers": [ 12886 "O9.5" 12887 ], 12888 "values": [ 12889 { 12890 "name": "auto", 12891 "description": "The user agent automatically determines which element to navigate the focus to in response to directional navigational input." 12892 }, 12893 { 12894 "name": "current", 12895 "description": "Indicates that the user agent should target the frame that the element is in." 12896 }, 12897 { 12898 "name": "root", 12899 "description": "Indicates that the user agent should target the full window." 12900 } 12901 ], 12902 "relevance": 50, 12903 "description": "Provides an way to control directional focus navigation.", 12904 "restrictions": [ 12905 "enum", 12906 "identifier", 12907 "string" 12908 ] 12909 }, 12910 { 12911 "name": "nav-up", 12912 "browsers": [ 12913 "O9.5" 12914 ], 12915 "values": [ 12916 { 12917 "name": "auto", 12918 "description": "The user agent automatically determines which element to navigate the focus to in response to directional navigational input." 12919 }, 12920 { 12921 "name": "current", 12922 "description": "Indicates that the user agent should target the frame that the element is in." 12923 }, 12924 { 12925 "name": "root", 12926 "description": "Indicates that the user agent should target the full window." 12927 } 12928 ], 12929 "relevance": 50, 12930 "description": "Provides an way to control directional focus navigation.", 12931 "restrictions": [ 12932 "enum", 12933 "identifier", 12934 "string" 12935 ] 12936 }, 12937 { 12938 "name": "negative", 12939 "browsers": [ 12940 "FF33" 12941 ], 12942 "syntax": "<symbol> <symbol>?", 12943 "relevance": 50, 12944 "description": "@counter-style descriptor. Defines how to alter the representation when the counter value is negative.", 12945 "restrictions": [ 12946 "image", 12947 "identifier", 12948 "string" 12949 ] 12950 }, 12951 { 12952 "name": "-o-animation", 12953 "browsers": [ 12954 "O12" 12955 ], 12956 "values": [ 12957 { 12958 "name": "alternate", 12959 "description": "The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction." 12960 }, 12961 { 12962 "name": "alternate-reverse", 12963 "description": "The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction." 12964 }, 12965 { 12966 "name": "backwards", 12967 "description": "The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'." 12968 }, 12969 { 12970 "name": "both", 12971 "description": "Both forwards and backwards fill modes are applied." 12972 }, 12973 { 12974 "name": "forwards", 12975 "description": "The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes." 12976 }, 12977 { 12978 "name": "infinite", 12979 "description": "Causes the animation to repeat forever." 12980 }, 12981 { 12982 "name": "none", 12983 "description": "No animation is performed" 12984 }, 12985 { 12986 "name": "normal", 12987 "description": "Normal playback." 12988 }, 12989 { 12990 "name": "reverse", 12991 "description": "All iterations of the animation are played in the reverse direction from the way they were specified." 12992 } 12993 ], 12994 "relevance": 50, 12995 "description": "Shorthand property combines six of the animation properties into a single property.", 12996 "restrictions": [ 12997 "time", 12998 "enum", 12999 "timing-function", 13000 "identifier", 13001 "number" 13002 ] 13003 }, 13004 { 13005 "name": "-o-animation-delay", 13006 "browsers": [ 13007 "O12" 13008 ], 13009 "relevance": 50, 13010 "description": "Defines when the animation will start.", 13011 "restrictions": [ 13012 "time" 13013 ] 13014 }, 13015 { 13016 "name": "-o-animation-direction", 13017 "browsers": [ 13018 "O12" 13019 ], 13020 "values": [ 13021 { 13022 "name": "alternate", 13023 "description": "The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction." 13024 }, 13025 { 13026 "name": "alternate-reverse", 13027 "description": "The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction." 13028 }, 13029 { 13030 "name": "normal", 13031 "description": "Normal playback." 13032 }, 13033 { 13034 "name": "reverse", 13035 "description": "All iterations of the animation are played in the reverse direction from the way they were specified." 13036 } 13037 ], 13038 "relevance": 50, 13039 "description": "Defines whether or not the animation should play in reverse on alternate cycles.", 13040 "restrictions": [ 13041 "enum" 13042 ] 13043 }, 13044 { 13045 "name": "-o-animation-duration", 13046 "browsers": [ 13047 "O12" 13048 ], 13049 "relevance": 50, 13050 "description": "Defines the length of time that an animation takes to complete one cycle.", 13051 "restrictions": [ 13052 "time" 13053 ] 13054 }, 13055 { 13056 "name": "-o-animation-fill-mode", 13057 "browsers": [ 13058 "O12" 13059 ], 13060 "values": [ 13061 { 13062 "name": "backwards", 13063 "description": "The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'." 13064 }, 13065 { 13066 "name": "both", 13067 "description": "Both forwards and backwards fill modes are applied." 13068 }, 13069 { 13070 "name": "forwards", 13071 "description": "The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes." 13072 }, 13073 { 13074 "name": "none", 13075 "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." 13076 } 13077 ], 13078 "relevance": 50, 13079 "description": "Defines what values are applied by the animation outside the time it is executing.", 13080 "restrictions": [ 13081 "enum" 13082 ] 13083 }, 13084 { 13085 "name": "-o-animation-iteration-count", 13086 "browsers": [ 13087 "O12" 13088 ], 13089 "values": [ 13090 { 13091 "name": "infinite", 13092 "description": "Causes the animation to repeat forever." 13093 } 13094 ], 13095 "relevance": 50, 13096 "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.", 13097 "restrictions": [ 13098 "number", 13099 "enum" 13100 ] 13101 }, 13102 { 13103 "name": "-o-animation-name", 13104 "browsers": [ 13105 "O12" 13106 ], 13107 "values": [ 13108 { 13109 "name": "none", 13110 "description": "No animation is performed" 13111 } 13112 ], 13113 "relevance": 50, 13114 "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.", 13115 "restrictions": [ 13116 "identifier", 13117 "enum" 13118 ] 13119 }, 13120 { 13121 "name": "-o-animation-play-state", 13122 "browsers": [ 13123 "O12" 13124 ], 13125 "values": [ 13126 { 13127 "name": "paused", 13128 "description": "A running animation will be paused." 13129 }, 13130 { 13131 "name": "running", 13132 "description": "Resume playback of a paused animation." 13133 } 13134 ], 13135 "relevance": 50, 13136 "description": "Defines whether the animation is running or paused.", 13137 "restrictions": [ 13138 "enum" 13139 ] 13140 }, 13141 { 13142 "name": "-o-animation-timing-function", 13143 "browsers": [ 13144 "O12" 13145 ], 13146 "relevance": 50, 13147 "description": "Describes how the animation will progress over one cycle of its duration. See the 'transition-timing-function'.", 13148 "restrictions": [ 13149 "timing-function" 13150 ] 13151 }, 13152 { 13153 "name": "object-fit", 13154 "browsers": [ 13155 "E16", 13156 "FF36", 13157 "S10", 13158 "C31", 13159 "O19" 13160 ], 13161 "values": [ 13162 { 13163 "name": "contain", 13164 "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." 13165 }, 13166 { 13167 "name": "cover", 13168 "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." 13169 }, 13170 { 13171 "name": "fill", 13172 "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." 13173 }, 13174 { 13175 "name": "none", 13176 "description": "The replaced content is not resized to fit inside the element's content box" 13177 }, 13178 { 13179 "name": "scale-down", 13180 "description": "Size the content as if ‘none’ or ‘contain’ were specified, whichever would result in a smaller concrete object size." 13181 } 13182 ], 13183 "syntax": "fill | contain | cover | none | scale-down", 13184 "relevance": 61, 13185 "references": [ 13186 { 13187 "name": "MDN Reference", 13188 "url": "https://developer.mozilla.org/docs/Web/CSS/object-fit" 13189 } 13190 ], 13191 "description": "Specifies how the contents of a replaced element should be scaled relative to the box established by its used height and width.", 13192 "restrictions": [ 13193 "enum" 13194 ] 13195 }, 13196 { 13197 "name": "object-position", 13198 "browsers": [ 13199 "E16", 13200 "FF36", 13201 "S10", 13202 "C31", 13203 "O19" 13204 ], 13205 "syntax": "<position>", 13206 "relevance": 52, 13207 "references": [ 13208 { 13209 "name": "MDN Reference", 13210 "url": "https://developer.mozilla.org/docs/Web/CSS/object-position" 13211 } 13212 ], 13213 "description": "Determines the alignment of the replaced element inside its box.", 13214 "restrictions": [ 13215 "position", 13216 "length", 13217 "percentage" 13218 ] 13219 }, 13220 { 13221 "name": "-o-border-image", 13222 "browsers": [ 13223 "O11.6" 13224 ], 13225 "values": [ 13226 { 13227 "name": "auto", 13228 "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." 13229 }, 13230 { 13231 "name": "fill", 13232 "description": "Causes the middle part of the border-image to be preserved." 13233 }, 13234 { 13235 "name": "none" 13236 }, 13237 { 13238 "name": "repeat", 13239 "description": "The image is tiled (repeated) to fill the area." 13240 }, 13241 { 13242 "name": "round", 13243 "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." 13244 }, 13245 { 13246 "name": "space", 13247 "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." 13248 }, 13249 { 13250 "name": "stretch", 13251 "description": "The image is stretched to fill the area." 13252 } 13253 ], 13254 "relevance": 50, 13255 "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.", 13256 "restrictions": [ 13257 "length", 13258 "percentage", 13259 "number", 13260 "image", 13261 "enum" 13262 ] 13263 }, 13264 { 13265 "name": "-o-object-fit", 13266 "browsers": [ 13267 "O10.6" 13268 ], 13269 "values": [ 13270 { 13271 "name": "contain", 13272 "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." 13273 }, 13274 { 13275 "name": "cover", 13276 "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." 13277 }, 13278 { 13279 "name": "fill", 13280 "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." 13281 }, 13282 { 13283 "name": "none", 13284 "description": "The replaced content is not resized to fit inside the element's content box" 13285 }, 13286 { 13287 "name": "scale-down", 13288 "description": "Size the content as if ‘none’ or ‘contain’ were specified, whichever would result in a smaller concrete object size." 13289 } 13290 ], 13291 "relevance": 50, 13292 "description": "Specifies how the contents of a replaced element should be scaled relative to the box established by its used height and width.", 13293 "restrictions": [ 13294 "enum" 13295 ] 13296 }, 13297 { 13298 "name": "-o-object-position", 13299 "browsers": [ 13300 "O10.6" 13301 ], 13302 "relevance": 50, 13303 "description": "Determines the alignment of the replaced element inside its box.", 13304 "restrictions": [ 13305 "position", 13306 "length", 13307 "percentage" 13308 ] 13309 }, 13310 { 13311 "name": "opacity", 13312 "syntax": "<alpha-value>", 13313 "relevance": 93, 13314 "references": [ 13315 { 13316 "name": "MDN Reference", 13317 "url": "https://developer.mozilla.org/docs/Web/CSS/opacity" 13318 } 13319 ], 13320 "description": "Opacity of an element's text, where 1 is opaque and 0 is entirely transparent.", 13321 "restrictions": [ 13322 "number(0-1)" 13323 ] 13324 }, 13325 { 13326 "name": "order", 13327 "syntax": "<integer>", 13328 "relevance": 61, 13329 "references": [ 13330 { 13331 "name": "MDN Reference", 13332 "url": "https://developer.mozilla.org/docs/Web/CSS/order" 13333 } 13334 ], 13335 "description": "Controls the order in which children of a flex container appear within the flex container, by assigning them to ordinal groups.", 13336 "restrictions": [ 13337 "integer" 13338 ] 13339 }, 13340 { 13341 "name": "orphans", 13342 "browsers": [ 13343 "E12", 13344 "S1.3", 13345 "C25", 13346 "IE8", 13347 "O9.2" 13348 ], 13349 "syntax": "<integer>", 13350 "relevance": 51, 13351 "references": [ 13352 { 13353 "name": "MDN Reference", 13354 "url": "https://developer.mozilla.org/docs/Web/CSS/orphans" 13355 } 13356 ], 13357 "description": "Specifies the minimum number of line boxes in a block container that must be left in a fragment before a fragmentation break.", 13358 "restrictions": [ 13359 "integer" 13360 ] 13361 }, 13362 { 13363 "name": "-o-table-baseline", 13364 "browsers": [ 13365 "O9.6" 13366 ], 13367 "relevance": 50, 13368 "description": "Determines which row of a inline-table should be used as baseline of inline-table.", 13369 "restrictions": [ 13370 "integer" 13371 ] 13372 }, 13373 { 13374 "name": "-o-tab-size", 13375 "browsers": [ 13376 "O10.6" 13377 ], 13378 "relevance": 50, 13379 "description": "This property determines the width of the tab character (U+0009), in space characters (U+0020), when rendered.", 13380 "restrictions": [ 13381 "integer", 13382 "length" 13383 ] 13384 }, 13385 { 13386 "name": "-o-text-overflow", 13387 "browsers": [ 13388 "O10" 13389 ], 13390 "values": [ 13391 { 13392 "name": "clip", 13393 "description": "Clip inline content that overflows. Characters may be only partially rendered." 13394 }, 13395 { 13396 "name": "ellipsis", 13397 "description": "Render an ellipsis character (U+2026) to represent clipped inline content." 13398 } 13399 ], 13400 "relevance": 50, 13401 "description": "Text can overflow for example when it is prevented from wrapping", 13402 "restrictions": [ 13403 "enum" 13404 ] 13405 }, 13406 { 13407 "name": "-o-transform", 13408 "browsers": [ 13409 "O10.5" 13410 ], 13411 "values": [ 13412 { 13413 "name": "matrix()", 13414 "description": "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]" 13415 }, 13416 { 13417 "name": "matrix3d()", 13418 "description": "Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order." 13419 }, 13420 { 13421 "name": "none" 13422 }, 13423 { 13424 "name": "rotate()", 13425 "description": "Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property." 13426 }, 13427 { 13428 "name": "rotate3d()", 13429 "description": "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." 13430 }, 13431 { 13432 "name": "rotateX('angle')", 13433 "description": "Specifies a clockwise rotation by the given angle about the X axis." 13434 }, 13435 { 13436 "name": "rotateY('angle')", 13437 "description": "Specifies a clockwise rotation by the given angle about the Y axis." 13438 }, 13439 { 13440 "name": "rotateZ('angle')", 13441 "description": "Specifies a clockwise rotation by the given angle about the Z axis." 13442 }, 13443 { 13444 "name": "scale()", 13445 "description": "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." 13446 }, 13447 { 13448 "name": "scale3d()", 13449 "description": "Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters." 13450 }, 13451 { 13452 "name": "scaleX()", 13453 "description": "Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter." 13454 }, 13455 { 13456 "name": "scaleY()", 13457 "description": "Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter." 13458 }, 13459 { 13460 "name": "scaleZ()", 13461 "description": "Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter." 13462 }, 13463 { 13464 "name": "skew()", 13465 "description": "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)." 13466 }, 13467 { 13468 "name": "skewX()", 13469 "description": "Specifies a skew transformation along the X axis by the given angle." 13470 }, 13471 { 13472 "name": "skewY()", 13473 "description": "Specifies a skew transformation along the Y axis by the given angle." 13474 }, 13475 { 13476 "name": "translate()", 13477 "description": "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." 13478 }, 13479 { 13480 "name": "translate3d()", 13481 "description": "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." 13482 }, 13483 { 13484 "name": "translateX()", 13485 "description": "Specifies a translation by the given amount in the X direction." 13486 }, 13487 { 13488 "name": "translateY()", 13489 "description": "Specifies a translation by the given amount in the Y direction." 13490 }, 13491 { 13492 "name": "translateZ()", 13493 "description": "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." 13494 } 13495 ], 13496 "relevance": 50, 13497 "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.", 13498 "restrictions": [ 13499 "enum" 13500 ] 13501 }, 13502 { 13503 "name": "-o-transform-origin", 13504 "browsers": [ 13505 "O10.5" 13506 ], 13507 "relevance": 50, 13508 "description": "Establishes the origin of transformation for an element.", 13509 "restrictions": [ 13510 "positon", 13511 "length", 13512 "percentage" 13513 ] 13514 }, 13515 { 13516 "name": "-o-transition", 13517 "browsers": [ 13518 "O11.5" 13519 ], 13520 "values": [ 13521 { 13522 "name": "all", 13523 "description": "Every property that is able to undergo a transition will do so." 13524 }, 13525 { 13526 "name": "none", 13527 "description": "No property will transition." 13528 } 13529 ], 13530 "relevance": 50, 13531 "description": "Shorthand property combines four of the transition properties into a single property.", 13532 "restrictions": [ 13533 "time", 13534 "property", 13535 "timing-function", 13536 "enum" 13537 ] 13538 }, 13539 { 13540 "name": "-o-transition-delay", 13541 "browsers": [ 13542 "O11.5" 13543 ], 13544 "relevance": 50, 13545 "description": "Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.", 13546 "restrictions": [ 13547 "time" 13548 ] 13549 }, 13550 { 13551 "name": "-o-transition-duration", 13552 "browsers": [ 13553 "O11.5" 13554 ], 13555 "relevance": 50, 13556 "description": "Specifies how long the transition from the old value to the new value should take.", 13557 "restrictions": [ 13558 "time" 13559 ] 13560 }, 13561 { 13562 "name": "-o-transition-property", 13563 "browsers": [ 13564 "O11.5" 13565 ], 13566 "values": [ 13567 { 13568 "name": "all", 13569 "description": "Every property that is able to undergo a transition will do so." 13570 }, 13571 { 13572 "name": "none", 13573 "description": "No property will transition." 13574 } 13575 ], 13576 "relevance": 50, 13577 "description": "Specifies the name of the CSS property to which the transition is applied.", 13578 "restrictions": [ 13579 "property" 13580 ] 13581 }, 13582 { 13583 "name": "-o-transition-timing-function", 13584 "browsers": [ 13585 "O11.5" 13586 ], 13587 "relevance": 50, 13588 "description": "Describes how the intermediate values used during a transition will be calculated.", 13589 "restrictions": [ 13590 "timing-function" 13591 ] 13592 }, 13593 { 13594 "name": "offset-block-end", 13595 "browsers": [ 13596 "FF41" 13597 ], 13598 "values": [ 13599 { 13600 "name": "auto", 13601 "description": "For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well." 13602 } 13603 ], 13604 "relevance": 50, 13605 "description": "Logical 'bottom'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.", 13606 "restrictions": [ 13607 "length", 13608 "percentage" 13609 ] 13610 }, 13611 { 13612 "name": "offset-block-start", 13613 "browsers": [ 13614 "FF41" 13615 ], 13616 "values": [ 13617 { 13618 "name": "auto", 13619 "description": "For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well." 13620 } 13621 ], 13622 "relevance": 50, 13623 "description": "Logical 'top'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.", 13624 "restrictions": [ 13625 "length", 13626 "percentage" 13627 ] 13628 }, 13629 { 13630 "name": "offset-inline-end", 13631 "browsers": [ 13632 "FF41" 13633 ], 13634 "values": [ 13635 { 13636 "name": "auto", 13637 "description": "For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well." 13638 } 13639 ], 13640 "relevance": 50, 13641 "description": "Logical 'right'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.", 13642 "restrictions": [ 13643 "length", 13644 "percentage" 13645 ] 13646 }, 13647 { 13648 "name": "offset-inline-start", 13649 "browsers": [ 13650 "FF41" 13651 ], 13652 "values": [ 13653 { 13654 "name": "auto", 13655 "description": "For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well." 13656 } 13657 ], 13658 "relevance": 50, 13659 "description": "Logical 'left'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.", 13660 "restrictions": [ 13661 "length", 13662 "percentage" 13663 ] 13664 }, 13665 { 13666 "name": "outline", 13667 "values": [ 13668 { 13669 "name": "auto", 13670 "description": "Permits the user agent to render a custom outline style, typically the default platform style." 13671 }, 13672 { 13673 "name": "invert", 13674 "description": "Performs a color inversion on the pixels on the screen." 13675 } 13676 ], 13677 "syntax": "[ <'outline-color'> || <'outline-style'> || <'outline-width'> ]", 13678 "relevance": 87, 13679 "references": [ 13680 { 13681 "name": "MDN Reference", 13682 "url": "https://developer.mozilla.org/docs/Web/CSS/outline" 13683 } 13684 ], 13685 "description": "Shorthand property for 'outline-style', 'outline-width', and 'outline-color'.", 13686 "restrictions": [ 13687 "length", 13688 "line-width", 13689 "line-style", 13690 "color", 13691 "enum" 13692 ] 13693 }, 13694 { 13695 "name": "outline-color", 13696 "values": [ 13697 { 13698 "name": "invert", 13699 "description": "Performs a color inversion on the pixels on the screen." 13700 } 13701 ], 13702 "syntax": "<color> | invert", 13703 "relevance": 53, 13704 "references": [ 13705 { 13706 "name": "MDN Reference", 13707 "url": "https://developer.mozilla.org/docs/Web/CSS/outline-color" 13708 } 13709 ], 13710 "description": "The color of the outline.", 13711 "restrictions": [ 13712 "enum", 13713 "color" 13714 ] 13715 }, 13716 { 13717 "name": "outline-offset", 13718 "browsers": [ 13719 "E15", 13720 "FF1.5", 13721 "S1.2", 13722 "C1", 13723 "O9.5" 13724 ], 13725 "syntax": "<length>", 13726 "relevance": 59, 13727 "references": [ 13728 { 13729 "name": "MDN Reference", 13730 "url": "https://developer.mozilla.org/docs/Web/CSS/outline-offset" 13731 } 13732 ], 13733 "description": "Offset the outline and draw it beyond the border edge.", 13734 "restrictions": [ 13735 "length" 13736 ] 13737 }, 13738 { 13739 "name": "outline-style", 13740 "values": [ 13741 { 13742 "name": "auto", 13743 "description": "Permits the user agent to render a custom outline style, typically the default platform style." 13744 } 13745 ], 13746 "syntax": "auto | <'border-style'>", 13747 "relevance": 60, 13748 "references": [ 13749 { 13750 "name": "MDN Reference", 13751 "url": "https://developer.mozilla.org/docs/Web/CSS/outline-style" 13752 } 13753 ], 13754 "description": "Style of the outline.", 13755 "restrictions": [ 13756 "line-style", 13757 "enum" 13758 ] 13759 }, 13760 { 13761 "name": "outline-width", 13762 "syntax": "<line-width>", 13763 "relevance": 60, 13764 "references": [ 13765 { 13766 "name": "MDN Reference", 13767 "url": "https://developer.mozilla.org/docs/Web/CSS/outline-width" 13768 } 13769 ], 13770 "description": "Width of the outline.", 13771 "restrictions": [ 13772 "length", 13773 "line-width" 13774 ] 13775 }, 13776 { 13777 "name": "overflow", 13778 "values": [ 13779 { 13780 "name": "auto", 13781 "description": "The behavior of the 'auto' value is UA-dependent, but should cause a scrolling mechanism to be provided for overflowing boxes." 13782 }, 13783 { 13784 "name": "hidden", 13785 "description": "Content is clipped and no scrolling mechanism should be provided to view the content outside the clipping region." 13786 }, 13787 { 13788 "name": "-moz-hidden-unscrollable", 13789 "description": "Same as the standardized 'clip', except doesn’t establish a block formatting context." 13790 }, 13791 { 13792 "name": "scroll", 13793 "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." 13794 }, 13795 { 13796 "name": "visible", 13797 "description": "Content is not clipped, i.e., it may be rendered outside the content box." 13798 } 13799 ], 13800 "syntax": "[ visible | hidden | clip | scroll | auto ]{1,2}", 13801 "relevance": 92, 13802 "references": [ 13803 { 13804 "name": "MDN Reference", 13805 "url": "https://developer.mozilla.org/docs/Web/CSS/overflow" 13806 } 13807 ], 13808 "description": "Shorthand for setting 'overflow-x' and 'overflow-y'.", 13809 "restrictions": [ 13810 "enum" 13811 ] 13812 }, 13813 { 13814 "name": "overflow-wrap", 13815 "values": [ 13816 { 13817 "name": "break-word", 13818 "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." 13819 }, 13820 { 13821 "name": "normal", 13822 "description": "Lines may break only at allowed break points." 13823 } 13824 ], 13825 "syntax": "normal | break-word | anywhere", 13826 "relevance": 63, 13827 "references": [ 13828 { 13829 "name": "MDN Reference", 13830 "url": "https://developer.mozilla.org/docs/Web/CSS/overflow-wrap" 13831 } 13832 ], 13833 "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.", 13834 "restrictions": [ 13835 "enum" 13836 ] 13837 }, 13838 { 13839 "name": "overflow-x", 13840 "values": [ 13841 { 13842 "name": "auto", 13843 "description": "The behavior of the 'auto' value is UA-dependent, but should cause a scrolling mechanism to be provided for overflowing boxes." 13844 }, 13845 { 13846 "name": "hidden", 13847 "description": "Content is clipped and no scrolling mechanism should be provided to view the content outside the clipping region." 13848 }, 13849 { 13850 "name": "scroll", 13851 "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." 13852 }, 13853 { 13854 "name": "visible", 13855 "description": "Content is not clipped, i.e., it may be rendered outside the content box." 13856 } 13857 ], 13858 "syntax": "visible | hidden | clip | scroll | auto", 13859 "relevance": 79, 13860 "references": [ 13861 { 13862 "name": "MDN Reference", 13863 "url": "https://developer.mozilla.org/docs/Web/CSS/overflow-x" 13864 } 13865 ], 13866 "description": "Specifies the handling of overflow in the horizontal direction.", 13867 "restrictions": [ 13868 "enum" 13869 ] 13870 }, 13871 { 13872 "name": "overflow-y", 13873 "values": [ 13874 { 13875 "name": "auto", 13876 "description": "The behavior of the 'auto' value is UA-dependent, but should cause a scrolling mechanism to be provided for overflowing boxes." 13877 }, 13878 { 13879 "name": "hidden", 13880 "description": "Content is clipped and no scrolling mechanism should be provided to view the content outside the clipping region." 13881 }, 13882 { 13883 "name": "scroll", 13884 "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." 13885 }, 13886 { 13887 "name": "visible", 13888 "description": "Content is not clipped, i.e., it may be rendered outside the content box." 13889 } 13890 ], 13891 "syntax": "visible | hidden | clip | scroll | auto", 13892 "relevance": 81, 13893 "references": [ 13894 { 13895 "name": "MDN Reference", 13896 "url": "https://developer.mozilla.org/docs/Web/CSS/overflow-y" 13897 } 13898 ], 13899 "description": "Specifies the handling of overflow in the vertical direction.", 13900 "restrictions": [ 13901 "enum" 13902 ] 13903 }, 13904 { 13905 "name": "pad", 13906 "browsers": [ 13907 "FF33" 13908 ], 13909 "syntax": "<integer> && <symbol>", 13910 "relevance": 50, 13911 "description": "@counter-style descriptor. Specifies a “fixed-width” counter style, where representations shorter than the pad value are padded with a particular <symbol>", 13912 "restrictions": [ 13913 "integer", 13914 "image", 13915 "string", 13916 "identifier" 13917 ] 13918 }, 13919 { 13920 "name": "padding", 13921 "values": [], 13922 "syntax": "[ <length> | <percentage> ]{1,4}", 13923 "relevance": 96, 13924 "references": [ 13925 { 13926 "name": "MDN Reference", 13927 "url": "https://developer.mozilla.org/docs/Web/CSS/padding" 13928 } 13929 ], 13930 "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.", 13931 "restrictions": [ 13932 "length", 13933 "percentage" 13934 ] 13935 }, 13936 { 13937 "name": "padding-bottom", 13938 "syntax": "<length> | <percentage>", 13939 "relevance": 88, 13940 "references": [ 13941 { 13942 "name": "MDN Reference", 13943 "url": "https://developer.mozilla.org/docs/Web/CSS/padding-bottom" 13944 } 13945 ], 13946 "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.", 13947 "restrictions": [ 13948 "length", 13949 "percentage" 13950 ] 13951 }, 13952 { 13953 "name": "padding-block-end", 13954 "browsers": [ 13955 "E79", 13956 "FF41", 13957 "S12.1", 13958 "C69", 13959 "O56" 13960 ], 13961 "syntax": "<'padding-left'>", 13962 "relevance": 50, 13963 "references": [ 13964 { 13965 "name": "MDN Reference", 13966 "url": "https://developer.mozilla.org/docs/Web/CSS/padding-block-end" 13967 } 13968 ], 13969 "description": "Logical 'padding-bottom'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.", 13970 "restrictions": [ 13971 "length", 13972 "percentage" 13973 ] 13974 }, 13975 { 13976 "name": "padding-block-start", 13977 "browsers": [ 13978 "E79", 13979 "FF41", 13980 "S12.1", 13981 "C69", 13982 "O56" 13983 ], 13984 "syntax": "<'padding-left'>", 13985 "relevance": 50, 13986 "references": [ 13987 { 13988 "name": "MDN Reference", 13989 "url": "https://developer.mozilla.org/docs/Web/CSS/padding-block-start" 13990 } 13991 ], 13992 "description": "Logical 'padding-top'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.", 13993 "restrictions": [ 13994 "length", 13995 "percentage" 13996 ] 13997 }, 13998 { 13999 "name": "padding-inline-end", 14000 "browsers": [ 14001 "E79", 14002 "FF41", 14003 "S12.1", 14004 "C69", 14005 "O56" 14006 ], 14007 "syntax": "<'padding-left'>", 14008 "relevance": 51, 14009 "references": [ 14010 { 14011 "name": "MDN Reference", 14012 "url": "https://developer.mozilla.org/docs/Web/CSS/padding-inline-end" 14013 } 14014 ], 14015 "description": "Logical 'padding-right'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.", 14016 "restrictions": [ 14017 "length", 14018 "percentage" 14019 ] 14020 }, 14021 { 14022 "name": "padding-inline-start", 14023 "browsers": [ 14024 "E79", 14025 "FF41", 14026 "S12.1", 14027 "C69", 14028 "O56" 14029 ], 14030 "syntax": "<'padding-left'>", 14031 "relevance": 52, 14032 "references": [ 14033 { 14034 "name": "MDN Reference", 14035 "url": "https://developer.mozilla.org/docs/Web/CSS/padding-inline-start" 14036 } 14037 ], 14038 "description": "Logical 'padding-left'. Mapping depends on the parent element’s 'writing-mode', 'direction', and 'text-orientation'.", 14039 "restrictions": [ 14040 "length", 14041 "percentage" 14042 ] 14043 }, 14044 { 14045 "name": "padding-left", 14046 "syntax": "<length> | <percentage>", 14047 "relevance": 90, 14048 "references": [ 14049 { 14050 "name": "MDN Reference", 14051 "url": "https://developer.mozilla.org/docs/Web/CSS/padding-left" 14052 } 14053 ], 14054 "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.", 14055 "restrictions": [ 14056 "length", 14057 "percentage" 14058 ] 14059 }, 14060 { 14061 "name": "padding-right", 14062 "syntax": "<length> | <percentage>", 14063 "relevance": 88, 14064 "references": [ 14065 { 14066 "name": "MDN Reference", 14067 "url": "https://developer.mozilla.org/docs/Web/CSS/padding-right" 14068 } 14069 ], 14070 "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.", 14071 "restrictions": [ 14072 "length", 14073 "percentage" 14074 ] 14075 }, 14076 { 14077 "name": "padding-top", 14078 "syntax": "<length> | <percentage>", 14079 "relevance": 90, 14080 "references": [ 14081 { 14082 "name": "MDN Reference", 14083 "url": "https://developer.mozilla.org/docs/Web/CSS/padding-top" 14084 } 14085 ], 14086 "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.", 14087 "restrictions": [ 14088 "length", 14089 "percentage" 14090 ] 14091 }, 14092 { 14093 "name": "page-break-after", 14094 "values": [ 14095 { 14096 "name": "always", 14097 "description": "Always force a page break after the generated box." 14098 }, 14099 { 14100 "name": "auto", 14101 "description": "Neither force nor forbid a page break after generated box." 14102 }, 14103 { 14104 "name": "avoid", 14105 "description": "Avoid a page break after the generated box." 14106 }, 14107 { 14108 "name": "left", 14109 "description": "Force one or two page breaks after the generated box so that the next page is formatted as a left page." 14110 }, 14111 { 14112 "name": "right", 14113 "description": "Force one or two page breaks after the generated box so that the next page is formatted as a right page." 14114 } 14115 ], 14116 "syntax": "auto | always | avoid | left | right | recto | verso", 14117 "relevance": 52, 14118 "references": [ 14119 { 14120 "name": "MDN Reference", 14121 "url": "https://developer.mozilla.org/docs/Web/CSS/page-break-after" 14122 } 14123 ], 14124 "description": "Defines rules for page breaks after an element.", 14125 "restrictions": [ 14126 "enum" 14127 ] 14128 }, 14129 { 14130 "name": "page-break-before", 14131 "values": [ 14132 { 14133 "name": "always", 14134 "description": "Always force a page break before the generated box." 14135 }, 14136 { 14137 "name": "auto", 14138 "description": "Neither force nor forbid a page break before the generated box." 14139 }, 14140 { 14141 "name": "avoid", 14142 "description": "Avoid a page break before the generated box." 14143 }, 14144 { 14145 "name": "left", 14146 "description": "Force one or two page breaks before the generated box so that the next page is formatted as a left page." 14147 }, 14148 { 14149 "name": "right", 14150 "description": "Force one or two page breaks before the generated box so that the next page is formatted as a right page." 14151 } 14152 ], 14153 "syntax": "auto | always | avoid | left | right | recto | verso", 14154 "relevance": 50, 14155 "references": [ 14156 { 14157 "name": "MDN Reference", 14158 "url": "https://developer.mozilla.org/docs/Web/CSS/page-break-before" 14159 } 14160 ], 14161 "description": "Defines rules for page breaks before an element.", 14162 "restrictions": [ 14163 "enum" 14164 ] 14165 }, 14166 { 14167 "name": "page-break-inside", 14168 "values": [ 14169 { 14170 "name": "auto", 14171 "description": "Neither force nor forbid a page break inside the generated box." 14172 }, 14173 { 14174 "name": "avoid", 14175 "description": "Avoid a page break inside the generated box." 14176 } 14177 ], 14178 "syntax": "auto | avoid", 14179 "relevance": 52, 14180 "references": [ 14181 { 14182 "name": "MDN Reference", 14183 "url": "https://developer.mozilla.org/docs/Web/CSS/page-break-inside" 14184 } 14185 ], 14186 "description": "Defines rules for page breaks inside an element.", 14187 "restrictions": [ 14188 "enum" 14189 ] 14190 }, 14191 { 14192 "name": "paint-order", 14193 "browsers": [ 14194 "E17", 14195 "FF60", 14196 "S8", 14197 "C35", 14198 "O22" 14199 ], 14200 "values": [ 14201 { 14202 "name": "fill" 14203 }, 14204 { 14205 "name": "markers" 14206 }, 14207 { 14208 "name": "normal", 14209 "description": "The element is painted with the standard order of painting operations: the 'fill' is painted first, then its 'stroke' and finally its markers." 14210 }, 14211 { 14212 "name": "stroke" 14213 } 14214 ], 14215 "syntax": "normal | [ fill || stroke || markers ]", 14216 "relevance": 50, 14217 "references": [ 14218 { 14219 "name": "MDN Reference", 14220 "url": "https://developer.mozilla.org/docs/Web/CSS/paint-order" 14221 } 14222 ], 14223 "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.", 14224 "restrictions": [ 14225 "enum" 14226 ] 14227 }, 14228 { 14229 "name": "perspective", 14230 "values": [ 14231 { 14232 "name": "none", 14233 "description": "No perspective transform is applied." 14234 } 14235 ], 14236 "syntax": "none | <length>", 14237 "relevance": 55, 14238 "references": [ 14239 { 14240 "name": "MDN Reference", 14241 "url": "https://developer.mozilla.org/docs/Web/CSS/perspective" 14242 } 14243 ], 14244 "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.", 14245 "restrictions": [ 14246 "length", 14247 "enum" 14248 ] 14249 }, 14250 { 14251 "name": "perspective-origin", 14252 "syntax": "<position>", 14253 "relevance": 51, 14254 "references": [ 14255 { 14256 "name": "MDN Reference", 14257 "url": "https://developer.mozilla.org/docs/Web/CSS/perspective-origin" 14258 } 14259 ], 14260 "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.", 14261 "restrictions": [ 14262 "position", 14263 "percentage", 14264 "length" 14265 ] 14266 }, 14267 { 14268 "name": "pointer-events", 14269 "values": [ 14270 { 14271 "name": "all", 14272 "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." 14273 }, 14274 { 14275 "name": "fill", 14276 "description": "The given element can be the target element for pointer events whenever the pointer is over the interior of the element." 14277 }, 14278 { 14279 "name": "none", 14280 "description": "The given element does not receive pointer events." 14281 }, 14282 { 14283 "name": "painted", 14284 "description": "The given element can be the target element for pointer events when the pointer is over a \"painted\" area. " 14285 }, 14286 { 14287 "name": "stroke", 14288 "description": "The given element can be the target element for pointer events whenever the pointer is over the perimeter of the element." 14289 }, 14290 { 14291 "name": "visible", 14292 "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." 14293 }, 14294 { 14295 "name": "visibleFill", 14296 "description": "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." 14297 }, 14298 { 14299 "name": "visiblePainted", 14300 "description": "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." 14301 }, 14302 { 14303 "name": "visibleStroke", 14304 "description": "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." 14305 } 14306 ], 14307 "syntax": "auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all | inherit", 14308 "relevance": 80, 14309 "references": [ 14310 { 14311 "name": "MDN Reference", 14312 "url": "https://developer.mozilla.org/docs/Web/CSS/pointer-events" 14313 } 14314 ], 14315 "description": "Specifies under what circumstances a given element can be the target element for a pointer event.", 14316 "restrictions": [ 14317 "enum" 14318 ] 14319 }, 14320 { 14321 "name": "position", 14322 "values": [ 14323 { 14324 "name": "absolute", 14325 "description": "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'." 14326 }, 14327 { 14328 "name": "fixed", 14329 "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." 14330 }, 14331 { 14332 "name": "-ms-page", 14333 "description": "The box's position is calculated according to the 'absolute' model." 14334 }, 14335 { 14336 "name": "relative", 14337 "description": "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." 14338 }, 14339 { 14340 "name": "static", 14341 "description": "The box is a normal box, laid out according to the normal flow. The 'top', 'right', 'bottom', and 'left' properties do not apply." 14342 }, 14343 { 14344 "name": "sticky", 14345 "description": "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." 14346 }, 14347 { 14348 "name": "-webkit-sticky", 14349 "description": "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." 14350 } 14351 ], 14352 "syntax": "static | relative | absolute | sticky | fixed", 14353 "relevance": 96, 14354 "references": [ 14355 { 14356 "name": "MDN Reference", 14357 "url": "https://developer.mozilla.org/docs/Web/CSS/position" 14358 } 14359 ], 14360 "description": "The position CSS property sets how an element is positioned in a document. The top, right, bottom, and left properties determine the final location of positioned elements.", 14361 "restrictions": [ 14362 "enum" 14363 ] 14364 }, 14365 { 14366 "name": "prefix", 14367 "browsers": [ 14368 "FF33" 14369 ], 14370 "syntax": "<symbol>", 14371 "relevance": 50, 14372 "description": "@counter-style descriptor. Specifies a <symbol> that is prepended to the marker representation.", 14373 "restrictions": [ 14374 "image", 14375 "string", 14376 "identifier" 14377 ] 14378 }, 14379 { 14380 "name": "quotes", 14381 "values": [ 14382 { 14383 "name": "none", 14384 "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." 14385 } 14386 ], 14387 "syntax": "none | auto | [ <string> <string> ]+", 14388 "relevance": 53, 14389 "references": [ 14390 { 14391 "name": "MDN Reference", 14392 "url": "https://developer.mozilla.org/docs/Web/CSS/quotes" 14393 } 14394 ], 14395 "description": "Specifies quotation marks for any number of embedded quotations.", 14396 "restrictions": [ 14397 "string" 14398 ] 14399 }, 14400 { 14401 "name": "range", 14402 "browsers": [ 14403 "FF33" 14404 ], 14405 "values": [ 14406 { 14407 "name": "auto", 14408 "description": "The range depends on the counter system." 14409 }, 14410 { 14411 "name": "infinite", 14412 "description": "If used as the first value in a range, it represents negative infinity; if used as the second value, it represents positive infinity." 14413 } 14414 ], 14415 "syntax": "[ [ <integer> | infinite ]{2} ]# | auto", 14416 "relevance": 50, 14417 "description": "@counter-style descriptor. Defines the ranges over which the counter style is defined.", 14418 "restrictions": [ 14419 "integer", 14420 "enum" 14421 ] 14422 }, 14423 { 14424 "name": "resize", 14425 "browsers": [ 14426 "E79", 14427 "FF4", 14428 "S3", 14429 "C1", 14430 "O12.1" 14431 ], 14432 "values": [ 14433 { 14434 "name": "both", 14435 "description": "The UA presents a bidirectional resizing mechanism to allow the user to adjust both the height and the width of the element." 14436 }, 14437 { 14438 "name": "horizontal", 14439 "description": "The UA presents a unidirectional horizontal resizing mechanism to allow the user to adjust only the width of the element." 14440 }, 14441 { 14442 "name": "none", 14443 "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." 14444 }, 14445 { 14446 "name": "vertical", 14447 "description": "The UA presents a unidirectional vertical resizing mechanism to allow the user to adjust only the height of the element." 14448 } 14449 ], 14450 "syntax": "none | both | horizontal | vertical | block | inline", 14451 "relevance": 60, 14452 "references": [ 14453 { 14454 "name": "MDN Reference", 14455 "url": "https://developer.mozilla.org/docs/Web/CSS/resize" 14456 } 14457 ], 14458 "description": "Specifies whether or not an element is resizable by the user, and if so, along which axis/axes.", 14459 "restrictions": [ 14460 "enum" 14461 ] 14462 }, 14463 { 14464 "name": "right", 14465 "values": [ 14466 { 14467 "name": "auto", 14468 "description": "For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well" 14469 } 14470 ], 14471 "syntax": "<length> | <percentage> | auto", 14472 "relevance": 90, 14473 "references": [ 14474 { 14475 "name": "MDN Reference", 14476 "url": "https://developer.mozilla.org/docs/Web/CSS/right" 14477 } 14478 ], 14479 "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'.", 14480 "restrictions": [ 14481 "length", 14482 "percentage" 14483 ] 14484 }, 14485 { 14486 "name": "ruby-align", 14487 "browsers": [ 14488 "FF38" 14489 ], 14490 "values": [ 14491 { 14492 "name": "auto", 14493 "browsers": [ 14494 "FF38" 14495 ], 14496 "description": "The user agent determines how the ruby contents are aligned. This is the initial value." 14497 }, 14498 { 14499 "name": "center", 14500 "description": "The ruby content is centered within its box." 14501 }, 14502 { 14503 "name": "distribute-letter", 14504 "browsers": [ 14505 "FF38" 14506 ], 14507 "description": "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." 14508 }, 14509 { 14510 "name": "distribute-space", 14511 "browsers": [ 14512 "FF38" 14513 ], 14514 "description": "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." 14515 }, 14516 { 14517 "name": "left", 14518 "description": "The ruby text content is aligned with the start edge of the base." 14519 }, 14520 { 14521 "name": "line-edge", 14522 "browsers": [ 14523 "FF38" 14524 ], 14525 "description": "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." 14526 }, 14527 { 14528 "name": "right", 14529 "browsers": [ 14530 "FF38" 14531 ], 14532 "description": "The ruby text content is aligned with the end edge of the base." 14533 }, 14534 { 14535 "name": "start", 14536 "browsers": [ 14537 "FF38" 14538 ], 14539 "description": "The ruby text content is aligned with the start edge of the base." 14540 }, 14541 { 14542 "name": "space-between", 14543 "browsers": [ 14544 "FF38" 14545 ], 14546 "description": "The ruby content expands as defined for normal text justification (as defined by 'text-justify')," 14547 }, 14548 { 14549 "name": "space-around", 14550 "browsers": [ 14551 "FF38" 14552 ], 14553 "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." 14554 } 14555 ], 14556 "status": "experimental", 14557 "syntax": "start | center | space-between | space-around", 14558 "relevance": 50, 14559 "references": [ 14560 { 14561 "name": "MDN Reference", 14562 "url": "https://developer.mozilla.org/docs/Web/CSS/ruby-align" 14563 } 14564 ], 14565 "description": "Specifies how text is distributed within the various ruby boxes when their contents do not exactly fill their respective boxes.", 14566 "restrictions": [ 14567 "enum" 14568 ] 14569 }, 14570 { 14571 "name": "ruby-overhang", 14572 "browsers": [ 14573 "FF10", 14574 "IE5" 14575 ], 14576 "values": [ 14577 { 14578 "name": "auto", 14579 "description": "The ruby text can overhang text adjacent to the base on either side. This is the initial value." 14580 }, 14581 { 14582 "name": "end", 14583 "description": "The ruby text can overhang the text that follows it." 14584 }, 14585 { 14586 "name": "none", 14587 "description": "The ruby text cannot overhang any text adjacent to its base, only its own base." 14588 }, 14589 { 14590 "name": "start", 14591 "description": "The ruby text can overhang the text that precedes it." 14592 } 14593 ], 14594 "relevance": 50, 14595 "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.", 14596 "restrictions": [ 14597 "enum" 14598 ] 14599 }, 14600 { 14601 "name": "ruby-position", 14602 "browsers": [ 14603 "E12", 14604 "FF38" 14605 ], 14606 "values": [ 14607 { 14608 "name": "after", 14609 "description": "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." 14610 }, 14611 { 14612 "name": "before", 14613 "description": "The ruby text appears before the base. This is the most common setting used in ideographic East Asian writing systems." 14614 }, 14615 { 14616 "name": "inline" 14617 }, 14618 { 14619 "name": "right", 14620 "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." 14621 } 14622 ], 14623 "status": "experimental", 14624 "syntax": "over | under | inter-character", 14625 "relevance": 50, 14626 "references": [ 14627 { 14628 "name": "MDN Reference", 14629 "url": "https://developer.mozilla.org/docs/Web/CSS/ruby-position" 14630 } 14631 ], 14632 "description": "Used by the parent of elements with display: ruby-text to control the position of the ruby text with respect to its base.", 14633 "restrictions": [ 14634 "enum" 14635 ] 14636 }, 14637 { 14638 "name": "ruby-span", 14639 "browsers": [ 14640 "FF10" 14641 ], 14642 "values": [ 14643 { 14644 "name": "attr(x)", 14645 "description": "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." 14646 }, 14647 { 14648 "name": "none", 14649 "description": "No spanning. The computed value is '1'." 14650 } 14651 ], 14652 "relevance": 50, 14653 "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.", 14654 "restrictions": [ 14655 "enum" 14656 ] 14657 }, 14658 { 14659 "name": "scrollbar-3dlight-color", 14660 "browsers": [ 14661 "IE5" 14662 ], 14663 "relevance": 50, 14664 "references": [ 14665 { 14666 "name": "MDN Reference", 14667 "url": "https://developer.mozilla.org/docs/Web/CSS/scrollbar-3dlight-color" 14668 } 14669 ], 14670 "description": "Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.", 14671 "restrictions": [ 14672 "color" 14673 ] 14674 }, 14675 { 14676 "name": "scrollbar-arrow-color", 14677 "browsers": [ 14678 "IE5" 14679 ], 14680 "relevance": 50, 14681 "references": [ 14682 { 14683 "name": "MDN Reference", 14684 "url": "https://developer.mozilla.org/docs/Web/CSS/scrollbar-arrow-color" 14685 } 14686 ], 14687 "description": "Determines the color of the arrow elements of a scroll arrow.", 14688 "restrictions": [ 14689 "color" 14690 ] 14691 }, 14692 { 14693 "name": "scrollbar-base-color", 14694 "browsers": [ 14695 "IE5" 14696 ], 14697 "relevance": 50, 14698 "references": [ 14699 { 14700 "name": "MDN Reference", 14701 "url": "https://developer.mozilla.org/docs/Web/CSS/scrollbar-base-color" 14702 } 14703 ], 14704 "description": "Determines the color of the main elements of a scroll bar, which include the scroll box, track, and scroll arrows.", 14705 "restrictions": [ 14706 "color" 14707 ] 14708 }, 14709 { 14710 "name": "scrollbar-darkshadow-color", 14711 "browsers": [ 14712 "IE5" 14713 ], 14714 "relevance": 50, 14715 "references": [ 14716 { 14717 "name": "MDN Reference", 14718 "url": "https://developer.mozilla.org/docs/Web/CSS/scrollbar-darkshadow-color" 14719 } 14720 ], 14721 "description": "Determines the color of the gutter of a scroll bar.", 14722 "restrictions": [ 14723 "color" 14724 ] 14725 }, 14726 { 14727 "name": "scrollbar-face-color", 14728 "browsers": [ 14729 "IE5" 14730 ], 14731 "relevance": 50, 14732 "references": [ 14733 { 14734 "name": "MDN Reference", 14735 "url": "https://developer.mozilla.org/docs/Web/CSS/scrollbar-face-color" 14736 } 14737 ], 14738 "description": "Determines the color of the scroll box and scroll arrows of a scroll bar.", 14739 "restrictions": [ 14740 "color" 14741 ] 14742 }, 14743 { 14744 "name": "scrollbar-highlight-color", 14745 "browsers": [ 14746 "IE5" 14747 ], 14748 "relevance": 50, 14749 "references": [ 14750 { 14751 "name": "MDN Reference", 14752 "url": "https://developer.mozilla.org/docs/Web/CSS/scrollbar-highlight-color" 14753 } 14754 ], 14755 "description": "Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.", 14756 "restrictions": [ 14757 "color" 14758 ] 14759 }, 14760 { 14761 "name": "scrollbar-shadow-color", 14762 "browsers": [ 14763 "IE5" 14764 ], 14765 "relevance": 50, 14766 "references": [ 14767 { 14768 "name": "MDN Reference", 14769 "url": "https://developer.mozilla.org/docs/Web/CSS/scrollbar-shadow-color" 14770 } 14771 ], 14772 "description": "Determines the color of the bottom and right edges of the scroll box and scroll arrows of a scroll bar.", 14773 "restrictions": [ 14774 "color" 14775 ] 14776 }, 14777 { 14778 "name": "scrollbar-track-color", 14779 "browsers": [ 14780 "IE6" 14781 ], 14782 "relevance": 50, 14783 "description": "Determines the color of the track element of a scroll bar.", 14784 "restrictions": [ 14785 "color" 14786 ] 14787 }, 14788 { 14789 "name": "scroll-behavior", 14790 "browsers": [ 14791 "E79", 14792 "FF36", 14793 "C61", 14794 "O48" 14795 ], 14796 "values": [ 14797 { 14798 "name": "auto", 14799 "description": "Scrolls in an instant fashion." 14800 }, 14801 { 14802 "name": "smooth", 14803 "description": "Scrolls in a smooth fashion using a user-agent-defined timing function and time period." 14804 } 14805 ], 14806 "syntax": "auto | smooth", 14807 "relevance": 51, 14808 "references": [ 14809 { 14810 "name": "MDN Reference", 14811 "url": "https://developer.mozilla.org/docs/Web/CSS/scroll-behavior" 14812 } 14813 ], 14814 "description": "Specifies the scrolling behavior for a scrolling box, when scrolling happens due to navigation or CSSOM scrolling APIs.", 14815 "restrictions": [ 14816 "enum" 14817 ] 14818 }, 14819 { 14820 "name": "scroll-snap-coordinate", 14821 "browsers": [ 14822 "FF39" 14823 ], 14824 "values": [ 14825 { 14826 "name": "none", 14827 "description": "Specifies that this element does not contribute a snap point." 14828 } 14829 ], 14830 "status": "obsolete", 14831 "syntax": "none | <position>#", 14832 "relevance": 0, 14833 "references": [ 14834 { 14835 "name": "MDN Reference", 14836 "url": "https://developer.mozilla.org/docs/Web/CSS/scroll-snap-coordinate" 14837 } 14838 ], 14839 "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.", 14840 "restrictions": [ 14841 "position", 14842 "length", 14843 "percentage", 14844 "enum" 14845 ] 14846 }, 14847 { 14848 "name": "scroll-snap-destination", 14849 "browsers": [ 14850 "FF39" 14851 ], 14852 "status": "obsolete", 14853 "syntax": "<position>", 14854 "relevance": 0, 14855 "references": [ 14856 { 14857 "name": "MDN Reference", 14858 "url": "https://developer.mozilla.org/docs/Web/CSS/scroll-snap-destination" 14859 } 14860 ], 14861 "description": "Define the x and y coordinate within the scroll container’s visual viewport which element snap points will align with.", 14862 "restrictions": [ 14863 "position", 14864 "length", 14865 "percentage" 14866 ] 14867 }, 14868 { 14869 "name": "scroll-snap-points-x", 14870 "browsers": [ 14871 "FF39", 14872 "S9" 14873 ], 14874 "values": [ 14875 { 14876 "name": "none", 14877 "description": "No snap points are defined by this scroll container." 14878 }, 14879 { 14880 "name": "repeat()", 14881 "description": "Defines an interval at which snap points are defined, starting from the container’s relevant start edge." 14882 } 14883 ], 14884 "status": "obsolete", 14885 "syntax": "none | repeat( <length-percentage> )", 14886 "relevance": 0, 14887 "references": [ 14888 { 14889 "name": "MDN Reference", 14890 "url": "https://developer.mozilla.org/docs/Web/CSS/scroll-snap-points-x" 14891 } 14892 ], 14893 "description": "Defines the positioning of snap points along the x axis of the scroll container it is applied to.", 14894 "restrictions": [ 14895 "enum" 14896 ] 14897 }, 14898 { 14899 "name": "scroll-snap-points-y", 14900 "browsers": [ 14901 "FF39", 14902 "S9" 14903 ], 14904 "values": [ 14905 { 14906 "name": "none", 14907 "description": "No snap points are defined by this scroll container." 14908 }, 14909 { 14910 "name": "repeat()", 14911 "description": "Defines an interval at which snap points are defined, starting from the container’s relevant start edge." 14912 } 14913 ], 14914 "status": "obsolete", 14915 "syntax": "none | repeat( <length-percentage> )", 14916 "relevance": 0, 14917 "references": [ 14918 { 14919 "name": "MDN Reference", 14920 "url": "https://developer.mozilla.org/docs/Web/CSS/scroll-snap-points-y" 14921 } 14922 ], 14923 "description": "Defines the positioning of snap points along the y axis of the scroll container it is applied to.", 14924 "restrictions": [ 14925 "enum" 14926 ] 14927 }, 14928 { 14929 "name": "scroll-snap-type", 14930 "values": [ 14931 { 14932 "name": "none", 14933 "description": "The visual viewport of this scroll container must ignore snap points, if any, when scrolled." 14934 }, 14935 { 14936 "name": "mandatory", 14937 "description": "The visual viewport of this scroll container is guaranteed to rest on a snap point when there are no active scrolling operations." 14938 }, 14939 { 14940 "name": "proximity", 14941 "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." 14942 } 14943 ], 14944 "syntax": "none | [ x | y | block | inline | both ] [ mandatory | proximity ]?", 14945 "relevance": 50, 14946 "references": [ 14947 { 14948 "name": "MDN Reference", 14949 "url": "https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type" 14950 } 14951 ], 14952 "description": "Defines how strictly snap points are enforced on the scroll container.", 14953 "restrictions": [ 14954 "enum" 14955 ] 14956 }, 14957 { 14958 "name": "shape-image-threshold", 14959 "browsers": [ 14960 "E79", 14961 "FF62", 14962 "S10.1", 14963 "C37", 14964 "O24" 14965 ], 14966 "syntax": "<alpha-value>", 14967 "relevance": 50, 14968 "references": [ 14969 { 14970 "name": "MDN Reference", 14971 "url": "https://developer.mozilla.org/docs/Web/CSS/shape-image-threshold" 14972 } 14973 ], 14974 "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.", 14975 "restrictions": [ 14976 "number" 14977 ] 14978 }, 14979 { 14980 "name": "shape-margin", 14981 "browsers": [ 14982 "E79", 14983 "FF62", 14984 "S10.1", 14985 "C37", 14986 "O24" 14987 ], 14988 "syntax": "<length-percentage>", 14989 "relevance": 50, 14990 "references": [ 14991 { 14992 "name": "MDN Reference", 14993 "url": "https://developer.mozilla.org/docs/Web/CSS/shape-margin" 14994 } 14995 ], 14996 "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.", 14997 "restrictions": [ 14998 "url", 14999 "length", 15000 "percentage" 15001 ] 15002 }, 15003 { 15004 "name": "shape-outside", 15005 "browsers": [ 15006 "E79", 15007 "FF62", 15008 "S10.1", 15009 "C37", 15010 "O24" 15011 ], 15012 "values": [ 15013 { 15014 "name": "margin-box", 15015 "description": "The background is painted within (clipped to) the margin box." 15016 }, 15017 { 15018 "name": "none", 15019 "description": "The float area is unaffected." 15020 } 15021 ], 15022 "syntax": "none | <shape-box> || <basic-shape> | <image>", 15023 "relevance": 50, 15024 "references": [ 15025 { 15026 "name": "MDN Reference", 15027 "url": "https://developer.mozilla.org/docs/Web/CSS/shape-outside" 15028 } 15029 ], 15030 "description": "Specifies an orthogonal rotation to be applied to an image before it is laid out.", 15031 "restrictions": [ 15032 "image", 15033 "box", 15034 "shape", 15035 "enum" 15036 ] 15037 }, 15038 { 15039 "name": "shape-rendering", 15040 "values": [ 15041 { 15042 "name": "auto", 15043 "description": "Suppresses aural rendering." 15044 }, 15045 { 15046 "name": "crispEdges", 15047 "description": "Emphasize the contrast between clean edges of artwork over rendering speed and geometric precision." 15048 }, 15049 { 15050 "name": "geometricPrecision", 15051 "description": "Emphasize geometric precision over speed and crisp edges." 15052 }, 15053 { 15054 "name": "optimizeSpeed", 15055 "description": "Emphasize rendering speed over geometric precision and crisp edges." 15056 } 15057 ], 15058 "relevance": 50, 15059 "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.", 15060 "restrictions": [ 15061 "enum" 15062 ] 15063 }, 15064 { 15065 "name": "size", 15066 "browsers": [ 15067 "C", 15068 "O8" 15069 ], 15070 "syntax": "<length>{1,2} | auto | [ <page-size> || [ portrait | landscape ] ]", 15071 "relevance": 52, 15072 "description": "The size CSS at-rule descriptor, used with the @page at-rule, defines the size and orientation of the box which is used to represent a page. Most of the time, this size corresponds to the target size of the printed page if applicable.", 15073 "restrictions": [ 15074 "length" 15075 ] 15076 }, 15077 { 15078 "name": "src", 15079 "values": [ 15080 { 15081 "name": "url()", 15082 "description": "Reference font by URL" 15083 }, 15084 { 15085 "name": "format()", 15086 "description": "Optional hint describing the format of the font resource." 15087 }, 15088 { 15089 "name": "local()", 15090 "description": "Format-specific string that identifies a locally available copy of a given font." 15091 } 15092 ], 15093 "syntax": "[ <url> [ format( <string># ) ]? | local( <family-name> ) ]#", 15094 "relevance": 67, 15095 "description": "@font-face descriptor. Specifies the resource containing font data. It is required, whether the font is downloadable or locally installed.", 15096 "restrictions": [ 15097 "enum", 15098 "url", 15099 "identifier" 15100 ] 15101 }, 15102 { 15103 "name": "stop-color", 15104 "relevance": 51, 15105 "description": "Indicates what color to use at that gradient stop.", 15106 "restrictions": [ 15107 "color" 15108 ] 15109 }, 15110 { 15111 "name": "stop-opacity", 15112 "relevance": 50, 15113 "description": "Defines the opacity of a given gradient stop.", 15114 "restrictions": [ 15115 "number(0-1)" 15116 ] 15117 }, 15118 { 15119 "name": "stroke", 15120 "values": [ 15121 { 15122 "name": "url()", 15123 "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’." 15124 }, 15125 { 15126 "name": "none", 15127 "description": "No paint is applied in this layer." 15128 } 15129 ], 15130 "relevance": 63, 15131 "description": "Paints along the outline of the given graphical element.", 15132 "restrictions": [ 15133 "color", 15134 "enum", 15135 "url" 15136 ] 15137 }, 15138 { 15139 "name": "stroke-dasharray", 15140 "values": [ 15141 { 15142 "name": "none", 15143 "description": "Indicates that no dashing is used." 15144 } 15145 ], 15146 "relevance": 58, 15147 "description": "Controls the pattern of dashes and gaps used to stroke paths.", 15148 "restrictions": [ 15149 "length", 15150 "percentage", 15151 "number", 15152 "enum" 15153 ] 15154 }, 15155 { 15156 "name": "stroke-dashoffset", 15157 "relevance": 58, 15158 "description": "Specifies the distance into the dash pattern to start the dash.", 15159 "restrictions": [ 15160 "percentage", 15161 "length" 15162 ] 15163 }, 15164 { 15165 "name": "stroke-linecap", 15166 "values": [ 15167 { 15168 "name": "butt", 15169 "description": "Indicates that the stroke for each subpath does not extend beyond its two endpoints." 15170 }, 15171 { 15172 "name": "round", 15173 "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." 15174 }, 15175 { 15176 "name": "square", 15177 "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." 15178 } 15179 ], 15180 "relevance": 53, 15181 "description": "Specifies the shape to be used at the end of open subpaths when they are stroked.", 15182 "restrictions": [ 15183 "enum" 15184 ] 15185 }, 15186 { 15187 "name": "stroke-linejoin", 15188 "values": [ 15189 { 15190 "name": "bevel", 15191 "description": "Indicates that a bevelled corner is to be used to join path segments." 15192 }, 15193 { 15194 "name": "miter", 15195 "description": "Indicates that a sharp corner is to be used to join path segments." 15196 }, 15197 { 15198 "name": "round", 15199 "description": "Indicates that a round corner is to be used to join path segments." 15200 } 15201 ], 15202 "relevance": 50, 15203 "description": "Specifies the shape to be used at the corners of paths or basic shapes when they are stroked.", 15204 "restrictions": [ 15205 "enum" 15206 ] 15207 }, 15208 { 15209 "name": "stroke-miterlimit", 15210 "relevance": 50, 15211 "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.", 15212 "restrictions": [ 15213 "number" 15214 ] 15215 }, 15216 { 15217 "name": "stroke-opacity", 15218 "relevance": 51, 15219 "description": "Specifies the opacity of the painting operation used to stroke the current object.", 15220 "restrictions": [ 15221 "number(0-1)" 15222 ] 15223 }, 15224 { 15225 "name": "stroke-width", 15226 "relevance": 60, 15227 "description": "Specifies the width of the stroke on the current object.", 15228 "restrictions": [ 15229 "percentage", 15230 "length" 15231 ] 15232 }, 15233 { 15234 "name": "suffix", 15235 "browsers": [ 15236 "FF33" 15237 ], 15238 "syntax": "<symbol>", 15239 "relevance": 50, 15240 "description": "@counter-style descriptor. Specifies a <symbol> that is appended to the marker representation.", 15241 "restrictions": [ 15242 "image", 15243 "string", 15244 "identifier" 15245 ] 15246 }, 15247 { 15248 "name": "system", 15249 "browsers": [ 15250 "FF33" 15251 ], 15252 "values": [ 15253 { 15254 "name": "additive", 15255 "description": "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." 15256 }, 15257 { 15258 "name": "alphabetic", 15259 "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\"." 15260 }, 15261 { 15262 "name": "cyclic", 15263 "description": "Cycles repeatedly through its provided symbols, looping back to the beginning when it reaches the end of the list." 15264 }, 15265 { 15266 "name": "extends", 15267 "description": "Use the algorithm of another counter style, but alter other aspects." 15268 }, 15269 { 15270 "name": "fixed", 15271 "description": "Runs through its list of counter symbols once, then falls back." 15272 }, 15273 { 15274 "name": "numeric", 15275 "description": "interprets the list of counter symbols as digits to a \"place-value\" numbering system, similar to the default 'decimal' counter style." 15276 }, 15277 { 15278 "name": "symbolic", 15279 "description": "Cycles repeatedly through its provided symbols, doubling, tripling, etc. the symbols on each successive pass through the list." 15280 } 15281 ], 15282 "syntax": "cyclic | numeric | alphabetic | symbolic | additive | [ fixed <integer>? ] | [ extends <counter-style-name> ]", 15283 "relevance": 50, 15284 "description": "@counter-style descriptor. Specifies which algorithm will be used to construct the counter’s representation based on the counter value.", 15285 "restrictions": [ 15286 "enum", 15287 "integer" 15288 ] 15289 }, 15290 { 15291 "name": "symbols", 15292 "browsers": [ 15293 "FF33" 15294 ], 15295 "syntax": "<symbol>+", 15296 "relevance": 50, 15297 "description": "@counter-style descriptor. Specifies the symbols used by the marker-construction algorithm specified by the system descriptor.", 15298 "restrictions": [ 15299 "image", 15300 "string", 15301 "identifier" 15302 ] 15303 }, 15304 { 15305 "name": "table-layout", 15306 "values": [ 15307 { 15308 "name": "auto", 15309 "description": "Use any automatic table layout algorithm." 15310 }, 15311 { 15312 "name": "fixed", 15313 "description": "Use the fixed table layout algorithm." 15314 } 15315 ], 15316 "syntax": "auto | fixed", 15317 "relevance": 61, 15318 "references": [ 15319 { 15320 "name": "MDN Reference", 15321 "url": "https://developer.mozilla.org/docs/Web/CSS/table-layout" 15322 } 15323 ], 15324 "description": "Controls the algorithm used to lay out the table cells, rows, and columns.", 15325 "restrictions": [ 15326 "enum" 15327 ] 15328 }, 15329 { 15330 "name": "tab-size", 15331 "browsers": [ 15332 "E79", 15333 "FF4", 15334 "S6.1", 15335 "C21", 15336 "O15" 15337 ], 15338 "syntax": "<integer> | <length>", 15339 "relevance": 51, 15340 "references": [ 15341 { 15342 "name": "MDN Reference", 15343 "url": "https://developer.mozilla.org/docs/Web/CSS/tab-size" 15344 } 15345 ], 15346 "description": "Determines the width of the tab character (U+0009), in space characters (U+0020), when rendered.", 15347 "restrictions": [ 15348 "integer", 15349 "length" 15350 ] 15351 }, 15352 { 15353 "name": "text-align", 15354 "values": [ 15355 { 15356 "name": "center", 15357 "description": "The inline contents are centered within the line box." 15358 }, 15359 { 15360 "name": "end", 15361 "description": "The inline contents are aligned to the end edge of the line box." 15362 }, 15363 { 15364 "name": "justify", 15365 "description": "The text is justified according to the method specified by the 'text-justify' property." 15366 }, 15367 { 15368 "name": "left", 15369 "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." 15370 }, 15371 { 15372 "name": "right", 15373 "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." 15374 }, 15375 { 15376 "name": "start", 15377 "description": "The inline contents are aligned to the start edge of the line box." 15378 } 15379 ], 15380 "syntax": "start | end | left | right | center | justify | match-parent", 15381 "relevance": 93, 15382 "references": [ 15383 { 15384 "name": "MDN Reference", 15385 "url": "https://developer.mozilla.org/docs/Web/CSS/text-align" 15386 } 15387 ], 15388 "description": "Describes how inline contents of a block are horizontally aligned if the contents do not completely fill the line box.", 15389 "restrictions": [ 15390 "string" 15391 ] 15392 }, 15393 { 15394 "name": "text-align-last", 15395 "browsers": [ 15396 "E12", 15397 "FF49", 15398 "C47", 15399 "IE5.5", 15400 "O34" 15401 ], 15402 "values": [ 15403 { 15404 "name": "auto", 15405 "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'." 15406 }, 15407 { 15408 "name": "center", 15409 "description": "The inline contents are centered within the line box." 15410 }, 15411 { 15412 "name": "justify", 15413 "description": "The text is justified according to the method specified by the 'text-justify' property." 15414 }, 15415 { 15416 "name": "left", 15417 "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." 15418 }, 15419 { 15420 "name": "right", 15421 "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." 15422 } 15423 ], 15424 "syntax": "auto | start | end | left | right | center | justify", 15425 "relevance": 50, 15426 "references": [ 15427 { 15428 "name": "MDN Reference", 15429 "url": "https://developer.mozilla.org/docs/Web/CSS/text-align-last" 15430 } 15431 ], 15432 "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'.", 15433 "restrictions": [ 15434 "enum" 15435 ] 15436 }, 15437 { 15438 "name": "text-anchor", 15439 "values": [ 15440 { 15441 "name": "end", 15442 "description": "The rendered characters are aligned such that the end of the resulting rendered text is at the initial current text position." 15443 }, 15444 { 15445 "name": "middle", 15446 "description": "The rendered characters are aligned such that the geometric middle of the resulting rendered text is at the initial current text position." 15447 }, 15448 { 15449 "name": "start", 15450 "description": "The rendered characters are aligned such that the start of the resulting rendered text is at the initial current text position." 15451 } 15452 ], 15453 "relevance": 50, 15454 "description": "Used to align (start-, middle- or end-alignment) a string of text relative to a given point.", 15455 "restrictions": [ 15456 "enum" 15457 ] 15458 }, 15459 { 15460 "name": "text-decoration", 15461 "values": [ 15462 { 15463 "name": "dashed", 15464 "description": "Produces a dashed line style." 15465 }, 15466 { 15467 "name": "dotted", 15468 "description": "Produces a dotted line." 15469 }, 15470 { 15471 "name": "double", 15472 "description": "Produces a double line." 15473 }, 15474 { 15475 "name": "line-through", 15476 "description": "Each line of text has a line through the middle." 15477 }, 15478 { 15479 "name": "none", 15480 "description": "Produces no line." 15481 }, 15482 { 15483 "name": "overline", 15484 "description": "Each line of text has a line above it." 15485 }, 15486 { 15487 "name": "solid", 15488 "description": "Produces a solid line." 15489 }, 15490 { 15491 "name": "underline", 15492 "description": "Each line of text is underlined." 15493 }, 15494 { 15495 "name": "wavy", 15496 "description": "Produces a wavy line." 15497 } 15498 ], 15499 "syntax": "<'text-decoration-line'> || <'text-decoration-style'> || <'text-decoration-color'> || <'text-decoration-thickness'>", 15500 "relevance": 91, 15501 "references": [ 15502 { 15503 "name": "MDN Reference", 15504 "url": "https://developer.mozilla.org/docs/Web/CSS/text-decoration" 15505 } 15506 ], 15507 "description": "Decorations applied to font used for an element's text.", 15508 "restrictions": [ 15509 "enum", 15510 "color" 15511 ] 15512 }, 15513 { 15514 "name": "text-decoration-color", 15515 "browsers": [ 15516 "E79", 15517 "FF36", 15518 "S12.1", 15519 "C57", 15520 "O44" 15521 ], 15522 "syntax": "<color>", 15523 "relevance": 52, 15524 "references": [ 15525 { 15526 "name": "MDN Reference", 15527 "url": "https://developer.mozilla.org/docs/Web/CSS/text-decoration-color" 15528 } 15529 ], 15530 "description": "Specifies the color of text decoration (underlines overlines, and line-throughs) set on the element with text-decoration-line.", 15531 "restrictions": [ 15532 "color" 15533 ] 15534 }, 15535 { 15536 "name": "text-decoration-line", 15537 "browsers": [ 15538 "E79", 15539 "FF36", 15540 "S12.1", 15541 "C57", 15542 "O44" 15543 ], 15544 "values": [ 15545 { 15546 "name": "line-through", 15547 "description": "Each line of text has a line through the middle." 15548 }, 15549 { 15550 "name": "none", 15551 "description": "Neither produces nor inhibits text decoration." 15552 }, 15553 { 15554 "name": "overline", 15555 "description": "Each line of text has a line above it." 15556 }, 15557 { 15558 "name": "underline", 15559 "description": "Each line of text is underlined." 15560 } 15561 ], 15562 "syntax": "none | [ underline || overline || line-through || blink ] | spelling-error | grammar-error", 15563 "relevance": 50, 15564 "references": [ 15565 { 15566 "name": "MDN Reference", 15567 "url": "https://developer.mozilla.org/docs/Web/CSS/text-decoration-line" 15568 } 15569 ], 15570 "description": "Specifies what line decorations, if any, are added to the element.", 15571 "restrictions": [ 15572 "enum" 15573 ] 15574 }, 15575 { 15576 "name": "text-decoration-style", 15577 "browsers": [ 15578 "E79", 15579 "FF36", 15580 "S12.1", 15581 "C57", 15582 "O44" 15583 ], 15584 "values": [ 15585 { 15586 "name": "dashed", 15587 "description": "Produces a dashed line style." 15588 }, 15589 { 15590 "name": "dotted", 15591 "description": "Produces a dotted line." 15592 }, 15593 { 15594 "name": "double", 15595 "description": "Produces a double line." 15596 }, 15597 { 15598 "name": "none", 15599 "description": "Produces no line." 15600 }, 15601 { 15602 "name": "solid", 15603 "description": "Produces a solid line." 15604 }, 15605 { 15606 "name": "wavy", 15607 "description": "Produces a wavy line." 15608 } 15609 ], 15610 "syntax": "solid | double | dotted | dashed | wavy", 15611 "relevance": 50, 15612 "references": [ 15613 { 15614 "name": "MDN Reference", 15615 "url": "https://developer.mozilla.org/docs/Web/CSS/text-decoration-style" 15616 } 15617 ], 15618 "description": "Specifies the line style for underline, line-through and overline text decoration.", 15619 "restrictions": [ 15620 "enum" 15621 ] 15622 }, 15623 { 15624 "name": "text-indent", 15625 "values": [], 15626 "syntax": "<length-percentage> && hanging? && each-line?", 15627 "relevance": 68, 15628 "references": [ 15629 { 15630 "name": "MDN Reference", 15631 "url": "https://developer.mozilla.org/docs/Web/CSS/text-indent" 15632 } 15633 ], 15634 "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.", 15635 "restrictions": [ 15636 "percentage", 15637 "length" 15638 ] 15639 }, 15640 { 15641 "name": "text-justify", 15642 "browsers": [ 15643 "E12", 15644 "FF55", 15645 "C32", 15646 "IE11", 15647 "O19" 15648 ], 15649 "values": [ 15650 { 15651 "name": "auto", 15652 "description": "The UA determines the justification algorithm to follow, based on a balance between performance and adequate presentation quality." 15653 }, 15654 { 15655 "name": "distribute", 15656 "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." 15657 }, 15658 { 15659 "name": "distribute-all-lines" 15660 }, 15661 { 15662 "name": "inter-cluster", 15663 "description": "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." 15664 }, 15665 { 15666 "name": "inter-ideograph", 15667 "description": "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." 15668 }, 15669 { 15670 "name": "inter-word", 15671 "description": "Justification primarily changes spacing at word separators. This value is typically used for languages that separate words using spaces, like English or (sometimes) Korean." 15672 }, 15673 { 15674 "name": "kashida", 15675 "description": "Justification primarily stretches Arabic and related scripts through the use of kashida or other calligraphic elongation." 15676 }, 15677 { 15678 "name": "newspaper" 15679 } 15680 ], 15681 "syntax": "auto | inter-character | inter-word | none", 15682 "relevance": 50, 15683 "references": [ 15684 { 15685 "name": "MDN Reference", 15686 "url": "https://developer.mozilla.org/docs/Web/CSS/text-justify" 15687 } 15688 ], 15689 "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.", 15690 "restrictions": [ 15691 "enum" 15692 ] 15693 }, 15694 { 15695 "name": "text-orientation", 15696 "browsers": [ 15697 "E79", 15698 "FF41", 15699 "S5.1", 15700 "C48", 15701 "O15" 15702 ], 15703 "values": [ 15704 { 15705 "name": "sideways", 15706 "browsers": [ 15707 "E79", 15708 "FF41", 15709 "S5.1", 15710 "C48", 15711 "O15" 15712 ], 15713 "description": "This value is equivalent to 'sideways-right' in 'vertical-rl' writing mode and equivalent to 'sideways-left' in 'vertical-lr' writing mode." 15714 }, 15715 { 15716 "name": "sideways-right", 15717 "browsers": [ 15718 "E79", 15719 "FF41", 15720 "S5.1", 15721 "C48", 15722 "O15" 15723 ], 15724 "description": "In vertical writing modes, this causes text to be set as if in a horizontal layout, but rotated 90° clockwise." 15725 }, 15726 { 15727 "name": "upright", 15728 "description": "In vertical writing modes, characters from horizontal-only scripts are rendered upright, i.e. in their standard horizontal orientation." 15729 } 15730 ], 15731 "syntax": "mixed | upright | sideways", 15732 "relevance": 50, 15733 "references": [ 15734 { 15735 "name": "MDN Reference", 15736 "url": "https://developer.mozilla.org/docs/Web/CSS/text-orientation" 15737 } 15738 ], 15739 "description": "Specifies the orientation of text within a line.", 15740 "restrictions": [ 15741 "enum" 15742 ] 15743 }, 15744 { 15745 "name": "text-overflow", 15746 "values": [ 15747 { 15748 "name": "clip", 15749 "description": "Clip inline content that overflows. Characters may be only partially rendered." 15750 }, 15751 { 15752 "name": "ellipsis", 15753 "description": "Render an ellipsis character (U+2026) to represent clipped inline content." 15754 } 15755 ], 15756 "syntax": "[ clip | ellipsis | <string> ]{1,2}", 15757 "relevance": 81, 15758 "references": [ 15759 { 15760 "name": "MDN Reference", 15761 "url": "https://developer.mozilla.org/docs/Web/CSS/text-overflow" 15762 } 15763 ], 15764 "description": "Text can overflow for example when it is prevented from wrapping.", 15765 "restrictions": [ 15766 "enum", 15767 "string" 15768 ] 15769 }, 15770 { 15771 "name": "text-rendering", 15772 "browsers": [ 15773 "E79", 15774 "FF1", 15775 "S5", 15776 "C4", 15777 "O15" 15778 ], 15779 "values": [ 15780 { 15781 "name": "auto" 15782 }, 15783 { 15784 "name": "geometricPrecision", 15785 "description": "Indicates that the user agent shall emphasize geometric precision over legibility and rendering speed." 15786 }, 15787 { 15788 "name": "optimizeLegibility", 15789 "description": "Indicates that the user agent shall emphasize legibility over rendering speed and geometric precision." 15790 }, 15791 { 15792 "name": "optimizeSpeed", 15793 "description": "Indicates that the user agent shall emphasize rendering speed over legibility and geometric precision." 15794 } 15795 ], 15796 "syntax": "auto | optimizeSpeed | optimizeLegibility | geometricPrecision", 15797 "relevance": 68, 15798 "references": [ 15799 { 15800 "name": "MDN Reference", 15801 "url": "https://developer.mozilla.org/docs/Web/CSS/text-rendering" 15802 } 15803 ], 15804 "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.", 15805 "restrictions": [ 15806 "enum" 15807 ] 15808 }, 15809 { 15810 "name": "text-shadow", 15811 "values": [ 15812 { 15813 "name": "none", 15814 "description": "No shadow." 15815 } 15816 ], 15817 "syntax": "none | <shadow-t>#", 15818 "relevance": 74, 15819 "references": [ 15820 { 15821 "name": "MDN Reference", 15822 "url": "https://developer.mozilla.org/docs/Web/CSS/text-shadow" 15823 } 15824 ], 15825 "description": "Enables shadow effects to be applied to the text of the element.", 15826 "restrictions": [ 15827 "length", 15828 "color" 15829 ] 15830 }, 15831 { 15832 "name": "text-transform", 15833 "values": [ 15834 { 15835 "name": "capitalize", 15836 "description": "Puts the first typographic letter unit of each word in titlecase." 15837 }, 15838 { 15839 "name": "lowercase", 15840 "description": "Puts all letters in lowercase." 15841 }, 15842 { 15843 "name": "none", 15844 "description": "No effects." 15845 }, 15846 { 15847 "name": "uppercase", 15848 "description": "Puts all letters in uppercase." 15849 } 15850 ], 15851 "syntax": "none | capitalize | uppercase | lowercase | full-width | full-size-kana", 15852 "relevance": 84, 15853 "references": [ 15854 { 15855 "name": "MDN Reference", 15856 "url": "https://developer.mozilla.org/docs/Web/CSS/text-transform" 15857 } 15858 ], 15859 "description": "Controls capitalization effects of an element’s text.", 15860 "restrictions": [ 15861 "enum" 15862 ] 15863 }, 15864 { 15865 "name": "text-underline-position", 15866 "values": [ 15867 { 15868 "name": "above" 15869 }, 15870 { 15871 "name": "auto", 15872 "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." 15873 }, 15874 { 15875 "name": "below", 15876 "description": "The underline is aligned with the under edge of the element’s content box." 15877 } 15878 ], 15879 "syntax": "auto | from-font | [ under || [ left | right ] ]", 15880 "relevance": 50, 15881 "references": [ 15882 { 15883 "name": "MDN Reference", 15884 "url": "https://developer.mozilla.org/docs/Web/CSS/text-underline-position" 15885 } 15886 ], 15887 "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", 15888 "restrictions": [ 15889 "enum" 15890 ] 15891 }, 15892 { 15893 "name": "top", 15894 "values": [ 15895 { 15896 "name": "auto", 15897 "description": "For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well" 15898 } 15899 ], 15900 "syntax": "<length> | <percentage> | auto", 15901 "relevance": 95, 15902 "references": [ 15903 { 15904 "name": "MDN Reference", 15905 "url": "https://developer.mozilla.org/docs/Web/CSS/top" 15906 } 15907 ], 15908 "description": "Specifies how far an absolutely positioned box's top margin edge is offset below the top edge of the box's 'containing block'.", 15909 "restrictions": [ 15910 "length", 15911 "percentage" 15912 ] 15913 }, 15914 { 15915 "name": "touch-action", 15916 "values": [ 15917 { 15918 "name": "auto", 15919 "description": "The user agent may determine any permitted touch behaviors for touches that begin on the element." 15920 }, 15921 { 15922 "name": "cross-slide-x" 15923 }, 15924 { 15925 "name": "cross-slide-y" 15926 }, 15927 { 15928 "name": "double-tap-zoom" 15929 }, 15930 { 15931 "name": "manipulation", 15932 "description": "The user agent may consider touches that begin on the element only for the purposes of scrolling and continuous zooming." 15933 }, 15934 { 15935 "name": "none", 15936 "description": "Touches that begin on the element must not trigger default touch behaviors." 15937 }, 15938 { 15939 "name": "pan-x", 15940 "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." 15941 }, 15942 { 15943 "name": "pan-y", 15944 "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." 15945 }, 15946 { 15947 "name": "pinch-zoom" 15948 } 15949 ], 15950 "syntax": "auto | none | [ [ pan-x | pan-left | pan-right ] || [ pan-y | pan-up | pan-down ] || pinch-zoom ] | manipulation", 15951 "relevance": 65, 15952 "references": [ 15953 { 15954 "name": "MDN Reference", 15955 "url": "https://developer.mozilla.org/docs/Web/CSS/touch-action" 15956 } 15957 ], 15958 "description": "Determines whether touch input may trigger default behavior supplied by user agent.", 15959 "restrictions": [ 15960 "enum" 15961 ] 15962 }, 15963 { 15964 "name": "transform", 15965 "values": [ 15966 { 15967 "name": "matrix()", 15968 "description": "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]" 15969 }, 15970 { 15971 "name": "matrix3d()", 15972 "description": "Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order." 15973 }, 15974 { 15975 "name": "none" 15976 }, 15977 { 15978 "name": "perspective()", 15979 "description": "Specifies a perspective projection matrix." 15980 }, 15981 { 15982 "name": "rotate()", 15983 "description": "Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property." 15984 }, 15985 { 15986 "name": "rotate3d()", 15987 "description": "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." 15988 }, 15989 { 15990 "name": "rotateX('angle')", 15991 "description": "Specifies a clockwise rotation by the given angle about the X axis." 15992 }, 15993 { 15994 "name": "rotateY('angle')", 15995 "description": "Specifies a clockwise rotation by the given angle about the Y axis." 15996 }, 15997 { 15998 "name": "rotateZ('angle')", 15999 "description": "Specifies a clockwise rotation by the given angle about the Z axis." 16000 }, 16001 { 16002 "name": "scale()", 16003 "description": "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." 16004 }, 16005 { 16006 "name": "scale3d()", 16007 "description": "Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters." 16008 }, 16009 { 16010 "name": "scaleX()", 16011 "description": "Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter." 16012 }, 16013 { 16014 "name": "scaleY()", 16015 "description": "Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter." 16016 }, 16017 { 16018 "name": "scaleZ()", 16019 "description": "Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter." 16020 }, 16021 { 16022 "name": "skew()", 16023 "description": "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)." 16024 }, 16025 { 16026 "name": "skewX()", 16027 "description": "Specifies a skew transformation along the X axis by the given angle." 16028 }, 16029 { 16030 "name": "skewY()", 16031 "description": "Specifies a skew transformation along the Y axis by the given angle." 16032 }, 16033 { 16034 "name": "translate()", 16035 "description": "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." 16036 }, 16037 { 16038 "name": "translate3d()", 16039 "description": "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." 16040 }, 16041 { 16042 "name": "translateX()", 16043 "description": "Specifies a translation by the given amount in the X direction." 16044 }, 16045 { 16046 "name": "translateY()", 16047 "description": "Specifies a translation by the given amount in the Y direction." 16048 }, 16049 { 16050 "name": "translateZ()", 16051 "description": "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." 16052 } 16053 ], 16054 "syntax": "none | <transform-list>", 16055 "relevance": 88, 16056 "references": [ 16057 { 16058 "name": "MDN Reference", 16059 "url": "https://developer.mozilla.org/docs/Web/CSS/transform" 16060 } 16061 ], 16062 "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.", 16063 "restrictions": [ 16064 "enum" 16065 ] 16066 }, 16067 { 16068 "name": "transform-origin", 16069 "syntax": "[ <length-percentage> | left | center | right | top | bottom ] | [ [ <length-percentage> | left | center | right ] && [ <length-percentage> | top | center | bottom ] ] <length>?", 16070 "relevance": 74, 16071 "references": [ 16072 { 16073 "name": "MDN Reference", 16074 "url": "https://developer.mozilla.org/docs/Web/CSS/transform-origin" 16075 } 16076 ], 16077 "description": "Establishes the origin of transformation for an element.", 16078 "restrictions": [ 16079 "position", 16080 "length", 16081 "percentage" 16082 ] 16083 }, 16084 { 16085 "name": "transform-style", 16086 "browsers": [ 16087 "E12", 16088 "FF16", 16089 "S9", 16090 "C36", 16091 "O23" 16092 ], 16093 "values": [ 16094 { 16095 "name": "flat", 16096 "description": "All children of this element are rendered flattened into the 2D plane of the element." 16097 }, 16098 { 16099 "name": "preserve-3d", 16100 "browsers": [ 16101 "E12", 16102 "FF16", 16103 "S9", 16104 "C36", 16105 "O23" 16106 ], 16107 "description": "Flattening is not performed, so children maintain their position in 3D space." 16108 } 16109 ], 16110 "syntax": "flat | preserve-3d", 16111 "relevance": 54, 16112 "references": [ 16113 { 16114 "name": "MDN Reference", 16115 "url": "https://developer.mozilla.org/docs/Web/CSS/transform-style" 16116 } 16117 ], 16118 "description": "Defines how nested elements are rendered in 3D space.", 16119 "restrictions": [ 16120 "enum" 16121 ] 16122 }, 16123 { 16124 "name": "transition", 16125 "values": [ 16126 { 16127 "name": "all", 16128 "description": "Every property that is able to undergo a transition will do so." 16129 }, 16130 { 16131 "name": "none", 16132 "description": "No property will transition." 16133 } 16134 ], 16135 "syntax": "<single-transition>#", 16136 "relevance": 87, 16137 "references": [ 16138 { 16139 "name": "MDN Reference", 16140 "url": "https://developer.mozilla.org/docs/Web/CSS/transition" 16141 } 16142 ], 16143 "description": "Shorthand property combines four of the transition properties into a single property.", 16144 "restrictions": [ 16145 "time", 16146 "property", 16147 "timing-function", 16148 "enum" 16149 ] 16150 }, 16151 { 16152 "name": "transition-delay", 16153 "syntax": "<time>#", 16154 "relevance": 62, 16155 "references": [ 16156 { 16157 "name": "MDN Reference", 16158 "url": "https://developer.mozilla.org/docs/Web/CSS/transition-delay" 16159 } 16160 ], 16161 "description": "Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.", 16162 "restrictions": [ 16163 "time" 16164 ] 16165 }, 16166 { 16167 "name": "transition-duration", 16168 "syntax": "<time>#", 16169 "relevance": 62, 16170 "references": [ 16171 { 16172 "name": "MDN Reference", 16173 "url": "https://developer.mozilla.org/docs/Web/CSS/transition-duration" 16174 } 16175 ], 16176 "description": "Specifies how long the transition from the old value to the new value should take.", 16177 "restrictions": [ 16178 "time" 16179 ] 16180 }, 16181 { 16182 "name": "transition-property", 16183 "values": [ 16184 { 16185 "name": "all", 16186 "description": "Every property that is able to undergo a transition will do so." 16187 }, 16188 { 16189 "name": "none", 16190 "description": "No property will transition." 16191 } 16192 ], 16193 "syntax": "none | <single-transition-property>#", 16194 "relevance": 64, 16195 "references": [ 16196 { 16197 "name": "MDN Reference", 16198 "url": "https://developer.mozilla.org/docs/Web/CSS/transition-property" 16199 } 16200 ], 16201 "description": "Specifies the name of the CSS property to which the transition is applied.", 16202 "restrictions": [ 16203 "property" 16204 ] 16205 }, 16206 { 16207 "name": "transition-timing-function", 16208 "syntax": "<timing-function>#", 16209 "relevance": 60, 16210 "references": [ 16211 { 16212 "name": "MDN Reference", 16213 "url": "https://developer.mozilla.org/docs/Web/CSS/transition-timing-function" 16214 } 16215 ], 16216 "description": "Describes how the intermediate values used during a transition will be calculated.", 16217 "restrictions": [ 16218 "timing-function" 16219 ] 16220 }, 16221 { 16222 "name": "unicode-bidi", 16223 "values": [ 16224 { 16225 "name": "bidi-override", 16226 "description": "Inside the element, reordering is strictly in sequence according to the 'direction' property; the implicit part of the bidirectional algorithm is ignored." 16227 }, 16228 { 16229 "name": "embed", 16230 "description": "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." 16231 }, 16232 { 16233 "name": "isolate", 16234 "description": "The contents of the element are considered to be inside a separate, independent paragraph." 16235 }, 16236 { 16237 "name": "isolate-override", 16238 "description": "This combines the isolation behavior of 'isolate' with the directional override behavior of 'bidi-override'" 16239 }, 16240 { 16241 "name": "normal", 16242 "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." 16243 }, 16244 { 16245 "name": "plaintext", 16246 "description": "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'." 16247 } 16248 ], 16249 "syntax": "normal | embed | isolate | bidi-override | isolate-override | plaintext", 16250 "relevance": 57, 16251 "references": [ 16252 { 16253 "name": "MDN Reference", 16254 "url": "https://developer.mozilla.org/docs/Web/CSS/unicode-bidi" 16255 } 16256 ], 16257 "description": "The level of embedding with respect to the bidirectional algorithm.", 16258 "restrictions": [ 16259 "enum" 16260 ] 16261 }, 16262 { 16263 "name": "unicode-range", 16264 "values": [ 16265 { 16266 "name": "U+26", 16267 "description": "Ampersand." 16268 }, 16269 { 16270 "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", 16271 "description": "WGL4 character set (Pan-European)." 16272 }, 16273 { 16274 "name": "U+20-17F, U+2B0-2FF, U+2000-206F, U+20A0-20CF, U+2100-21FF, U+2600-26FF", 16275 "description": "The Multilingual European Subset No. 1. Latin. Covers ~44 languages." 16276 }, 16277 { 16278 "name": "U+20-2FF, U+370-4FF, U+1E00-20CF, U+2100-23FF, U+2500-26FF, U+FB00-FB4F, U+FFF0-FFFD", 16279 "description": "The Multilingual European Subset No. 2. Latin, Greek, and Cyrillic. Covers ~128 language." 16280 }, 16281 { 16282 "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", 16283 "description": "The Multilingual European Subset No. 3. Covers all characters belonging to European scripts." 16284 }, 16285 { 16286 "name": "U+00-7F", 16287 "description": "Basic Latin (ASCII)." 16288 }, 16289 { 16290 "name": "U+80-FF", 16291 "description": "Latin-1 Supplement. Accented characters for Western European languages, common punctuation characters, multiplication and division signs." 16292 }, 16293 { 16294 "name": "U+100-17F", 16295 "description": "Latin Extended-A. Accented characters for for Czech, Dutch, Polish, and Turkish." 16296 }, 16297 { 16298 "name": "U+180-24F", 16299 "description": "Latin Extended-B. Croatian, Slovenian, Romanian, Non-European and historic latin, Khoisan, Pinyin, Livonian, Sinology." 16300 }, 16301 { 16302 "name": "U+1E00-1EFF", 16303 "description": "Latin Extended Additional. Vietnamese, German captial sharp s, Medievalist, Latin general use." 16304 }, 16305 { 16306 "name": "U+250-2AF", 16307 "description": "International Phonetic Alphabet Extensions." 16308 }, 16309 { 16310 "name": "U+370-3FF", 16311 "description": "Greek and Coptic." 16312 }, 16313 { 16314 "name": "U+1F00-1FFF", 16315 "description": "Greek Extended. Accented characters for polytonic Greek." 16316 }, 16317 { 16318 "name": "U+400-4FF", 16319 "description": "Cyrillic." 16320 }, 16321 { 16322 "name": "U+500-52F", 16323 "description": "Cyrillic Supplement. Extra letters for Komi, Khanty, Chukchi, Mordvin, Kurdish, Aleut, Chuvash, Abkhaz, Azerbaijani, and Orok." 16324 }, 16325 { 16326 "name": "U+00-52F, U+1E00-1FFF, U+2200–22FF", 16327 "description": "Latin, Greek, Cyrillic, some punctuation and symbols." 16328 }, 16329 { 16330 "name": "U+530–58F", 16331 "description": "Armenian." 16332 }, 16333 { 16334 "name": "U+590–5FF", 16335 "description": "Hebrew." 16336 }, 16337 { 16338 "name": "U+600–6FF", 16339 "description": "Arabic." 16340 }, 16341 { 16342 "name": "U+750–77F", 16343 "description": "Arabic Supplement. Additional letters for African languages, Khowar, Torwali, Burushaski, and early Persian." 16344 }, 16345 { 16346 "name": "U+8A0–8FF", 16347 "description": "Arabic Extended-A. Additional letters for African languages, European and Central Asian languages, Rohingya, Tamazight, Arwi, and Koranic annotation signs." 16348 }, 16349 { 16350 "name": "U+700–74F", 16351 "description": "Syriac." 16352 }, 16353 { 16354 "name": "U+900–97F", 16355 "description": "Devanagari." 16356 }, 16357 { 16358 "name": "U+980–9FF", 16359 "description": "Bengali." 16360 }, 16361 { 16362 "name": "U+A00–A7F", 16363 "description": "Gurmukhi." 16364 }, 16365 { 16366 "name": "U+A80–AFF", 16367 "description": "Gujarati." 16368 }, 16369 { 16370 "name": "U+B00–B7F", 16371 "description": "Oriya." 16372 }, 16373 { 16374 "name": "U+B80–BFF", 16375 "description": "Tamil." 16376 }, 16377 { 16378 "name": "U+C00–C7F", 16379 "description": "Telugu." 16380 }, 16381 { 16382 "name": "U+C80–CFF", 16383 "description": "Kannada." 16384 }, 16385 { 16386 "name": "U+D00–D7F", 16387 "description": "Malayalam." 16388 }, 16389 { 16390 "name": "U+D80–DFF", 16391 "description": "Sinhala." 16392 }, 16393 { 16394 "name": "U+118A0–118FF", 16395 "description": "Warang Citi." 16396 }, 16397 { 16398 "name": "U+E00–E7F", 16399 "description": "Thai." 16400 }, 16401 { 16402 "name": "U+1A20–1AAF", 16403 "description": "Tai Tham." 16404 }, 16405 { 16406 "name": "U+AA80–AADF", 16407 "description": "Tai Viet." 16408 }, 16409 { 16410 "name": "U+E80–EFF", 16411 "description": "Lao." 16412 }, 16413 { 16414 "name": "U+F00–FFF", 16415 "description": "Tibetan." 16416 }, 16417 { 16418 "name": "U+1000–109F", 16419 "description": "Myanmar (Burmese)." 16420 }, 16421 { 16422 "name": "U+10A0–10FF", 16423 "description": "Georgian." 16424 }, 16425 { 16426 "name": "U+1200–137F", 16427 "description": "Ethiopic." 16428 }, 16429 { 16430 "name": "U+1380–139F", 16431 "description": "Ethiopic Supplement. Extra Syllables for Sebatbeit, and Tonal marks" 16432 }, 16433 { 16434 "name": "U+2D80–2DDF", 16435 "description": "Ethiopic Extended. Extra Syllables for Me'en, Blin, and Sebatbeit." 16436 }, 16437 { 16438 "name": "U+AB00–AB2F", 16439 "description": "Ethiopic Extended-A. Extra characters for Gamo-Gofa-Dawro, Basketo, and Gumuz." 16440 }, 16441 { 16442 "name": "U+1780–17FF", 16443 "description": "Khmer." 16444 }, 16445 { 16446 "name": "U+1800–18AF", 16447 "description": "Mongolian." 16448 }, 16449 { 16450 "name": "U+1B80–1BBF", 16451 "description": "Sundanese." 16452 }, 16453 { 16454 "name": "U+1CC0–1CCF", 16455 "description": "Sundanese Supplement. Punctuation." 16456 }, 16457 { 16458 "name": "U+4E00–9FD5", 16459 "description": "CJK (Chinese, Japanese, Korean) Unified Ideographs. Most common ideographs for modern Chinese and Japanese." 16460 }, 16461 { 16462 "name": "U+3400–4DB5", 16463 "description": "CJK Unified Ideographs Extension A. Rare ideographs." 16464 }, 16465 { 16466 "name": "U+2F00–2FDF", 16467 "description": "Kangxi Radicals." 16468 }, 16469 { 16470 "name": "U+2E80–2EFF", 16471 "description": "CJK Radicals Supplement. Alternative forms of Kangxi Radicals." 16472 }, 16473 { 16474 "name": "U+1100–11FF", 16475 "description": "Hangul Jamo." 16476 }, 16477 { 16478 "name": "U+AC00–D7AF", 16479 "description": "Hangul Syllables." 16480 }, 16481 { 16482 "name": "U+3040–309F", 16483 "description": "Hiragana." 16484 }, 16485 { 16486 "name": "U+30A0–30FF", 16487 "description": "Katakana." 16488 }, 16489 { 16490 "name": "U+A5, U+4E00-9FFF, U+30??, U+FF00-FF9F", 16491 "description": "Japanese Kanji, Hiragana and Katakana characters plus Yen/Yuan symbol." 16492 }, 16493 { 16494 "name": "U+A4D0–A4FF", 16495 "description": "Lisu." 16496 }, 16497 { 16498 "name": "U+A000–A48F", 16499 "description": "Yi Syllables." 16500 }, 16501 { 16502 "name": "U+A490–A4CF", 16503 "description": "Yi Radicals." 16504 }, 16505 { 16506 "name": "U+2000-206F", 16507 "description": "General Punctuation." 16508 }, 16509 { 16510 "name": "U+3000–303F", 16511 "description": "CJK Symbols and Punctuation." 16512 }, 16513 { 16514 "name": "U+2070–209F", 16515 "description": "Superscripts and Subscripts." 16516 }, 16517 { 16518 "name": "U+20A0–20CF", 16519 "description": "Currency Symbols." 16520 }, 16521 { 16522 "name": "U+2100–214F", 16523 "description": "Letterlike Symbols." 16524 }, 16525 { 16526 "name": "U+2150–218F", 16527 "description": "Number Forms." 16528 }, 16529 { 16530 "name": "U+2190–21FF", 16531 "description": "Arrows." 16532 }, 16533 { 16534 "name": "U+2200–22FF", 16535 "description": "Mathematical Operators." 16536 }, 16537 { 16538 "name": "U+2300–23FF", 16539 "description": "Miscellaneous Technical." 16540 }, 16541 { 16542 "name": "U+E000-F8FF", 16543 "description": "Private Use Area." 16544 }, 16545 { 16546 "name": "U+FB00–FB4F", 16547 "description": "Alphabetic Presentation Forms. Ligatures for latin, Armenian, and Hebrew." 16548 }, 16549 { 16550 "name": "U+FB50–FDFF", 16551 "description": "Arabic Presentation Forms-A. Contextual forms / ligatures for Persian, Urdu, Sindhi, Central Asian languages, etc, Arabic pedagogical symbols, word ligatures." 16552 }, 16553 { 16554 "name": "U+1F600–1F64F", 16555 "description": "Emoji: Emoticons." 16556 }, 16557 { 16558 "name": "U+2600–26FF", 16559 "description": "Emoji: Miscellaneous Symbols." 16560 }, 16561 { 16562 "name": "U+1F300–1F5FF", 16563 "description": "Emoji: Miscellaneous Symbols and Pictographs." 16564 }, 16565 { 16566 "name": "U+1F900–1F9FF", 16567 "description": "Emoji: Supplemental Symbols and Pictographs." 16568 }, 16569 { 16570 "name": "U+1F680–1F6FF", 16571 "description": "Emoji: Transport and Map Symbols." 16572 } 16573 ], 16574 "syntax": "<unicode-range>#", 16575 "relevance": 58, 16576 "description": "@font-face descriptor. Defines the set of Unicode codepoints that may be supported by the font face for which it is declared.", 16577 "restrictions": [ 16578 "unicode-range" 16579 ] 16580 }, 16581 { 16582 "name": "user-select", 16583 "values": [ 16584 { 16585 "name": "all", 16586 "description": "The content of the element must be selected atomically" 16587 }, 16588 { 16589 "name": "auto" 16590 }, 16591 { 16592 "name": "contain", 16593 "description": "UAs must not allow a selection which is started in this element to be extended outside of this element." 16594 }, 16595 { 16596 "name": "none", 16597 "description": "The UA must not allow selections to be started in this element." 16598 }, 16599 { 16600 "name": "text", 16601 "description": "The element imposes no constraint on the selection." 16602 } 16603 ], 16604 "status": "nonstandard", 16605 "syntax": "auto | text | none | contain | all", 16606 "relevance": 24, 16607 "references": [ 16608 { 16609 "name": "MDN Reference", 16610 "url": "https://developer.mozilla.org/docs/Web/CSS/user-select" 16611 } 16612 ], 16613 "description": "Controls the appearance of selection.", 16614 "restrictions": [ 16615 "enum" 16616 ] 16617 }, 16618 { 16619 "name": "vertical-align", 16620 "values": [ 16621 { 16622 "name": "auto", 16623 "description": "Align the dominant baseline of the parent box with the equivalent, or heuristically reconstructed, baseline of the element inline box." 16624 }, 16625 { 16626 "name": "baseline", 16627 "description": "Align the 'alphabetic' baseline of the element with the 'alphabetic' baseline of the parent element." 16628 }, 16629 { 16630 "name": "bottom", 16631 "description": "Align the after edge of the extended inline box with the after-edge of the line box." 16632 }, 16633 { 16634 "name": "middle", 16635 "description": "Align the 'middle' baseline of the inline element with the middle baseline of the parent." 16636 }, 16637 { 16638 "name": "sub", 16639 "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.)" 16640 }, 16641 { 16642 "name": "super", 16643 "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.)" 16644 }, 16645 { 16646 "name": "text-bottom", 16647 "description": "Align the bottom of the box with the after-edge of the parent element's font." 16648 }, 16649 { 16650 "name": "text-top", 16651 "description": "Align the top of the box with the before-edge of the parent element's font." 16652 }, 16653 { 16654 "name": "top", 16655 "description": "Align the before edge of the extended inline box with the before-edge of the line box." 16656 }, 16657 { 16658 "name": "-webkit-baseline-middle" 16659 } 16660 ], 16661 "syntax": "baseline | sub | super | text-top | text-bottom | middle | top | bottom | <percentage> | <length>", 16662 "relevance": 91, 16663 "references": [ 16664 { 16665 "name": "MDN Reference", 16666 "url": "https://developer.mozilla.org/docs/Web/CSS/vertical-align" 16667 } 16668 ], 16669 "description": "Affects the vertical positioning of the inline boxes generated by an inline-level element inside a line box.", 16670 "restrictions": [ 16671 "percentage", 16672 "length" 16673 ] 16674 }, 16675 { 16676 "name": "visibility", 16677 "values": [ 16678 { 16679 "name": "collapse", 16680 "description": "Table-specific. If used on elements other than rows, row groups, columns, or column groups, 'collapse' has the same meaning as 'hidden'." 16681 }, 16682 { 16683 "name": "hidden", 16684 "description": "The generated box is invisible (fully transparent, nothing is drawn), but still affects layout." 16685 }, 16686 { 16687 "name": "visible", 16688 "description": "The generated box is visible." 16689 } 16690 ], 16691 "syntax": "visible | hidden | collapse", 16692 "relevance": 88, 16693 "references": [ 16694 { 16695 "name": "MDN Reference", 16696 "url": "https://developer.mozilla.org/docs/Web/CSS/visibility" 16697 } 16698 ], 16699 "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).", 16700 "restrictions": [ 16701 "enum" 16702 ] 16703 }, 16704 { 16705 "name": "-webkit-animation", 16706 "browsers": [ 16707 "C", 16708 "S5" 16709 ], 16710 "values": [ 16711 { 16712 "name": "alternate", 16713 "description": "The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction." 16714 }, 16715 { 16716 "name": "alternate-reverse", 16717 "description": "The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction." 16718 }, 16719 { 16720 "name": "backwards", 16721 "description": "The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'." 16722 }, 16723 { 16724 "name": "both", 16725 "description": "Both forwards and backwards fill modes are applied." 16726 }, 16727 { 16728 "name": "forwards", 16729 "description": "The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes." 16730 }, 16731 { 16732 "name": "infinite", 16733 "description": "Causes the animation to repeat forever." 16734 }, 16735 { 16736 "name": "none", 16737 "description": "No animation is performed" 16738 }, 16739 { 16740 "name": "normal", 16741 "description": "Normal playback." 16742 }, 16743 { 16744 "name": "reverse", 16745 "description": "All iterations of the animation are played in the reverse direction from the way they were specified." 16746 } 16747 ], 16748 "relevance": 50, 16749 "description": "Shorthand property combines six of the animation properties into a single property.", 16750 "restrictions": [ 16751 "time", 16752 "enum", 16753 "timing-function", 16754 "identifier", 16755 "number" 16756 ] 16757 }, 16758 { 16759 "name": "-webkit-animation-delay", 16760 "browsers": [ 16761 "C", 16762 "S5" 16763 ], 16764 "relevance": 50, 16765 "description": "Defines when the animation will start.", 16766 "restrictions": [ 16767 "time" 16768 ] 16769 }, 16770 { 16771 "name": "-webkit-animation-direction", 16772 "browsers": [ 16773 "C", 16774 "S5" 16775 ], 16776 "values": [ 16777 { 16778 "name": "alternate", 16779 "description": "The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction." 16780 }, 16781 { 16782 "name": "alternate-reverse", 16783 "description": "The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction." 16784 }, 16785 { 16786 "name": "normal", 16787 "description": "Normal playback." 16788 }, 16789 { 16790 "name": "reverse", 16791 "description": "All iterations of the animation are played in the reverse direction from the way they were specified." 16792 } 16793 ], 16794 "relevance": 50, 16795 "description": "Defines whether or not the animation should play in reverse on alternate cycles.", 16796 "restrictions": [ 16797 "enum" 16798 ] 16799 }, 16800 { 16801 "name": "-webkit-animation-duration", 16802 "browsers": [ 16803 "C", 16804 "S5" 16805 ], 16806 "relevance": 50, 16807 "description": "Defines the length of time that an animation takes to complete one cycle.", 16808 "restrictions": [ 16809 "time" 16810 ] 16811 }, 16812 { 16813 "name": "-webkit-animation-fill-mode", 16814 "browsers": [ 16815 "C", 16816 "S5" 16817 ], 16818 "values": [ 16819 { 16820 "name": "backwards", 16821 "description": "The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'." 16822 }, 16823 { 16824 "name": "both", 16825 "description": "Both forwards and backwards fill modes are applied." 16826 }, 16827 { 16828 "name": "forwards", 16829 "description": "The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes." 16830 }, 16831 { 16832 "name": "none", 16833 "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." 16834 } 16835 ], 16836 "relevance": 50, 16837 "description": "Defines what values are applied by the animation outside the time it is executing.", 16838 "restrictions": [ 16839 "enum" 16840 ] 16841 }, 16842 { 16843 "name": "-webkit-animation-iteration-count", 16844 "browsers": [ 16845 "C", 16846 "S5" 16847 ], 16848 "values": [ 16849 { 16850 "name": "infinite", 16851 "description": "Causes the animation to repeat forever." 16852 } 16853 ], 16854 "relevance": 50, 16855 "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.", 16856 "restrictions": [ 16857 "number", 16858 "enum" 16859 ] 16860 }, 16861 { 16862 "name": "-webkit-animation-name", 16863 "browsers": [ 16864 "C", 16865 "S5" 16866 ], 16867 "values": [ 16868 { 16869 "name": "none", 16870 "description": "No animation is performed" 16871 } 16872 ], 16873 "relevance": 50, 16874 "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.", 16875 "restrictions": [ 16876 "identifier", 16877 "enum" 16878 ] 16879 }, 16880 { 16881 "name": "-webkit-animation-play-state", 16882 "browsers": [ 16883 "C", 16884 "S5" 16885 ], 16886 "values": [ 16887 { 16888 "name": "paused", 16889 "description": "A running animation will be paused." 16890 }, 16891 { 16892 "name": "running", 16893 "description": "Resume playback of a paused animation." 16894 } 16895 ], 16896 "relevance": 50, 16897 "description": "Defines whether the animation is running or paused.", 16898 "restrictions": [ 16899 "enum" 16900 ] 16901 }, 16902 { 16903 "name": "-webkit-animation-timing-function", 16904 "browsers": [ 16905 "C", 16906 "S5" 16907 ], 16908 "relevance": 50, 16909 "description": "Describes how the animation will progress over one cycle of its duration. See the 'transition-timing-function'.", 16910 "restrictions": [ 16911 "timing-function" 16912 ] 16913 }, 16914 { 16915 "name": "-webkit-appearance", 16916 "browsers": [ 16917 "C", 16918 "S3" 16919 ], 16920 "values": [ 16921 { 16922 "name": "button" 16923 }, 16924 { 16925 "name": "button-bevel" 16926 }, 16927 { 16928 "name": "caps-lock-indicator" 16929 }, 16930 { 16931 "name": "caret" 16932 }, 16933 { 16934 "name": "checkbox" 16935 }, 16936 { 16937 "name": "default-button" 16938 }, 16939 { 16940 "name": "listbox" 16941 }, 16942 { 16943 "name": "listitem" 16944 }, 16945 { 16946 "name": "media-fullscreen-button" 16947 }, 16948 { 16949 "name": "media-mute-button" 16950 }, 16951 { 16952 "name": "media-play-button" 16953 }, 16954 { 16955 "name": "media-seek-back-button" 16956 }, 16957 { 16958 "name": "media-seek-forward-button" 16959 }, 16960 { 16961 "name": "media-slider" 16962 }, 16963 { 16964 "name": "media-sliderthumb" 16965 }, 16966 { 16967 "name": "menulist" 16968 }, 16969 { 16970 "name": "menulist-button" 16971 }, 16972 { 16973 "name": "menulist-text" 16974 }, 16975 { 16976 "name": "menulist-textfield" 16977 }, 16978 { 16979 "name": "none" 16980 }, 16981 { 16982 "name": "push-button" 16983 }, 16984 { 16985 "name": "radio" 16986 }, 16987 { 16988 "name": "scrollbarbutton-down" 16989 }, 16990 { 16991 "name": "scrollbarbutton-left" 16992 }, 16993 { 16994 "name": "scrollbarbutton-right" 16995 }, 16996 { 16997 "name": "scrollbarbutton-up" 16998 }, 16999 { 17000 "name": "scrollbargripper-horizontal" 17001 }, 17002 { 17003 "name": "scrollbargripper-vertical" 17004 }, 17005 { 17006 "name": "scrollbarthumb-horizontal" 17007 }, 17008 { 17009 "name": "scrollbarthumb-vertical" 17010 }, 17011 { 17012 "name": "scrollbartrack-horizontal" 17013 }, 17014 { 17015 "name": "scrollbartrack-vertical" 17016 }, 17017 { 17018 "name": "searchfield" 17019 }, 17020 { 17021 "name": "searchfield-cancel-button" 17022 }, 17023 { 17024 "name": "searchfield-decoration" 17025 }, 17026 { 17027 "name": "searchfield-results-button" 17028 }, 17029 { 17030 "name": "searchfield-results-decoration" 17031 }, 17032 { 17033 "name": "slider-horizontal" 17034 }, 17035 { 17036 "name": "sliderthumb-horizontal" 17037 }, 17038 { 17039 "name": "sliderthumb-vertical" 17040 }, 17041 { 17042 "name": "slider-vertical" 17043 }, 17044 { 17045 "name": "square-button" 17046 }, 17047 { 17048 "name": "textarea" 17049 }, 17050 { 17051 "name": "textfield" 17052 } 17053 ], 17054 "status": "nonstandard", 17055 "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", 17056 "relevance": 0, 17057 "description": "Changes the appearance of buttons and other controls to resemble native controls.", 17058 "restrictions": [ 17059 "enum" 17060 ] 17061 }, 17062 { 17063 "name": "-webkit-backdrop-filter", 17064 "browsers": [ 17065 "S9" 17066 ], 17067 "values": [ 17068 { 17069 "name": "none", 17070 "description": "No filter effects are applied." 17071 }, 17072 { 17073 "name": "blur()", 17074 "description": "Applies a Gaussian blur to the input image." 17075 }, 17076 { 17077 "name": "brightness()", 17078 "description": "Applies a linear multiplier to input image, making it appear more or less bright." 17079 }, 17080 { 17081 "name": "contrast()", 17082 "description": "Adjusts the contrast of the input." 17083 }, 17084 { 17085 "name": "drop-shadow()", 17086 "description": "Applies a drop shadow effect to the input image." 17087 }, 17088 { 17089 "name": "grayscale()", 17090 "description": "Converts the input image to grayscale." 17091 }, 17092 { 17093 "name": "hue-rotate()", 17094 "description": "Applies a hue rotation on the input image. " 17095 }, 17096 { 17097 "name": "invert()", 17098 "description": "Inverts the samples in the input image." 17099 }, 17100 { 17101 "name": "opacity()", 17102 "description": "Applies transparency to the samples in the input image." 17103 }, 17104 { 17105 "name": "saturate()", 17106 "description": "Saturates the input image." 17107 }, 17108 { 17109 "name": "sepia()", 17110 "description": "Converts the input image to sepia." 17111 }, 17112 { 17113 "name": "url()", 17114 "description": "A filter reference to a <filter> element." 17115 } 17116 ], 17117 "relevance": 50, 17118 "description": "Applies a filter effect where the first filter in the list takes the element's background image as the input image.", 17119 "restrictions": [ 17120 "enum", 17121 "url" 17122 ] 17123 }, 17124 { 17125 "name": "-webkit-backface-visibility", 17126 "browsers": [ 17127 "C", 17128 "S5" 17129 ], 17130 "values": [ 17131 { 17132 "name": "hidden" 17133 }, 17134 { 17135 "name": "visible" 17136 } 17137 ], 17138 "relevance": 50, 17139 "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.", 17140 "restrictions": [ 17141 "enum" 17142 ] 17143 }, 17144 { 17145 "name": "-webkit-background-clip", 17146 "browsers": [ 17147 "C", 17148 "S3" 17149 ], 17150 "relevance": 50, 17151 "description": "Determines the background painting area.", 17152 "restrictions": [ 17153 "box" 17154 ] 17155 }, 17156 { 17157 "name": "-webkit-background-composite", 17158 "browsers": [ 17159 "C", 17160 "S3" 17161 ], 17162 "values": [ 17163 { 17164 "name": "border" 17165 }, 17166 { 17167 "name": "padding" 17168 } 17169 ], 17170 "relevance": 50, 17171 "restrictions": [ 17172 "enum" 17173 ] 17174 }, 17175 { 17176 "name": "-webkit-background-origin", 17177 "browsers": [ 17178 "C", 17179 "S3" 17180 ], 17181 "relevance": 50, 17182 "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).", 17183 "restrictions": [ 17184 "box" 17185 ] 17186 }, 17187 { 17188 "name": "-webkit-border-image", 17189 "browsers": [ 17190 "C", 17191 "S5" 17192 ], 17193 "values": [ 17194 { 17195 "name": "auto", 17196 "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." 17197 }, 17198 { 17199 "name": "fill", 17200 "description": "Causes the middle part of the border-image to be preserved." 17201 }, 17202 { 17203 "name": "none" 17204 }, 17205 { 17206 "name": "repeat", 17207 "description": "The image is tiled (repeated) to fill the area." 17208 }, 17209 { 17210 "name": "round", 17211 "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." 17212 }, 17213 { 17214 "name": "space", 17215 "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." 17216 }, 17217 { 17218 "name": "stretch", 17219 "description": "The image is stretched to fill the area." 17220 }, 17221 { 17222 "name": "url()" 17223 } 17224 ], 17225 "relevance": 50, 17226 "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.", 17227 "restrictions": [ 17228 "length", 17229 "percentage", 17230 "number", 17231 "url", 17232 "enum" 17233 ] 17234 }, 17235 { 17236 "name": "-webkit-box-align", 17237 "browsers": [ 17238 "C", 17239 "S3" 17240 ], 17241 "values": [ 17242 { 17243 "name": "baseline", 17244 "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." 17245 }, 17246 { 17247 "name": "center", 17248 "description": "Any extra space is divided evenly, with half placed above the child and the other half placed after the child." 17249 }, 17250 { 17251 "name": "end", 17252 "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." 17253 }, 17254 { 17255 "name": "start", 17256 "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." 17257 }, 17258 { 17259 "name": "stretch", 17260 "description": "The height of each child is adjusted to that of the containing block." 17261 } 17262 ], 17263 "relevance": 50, 17264 "description": "Specifies the alignment of nested elements within an outer flexible box element.", 17265 "restrictions": [ 17266 "enum" 17267 ] 17268 }, 17269 { 17270 "name": "-webkit-box-direction", 17271 "browsers": [ 17272 "C", 17273 "S3" 17274 ], 17275 "values": [ 17276 { 17277 "name": "normal", 17278 "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." 17279 }, 17280 { 17281 "name": "reverse", 17282 "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." 17283 } 17284 ], 17285 "relevance": 50, 17286 "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).", 17287 "restrictions": [ 17288 "enum" 17289 ] 17290 }, 17291 { 17292 "name": "-webkit-box-flex", 17293 "browsers": [ 17294 "C", 17295 "S3" 17296 ], 17297 "relevance": 50, 17298 "description": "Specifies an element's flexibility.", 17299 "restrictions": [ 17300 "number" 17301 ] 17302 }, 17303 { 17304 "name": "-webkit-box-flex-group", 17305 "browsers": [ 17306 "C", 17307 "S3" 17308 ], 17309 "relevance": 50, 17310 "description": "Flexible elements can be assigned to flex groups using the 'box-flex-group' property.", 17311 "restrictions": [ 17312 "integer" 17313 ] 17314 }, 17315 { 17316 "name": "-webkit-box-ordinal-group", 17317 "browsers": [ 17318 "C", 17319 "S3" 17320 ], 17321 "relevance": 50, 17322 "description": "Indicates the ordinal group the element belongs to. Elements with a lower ordinal group are displayed before those with a higher ordinal group.", 17323 "restrictions": [ 17324 "integer" 17325 ] 17326 }, 17327 { 17328 "name": "-webkit-box-orient", 17329 "browsers": [ 17330 "C", 17331 "S3" 17332 ], 17333 "values": [ 17334 { 17335 "name": "block-axis", 17336 "description": "Elements are oriented along the box's axis." 17337 }, 17338 { 17339 "name": "horizontal", 17340 "description": "The box displays its children from left to right in a horizontal line." 17341 }, 17342 { 17343 "name": "inline-axis", 17344 "description": "Elements are oriented vertically." 17345 }, 17346 { 17347 "name": "vertical", 17348 "description": "The box displays its children from stacked from top to bottom vertically." 17349 } 17350 ], 17351 "relevance": 50, 17352 "description": "In webkit applications, -webkit-box-orient specifies whether a box lays out its contents horizontally or vertically.", 17353 "restrictions": [ 17354 "enum" 17355 ] 17356 }, 17357 { 17358 "name": "-webkit-box-pack", 17359 "browsers": [ 17360 "C", 17361 "S3" 17362 ], 17363 "values": [ 17364 { 17365 "name": "center", 17366 "description": "The extra space is divided evenly, with half placed before the first child and the other half placed after the last child." 17367 }, 17368 { 17369 "name": "end", 17370 "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." 17371 }, 17372 { 17373 "name": "justify", 17374 "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." 17375 }, 17376 { 17377 "name": "start", 17378 "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." 17379 } 17380 ], 17381 "relevance": 50, 17382 "description": "Specifies alignment of child elements within the current element in the direction of orientation.", 17383 "restrictions": [ 17384 "enum" 17385 ] 17386 }, 17387 { 17388 "name": "-webkit-box-reflect", 17389 "browsers": [ 17390 "E79", 17391 "S4", 17392 "C4", 17393 "O15" 17394 ], 17395 "values": [ 17396 { 17397 "name": "above", 17398 "description": "The reflection appears above the border box." 17399 }, 17400 { 17401 "name": "below", 17402 "description": "The reflection appears below the border box." 17403 }, 17404 { 17405 "name": "left", 17406 "description": "The reflection appears to the left of the border box." 17407 }, 17408 { 17409 "name": "right", 17410 "description": "The reflection appears to the right of the border box." 17411 } 17412 ], 17413 "status": "nonstandard", 17414 "syntax": "[ above | below | right | left ]? <length>? <image>?", 17415 "relevance": 0, 17416 "references": [ 17417 { 17418 "name": "MDN Reference", 17419 "url": "https://developer.mozilla.org/docs/Web/CSS/-webkit-box-reflect" 17420 } 17421 ], 17422 "description": "Defines a reflection of a border box." 17423 }, 17424 { 17425 "name": "-webkit-box-sizing", 17426 "browsers": [ 17427 "C", 17428 "S3" 17429 ], 17430 "values": [ 17431 { 17432 "name": "border-box", 17433 "description": "The specified width and height (and respective min/max properties) on this element determine the border box of the element." 17434 }, 17435 { 17436 "name": "content-box", 17437 "description": "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." 17438 } 17439 ], 17440 "relevance": 50, 17441 "description": "Box Model addition in CSS3.", 17442 "restrictions": [ 17443 "enum" 17444 ] 17445 }, 17446 { 17447 "name": "-webkit-break-after", 17448 "browsers": [ 17449 "S7" 17450 ], 17451 "values": [ 17452 { 17453 "name": "always", 17454 "description": "Always force a page break before/after the generated box." 17455 }, 17456 { 17457 "name": "auto", 17458 "description": "Neither force nor forbid a page/column break before/after the generated box." 17459 }, 17460 { 17461 "name": "avoid", 17462 "description": "Avoid a page/column break before/after the generated box." 17463 }, 17464 { 17465 "name": "avoid-column", 17466 "description": "Avoid a column break before/after the generated box." 17467 }, 17468 { 17469 "name": "avoid-page", 17470 "description": "Avoid a page break before/after the generated box." 17471 }, 17472 { 17473 "name": "avoid-region" 17474 }, 17475 { 17476 "name": "column", 17477 "description": "Always force a column break before/after the generated box." 17478 }, 17479 { 17480 "name": "left", 17481 "description": "Force one or two page breaks before/after the generated box so that the next page is formatted as a left page." 17482 }, 17483 { 17484 "name": "page", 17485 "description": "Always force a page break before/after the generated box." 17486 }, 17487 { 17488 "name": "region" 17489 }, 17490 { 17491 "name": "right", 17492 "description": "Force one or two page breaks before/after the generated box so that the next page is formatted as a right page." 17493 } 17494 ], 17495 "relevance": 50, 17496 "description": "Describes the page/column break behavior before the generated box.", 17497 "restrictions": [ 17498 "enum" 17499 ] 17500 }, 17501 { 17502 "name": "-webkit-break-before", 17503 "browsers": [ 17504 "S7" 17505 ], 17506 "values": [ 17507 { 17508 "name": "always", 17509 "description": "Always force a page break before/after the generated box." 17510 }, 17511 { 17512 "name": "auto", 17513 "description": "Neither force nor forbid a page/column break before/after the generated box." 17514 }, 17515 { 17516 "name": "avoid", 17517 "description": "Avoid a page/column break before/after the generated box." 17518 }, 17519 { 17520 "name": "avoid-column", 17521 "description": "Avoid a column break before/after the generated box." 17522 }, 17523 { 17524 "name": "avoid-page", 17525 "description": "Avoid a page break before/after the generated box." 17526 }, 17527 { 17528 "name": "avoid-region" 17529 }, 17530 { 17531 "name": "column", 17532 "description": "Always force a column break before/after the generated box." 17533 }, 17534 { 17535 "name": "left", 17536 "description": "Force one or two page breaks before/after the generated box so that the next page is formatted as a left page." 17537 }, 17538 { 17539 "name": "page", 17540 "description": "Always force a page break before/after the generated box." 17541 }, 17542 { 17543 "name": "region" 17544 }, 17545 { 17546 "name": "right", 17547 "description": "Force one or two page breaks before/after the generated box so that the next page is formatted as a right page." 17548 } 17549 ], 17550 "relevance": 50, 17551 "description": "Describes the page/column break behavior before the generated box.", 17552 "restrictions": [ 17553 "enum" 17554 ] 17555 }, 17556 { 17557 "name": "-webkit-break-inside", 17558 "browsers": [ 17559 "S7" 17560 ], 17561 "values": [ 17562 { 17563 "name": "auto", 17564 "description": "Neither force nor forbid a page/column break inside the generated box." 17565 }, 17566 { 17567 "name": "avoid", 17568 "description": "Avoid a page/column break inside the generated box." 17569 }, 17570 { 17571 "name": "avoid-column", 17572 "description": "Avoid a column break inside the generated box." 17573 }, 17574 { 17575 "name": "avoid-page", 17576 "description": "Avoid a page break inside the generated box." 17577 }, 17578 { 17579 "name": "avoid-region" 17580 } 17581 ], 17582 "relevance": 50, 17583 "description": "Describes the page/column break behavior inside the generated box.", 17584 "restrictions": [ 17585 "enum" 17586 ] 17587 }, 17588 { 17589 "name": "-webkit-column-break-after", 17590 "browsers": [ 17591 "C", 17592 "S3" 17593 ], 17594 "values": [ 17595 { 17596 "name": "always", 17597 "description": "Always force a page break before/after the generated box." 17598 }, 17599 { 17600 "name": "auto", 17601 "description": "Neither force nor forbid a page/column break before/after the generated box." 17602 }, 17603 { 17604 "name": "avoid", 17605 "description": "Avoid a page/column break before/after the generated box." 17606 }, 17607 { 17608 "name": "avoid-column", 17609 "description": "Avoid a column break before/after the generated box." 17610 }, 17611 { 17612 "name": "avoid-page", 17613 "description": "Avoid a page break before/after the generated box." 17614 }, 17615 { 17616 "name": "avoid-region" 17617 }, 17618 { 17619 "name": "column", 17620 "description": "Always force a column break before/after the generated box." 17621 }, 17622 { 17623 "name": "left", 17624 "description": "Force one or two page breaks before/after the generated box so that the next page is formatted as a left page." 17625 }, 17626 { 17627 "name": "page", 17628 "description": "Always force a page break before/after the generated box." 17629 }, 17630 { 17631 "name": "region" 17632 }, 17633 { 17634 "name": "right", 17635 "description": "Force one or two page breaks before/after the generated box so that the next page is formatted as a right page." 17636 } 17637 ], 17638 "relevance": 50, 17639 "description": "Describes the page/column break behavior before the generated box.", 17640 "restrictions": [ 17641 "enum" 17642 ] 17643 }, 17644 { 17645 "name": "-webkit-column-break-before", 17646 "browsers": [ 17647 "C", 17648 "S3" 17649 ], 17650 "values": [ 17651 { 17652 "name": "always", 17653 "description": "Always force a page break before/after the generated box." 17654 }, 17655 { 17656 "name": "auto", 17657 "description": "Neither force nor forbid a page/column break before/after the generated box." 17658 }, 17659 { 17660 "name": "avoid", 17661 "description": "Avoid a page/column break before/after the generated box." 17662 }, 17663 { 17664 "name": "avoid-column", 17665 "description": "Avoid a column break before/after the generated box." 17666 }, 17667 { 17668 "name": "avoid-page", 17669 "description": "Avoid a page break before/after the generated box." 17670 }, 17671 { 17672 "name": "avoid-region" 17673 }, 17674 { 17675 "name": "column", 17676 "description": "Always force a column break before/after the generated box." 17677 }, 17678 { 17679 "name": "left", 17680 "description": "Force one or two page breaks before/after the generated box so that the next page is formatted as a left page." 17681 }, 17682 { 17683 "name": "page", 17684 "description": "Always force a page break before/after the generated box." 17685 }, 17686 { 17687 "name": "region" 17688 }, 17689 { 17690 "name": "right", 17691 "description": "Force one or two page breaks before/after the generated box so that the next page is formatted as a right page." 17692 } 17693 ], 17694 "relevance": 50, 17695 "description": "Describes the page/column break behavior before the generated box.", 17696 "restrictions": [ 17697 "enum" 17698 ] 17699 }, 17700 { 17701 "name": "-webkit-column-break-inside", 17702 "browsers": [ 17703 "C", 17704 "S3" 17705 ], 17706 "values": [ 17707 { 17708 "name": "auto", 17709 "description": "Neither force nor forbid a page/column break inside the generated box." 17710 }, 17711 { 17712 "name": "avoid", 17713 "description": "Avoid a page/column break inside the generated box." 17714 }, 17715 { 17716 "name": "avoid-column", 17717 "description": "Avoid a column break inside the generated box." 17718 }, 17719 { 17720 "name": "avoid-page", 17721 "description": "Avoid a page break inside the generated box." 17722 }, 17723 { 17724 "name": "avoid-region" 17725 } 17726 ], 17727 "relevance": 50, 17728 "description": "Describes the page/column break behavior inside the generated box.", 17729 "restrictions": [ 17730 "enum" 17731 ] 17732 }, 17733 { 17734 "name": "-webkit-column-count", 17735 "browsers": [ 17736 "C", 17737 "S3" 17738 ], 17739 "values": [ 17740 { 17741 "name": "auto", 17742 "description": "Determines the number of columns by the 'column-width' property and the element width." 17743 } 17744 ], 17745 "relevance": 50, 17746 "description": "Describes the optimal number of columns into which the content of the element will be flowed.", 17747 "restrictions": [ 17748 "integer" 17749 ] 17750 }, 17751 { 17752 "name": "-webkit-column-gap", 17753 "browsers": [ 17754 "C", 17755 "S3" 17756 ], 17757 "values": [ 17758 { 17759 "name": "normal", 17760 "description": "User agent specific and typically equivalent to 1em." 17761 } 17762 ], 17763 "relevance": 50, 17764 "description": "Sets the gap between columns. If there is a column rule between columns, it will appear in the middle of the gap.", 17765 "restrictions": [ 17766 "length" 17767 ] 17768 }, 17769 { 17770 "name": "-webkit-column-rule", 17771 "browsers": [ 17772 "C", 17773 "S3" 17774 ], 17775 "relevance": 50, 17776 "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.", 17777 "restrictions": [ 17778 "length", 17779 "line-width", 17780 "line-style", 17781 "color" 17782 ] 17783 }, 17784 { 17785 "name": "-webkit-column-rule-color", 17786 "browsers": [ 17787 "C", 17788 "S3" 17789 ], 17790 "relevance": 50, 17791 "description": "Sets the color of the column rule", 17792 "restrictions": [ 17793 "color" 17794 ] 17795 }, 17796 { 17797 "name": "-webkit-column-rule-style", 17798 "browsers": [ 17799 "C", 17800 "S3" 17801 ], 17802 "relevance": 50, 17803 "description": "Sets the style of the rule between columns of an element.", 17804 "restrictions": [ 17805 "line-style" 17806 ] 17807 }, 17808 { 17809 "name": "-webkit-column-rule-width", 17810 "browsers": [ 17811 "C", 17812 "S3" 17813 ], 17814 "relevance": 50, 17815 "description": "Sets the width of the rule between columns. Negative values are not allowed.", 17816 "restrictions": [ 17817 "length", 17818 "line-width" 17819 ] 17820 }, 17821 { 17822 "name": "-webkit-columns", 17823 "browsers": [ 17824 "C", 17825 "S3" 17826 ], 17827 "values": [ 17828 { 17829 "name": "auto", 17830 "description": "The width depends on the values of other properties." 17831 } 17832 ], 17833 "relevance": 50, 17834 "description": "A shorthand property which sets both 'column-width' and 'column-count'.", 17835 "restrictions": [ 17836 "length", 17837 "integer" 17838 ] 17839 }, 17840 { 17841 "name": "-webkit-column-span", 17842 "browsers": [ 17843 "C", 17844 "S3" 17845 ], 17846 "values": [ 17847 { 17848 "name": "all", 17849 "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." 17850 }, 17851 { 17852 "name": "none", 17853 "description": "The element does not span multiple columns." 17854 } 17855 ], 17856 "relevance": 50, 17857 "description": "Describes the page/column break behavior after the generated box.", 17858 "restrictions": [ 17859 "enum" 17860 ] 17861 }, 17862 { 17863 "name": "-webkit-column-width", 17864 "browsers": [ 17865 "C", 17866 "S3" 17867 ], 17868 "values": [ 17869 { 17870 "name": "auto", 17871 "description": "The width depends on the values of other properties." 17872 } 17873 ], 17874 "relevance": 50, 17875 "description": "This property describes the width of columns in multicol elements.", 17876 "restrictions": [ 17877 "length" 17878 ] 17879 }, 17880 { 17881 "name": "-webkit-filter", 17882 "browsers": [ 17883 "C18", 17884 "O15", 17885 "S6" 17886 ], 17887 "values": [ 17888 { 17889 "name": "none", 17890 "description": "No filter effects are applied." 17891 }, 17892 { 17893 "name": "blur()", 17894 "description": "Applies a Gaussian blur to the input image." 17895 }, 17896 { 17897 "name": "brightness()", 17898 "description": "Applies a linear multiplier to input image, making it appear more or less bright." 17899 }, 17900 { 17901 "name": "contrast()", 17902 "description": "Adjusts the contrast of the input." 17903 }, 17904 { 17905 "name": "drop-shadow()", 17906 "description": "Applies a drop shadow effect to the input image." 17907 }, 17908 { 17909 "name": "grayscale()", 17910 "description": "Converts the input image to grayscale." 17911 }, 17912 { 17913 "name": "hue-rotate()", 17914 "description": "Applies a hue rotation on the input image. " 17915 }, 17916 { 17917 "name": "invert()", 17918 "description": "Inverts the samples in the input image." 17919 }, 17920 { 17921 "name": "opacity()", 17922 "description": "Applies transparency to the samples in the input image." 17923 }, 17924 { 17925 "name": "saturate()", 17926 "description": "Saturates the input image." 17927 }, 17928 { 17929 "name": "sepia()", 17930 "description": "Converts the input image to sepia." 17931 }, 17932 { 17933 "name": "url()", 17934 "description": "A filter reference to a <filter> element." 17935 } 17936 ], 17937 "relevance": 50, 17938 "description": "Processes an element’s rendering before it is displayed in the document, by applying one or more filter effects.", 17939 "restrictions": [ 17940 "enum", 17941 "url" 17942 ] 17943 }, 17944 { 17945 "name": "-webkit-flow-from", 17946 "browsers": [ 17947 "S6.1" 17948 ], 17949 "values": [ 17950 { 17951 "name": "none", 17952 "description": "The block container is not a CSS Region." 17953 } 17954 ], 17955 "relevance": 50, 17956 "description": "Makes a block container a region and associates it with a named flow.", 17957 "restrictions": [ 17958 "identifier" 17959 ] 17960 }, 17961 { 17962 "name": "-webkit-flow-into", 17963 "browsers": [ 17964 "S6.1" 17965 ], 17966 "values": [ 17967 { 17968 "name": "none", 17969 "description": "The element is not moved to a named flow and normal CSS processing takes place." 17970 } 17971 ], 17972 "relevance": 50, 17973 "description": "Places an element or its contents into a named flow.", 17974 "restrictions": [ 17975 "identifier" 17976 ] 17977 }, 17978 { 17979 "name": "-webkit-font-feature-settings", 17980 "browsers": [ 17981 "C16" 17982 ], 17983 "values": [ 17984 { 17985 "name": "\"c2cs\"" 17986 }, 17987 { 17988 "name": "\"dlig\"" 17989 }, 17990 { 17991 "name": "\"kern\"" 17992 }, 17993 { 17994 "name": "\"liga\"" 17995 }, 17996 { 17997 "name": "\"lnum\"" 17998 }, 17999 { 18000 "name": "\"onum\"" 18001 }, 18002 { 18003 "name": "\"smcp\"" 18004 }, 18005 { 18006 "name": "\"swsh\"" 18007 }, 18008 { 18009 "name": "\"tnum\"" 18010 }, 18011 { 18012 "name": "normal", 18013 "description": "No change in glyph substitution or positioning occurs." 18014 }, 18015 { 18016 "name": "off" 18017 }, 18018 { 18019 "name": "on" 18020 } 18021 ], 18022 "relevance": 50, 18023 "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.", 18024 "restrictions": [ 18025 "string", 18026 "integer" 18027 ] 18028 }, 18029 { 18030 "name": "-webkit-hyphens", 18031 "browsers": [ 18032 "S5.1" 18033 ], 18034 "values": [ 18035 { 18036 "name": "auto", 18037 "description": "Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word." 18038 }, 18039 { 18040 "name": "manual", 18041 "description": "Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities" 18042 }, 18043 { 18044 "name": "none", 18045 "description": "Words are not broken at line breaks, even if characters inside the word suggest line break points." 18046 } 18047 ], 18048 "relevance": 50, 18049 "description": "Controls whether hyphenation is allowed to create more break opportunities within a line of text.", 18050 "restrictions": [ 18051 "enum" 18052 ] 18053 }, 18054 { 18055 "name": "-webkit-line-break", 18056 "browsers": [ 18057 "C", 18058 "S3" 18059 ], 18060 "values": [ 18061 { 18062 "name": "after-white-space" 18063 }, 18064 { 18065 "name": "normal" 18066 } 18067 ], 18068 "relevance": 50, 18069 "description": "Specifies line-breaking rules for CJK (Chinese, Japanese, and Korean) text." 18070 }, 18071 { 18072 "name": "-webkit-margin-bottom-collapse", 18073 "browsers": [ 18074 "C", 18075 "S3" 18076 ], 18077 "values": [ 18078 { 18079 "name": "collapse" 18080 }, 18081 { 18082 "name": "discard" 18083 }, 18084 { 18085 "name": "separate" 18086 } 18087 ], 18088 "relevance": 50, 18089 "restrictions": [ 18090 "enum" 18091 ] 18092 }, 18093 { 18094 "name": "-webkit-margin-collapse", 18095 "browsers": [ 18096 "C", 18097 "S3" 18098 ], 18099 "values": [ 18100 { 18101 "name": "collapse" 18102 }, 18103 { 18104 "name": "discard" 18105 }, 18106 { 18107 "name": "separate" 18108 } 18109 ], 18110 "relevance": 50, 18111 "restrictions": [ 18112 "enum" 18113 ] 18114 }, 18115 { 18116 "name": "-webkit-margin-start", 18117 "browsers": [ 18118 "C", 18119 "S3" 18120 ], 18121 "values": [ 18122 { 18123 "name": "auto" 18124 } 18125 ], 18126 "relevance": 50, 18127 "restrictions": [ 18128 "percentage", 18129 "length" 18130 ] 18131 }, 18132 { 18133 "name": "-webkit-margin-top-collapse", 18134 "browsers": [ 18135 "C", 18136 "S3" 18137 ], 18138 "values": [ 18139 { 18140 "name": "collapse" 18141 }, 18142 { 18143 "name": "discard" 18144 }, 18145 { 18146 "name": "separate" 18147 } 18148 ], 18149 "relevance": 50, 18150 "restrictions": [ 18151 "enum" 18152 ] 18153 }, 18154 { 18155 "name": "-webkit-mask-clip", 18156 "browsers": [ 18157 "C", 18158 "O15", 18159 "S4" 18160 ], 18161 "status": "nonstandard", 18162 "syntax": "[ <box> | border | padding | content | text ]#", 18163 "relevance": 0, 18164 "description": "Determines the mask painting area, which determines the area that is affected by the mask.", 18165 "restrictions": [ 18166 "box" 18167 ] 18168 }, 18169 { 18170 "name": "-webkit-mask-image", 18171 "browsers": [ 18172 "C", 18173 "O15", 18174 "S4" 18175 ], 18176 "values": [ 18177 { 18178 "name": "none", 18179 "description": "Counts as a transparent black image layer." 18180 }, 18181 { 18182 "name": "url()", 18183 "description": "Reference to a <mask element or to a CSS image." 18184 } 18185 ], 18186 "status": "nonstandard", 18187 "syntax": "<mask-reference>#", 18188 "relevance": 0, 18189 "description": "Sets the mask layer image of an element.", 18190 "restrictions": [ 18191 "url", 18192 "image", 18193 "enum" 18194 ] 18195 }, 18196 { 18197 "name": "-webkit-mask-origin", 18198 "browsers": [ 18199 "C", 18200 "O15", 18201 "S4" 18202 ], 18203 "status": "nonstandard", 18204 "syntax": "[ <box> | border | padding | content ]#", 18205 "relevance": 0, 18206 "description": "Specifies the mask positioning area.", 18207 "restrictions": [ 18208 "box" 18209 ] 18210 }, 18211 { 18212 "name": "-webkit-mask-repeat", 18213 "browsers": [ 18214 "C", 18215 "O15", 18216 "S4" 18217 ], 18218 "status": "nonstandard", 18219 "syntax": "<repeat-style>#", 18220 "relevance": 0, 18221 "description": "Specifies how mask layer images are tiled after they have been sized and positioned.", 18222 "restrictions": [ 18223 "repeat" 18224 ] 18225 }, 18226 { 18227 "name": "-webkit-mask-size", 18228 "browsers": [ 18229 "C", 18230 "O15", 18231 "S4" 18232 ], 18233 "values": [ 18234 { 18235 "name": "auto", 18236 "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%." 18237 }, 18238 { 18239 "name": "contain", 18240 "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." 18241 }, 18242 { 18243 "name": "cover", 18244 "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." 18245 } 18246 ], 18247 "status": "nonstandard", 18248 "syntax": "<bg-size>#", 18249 "relevance": 0, 18250 "description": "Specifies the size of the mask layer images.", 18251 "restrictions": [ 18252 "length", 18253 "percentage", 18254 "enum" 18255 ] 18256 }, 18257 { 18258 "name": "-webkit-nbsp-mode", 18259 "browsers": [ 18260 "C", 18261 "S3" 18262 ], 18263 "values": [ 18264 { 18265 "name": "normal" 18266 }, 18267 { 18268 "name": "space" 18269 } 18270 ], 18271 "relevance": 50, 18272 "description": "Defines the behavior of nonbreaking spaces within text." 18273 }, 18274 { 18275 "name": "-webkit-overflow-scrolling", 18276 "browsers": [ 18277 "C", 18278 "S5" 18279 ], 18280 "values": [ 18281 { 18282 "name": "auto" 18283 }, 18284 { 18285 "name": "touch" 18286 } 18287 ], 18288 "status": "nonstandard", 18289 "syntax": "auto | touch", 18290 "relevance": 0, 18291 "references": [ 18292 { 18293 "name": "MDN Reference", 18294 "url": "https://developer.mozilla.org/docs/Web/CSS/-webkit-overflow-scrolling" 18295 } 18296 ], 18297 "description": "Specifies whether to use native-style scrolling in an overflow:scroll element." 18298 }, 18299 { 18300 "name": "-webkit-padding-start", 18301 "browsers": [ 18302 "C", 18303 "S3" 18304 ], 18305 "relevance": 50, 18306 "restrictions": [ 18307 "percentage", 18308 "length" 18309 ] 18310 }, 18311 { 18312 "name": "-webkit-perspective", 18313 "browsers": [ 18314 "C", 18315 "S4" 18316 ], 18317 "values": [ 18318 { 18319 "name": "none", 18320 "description": "No perspective transform is applied." 18321 } 18322 ], 18323 "relevance": 50, 18324 "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.", 18325 "restrictions": [ 18326 "length" 18327 ] 18328 }, 18329 { 18330 "name": "-webkit-perspective-origin", 18331 "browsers": [ 18332 "C", 18333 "S4" 18334 ], 18335 "relevance": 50, 18336 "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.", 18337 "restrictions": [ 18338 "position", 18339 "percentage", 18340 "length" 18341 ] 18342 }, 18343 { 18344 "name": "-webkit-region-fragment", 18345 "browsers": [ 18346 "S7" 18347 ], 18348 "values": [ 18349 { 18350 "name": "auto", 18351 "description": "Content flows as it would in a regular content box." 18352 }, 18353 { 18354 "name": "break", 18355 "description": "If the content fits within the CSS Region, then this property has no effect." 18356 } 18357 ], 18358 "relevance": 50, 18359 "description": "The 'region-fragment' property controls the behavior of the last region associated with a named flow.", 18360 "restrictions": [ 18361 "enum" 18362 ] 18363 }, 18364 { 18365 "name": "-webkit-tap-highlight-color", 18366 "browsers": [ 18367 "E12", 18368 "C16", 18369 "O≤15" 18370 ], 18371 "status": "nonstandard", 18372 "syntax": "<color>", 18373 "relevance": 0, 18374 "references": [ 18375 { 18376 "name": "MDN Reference", 18377 "url": "https://developer.mozilla.org/docs/Web/CSS/-webkit-tap-highlight-color" 18378 } 18379 ], 18380 "restrictions": [ 18381 "color" 18382 ] 18383 }, 18384 { 18385 "name": "-webkit-text-fill-color", 18386 "browsers": [ 18387 "E12", 18388 "FF49", 18389 "S3", 18390 "C1", 18391 "O15" 18392 ], 18393 "status": "nonstandard", 18394 "syntax": "<color>", 18395 "relevance": 0, 18396 "references": [ 18397 { 18398 "name": "MDN Reference", 18399 "url": "https://developer.mozilla.org/docs/Web/CSS/-webkit-text-fill-color" 18400 } 18401 ], 18402 "restrictions": [ 18403 "color" 18404 ] 18405 }, 18406 { 18407 "name": "-webkit-text-size-adjust", 18408 "browsers": [ 18409 "E", 18410 "C", 18411 "S3" 18412 ], 18413 "values": [ 18414 { 18415 "name": "auto", 18416 "description": "Renderers must use the default size adjustment when displaying on a small device." 18417 }, 18418 { 18419 "name": "none", 18420 "description": "Renderers must not do size adjustment when displaying on a small device." 18421 } 18422 ], 18423 "relevance": 50, 18424 "description": "Specifies a size adjustment for displaying text content in mobile browsers.", 18425 "restrictions": [ 18426 "percentage" 18427 ] 18428 }, 18429 { 18430 "name": "-webkit-text-stroke", 18431 "browsers": [ 18432 "E15", 18433 "FF49", 18434 "S3", 18435 "C4", 18436 "O15" 18437 ], 18438 "status": "nonstandard", 18439 "syntax": "<length> || <color>", 18440 "relevance": 0, 18441 "references": [ 18442 { 18443 "name": "MDN Reference", 18444 "url": "https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke" 18445 } 18446 ], 18447 "restrictions": [ 18448 "length", 18449 "line-width", 18450 "color", 18451 "percentage" 18452 ] 18453 }, 18454 { 18455 "name": "-webkit-text-stroke-color", 18456 "browsers": [ 18457 "E15", 18458 "FF49", 18459 "S3", 18460 "C1", 18461 "O15" 18462 ], 18463 "status": "nonstandard", 18464 "syntax": "<color>", 18465 "relevance": 0, 18466 "references": [ 18467 { 18468 "name": "MDN Reference", 18469 "url": "https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-color" 18470 } 18471 ], 18472 "restrictions": [ 18473 "color" 18474 ] 18475 }, 18476 { 18477 "name": "-webkit-text-stroke-width", 18478 "browsers": [ 18479 "E15", 18480 "FF49", 18481 "S3", 18482 "C1", 18483 "O15" 18484 ], 18485 "status": "nonstandard", 18486 "syntax": "<length>", 18487 "relevance": 0, 18488 "references": [ 18489 { 18490 "name": "MDN Reference", 18491 "url": "https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-width" 18492 } 18493 ], 18494 "restrictions": [ 18495 "length", 18496 "line-width", 18497 "percentage" 18498 ] 18499 }, 18500 { 18501 "name": "-webkit-touch-callout", 18502 "browsers": [ 18503 "S3" 18504 ], 18505 "values": [ 18506 { 18507 "name": "none" 18508 } 18509 ], 18510 "status": "nonstandard", 18511 "syntax": "default | none", 18512 "relevance": 0, 18513 "references": [ 18514 { 18515 "name": "MDN Reference", 18516 "url": "https://developer.mozilla.org/docs/Web/CSS/-webkit-touch-callout" 18517 } 18518 ], 18519 "restrictions": [ 18520 "enum" 18521 ] 18522 }, 18523 { 18524 "name": "-webkit-transform", 18525 "browsers": [ 18526 "C", 18527 "O12", 18528 "S3.1" 18529 ], 18530 "values": [ 18531 { 18532 "name": "matrix()", 18533 "description": "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]" 18534 }, 18535 { 18536 "name": "matrix3d()", 18537 "description": "Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order." 18538 }, 18539 { 18540 "name": "none" 18541 }, 18542 { 18543 "name": "perspective()", 18544 "description": "Specifies a perspective projection matrix." 18545 }, 18546 { 18547 "name": "rotate()", 18548 "description": "Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property." 18549 }, 18550 { 18551 "name": "rotate3d()", 18552 "description": "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." 18553 }, 18554 { 18555 "name": "rotateX('angle')", 18556 "description": "Specifies a clockwise rotation by the given angle about the X axis." 18557 }, 18558 { 18559 "name": "rotateY('angle')", 18560 "description": "Specifies a clockwise rotation by the given angle about the Y axis." 18561 }, 18562 { 18563 "name": "rotateZ('angle')", 18564 "description": "Specifies a clockwise rotation by the given angle about the Z axis." 18565 }, 18566 { 18567 "name": "scale()", 18568 "description": "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." 18569 }, 18570 { 18571 "name": "scale3d()", 18572 "description": "Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters." 18573 }, 18574 { 18575 "name": "scaleX()", 18576 "description": "Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter." 18577 }, 18578 { 18579 "name": "scaleY()", 18580 "description": "Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter." 18581 }, 18582 { 18583 "name": "scaleZ()", 18584 "description": "Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter." 18585 }, 18586 { 18587 "name": "skew()", 18588 "description": "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)." 18589 }, 18590 { 18591 "name": "skewX()", 18592 "description": "Specifies a skew transformation along the X axis by the given angle." 18593 }, 18594 { 18595 "name": "skewY()", 18596 "description": "Specifies a skew transformation along the Y axis by the given angle." 18597 }, 18598 { 18599 "name": "translate()", 18600 "description": "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." 18601 }, 18602 { 18603 "name": "translate3d()", 18604 "description": "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." 18605 }, 18606 { 18607 "name": "translateX()", 18608 "description": "Specifies a translation by the given amount in the X direction." 18609 }, 18610 { 18611 "name": "translateY()", 18612 "description": "Specifies a translation by the given amount in the Y direction." 18613 }, 18614 { 18615 "name": "translateZ()", 18616 "description": "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." 18617 } 18618 ], 18619 "relevance": 50, 18620 "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.", 18621 "restrictions": [ 18622 "enum" 18623 ] 18624 }, 18625 { 18626 "name": "-webkit-transform-origin", 18627 "browsers": [ 18628 "C", 18629 "O15", 18630 "S3.1" 18631 ], 18632 "relevance": 50, 18633 "description": "Establishes the origin of transformation for an element.", 18634 "restrictions": [ 18635 "position", 18636 "length", 18637 "percentage" 18638 ] 18639 }, 18640 { 18641 "name": "-webkit-transform-origin-x", 18642 "browsers": [ 18643 "C", 18644 "S3.1" 18645 ], 18646 "relevance": 50, 18647 "description": "The x coordinate of the origin for transforms applied to an element with respect to its border box.", 18648 "restrictions": [ 18649 "length", 18650 "percentage" 18651 ] 18652 }, 18653 { 18654 "name": "-webkit-transform-origin-y", 18655 "browsers": [ 18656 "C", 18657 "S3.1" 18658 ], 18659 "relevance": 50, 18660 "description": "The y coordinate of the origin for transforms applied to an element with respect to its border box.", 18661 "restrictions": [ 18662 "length", 18663 "percentage" 18664 ] 18665 }, 18666 { 18667 "name": "-webkit-transform-origin-z", 18668 "browsers": [ 18669 "C", 18670 "S4" 18671 ], 18672 "relevance": 50, 18673 "description": "The z coordinate of the origin for transforms applied to an element with respect to its border box.", 18674 "restrictions": [ 18675 "length", 18676 "percentage" 18677 ] 18678 }, 18679 { 18680 "name": "-webkit-transform-style", 18681 "browsers": [ 18682 "C", 18683 "S4" 18684 ], 18685 "values": [ 18686 { 18687 "name": "flat", 18688 "description": "All children of this element are rendered flattened into the 2D plane of the element." 18689 } 18690 ], 18691 "relevance": 50, 18692 "description": "Defines how nested elements are rendered in 3D space.", 18693 "restrictions": [ 18694 "enum" 18695 ] 18696 }, 18697 { 18698 "name": "-webkit-transition", 18699 "browsers": [ 18700 "C", 18701 "O12", 18702 "S5" 18703 ], 18704 "values": [ 18705 { 18706 "name": "all", 18707 "description": "Every property that is able to undergo a transition will do so." 18708 }, 18709 { 18710 "name": "none", 18711 "description": "No property will transition." 18712 } 18713 ], 18714 "relevance": 50, 18715 "description": "Shorthand property combines four of the transition properties into a single property.", 18716 "restrictions": [ 18717 "time", 18718 "property", 18719 "timing-function", 18720 "enum" 18721 ] 18722 }, 18723 { 18724 "name": "-webkit-transition-delay", 18725 "browsers": [ 18726 "C", 18727 "O12", 18728 "S5" 18729 ], 18730 "relevance": 50, 18731 "description": "Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.", 18732 "restrictions": [ 18733 "time" 18734 ] 18735 }, 18736 { 18737 "name": "-webkit-transition-duration", 18738 "browsers": [ 18739 "C", 18740 "O12", 18741 "S5" 18742 ], 18743 "relevance": 50, 18744 "description": "Specifies how long the transition from the old value to the new value should take.", 18745 "restrictions": [ 18746 "time" 18747 ] 18748 }, 18749 { 18750 "name": "-webkit-transition-property", 18751 "browsers": [ 18752 "C", 18753 "O12", 18754 "S5" 18755 ], 18756 "values": [ 18757 { 18758 "name": "all", 18759 "description": "Every property that is able to undergo a transition will do so." 18760 }, 18761 { 18762 "name": "none", 18763 "description": "No property will transition." 18764 } 18765 ], 18766 "relevance": 50, 18767 "description": "Specifies the name of the CSS property to which the transition is applied.", 18768 "restrictions": [ 18769 "property" 18770 ] 18771 }, 18772 { 18773 "name": "-webkit-transition-timing-function", 18774 "browsers": [ 18775 "C", 18776 "O12", 18777 "S5" 18778 ], 18779 "relevance": 50, 18780 "description": "Describes how the intermediate values used during a transition will be calculated.", 18781 "restrictions": [ 18782 "timing-function" 18783 ] 18784 }, 18785 { 18786 "name": "-webkit-user-drag", 18787 "browsers": [ 18788 "S3" 18789 ], 18790 "values": [ 18791 { 18792 "name": "auto" 18793 }, 18794 { 18795 "name": "element" 18796 }, 18797 { 18798 "name": "none" 18799 } 18800 ], 18801 "relevance": 50, 18802 "restrictions": [ 18803 "enum" 18804 ] 18805 }, 18806 { 18807 "name": "-webkit-user-modify", 18808 "browsers": [ 18809 "C", 18810 "S3" 18811 ], 18812 "values": [ 18813 { 18814 "name": "read-only" 18815 }, 18816 { 18817 "name": "read-write" 18818 }, 18819 { 18820 "name": "read-write-plaintext-only" 18821 } 18822 ], 18823 "status": "nonstandard", 18824 "syntax": "read-only | read-write | read-write-plaintext-only", 18825 "relevance": 0, 18826 "description": "Determines whether a user can edit the content of an element.", 18827 "restrictions": [ 18828 "enum" 18829 ] 18830 }, 18831 { 18832 "name": "-webkit-user-select", 18833 "browsers": [ 18834 "C", 18835 "S3" 18836 ], 18837 "values": [ 18838 { 18839 "name": "auto" 18840 }, 18841 { 18842 "name": "none" 18843 }, 18844 { 18845 "name": "text" 18846 } 18847 ], 18848 "relevance": 50, 18849 "description": "Controls the appearance of selection.", 18850 "restrictions": [ 18851 "enum" 18852 ] 18853 }, 18854 { 18855 "name": "white-space", 18856 "values": [ 18857 { 18858 "name": "normal", 18859 "description": "Sets 'white-space-collapsing' to 'collapse' and 'text-wrap' to 'normal'." 18860 }, 18861 { 18862 "name": "nowrap", 18863 "description": "Sets 'white-space-collapsing' to 'collapse' and 'text-wrap' to 'none'." 18864 }, 18865 { 18866 "name": "pre", 18867 "description": "Sets 'white-space-collapsing' to 'preserve' and 'text-wrap' to 'none'." 18868 }, 18869 { 18870 "name": "pre-line", 18871 "description": "Sets 'white-space-collapsing' to 'preserve-breaks' and 'text-wrap' to 'normal'." 18872 }, 18873 { 18874 "name": "pre-wrap", 18875 "description": "Sets 'white-space-collapsing' to 'preserve' and 'text-wrap' to 'normal'." 18876 } 18877 ], 18878 "syntax": "normal | pre | nowrap | pre-wrap | pre-line | break-spaces", 18879 "relevance": 88, 18880 "references": [ 18881 { 18882 "name": "MDN Reference", 18883 "url": "https://developer.mozilla.org/docs/Web/CSS/white-space" 18884 } 18885 ], 18886 "description": "Shorthand property for the 'white-space-collapsing' and 'text-wrap' properties.", 18887 "restrictions": [ 18888 "enum" 18889 ] 18890 }, 18891 { 18892 "name": "widows", 18893 "browsers": [ 18894 "E12", 18895 "S1.3", 18896 "C25", 18897 "IE8", 18898 "O9.2" 18899 ], 18900 "syntax": "<integer>", 18901 "relevance": 51, 18902 "references": [ 18903 { 18904 "name": "MDN Reference", 18905 "url": "https://developer.mozilla.org/docs/Web/CSS/widows" 18906 } 18907 ], 18908 "description": "Specifies the minimum number of line boxes of a block container that must be left in a fragment after a break.", 18909 "restrictions": [ 18910 "integer" 18911 ] 18912 }, 18913 { 18914 "name": "width", 18915 "values": [ 18916 { 18917 "name": "auto", 18918 "description": "The width depends on the values of other properties." 18919 }, 18920 { 18921 "name": "fit-content", 18922 "description": "Use the fit-content inline size or fit-content block size, as appropriate to the writing mode." 18923 }, 18924 { 18925 "name": "max-content", 18926 "description": "Use the max-content inline size or max-content block size, as appropriate to the writing mode." 18927 }, 18928 { 18929 "name": "min-content", 18930 "description": "Use the min-content inline size or min-content block size, as appropriate to the writing mode." 18931 } 18932 ], 18933 "syntax": "<viewport-length>{1,2}", 18934 "relevance": 96, 18935 "references": [ 18936 { 18937 "name": "MDN Reference", 18938 "url": "https://developer.mozilla.org/docs/Web/CSS/width" 18939 } 18940 ], 18941 "description": "Specifies the width of the content area, padding area or border area (depending on 'box-sizing') of certain boxes.", 18942 "restrictions": [ 18943 "length", 18944 "percentage" 18945 ] 18946 }, 18947 { 18948 "name": "will-change", 18949 "browsers": [ 18950 "E79", 18951 "FF36", 18952 "S9.1", 18953 "C36", 18954 "O24" 18955 ], 18956 "values": [ 18957 { 18958 "name": "auto", 18959 "description": "Expresses no particular intent." 18960 }, 18961 { 18962 "name": "contents", 18963 "description": "Indicates that the author expects to animate or change something about the element’s contents in the near future." 18964 }, 18965 { 18966 "name": "scroll-position", 18967 "description": "Indicates that the author expects to animate or change the scroll position of the element in the near future." 18968 } 18969 ], 18970 "syntax": "auto | <animateable-feature>#", 18971 "relevance": 62, 18972 "references": [ 18973 { 18974 "name": "MDN Reference", 18975 "url": "https://developer.mozilla.org/docs/Web/CSS/will-change" 18976 } 18977 ], 18978 "description": "Provides a rendering hint to the user agent, stating what kinds of changes the author expects to perform on the element.", 18979 "restrictions": [ 18980 "enum", 18981 "identifier" 18982 ] 18983 }, 18984 { 18985 "name": "word-break", 18986 "values": [ 18987 { 18988 "name": "break-all", 18989 "description": "Lines may break between any two grapheme clusters for non-CJK scripts." 18990 }, 18991 { 18992 "name": "keep-all", 18993 "description": "Block characters can no longer create implied break points." 18994 }, 18995 { 18996 "name": "normal", 18997 "description": "Breaks non-CJK scripts according to their own rules." 18998 } 18999 ], 19000 "syntax": "normal | break-all | keep-all | break-word", 19001 "relevance": 72, 19002 "references": [ 19003 { 19004 "name": "MDN Reference", 19005 "url": "https://developer.mozilla.org/docs/Web/CSS/word-break" 19006 } 19007 ], 19008 "description": "Specifies line break opportunities for non-CJK scripts.", 19009 "restrictions": [ 19010 "enum" 19011 ] 19012 }, 19013 { 19014 "name": "word-spacing", 19015 "values": [ 19016 { 19017 "name": "normal", 19018 "description": "No additional spacing is applied. Computes to zero." 19019 } 19020 ], 19021 "syntax": "normal | <length-percentage>", 19022 "relevance": 57, 19023 "references": [ 19024 { 19025 "name": "MDN Reference", 19026 "url": "https://developer.mozilla.org/docs/Web/CSS/word-spacing" 19027 } 19028 ], 19029 "description": "Specifies additional spacing between “words”.", 19030 "restrictions": [ 19031 "length", 19032 "percentage" 19033 ] 19034 }, 19035 { 19036 "name": "word-wrap", 19037 "values": [ 19038 { 19039 "name": "break-word", 19040 "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." 19041 }, 19042 { 19043 "name": "normal", 19044 "description": "Lines may break only at allowed break points." 19045 } 19046 ], 19047 "syntax": "normal | break-word", 19048 "relevance": 77, 19049 "references": [ 19050 { 19051 "name": "MDN Reference", 19052 "url": "https://developer.mozilla.org/docs/Web/CSS/overflow-wrap" 19053 } 19054 ], 19055 "description": "Specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit.", 19056 "restrictions": [ 19057 "enum" 19058 ] 19059 }, 19060 { 19061 "name": "writing-mode", 19062 "values": [ 19063 { 19064 "name": "horizontal-tb", 19065 "description": "Top-to-bottom block flow direction. The writing mode is horizontal." 19066 }, 19067 { 19068 "name": "sideways-lr", 19069 "description": "Left-to-right block flow direction. The writing mode is vertical, while the typographic mode is horizontal." 19070 }, 19071 { 19072 "name": "sideways-rl", 19073 "description": "Right-to-left block flow direction. The writing mode is vertical, while the typographic mode is horizontal." 19074 }, 19075 { 19076 "name": "vertical-lr", 19077 "description": "Left-to-right block flow direction. The writing mode is vertical." 19078 }, 19079 { 19080 "name": "vertical-rl", 19081 "description": "Right-to-left block flow direction. The writing mode is vertical." 19082 } 19083 ], 19084 "syntax": "horizontal-tb | vertical-rl | vertical-lr | sideways-rl | sideways-lr", 19085 "relevance": 50, 19086 "references": [ 19087 { 19088 "name": "MDN Reference", 19089 "url": "https://developer.mozilla.org/docs/Web/CSS/writing-mode" 19090 } 19091 ], 19092 "description": "This is a shorthand property for both 'direction' and 'block-progression'.", 19093 "restrictions": [ 19094 "enum" 19095 ] 19096 }, 19097 { 19098 "name": "z-index", 19099 "values": [ 19100 { 19101 "name": "auto", 19102 "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." 19103 } 19104 ], 19105 "syntax": "auto | <integer>", 19106 "relevance": 91, 19107 "references": [ 19108 { 19109 "name": "MDN Reference", 19110 "url": "https://developer.mozilla.org/docs/Web/CSS/z-index" 19111 } 19112 ], 19113 "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.", 19114 "restrictions": [ 19115 "integer" 19116 ] 19117 }, 19118 { 19119 "name": "zoom", 19120 "browsers": [ 19121 "E12", 19122 "S3.1", 19123 "C1", 19124 "IE5.5", 19125 "O15" 19126 ], 19127 "values": [ 19128 { 19129 "name": "normal" 19130 } 19131 ], 19132 "syntax": "auto | <number> | <percentage>", 19133 "relevance": 74, 19134 "references": [ 19135 { 19136 "name": "MDN Reference", 19137 "url": "https://developer.mozilla.org/docs/Web/CSS/zoom" 19138 } 19139 ], 19140 "description": "Non-standard. Specifies the magnification scale of the object. See 'transform: scale()' for a standards-based alternative.", 19141 "restrictions": [ 19142 "enum", 19143 "integer", 19144 "number", 19145 "percentage" 19146 ] 19147 }, 19148 { 19149 "name": "-ms-ime-align", 19150 "status": "nonstandard", 19151 "syntax": "auto | after", 19152 "relevance": 0, 19153 "description": "Aligns the Input Method Editor (IME) candidate window box relative to the element on which the IME composition is active." 19154 }, 19155 { 19156 "name": "-moz-binding", 19157 "status": "nonstandard", 19158 "syntax": "<url> | none", 19159 "relevance": 0, 19160 "browsers": [ 19161 "FF1" 19162 ], 19163 "references": [ 19164 { 19165 "name": "MDN Reference", 19166 "url": "https://developer.mozilla.org/docs/Web/CSS/-moz-binding" 19167 } 19168 ], 19169 "description": "The -moz-binding CSS property is used by Mozilla-based applications to attach an XBL binding to a DOM element." 19170 }, 19171 { 19172 "name": "-moz-context-properties", 19173 "status": "nonstandard", 19174 "syntax": "none | [ fill | fill-opacity | stroke | stroke-opacity ]#", 19175 "relevance": 0, 19176 "browsers": [ 19177 "FF55" 19178 ], 19179 "references": [ 19180 { 19181 "name": "MDN Reference", 19182 "url": "https://developer.mozilla.org/docs/Web/CSS/-moz-context-properties" 19183 } 19184 ], 19185 "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." 19186 }, 19187 { 19188 "name": "-moz-float-edge", 19189 "status": "nonstandard", 19190 "syntax": "border-box | content-box | margin-box | padding-box", 19191 "relevance": 0, 19192 "browsers": [ 19193 "FF1" 19194 ], 19195 "references": [ 19196 { 19197 "name": "MDN Reference", 19198 "url": "https://developer.mozilla.org/docs/Web/CSS/-moz-float-edge" 19199 } 19200 ], 19201 "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." 19202 }, 19203 { 19204 "name": "-moz-force-broken-image-icon", 19205 "status": "nonstandard", 19206 "syntax": "<integer>", 19207 "relevance": 0, 19208 "browsers": [ 19209 "FF1" 19210 ], 19211 "references": [ 19212 { 19213 "name": "MDN Reference", 19214 "url": "https://developer.mozilla.org/docs/Web/CSS/-moz-force-broken-image-icon" 19215 } 19216 ], 19217 "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." 19218 }, 19219 { 19220 "name": "-moz-image-region", 19221 "status": "nonstandard", 19222 "syntax": "<shape> | auto", 19223 "relevance": 0, 19224 "browsers": [ 19225 "FF1" 19226 ], 19227 "references": [ 19228 { 19229 "name": "MDN Reference", 19230 "url": "https://developer.mozilla.org/docs/Web/CSS/-moz-image-region" 19231 } 19232 ], 19233 "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." 19234 }, 19235 { 19236 "name": "-moz-orient", 19237 "status": "nonstandard", 19238 "syntax": "inline | block | horizontal | vertical", 19239 "relevance": 0, 19240 "browsers": [ 19241 "FF6" 19242 ], 19243 "references": [ 19244 { 19245 "name": "MDN Reference", 19246 "url": "https://developer.mozilla.org/docs/Web/CSS/-moz-orient" 19247 } 19248 ], 19249 "description": "The -moz-orient CSS property specifies the orientation of the element to which it's applied." 19250 }, 19251 { 19252 "name": "-moz-outline-radius", 19253 "status": "nonstandard", 19254 "syntax": "<outline-radius>{1,4} [ / <outline-radius>{1,4} ]?", 19255 "relevance": 0, 19256 "browsers": [ 19257 "FF1" 19258 ], 19259 "references": [ 19260 { 19261 "name": "MDN Reference", 19262 "url": "https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius" 19263 } 19264 ], 19265 "description": "In Mozilla applications like Firefox, the -moz-outline-radius CSS property can be used to give an element's outline rounded corners." 19266 }, 19267 { 19268 "name": "-moz-outline-radius-bottomleft", 19269 "status": "nonstandard", 19270 "syntax": "<outline-radius>", 19271 "relevance": 0, 19272 "browsers": [ 19273 "FF1" 19274 ], 19275 "references": [ 19276 { 19277 "name": "MDN Reference", 19278 "url": "https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-bottomleft" 19279 } 19280 ], 19281 "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." 19282 }, 19283 { 19284 "name": "-moz-outline-radius-bottomright", 19285 "status": "nonstandard", 19286 "syntax": "<outline-radius>", 19287 "relevance": 0, 19288 "browsers": [ 19289 "FF1" 19290 ], 19291 "references": [ 19292 { 19293 "name": "MDN Reference", 19294 "url": "https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-bottomright" 19295 } 19296 ], 19297 "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." 19298 }, 19299 { 19300 "name": "-moz-outline-radius-topleft", 19301 "status": "nonstandard", 19302 "syntax": "<outline-radius>", 19303 "relevance": 0, 19304 "browsers": [ 19305 "FF1" 19306 ], 19307 "references": [ 19308 { 19309 "name": "MDN Reference", 19310 "url": "https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-topleft" 19311 } 19312 ], 19313 "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." 19314 }, 19315 { 19316 "name": "-moz-outline-radius-topright", 19317 "status": "nonstandard", 19318 "syntax": "<outline-radius>", 19319 "relevance": 0, 19320 "browsers": [ 19321 "FF1" 19322 ], 19323 "references": [ 19324 { 19325 "name": "MDN Reference", 19326 "url": "https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-topright" 19327 } 19328 ], 19329 "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." 19330 }, 19331 { 19332 "name": "-moz-stack-sizing", 19333 "status": "nonstandard", 19334 "syntax": "ignore | stretch-to-fit", 19335 "relevance": 0, 19336 "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." 19337 }, 19338 { 19339 "name": "-moz-text-blink", 19340 "status": "nonstandard", 19341 "syntax": "none | blink", 19342 "relevance": 0, 19343 "description": "The -moz-text-blink non-standard Mozilla CSS extension specifies the blink mode." 19344 }, 19345 { 19346 "name": "-moz-user-input", 19347 "status": "nonstandard", 19348 "syntax": "auto | none | enabled | disabled", 19349 "relevance": 0, 19350 "browsers": [ 19351 "FF1" 19352 ], 19353 "references": [ 19354 { 19355 "name": "MDN Reference", 19356 "url": "https://developer.mozilla.org/docs/Web/CSS/-moz-user-input" 19357 } 19358 ], 19359 "description": "In Mozilla applications, -moz-user-input determines if an element will accept user input." 19360 }, 19361 { 19362 "name": "-moz-user-modify", 19363 "status": "nonstandard", 19364 "syntax": "read-only | read-write | write-only", 19365 "relevance": 0, 19366 "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." 19367 }, 19368 { 19369 "name": "-moz-window-dragging", 19370 "status": "nonstandard", 19371 "syntax": "drag | no-drag", 19372 "relevance": 0, 19373 "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." 19374 }, 19375 { 19376 "name": "-moz-window-shadow", 19377 "status": "nonstandard", 19378 "syntax": "default | menu | tooltip | sheet | none", 19379 "relevance": 0, 19380 "description": "The -moz-window-shadow CSS property specifies whether a window will have a shadow. It only works on Mac OS X." 19381 }, 19382 { 19383 "name": "-webkit-border-before", 19384 "status": "nonstandard", 19385 "syntax": "<'border-width'> || <'border-style'> || <'color'>", 19386 "relevance": 0, 19387 "browsers": [ 19388 "E79", 19389 "S5.1", 19390 "C8", 19391 "O15" 19392 ], 19393 "references": [ 19394 { 19395 "name": "MDN Reference", 19396 "url": "https://developer.mozilla.org/docs/Web/CSS/-webkit-border-before" 19397 } 19398 ], 19399 "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." 19400 }, 19401 { 19402 "name": "-webkit-border-before-color", 19403 "status": "nonstandard", 19404 "syntax": "<'color'>", 19405 "relevance": 0, 19406 "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." 19407 }, 19408 { 19409 "name": "-webkit-border-before-style", 19410 "status": "nonstandard", 19411 "syntax": "<'border-style'>", 19412 "relevance": 0, 19413 "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." 19414 }, 19415 { 19416 "name": "-webkit-border-before-width", 19417 "status": "nonstandard", 19418 "syntax": "<'border-width'>", 19419 "relevance": 0, 19420 "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." 19421 }, 19422 { 19423 "name": "-webkit-line-clamp", 19424 "syntax": "none | <integer>", 19425 "relevance": 50, 19426 "browsers": [ 19427 "E17", 19428 "FF68", 19429 "S5", 19430 "C6", 19431 "O15" 19432 ], 19433 "references": [ 19434 { 19435 "name": "MDN Reference", 19436 "url": "https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp" 19437 } 19438 ], 19439 "description": "The -webkit-line-clamp CSS property allows limiting of the contents of a block container to the specified number of lines." 19440 }, 19441 { 19442 "name": "-webkit-mask", 19443 "status": "nonstandard", 19444 "syntax": "[ <mask-reference> || <position> [ / <bg-size> ]? || <repeat-style> || [ <box> | border | padding | content | text ] || [ <box> | border | padding | content ] ]#", 19445 "relevance": 0, 19446 "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." 19447 }, 19448 { 19449 "name": "-webkit-mask-attachment", 19450 "status": "nonstandard", 19451 "syntax": "<attachment>#", 19452 "relevance": 0, 19453 "browsers": [ 19454 "S4", 19455 "C1" 19456 ], 19457 "references": [ 19458 { 19459 "name": "MDN Reference", 19460 "url": "https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-attachment" 19461 } 19462 ], 19463 "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." 19464 }, 19465 { 19466 "name": "-webkit-mask-composite", 19467 "status": "nonstandard", 19468 "syntax": "<composite-style>#", 19469 "relevance": 0, 19470 "browsers": [ 19471 "E18", 19472 "FF53", 19473 "S3.2", 19474 "C1", 19475 "O15" 19476 ], 19477 "references": [ 19478 { 19479 "name": "MDN Reference", 19480 "url": "https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-composite" 19481 } 19482 ], 19483 "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." 19484 }, 19485 { 19486 "name": "-webkit-mask-position", 19487 "status": "nonstandard", 19488 "syntax": "<position>#", 19489 "relevance": 0, 19490 "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." 19491 }, 19492 { 19493 "name": "-webkit-mask-position-x", 19494 "status": "nonstandard", 19495 "syntax": "[ <length-percentage> | left | center | right ]#", 19496 "relevance": 0, 19497 "browsers": [ 19498 "E18", 19499 "FF49", 19500 "S3.2", 19501 "C1", 19502 "O15" 19503 ], 19504 "references": [ 19505 { 19506 "name": "MDN Reference", 19507 "url": "https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-position-x" 19508 } 19509 ], 19510 "description": "The -webkit-mask-position-x CSS property sets the initial horizontal position of a mask image." 19511 }, 19512 { 19513 "name": "-webkit-mask-position-y", 19514 "status": "nonstandard", 19515 "syntax": "[ <length-percentage> | top | center | bottom ]#", 19516 "relevance": 0, 19517 "browsers": [ 19518 "E18", 19519 "FF49", 19520 "S3.2", 19521 "C1", 19522 "O15" 19523 ], 19524 "references": [ 19525 { 19526 "name": "MDN Reference", 19527 "url": "https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-position-y" 19528 } 19529 ], 19530 "description": "The -webkit-mask-position-y CSS property sets the initial vertical position of a mask image." 19531 }, 19532 { 19533 "name": "-webkit-mask-repeat-x", 19534 "status": "nonstandard", 19535 "syntax": "repeat | no-repeat | space | round", 19536 "relevance": 0, 19537 "browsers": [ 19538 "E18", 19539 "S5", 19540 "C3", 19541 "O15" 19542 ], 19543 "references": [ 19544 { 19545 "name": "MDN Reference", 19546 "url": "https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-repeat-x" 19547 } 19548 ], 19549 "description": "The -webkit-mask-repeat-x property specifies whether and how a mask image is repeated (tiled) horizontally." 19550 }, 19551 { 19552 "name": "-webkit-mask-repeat-y", 19553 "status": "nonstandard", 19554 "syntax": "repeat | no-repeat | space | round", 19555 "relevance": 0, 19556 "browsers": [ 19557 "E18", 19558 "S5", 19559 "C3", 19560 "O15" 19561 ], 19562 "references": [ 19563 { 19564 "name": "MDN Reference", 19565 "url": "https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-repeat-y" 19566 } 19567 ], 19568 "description": "The -webkit-mask-repeat-y property specifies whether and how a mask image is repeated (tiled) vertically." 19569 }, 19570 { 19571 "name": "appearance", 19572 "status": "experimental", 19573 "syntax": "none | auto | button | textfield | menulist-button | <compat-auto>", 19574 "relevance": 60, 19575 "browsers": [ 19576 "E84", 19577 "FF1", 19578 "S3", 19579 "C84", 19580 "O70" 19581 ], 19582 "references": [ 19583 { 19584 "name": "MDN Reference", 19585 "url": "https://developer.mozilla.org/docs/Web/CSS/appearance" 19586 } 19587 ], 19588 "description": "Changes the appearance of buttons and other controls to resemble native controls." 19589 }, 19590 { 19591 "name": "aspect-ratio", 19592 "status": "experimental", 19593 "syntax": "auto | <ratio>", 19594 "relevance": 50, 19595 "browsers": [ 19596 "E79", 19597 "FF71", 19598 "C79" 19599 ], 19600 "references": [ 19601 { 19602 "name": "MDN Reference", 19603 "url": "https://developer.mozilla.org/docs/Web/CSS/aspect-ratio" 19604 } 19605 ], 19606 "description": "The aspect-ratio CSS property sets a preferred aspect ratio for the box, which will be used in the calculation of auto sizes and some other layout functions." 19607 }, 19608 { 19609 "name": "azimuth", 19610 "status": "obsolete", 19611 "syntax": "<angle> | [ [ left-side | far-left | left | center-left | center | center-right | right | far-right | right-side ] || behind ] | leftwards | rightwards", 19612 "relevance": 0, 19613 "references": [ 19614 { 19615 "name": "MDN Reference", 19616 "url": "https://developer.mozilla.org/docs/Web/CSS/azimuth" 19617 } 19618 ], 19619 "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." 19620 }, 19621 { 19622 "name": "backdrop-filter", 19623 "syntax": "none | <filter-function-list>", 19624 "relevance": 51, 19625 "browsers": [ 19626 "E17", 19627 "FF70", 19628 "S9", 19629 "C76", 19630 "O34" 19631 ], 19632 "references": [ 19633 { 19634 "name": "MDN Reference", 19635 "url": "https://developer.mozilla.org/docs/Web/CSS/backdrop-filter" 19636 } 19637 ], 19638 "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." 19639 }, 19640 { 19641 "name": "border-block", 19642 "syntax": "<'border-top-width'> || <'border-top-style'> || <'color'>", 19643 "relevance": 50, 19644 "browsers": [ 19645 "E79", 19646 "FF66", 19647 "C69", 19648 "O56" 19649 ], 19650 "references": [ 19651 { 19652 "name": "MDN Reference", 19653 "url": "https://developer.mozilla.org/docs/Web/CSS/border-block" 19654 } 19655 ], 19656 "description": "The border-block CSS property is a shorthand property for setting the individual logical block border property values in a single place in the style sheet." 19657 }, 19658 { 19659 "name": "border-block-color", 19660 "syntax": "<'border-top-color'>{1,2}", 19661 "relevance": 50, 19662 "browsers": [ 19663 "E79", 19664 "FF66", 19665 "C69", 19666 "O56" 19667 ], 19668 "references": [ 19669 { 19670 "name": "MDN Reference", 19671 "url": "https://developer.mozilla.org/docs/Web/CSS/border-block-color" 19672 } 19673 ], 19674 "description": "The border-block-color CSS property defines the color of the logical block borders of an element, which maps to a physical border color depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-color and border-bottom-color, or border-right-color and border-left-color property depending on the values defined for writing-mode, direction, and text-orientation." 19675 }, 19676 { 19677 "name": "border-block-style", 19678 "syntax": "<'border-top-style'>", 19679 "relevance": 50, 19680 "browsers": [ 19681 "E79", 19682 "FF66", 19683 "C69", 19684 "O56" 19685 ], 19686 "references": [ 19687 { 19688 "name": "MDN Reference", 19689 "url": "https://developer.mozilla.org/docs/Web/CSS/border-block-style" 19690 } 19691 ], 19692 "description": "The border-block-style CSS property defines the style of the logical block borders of an element, which maps to a physical border style depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-style and border-bottom-style, or border-left-style and border-right-style properties depending on the values defined for writing-mode, direction, and text-orientation." 19693 }, 19694 { 19695 "name": "border-block-width", 19696 "syntax": "<'border-top-width'>", 19697 "relevance": 50, 19698 "browsers": [ 19699 "E79", 19700 "FF66", 19701 "C69", 19702 "O56" 19703 ], 19704 "references": [ 19705 { 19706 "name": "MDN Reference", 19707 "url": "https://developer.mozilla.org/docs/Web/CSS/border-block-width" 19708 } 19709 ], 19710 "description": "The border-block-width CSS property defines the width of the logical block borders of an element, which maps to a physical border width depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-width and border-bottom-width, or border-left-width, and border-right-width property depending on the values defined for writing-mode, direction, and text-orientation." 19711 }, 19712 { 19713 "name": "border-end-end-radius", 19714 "syntax": "<length-percentage>{1,2}", 19715 "relevance": 50, 19716 "browsers": [ 19717 "FF66" 19718 ], 19719 "references": [ 19720 { 19721 "name": "MDN Reference", 19722 "url": "https://developer.mozilla.org/docs/Web/CSS/border-end-end-radius" 19723 } 19724 ], 19725 "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." 19726 }, 19727 { 19728 "name": "border-end-start-radius", 19729 "syntax": "<length-percentage>{1,2}", 19730 "relevance": 50, 19731 "browsers": [ 19732 "FF66" 19733 ], 19734 "references": [ 19735 { 19736 "name": "MDN Reference", 19737 "url": "https://developer.mozilla.org/docs/Web/CSS/border-end-start-radius" 19738 } 19739 ], 19740 "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." 19741 }, 19742 { 19743 "name": "border-inline", 19744 "syntax": "<'border-top-width'> || <'border-top-style'> || <'color'>", 19745 "relevance": 50, 19746 "browsers": [ 19747 "E79", 19748 "FF66", 19749 "C69", 19750 "O56" 19751 ], 19752 "references": [ 19753 { 19754 "name": "MDN Reference", 19755 "url": "https://developer.mozilla.org/docs/Web/CSS/border-inline" 19756 } 19757 ], 19758 "description": "The border-inline CSS property is a shorthand property for setting the individual logical inline border property values in a single place in the style sheet." 19759 }, 19760 { 19761 "name": "border-inline-color", 19762 "syntax": "<'border-top-color'>{1,2}", 19763 "relevance": 50, 19764 "browsers": [ 19765 "E79", 19766 "FF66", 19767 "C69", 19768 "O56" 19769 ], 19770 "references": [ 19771 { 19772 "name": "MDN Reference", 19773 "url": "https://developer.mozilla.org/docs/Web/CSS/border-inline-color" 19774 } 19775 ], 19776 "description": "The border-inline-color CSS property defines the color of the logical inline borders of an element, which maps to a physical border color depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-color and border-bottom-color, or border-right-color and border-left-color property depending on the values defined for writing-mode, direction, and text-orientation." 19777 }, 19778 { 19779 "name": "border-inline-style", 19780 "syntax": "<'border-top-style'>", 19781 "relevance": 50, 19782 "browsers": [ 19783 "E79", 19784 "FF66", 19785 "C69", 19786 "O56" 19787 ], 19788 "references": [ 19789 { 19790 "name": "MDN Reference", 19791 "url": "https://developer.mozilla.org/docs/Web/CSS/border-inline-style" 19792 } 19793 ], 19794 "description": "The border-inline-style CSS property defines the style of the logical inline borders of an element, which maps to a physical border style depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-style and border-bottom-style, or border-left-style and border-right-style properties depending on the values defined for writing-mode, direction, and text-orientation." 19795 }, 19796 { 19797 "name": "border-inline-width", 19798 "syntax": "<'border-top-width'>", 19799 "relevance": 50, 19800 "browsers": [ 19801 "E79", 19802 "FF66", 19803 "C69", 19804 "O56" 19805 ], 19806 "references": [ 19807 { 19808 "name": "MDN Reference", 19809 "url": "https://developer.mozilla.org/docs/Web/CSS/border-inline-width" 19810 } 19811 ], 19812 "description": "The border-inline-width CSS property defines the width of the logical inline borders of an element, which maps to a physical border width depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-width and border-bottom-width, or border-left-width, and border-right-width property depending on the values defined for writing-mode, direction, and text-orientation." 19813 }, 19814 { 19815 "name": "border-start-end-radius", 19816 "syntax": "<length-percentage>{1,2}", 19817 "relevance": 50, 19818 "browsers": [ 19819 "FF66" 19820 ], 19821 "references": [ 19822 { 19823 "name": "MDN Reference", 19824 "url": "https://developer.mozilla.org/docs/Web/CSS/border-start-end-radius" 19825 } 19826 ], 19827 "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." 19828 }, 19829 { 19830 "name": "border-start-start-radius", 19831 "syntax": "<length-percentage>{1,2}", 19832 "relevance": 50, 19833 "browsers": [ 19834 "FF66" 19835 ], 19836 "references": [ 19837 { 19838 "name": "MDN Reference", 19839 "url": "https://developer.mozilla.org/docs/Web/CSS/border-start-start-radius" 19840 } 19841 ], 19842 "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." 19843 }, 19844 { 19845 "name": "box-align", 19846 "status": "nonstandard", 19847 "syntax": "start | center | end | baseline | stretch", 19848 "relevance": 0, 19849 "browsers": [ 19850 "E12", 19851 "FF1", 19852 "S3", 19853 "C1", 19854 "O15" 19855 ], 19856 "references": [ 19857 { 19858 "name": "MDN Reference", 19859 "url": "https://developer.mozilla.org/docs/Web/CSS/box-align" 19860 } 19861 ], 19862 "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." 19863 }, 19864 { 19865 "name": "box-direction", 19866 "status": "nonstandard", 19867 "syntax": "normal | reverse | inherit", 19868 "relevance": 0, 19869 "browsers": [ 19870 "E12", 19871 "FF1", 19872 "S3", 19873 "C1", 19874 "O15" 19875 ], 19876 "references": [ 19877 { 19878 "name": "MDN Reference", 19879 "url": "https://developer.mozilla.org/docs/Web/CSS/box-direction" 19880 } 19881 ], 19882 "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)." 19883 }, 19884 { 19885 "name": "box-flex", 19886 "status": "nonstandard", 19887 "syntax": "<number>", 19888 "relevance": 0, 19889 "browsers": [ 19890 "E12", 19891 "FF1", 19892 "S3", 19893 "C1", 19894 "O15" 19895 ], 19896 "references": [ 19897 { 19898 "name": "MDN Reference", 19899 "url": "https://developer.mozilla.org/docs/Web/CSS/box-flex" 19900 } 19901 ], 19902 "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." 19903 }, 19904 { 19905 "name": "box-flex-group", 19906 "status": "nonstandard", 19907 "syntax": "<integer>", 19908 "relevance": 0, 19909 "browsers": [ 19910 "S3", 19911 "C1", 19912 "O15" 19913 ], 19914 "references": [ 19915 { 19916 "name": "MDN Reference", 19917 "url": "https://developer.mozilla.org/docs/Web/CSS/box-flex-group" 19918 } 19919 ], 19920 "description": "The box-flex-group CSS property assigns the flexbox's child elements to a flex group." 19921 }, 19922 { 19923 "name": "box-lines", 19924 "status": "nonstandard", 19925 "syntax": "single | multiple", 19926 "relevance": 0, 19927 "browsers": [ 19928 "S3", 19929 "C1", 19930 "O15" 19931 ], 19932 "references": [ 19933 { 19934 "name": "MDN Reference", 19935 "url": "https://developer.mozilla.org/docs/Web/CSS/box-lines" 19936 } 19937 ], 19938 "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)." 19939 }, 19940 { 19941 "name": "box-ordinal-group", 19942 "status": "nonstandard", 19943 "syntax": "<integer>", 19944 "relevance": 0, 19945 "browsers": [ 19946 "E12", 19947 "FF1", 19948 "S3", 19949 "C1", 19950 "O15" 19951 ], 19952 "references": [ 19953 { 19954 "name": "MDN Reference", 19955 "url": "https://developer.mozilla.org/docs/Web/CSS/box-ordinal-group" 19956 } 19957 ], 19958 "description": "The box-ordinal-group CSS property assigns the flexbox's child elements to an ordinal group." 19959 }, 19960 { 19961 "name": "box-orient", 19962 "status": "nonstandard", 19963 "syntax": "horizontal | vertical | inline-axis | block-axis | inherit", 19964 "relevance": 0, 19965 "browsers": [ 19966 "E12", 19967 "FF1", 19968 "S3", 19969 "C1", 19970 "O15" 19971 ], 19972 "references": [ 19973 { 19974 "name": "MDN Reference", 19975 "url": "https://developer.mozilla.org/docs/Web/CSS/box-orient" 19976 } 19977 ], 19978 "description": "The box-orient CSS property specifies whether an element lays out its contents horizontally or vertically." 19979 }, 19980 { 19981 "name": "box-pack", 19982 "status": "nonstandard", 19983 "syntax": "start | center | end | justify", 19984 "relevance": 0, 19985 "browsers": [ 19986 "E12", 19987 "FF1", 19988 "S3", 19989 "C1", 19990 "O15" 19991 ], 19992 "references": [ 19993 { 19994 "name": "MDN Reference", 19995 "url": "https://developer.mozilla.org/docs/Web/CSS/box-pack" 19996 } 19997 ], 19998 "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." 19999 }, 20000 { 20001 "name": "color-adjust", 20002 "syntax": "economy | exact", 20003 "relevance": 50, 20004 "browsers": [ 20005 "E79", 20006 "FF48", 20007 "S6", 20008 "C49", 20009 "O15" 20010 ], 20011 "references": [ 20012 { 20013 "name": "MDN Reference", 20014 "url": "https://developer.mozilla.org/docs/Web/CSS/color-adjust" 20015 } 20016 ], 20017 "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." 20018 }, 20019 { 20020 "name": "counter-set", 20021 "syntax": "[ <custom-ident> <integer>? ]+ | none", 20022 "relevance": 50, 20023 "browsers": [ 20024 "FF68" 20025 ], 20026 "references": [ 20027 { 20028 "name": "MDN Reference", 20029 "url": "https://developer.mozilla.org/docs/Web/CSS/counter-set" 20030 } 20031 ], 20032 "description": "The counter-set CSS property sets a CSS counter to a given value. It manipulates the value of existing counters, and will only create new counters if there isn't already a counter of the given name on the element." 20033 }, 20034 { 20035 "name": "font-optical-sizing", 20036 "syntax": "auto | none", 20037 "relevance": 50, 20038 "browsers": [ 20039 "E17", 20040 "FF62", 20041 "S11", 20042 "C79", 20043 "O66" 20044 ], 20045 "references": [ 20046 { 20047 "name": "MDN Reference", 20048 "url": "https://developer.mozilla.org/docs/Web/CSS/font-optical-sizing" 20049 } 20050 ], 20051 "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." 20052 }, 20053 { 20054 "name": "font-variation-settings", 20055 "syntax": "normal | [ <string> <number> ]#", 20056 "relevance": 50, 20057 "browsers": [ 20058 "E17", 20059 "FF62", 20060 "S11", 20061 "C62", 20062 "O49" 20063 ], 20064 "references": [ 20065 { 20066 "name": "MDN Reference", 20067 "url": "https://developer.mozilla.org/docs/Web/CSS/font-variation-settings" 20068 } 20069 ], 20070 "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." 20071 }, 20072 { 20073 "name": "font-smooth", 20074 "status": "nonstandard", 20075 "syntax": "auto | never | always | <absolute-size> | <length>", 20076 "relevance": 0, 20077 "browsers": [ 20078 "E79", 20079 "FF25", 20080 "S4", 20081 "C5", 20082 "O15" 20083 ], 20084 "references": [ 20085 { 20086 "name": "MDN Reference", 20087 "url": "https://developer.mozilla.org/docs/Web/CSS/font-smooth" 20088 } 20089 ], 20090 "description": "" 20091 }, 20092 { 20093 "name": "gap", 20094 "syntax": "<'row-gap'> <'column-gap'>?", 20095 "relevance": 50, 20096 "browsers": [ 20097 "E84", 20098 "FF63", 20099 "S10.1", 20100 "C84", 20101 "O70" 20102 ], 20103 "description": "The gap CSS property is a shorthand property for row-gap and column-gap specifying the gutters between grid rows and columns." 20104 }, 20105 { 20106 "name": "hanging-punctuation", 20107 "syntax": "none | [ first || [ force-end | allow-end ] || last ]", 20108 "relevance": 50, 20109 "browsers": [ 20110 "S10" 20111 ], 20112 "references": [ 20113 { 20114 "name": "MDN Reference", 20115 "url": "https://developer.mozilla.org/docs/Web/CSS/hanging-punctuation" 20116 } 20117 ], 20118 "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." 20119 }, 20120 { 20121 "name": "image-resolution", 20122 "status": "experimental", 20123 "syntax": "[ from-image || <resolution> ] && snap?", 20124 "relevance": 50, 20125 "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." 20126 }, 20127 { 20128 "name": "initial-letter", 20129 "status": "experimental", 20130 "syntax": "normal | [ <number> <integer>? ]", 20131 "relevance": 50, 20132 "browsers": [ 20133 "S9" 20134 ], 20135 "references": [ 20136 { 20137 "name": "MDN Reference", 20138 "url": "https://developer.mozilla.org/docs/Web/CSS/initial-letter" 20139 } 20140 ], 20141 "description": "The initial-letter CSS property specifies styling for dropped, raised, and sunken initial letters." 20142 }, 20143 { 20144 "name": "initial-letter-align", 20145 "status": "experimental", 20146 "syntax": "[ auto | alphabetic | hanging | ideographic ]", 20147 "relevance": 50, 20148 "references": [ 20149 { 20150 "name": "MDN Reference", 20151 "url": "https://developer.mozilla.org/docs/Web/CSS/initial-letter-align" 20152 } 20153 ], 20154 "description": "The initial-letter-align CSS property specifies the alignment of initial letters within a paragraph." 20155 }, 20156 { 20157 "name": "inset", 20158 "syntax": "<'top'>{1,4}", 20159 "relevance": 50, 20160 "browsers": [ 20161 "FF66" 20162 ], 20163 "references": [ 20164 { 20165 "name": "MDN Reference", 20166 "url": "https://developer.mozilla.org/docs/Web/CSS/inset" 20167 } 20168 ], 20169 "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." 20170 }, 20171 { 20172 "name": "inset-block", 20173 "syntax": "<'top'>{1,2}", 20174 "relevance": 50, 20175 "browsers": [ 20176 "E79", 20177 "FF63", 20178 "C69", 20179 "O56" 20180 ], 20181 "references": [ 20182 { 20183 "name": "MDN Reference", 20184 "url": "https://developer.mozilla.org/docs/Web/CSS/inset-block" 20185 } 20186 ], 20187 "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." 20188 }, 20189 { 20190 "name": "inset-block-end", 20191 "syntax": "<'top'>", 20192 "relevance": 50, 20193 "browsers": [ 20194 "E79", 20195 "FF63", 20196 "C69", 20197 "O56" 20198 ], 20199 "references": [ 20200 { 20201 "name": "MDN Reference", 20202 "url": "https://developer.mozilla.org/docs/Web/CSS/inset-block-end" 20203 } 20204 ], 20205 "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." 20206 }, 20207 { 20208 "name": "inset-block-start", 20209 "syntax": "<'top'>", 20210 "relevance": 50, 20211 "browsers": [ 20212 "E79", 20213 "FF63", 20214 "C69", 20215 "O56" 20216 ], 20217 "references": [ 20218 { 20219 "name": "MDN Reference", 20220 "url": "https://developer.mozilla.org/docs/Web/CSS/inset-block-start" 20221 } 20222 ], 20223 "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." 20224 }, 20225 { 20226 "name": "inset-inline", 20227 "syntax": "<'top'>{1,2}", 20228 "relevance": 50, 20229 "browsers": [ 20230 "E79", 20231 "FF63", 20232 "C69", 20233 "O56" 20234 ], 20235 "references": [ 20236 { 20237 "name": "MDN Reference", 20238 "url": "https://developer.mozilla.org/docs/Web/CSS/inset-inline" 20239 } 20240 ], 20241 "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." 20242 }, 20243 { 20244 "name": "inset-inline-end", 20245 "syntax": "<'top'>", 20246 "relevance": 50, 20247 "browsers": [ 20248 "E79", 20249 "FF63", 20250 "C69", 20251 "O56" 20252 ], 20253 "references": [ 20254 { 20255 "name": "MDN Reference", 20256 "url": "https://developer.mozilla.org/docs/Web/CSS/inset-inline-end" 20257 } 20258 ], 20259 "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." 20260 }, 20261 { 20262 "name": "inset-inline-start", 20263 "syntax": "<'top'>", 20264 "relevance": 50, 20265 "browsers": [ 20266 "E79", 20267 "FF63", 20268 "C69", 20269 "O56" 20270 ], 20271 "references": [ 20272 { 20273 "name": "MDN Reference", 20274 "url": "https://developer.mozilla.org/docs/Web/CSS/inset-inline-start" 20275 } 20276 ], 20277 "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." 20278 }, 20279 { 20280 "name": "line-clamp", 20281 "status": "experimental", 20282 "syntax": "none | <integer>", 20283 "relevance": 50, 20284 "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." 20285 }, 20286 { 20287 "name": "line-height-step", 20288 "status": "experimental", 20289 "syntax": "<length>", 20290 "relevance": 50, 20291 "browsers": [ 20292 "E79", 20293 "C60", 20294 "O47" 20295 ], 20296 "references": [ 20297 { 20298 "name": "MDN Reference", 20299 "url": "https://developer.mozilla.org/docs/Web/CSS/line-height-step" 20300 } 20301 ], 20302 "description": "The line-height-step CSS property defines the step units for line box heights. When the step unit is positive, line box heights are rounded up to the closest multiple of the unit. Negative values are invalid." 20303 }, 20304 { 20305 "name": "margin-block", 20306 "syntax": "<'margin-left'>{1,2}", 20307 "relevance": 50, 20308 "browsers": [ 20309 "E79", 20310 "FF66", 20311 "C69", 20312 "O56" 20313 ], 20314 "references": [ 20315 { 20316 "name": "MDN Reference", 20317 "url": "https://developer.mozilla.org/docs/Web/CSS/margin-block" 20318 } 20319 ], 20320 "description": "The margin-block CSS property defines the logical block start and end margins of an element, which maps to physical margins depending on the element's writing mode, directionality, and text orientation." 20321 }, 20322 { 20323 "name": "margin-inline", 20324 "syntax": "<'margin-left'>{1,2}", 20325 "relevance": 50, 20326 "browsers": [ 20327 "E79", 20328 "FF66", 20329 "C69", 20330 "O56" 20331 ], 20332 "references": [ 20333 { 20334 "name": "MDN Reference", 20335 "url": "https://developer.mozilla.org/docs/Web/CSS/margin-inline" 20336 } 20337 ], 20338 "description": "The margin-inline CSS property defines the logical inline start and end margins of an element, which maps to physical margins depending on the element's writing mode, directionality, and text orientation." 20339 }, 20340 { 20341 "name": "margin-trim", 20342 "status": "experimental", 20343 "syntax": "none | in-flow | all", 20344 "relevance": 50, 20345 "references": [ 20346 { 20347 "name": "MDN Reference", 20348 "url": "https://developer.mozilla.org/docs/Web/CSS/margin-trim" 20349 } 20350 ], 20351 "description": "The margin-trim property allows the container to trim the margins of its children where they adjoin the container’s edges." 20352 }, 20353 { 20354 "name": "mask", 20355 "syntax": "<mask-layer>#", 20356 "relevance": 50, 20357 "browsers": [ 20358 "E12", 20359 "FF2", 20360 "S3.2", 20361 "C1", 20362 "O15" 20363 ], 20364 "references": [ 20365 { 20366 "name": "MDN Reference", 20367 "url": "https://developer.mozilla.org/docs/Web/CSS/mask" 20368 } 20369 ], 20370 "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." 20371 }, 20372 { 20373 "name": "mask-border", 20374 "syntax": "<'mask-border-source'> || <'mask-border-slice'> [ / <'mask-border-width'>? [ / <'mask-border-outset'> ]? ]? || <'mask-border-repeat'> || <'mask-border-mode'>", 20375 "relevance": 50, 20376 "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." 20377 }, 20378 { 20379 "name": "mask-border-mode", 20380 "syntax": "luminance | alpha", 20381 "relevance": 50, 20382 "description": "The mask-border-mode CSS property specifies the blending mode used in a mask border." 20383 }, 20384 { 20385 "name": "mask-border-outset", 20386 "syntax": "[ <length> | <number> ]{1,4}", 20387 "relevance": 50, 20388 "description": "The mask-border-outset CSS property specifies the distance by which an element's mask border is set out from its border box." 20389 }, 20390 { 20391 "name": "mask-border-repeat", 20392 "syntax": "[ stretch | repeat | round | space ]{1,2}", 20393 "relevance": 50, 20394 "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." 20395 }, 20396 { 20397 "name": "mask-border-slice", 20398 "syntax": "<number-percentage>{1,4} fill?", 20399 "relevance": 50, 20400 "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." 20401 }, 20402 { 20403 "name": "mask-border-source", 20404 "syntax": "none | <image>", 20405 "relevance": 50, 20406 "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." 20407 }, 20408 { 20409 "name": "mask-border-width", 20410 "syntax": "[ <length-percentage> | <number> | auto ]{1,4}", 20411 "relevance": 50, 20412 "description": "The mask-border-width CSS property specifies the width of an element's mask border." 20413 }, 20414 { 20415 "name": "mask-clip", 20416 "syntax": "[ <geometry-box> | no-clip ]#", 20417 "relevance": 50, 20418 "browsers": [ 20419 "E79", 20420 "FF53", 20421 "S4", 20422 "C1", 20423 "O15" 20424 ], 20425 "references": [ 20426 { 20427 "name": "MDN Reference", 20428 "url": "https://developer.mozilla.org/docs/Web/CSS/mask-clip" 20429 } 20430 ], 20431 "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." 20432 }, 20433 { 20434 "name": "mask-composite", 20435 "syntax": "<compositing-operator>#", 20436 "relevance": 50, 20437 "browsers": [ 20438 "E18", 20439 "FF53" 20440 ], 20441 "references": [ 20442 { 20443 "name": "MDN Reference", 20444 "url": "https://developer.mozilla.org/docs/Web/CSS/mask-composite" 20445 } 20446 ], 20447 "description": "The mask-composite CSS property represents a compositing operation used on the current mask layer with the mask layers below it." 20448 }, 20449 { 20450 "name": "max-lines", 20451 "status": "experimental", 20452 "syntax": "none | <integer>", 20453 "relevance": 50, 20454 "description": "The max-liens property forces a break after a set number of lines" 20455 }, 20456 { 20457 "name": "offset", 20458 "syntax": "[ <'offset-position'>? [ <'offset-path'> [ <'offset-distance'> || <'offset-rotate'> ]? ]? ]! [ / <'offset-anchor'> ]?", 20459 "relevance": 50, 20460 "browsers": [ 20461 "E79", 20462 "FF72", 20463 "C55", 20464 "O42" 20465 ], 20466 "references": [ 20467 { 20468 "name": "MDN Reference", 20469 "url": "https://developer.mozilla.org/docs/Web/CSS/offset" 20470 } 20471 ], 20472 "description": "The offset CSS property is a shorthand property for animating an element along a defined path." 20473 }, 20474 { 20475 "name": "offset-anchor", 20476 "syntax": "auto | <position>", 20477 "relevance": 50, 20478 "browsers": [ 20479 "E79", 20480 "FF72", 20481 "C79" 20482 ], 20483 "references": [ 20484 { 20485 "name": "MDN Reference", 20486 "url": "https://developer.mozilla.org/docs/Web/CSS/offset-anchor" 20487 } 20488 ], 20489 "description": "Defines an anchor point of the box positioned along the path. The anchor point specifies the point of the box which is to be considered as the point that is moved along the path." 20490 }, 20491 { 20492 "name": "offset-distance", 20493 "syntax": "<length-percentage>", 20494 "relevance": 50, 20495 "browsers": [ 20496 "E79", 20497 "FF72", 20498 "C55", 20499 "O42" 20500 ], 20501 "references": [ 20502 { 20503 "name": "MDN Reference", 20504 "url": "https://developer.mozilla.org/docs/Web/CSS/offset-distance" 20505 } 20506 ], 20507 "description": "The offset-distance CSS property specifies a position along an offset-path." 20508 }, 20509 { 20510 "name": "offset-path", 20511 "syntax": "none | ray( [ <angle> && <size>? && contain? ] ) | <path()> | <url> | [ <basic-shape> || <geometry-box> ]", 20512 "relevance": 50, 20513 "browsers": [ 20514 "E79", 20515 "FF72", 20516 "C55", 20517 "O45" 20518 ], 20519 "references": [ 20520 { 20521 "name": "MDN Reference", 20522 "url": "https://developer.mozilla.org/docs/Web/CSS/offset-path" 20523 } 20524 ], 20525 "description": "The offset-path CSS property specifies the offset path where the element gets positioned. The exact element’s position on the offset path is determined by the offset-distance property. An offset path is either a specified path with one or multiple sub-paths or the geometry of a not-styled basic shape. Each shape or path must define an initial position for the computed value of \"0\" for offset-distance and an initial direction which specifies the rotation of the object to the initial position.\n\nIn this specification, a direction (or rotation) of 0 degrees is equivalent to the direction of the positive x-axis in the object’s local coordinate system. In other words, a rotation of 0 degree points to the right side of the UA if the object and its ancestors have no transformation applied." 20526 }, 20527 { 20528 "name": "offset-position", 20529 "status": "experimental", 20530 "syntax": "auto | <position>", 20531 "relevance": 50, 20532 "references": [ 20533 { 20534 "name": "MDN Reference", 20535 "url": "https://developer.mozilla.org/docs/Web/CSS/offset-position" 20536 } 20537 ], 20538 "description": "Specifies the initial position of the offset path. If position is specified with static, offset-position would be ignored." 20539 }, 20540 { 20541 "name": "offset-rotate", 20542 "syntax": "[ auto | reverse ] || <angle>", 20543 "relevance": 50, 20544 "browsers": [ 20545 "E79", 20546 "FF72", 20547 "C56", 20548 "O43" 20549 ], 20550 "references": [ 20551 { 20552 "name": "MDN Reference", 20553 "url": "https://developer.mozilla.org/docs/Web/CSS/offset-rotate" 20554 } 20555 ], 20556 "description": "The offset-rotate CSS property defines the direction of the element while positioning along the offset path." 20557 }, 20558 { 20559 "name": "overflow-anchor", 20560 "syntax": "auto | none", 20561 "relevance": 51, 20562 "browsers": [ 20563 "E79", 20564 "FF66", 20565 "C56", 20566 "O43" 20567 ], 20568 "references": [ 20569 { 20570 "name": "MDN Reference", 20571 "url": "https://developer.mozilla.org/docs/Web/CSS/overflow-anchor" 20572 } 20573 ], 20574 "description": "The overflow-anchor CSS property provides a way to opt out browser scroll anchoring behavior which adjusts scroll position to minimize content shifts." 20575 }, 20576 { 20577 "name": "overflow-block", 20578 "syntax": "visible | hidden | clip | scroll | auto", 20579 "relevance": 50, 20580 "browsers": [ 20581 "FF69" 20582 ], 20583 "references": [ 20584 { 20585 "name": "MDN Reference", 20586 "url": "https://developer.mozilla.org/docs/Web/CSS/overflow-block" 20587 } 20588 ], 20589 "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." 20590 }, 20591 { 20592 "name": "overflow-clip-box", 20593 "status": "nonstandard", 20594 "syntax": "padding-box | content-box", 20595 "relevance": 0, 20596 "browsers": [ 20597 "FF29" 20598 ], 20599 "references": [ 20600 { 20601 "name": "MDN Reference", 20602 "url": "https://developer.mozilla.org/docs/Mozilla/Gecko/Chrome/CSS/overflow-clip-box" 20603 } 20604 ], 20605 "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." 20606 }, 20607 { 20608 "name": "overflow-inline", 20609 "syntax": "visible | hidden | clip | scroll | auto", 20610 "relevance": 50, 20611 "browsers": [ 20612 "FF69" 20613 ], 20614 "references": [ 20615 { 20616 "name": "MDN Reference", 20617 "url": "https://developer.mozilla.org/docs/Web/CSS/overflow-inline" 20618 } 20619 ], 20620 "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." 20621 }, 20622 { 20623 "name": "overscroll-behavior", 20624 "syntax": "[ contain | none | auto ]{1,2}", 20625 "relevance": 50, 20626 "browsers": [ 20627 "E18", 20628 "FF59", 20629 "C63", 20630 "O50" 20631 ], 20632 "references": [ 20633 { 20634 "name": "MDN Reference", 20635 "url": "https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior" 20636 } 20637 ], 20638 "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." 20639 }, 20640 { 20641 "name": "overscroll-behavior-block", 20642 "syntax": "contain | none | auto", 20643 "relevance": 50, 20644 "browsers": [ 20645 "E79", 20646 "FF73", 20647 "C77", 20648 "O64" 20649 ], 20650 "references": [ 20651 { 20652 "name": "MDN Reference", 20653 "url": "https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-block" 20654 } 20655 ], 20656 "description": "The overscroll-behavior-block CSS property sets the browser's behavior when the block direction boundary of a scrolling area is reached." 20657 }, 20658 { 20659 "name": "overscroll-behavior-inline", 20660 "syntax": "contain | none | auto", 20661 "relevance": 50, 20662 "browsers": [ 20663 "E79", 20664 "FF73", 20665 "C77", 20666 "O64" 20667 ], 20668 "references": [ 20669 { 20670 "name": "MDN Reference", 20671 "url": "https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-inline" 20672 } 20673 ], 20674 "description": "The overscroll-behavior-inline CSS property sets the browser's behavior when the inline direction boundary of a scrolling area is reached." 20675 }, 20676 { 20677 "name": "overscroll-behavior-x", 20678 "syntax": "contain | none | auto", 20679 "relevance": 50, 20680 "browsers": [ 20681 "E18", 20682 "FF59", 20683 "C63", 20684 "O50" 20685 ], 20686 "references": [ 20687 { 20688 "name": "MDN Reference", 20689 "url": "https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-x" 20690 } 20691 ], 20692 "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." 20693 }, 20694 { 20695 "name": "overscroll-behavior-y", 20696 "syntax": "contain | none | auto", 20697 "relevance": 50, 20698 "browsers": [ 20699 "E18", 20700 "FF59", 20701 "C63", 20702 "O50" 20703 ], 20704 "references": [ 20705 { 20706 "name": "MDN Reference", 20707 "url": "https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-y" 20708 } 20709 ], 20710 "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." 20711 }, 20712 { 20713 "name": "padding-block", 20714 "syntax": "<'padding-left'>{1,2}", 20715 "relevance": 50, 20716 "browsers": [ 20717 "E79", 20718 "FF66", 20719 "C69", 20720 "O56" 20721 ], 20722 "references": [ 20723 { 20724 "name": "MDN Reference", 20725 "url": "https://developer.mozilla.org/docs/Web/CSS/padding-block" 20726 } 20727 ], 20728 "description": "The padding-block CSS property defines the logical block start and end padding of an element, which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation." 20729 }, 20730 { 20731 "name": "padding-inline", 20732 "syntax": "<'padding-left'>{1,2}", 20733 "relevance": 50, 20734 "browsers": [ 20735 "E79", 20736 "FF66", 20737 "C69", 20738 "O56" 20739 ], 20740 "references": [ 20741 { 20742 "name": "MDN Reference", 20743 "url": "https://developer.mozilla.org/docs/Web/CSS/padding-inline" 20744 } 20745 ], 20746 "description": "The padding-inline CSS property defines the logical inline start and end padding of an element, which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation." 20747 }, 20748 { 20749 "name": "place-content", 20750 "syntax": "<'align-content'> <'justify-content'>?", 20751 "relevance": 50, 20752 "browsers": [ 20753 "E79", 20754 "FF53", 20755 "S9", 20756 "C59", 20757 "O46" 20758 ], 20759 "description": "The place-content CSS shorthand property sets both the align-content and justify-content properties." 20760 }, 20761 { 20762 "name": "place-items", 20763 "syntax": "<'align-items'> <'justify-items'>?", 20764 "relevance": 50, 20765 "browsers": [ 20766 "E79", 20767 "FF45", 20768 "S11", 20769 "C59", 20770 "O46" 20771 ], 20772 "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." 20773 }, 20774 { 20775 "name": "place-self", 20776 "syntax": "<'align-self'> <'justify-self'>?", 20777 "relevance": 50, 20778 "browsers": [ 20779 "E79", 20780 "FF45", 20781 "C59", 20782 "O46" 20783 ], 20784 "description": "The place-self CSS property is a shorthand property sets both the align-self and justify-self properties. The first value is the align-self property value, the second the justify-self one. If the second value is not present, the first value is also used for it." 20785 }, 20786 { 20787 "name": "rotate", 20788 "syntax": "none | <angle> | [ x | y | z | <number>{3} ] && <angle>", 20789 "relevance": 50, 20790 "browsers": [ 20791 "FF72" 20792 ], 20793 "references": [ 20794 { 20795 "name": "MDN Reference", 20796 "url": "https://developer.mozilla.org/docs/Web/CSS/rotate" 20797 } 20798 ], 20799 "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." 20800 }, 20801 { 20802 "name": "row-gap", 20803 "syntax": "normal | <length-percentage>", 20804 "relevance": 50, 20805 "browsers": [ 20806 "E84", 20807 "FF63", 20808 "S10.1", 20809 "C84", 20810 "O70" 20811 ], 20812 "description": "The row-gap CSS property specifies the gutter between grid rows." 20813 }, 20814 { 20815 "name": "ruby-merge", 20816 "status": "experimental", 20817 "syntax": "separate | collapse | auto", 20818 "relevance": 50, 20819 "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." 20820 }, 20821 { 20822 "name": "scale", 20823 "syntax": "none | <number>{1,3}", 20824 "relevance": 50, 20825 "browsers": [ 20826 "FF72" 20827 ], 20828 "references": [ 20829 { 20830 "name": "MDN Reference", 20831 "url": "https://developer.mozilla.org/docs/Web/CSS/scale" 20832 } 20833 ], 20834 "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." 20835 }, 20836 { 20837 "name": "scrollbar-color", 20838 "syntax": "auto | dark | light | <color>{2}", 20839 "relevance": 50, 20840 "browsers": [ 20841 "FF64" 20842 ], 20843 "references": [ 20844 { 20845 "name": "MDN Reference", 20846 "url": "https://developer.mozilla.org/docs/Web/CSS/scrollbar-color" 20847 } 20848 ], 20849 "description": "The scrollbar-color CSS property sets the color of the scrollbar track and thumb." 20850 }, 20851 { 20852 "name": "scrollbar-width", 20853 "syntax": "auto | thin | none", 20854 "relevance": 50, 20855 "browsers": [ 20856 "FF64" 20857 ], 20858 "references": [ 20859 { 20860 "name": "MDN Reference", 20861 "url": "https://developer.mozilla.org/docs/Web/CSS/scrollbar-width" 20862 } 20863 ], 20864 "description": "The scrollbar-width property allows the author to set the maximum thickness of an element’s scrollbars when they are shown. " 20865 }, 20866 { 20867 "name": "scroll-margin", 20868 "syntax": "<length>{1,4}", 20869 "relevance": 50, 20870 "browsers": [ 20871 "E79", 20872 "FF68", 20873 "S11", 20874 "C69", 20875 "O56" 20876 ], 20877 "references": [ 20878 { 20879 "name": "MDN Reference", 20880 "url": "https://developer.mozilla.org/docs/Web/CSS/scroll-margin" 20881 } 20882 ], 20883 "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." 20884 }, 20885 { 20886 "name": "scroll-margin-block", 20887 "syntax": "<length>{1,2}", 20888 "relevance": 50, 20889 "browsers": [ 20890 "E79", 20891 "FF68", 20892 "C69", 20893 "O56" 20894 ], 20895 "references": [ 20896 { 20897 "name": "MDN Reference", 20898 "url": "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block" 20899 } 20900 ], 20901 "description": "The scroll-margin-block property is a shorthand property which sets the scroll-margin longhands in the block dimension." 20902 }, 20903 { 20904 "name": "scroll-margin-block-start", 20905 "syntax": "<length>", 20906 "relevance": 50, 20907 "browsers": [ 20908 "E79", 20909 "FF68", 20910 "C69", 20911 "O56" 20912 ], 20913 "references": [ 20914 { 20915 "name": "MDN Reference", 20916 "url": "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-start" 20917 } 20918 ], 20919 "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." 20920 }, 20921 { 20922 "name": "scroll-margin-block-end", 20923 "syntax": "<length>", 20924 "relevance": 50, 20925 "browsers": [ 20926 "E79", 20927 "FF68", 20928 "C69", 20929 "O56" 20930 ], 20931 "references": [ 20932 { 20933 "name": "MDN Reference", 20934 "url": "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-end" 20935 } 20936 ], 20937 "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." 20938 }, 20939 { 20940 "name": "scroll-margin-bottom", 20941 "syntax": "<length>", 20942 "relevance": 50, 20943 "browsers": [ 20944 "E79", 20945 "FF68", 20946 "S11", 20947 "C69", 20948 "O56" 20949 ], 20950 "references": [ 20951 { 20952 "name": "MDN Reference", 20953 "url": "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-bottom" 20954 } 20955 ], 20956 "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." 20957 }, 20958 { 20959 "name": "scroll-margin-inline", 20960 "syntax": "<length>{1,2}", 20961 "relevance": 50, 20962 "browsers": [ 20963 "FF68" 20964 ], 20965 "references": [ 20966 { 20967 "name": "MDN Reference", 20968 "url": "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline" 20969 } 20970 ], 20971 "description": "The scroll-margin-inline property is a shorthand property which sets the scroll-margin longhands in the inline dimension." 20972 }, 20973 { 20974 "name": "scroll-margin-inline-start", 20975 "syntax": "<length>", 20976 "relevance": 50, 20977 "browsers": [ 20978 "E79", 20979 "FF68", 20980 "C69", 20981 "O56" 20982 ], 20983 "references": [ 20984 { 20985 "name": "MDN Reference", 20986 "url": "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-start" 20987 } 20988 ], 20989 "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." 20990 }, 20991 { 20992 "name": "scroll-margin-inline-end", 20993 "syntax": "<length>", 20994 "relevance": 50, 20995 "browsers": [ 20996 "E79", 20997 "FF68", 20998 "C69", 20999 "O56" 21000 ], 21001 "references": [ 21002 { 21003 "name": "MDN Reference", 21004 "url": "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-end" 21005 } 21006 ], 21007 "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." 21008 }, 21009 { 21010 "name": "scroll-margin-left", 21011 "syntax": "<length>", 21012 "relevance": 50, 21013 "browsers": [ 21014 "E79", 21015 "FF68", 21016 "S11", 21017 "C69", 21018 "O56" 21019 ], 21020 "references": [ 21021 { 21022 "name": "MDN Reference", 21023 "url": "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-left" 21024 } 21025 ], 21026 "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." 21027 }, 21028 { 21029 "name": "scroll-margin-right", 21030 "syntax": "<length>", 21031 "relevance": 50, 21032 "browsers": [ 21033 "E79", 21034 "FF68", 21035 "S11", 21036 "C69", 21037 "O56" 21038 ], 21039 "references": [ 21040 { 21041 "name": "MDN Reference", 21042 "url": "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-right" 21043 } 21044 ], 21045 "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." 21046 }, 21047 { 21048 "name": "scroll-margin-top", 21049 "syntax": "<length>", 21050 "relevance": 50, 21051 "browsers": [ 21052 "E79", 21053 "FF68", 21054 "S11", 21055 "C69", 21056 "O56" 21057 ], 21058 "references": [ 21059 { 21060 "name": "MDN Reference", 21061 "url": "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-top" 21062 } 21063 ], 21064 "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." 21065 }, 21066 { 21067 "name": "scroll-padding", 21068 "syntax": "[ auto | <length-percentage> ]{1,4}", 21069 "relevance": 50, 21070 "browsers": [ 21071 "E79", 21072 "FF68", 21073 "S11", 21074 "C69", 21075 "O56" 21076 ], 21077 "references": [ 21078 { 21079 "name": "MDN Reference", 21080 "url": "https://developer.mozilla.org/docs/Web/CSS/scroll-padding" 21081 } 21082 ], 21083 "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." 21084 }, 21085 { 21086 "name": "scroll-padding-block", 21087 "syntax": "[ auto | <length-percentage> ]{1,2}", 21088 "relevance": 50, 21089 "browsers": [ 21090 "E79", 21091 "FF68", 21092 "C69", 21093 "O56" 21094 ], 21095 "references": [ 21096 { 21097 "name": "MDN Reference", 21098 "url": "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block" 21099 } 21100 ], 21101 "description": "The scroll-padding-block property is a shorthand property which sets the scroll-padding longhands for the block dimension." 21102 }, 21103 { 21104 "name": "scroll-padding-block-start", 21105 "syntax": "auto | <length-percentage>", 21106 "relevance": 50, 21107 "browsers": [ 21108 "E79", 21109 "FF68", 21110 "C69", 21111 "O56" 21112 ], 21113 "references": [ 21114 { 21115 "name": "MDN Reference", 21116 "url": "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-start" 21117 } 21118 ], 21119 "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." 21120 }, 21121 { 21122 "name": "scroll-padding-block-end", 21123 "syntax": "auto | <length-percentage>", 21124 "relevance": 50, 21125 "browsers": [ 21126 "E79", 21127 "FF68", 21128 "C69", 21129 "O56" 21130 ], 21131 "references": [ 21132 { 21133 "name": "MDN Reference", 21134 "url": "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-end" 21135 } 21136 ], 21137 "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." 21138 }, 21139 { 21140 "name": "scroll-padding-bottom", 21141 "syntax": "auto | <length-percentage>", 21142 "relevance": 50, 21143 "browsers": [ 21144 "E79", 21145 "FF68", 21146 "S11", 21147 "C69", 21148 "O56" 21149 ], 21150 "references": [ 21151 { 21152 "name": "MDN Reference", 21153 "url": "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-bottom" 21154 } 21155 ], 21156 "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." 21157 }, 21158 { 21159 "name": "scroll-padding-inline", 21160 "syntax": "[ auto | <length-percentage> ]{1,2}", 21161 "relevance": 50, 21162 "browsers": [ 21163 "E79", 21164 "FF68", 21165 "C69", 21166 "O56" 21167 ], 21168 "references": [ 21169 { 21170 "name": "MDN Reference", 21171 "url": "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline" 21172 } 21173 ], 21174 "description": "The scroll-padding-inline property is a shorthand property which sets the scroll-padding longhands for the inline dimension." 21175 }, 21176 { 21177 "name": "scroll-padding-inline-start", 21178 "syntax": "auto | <length-percentage>", 21179 "relevance": 50, 21180 "browsers": [ 21181 "E79", 21182 "FF68", 21183 "C69", 21184 "O56" 21185 ], 21186 "references": [ 21187 { 21188 "name": "MDN Reference", 21189 "url": "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-start" 21190 } 21191 ], 21192 "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." 21193 }, 21194 { 21195 "name": "scroll-padding-inline-end", 21196 "syntax": "auto | <length-percentage>", 21197 "relevance": 50, 21198 "browsers": [ 21199 "E79", 21200 "FF68", 21201 "C69", 21202 "O56" 21203 ], 21204 "references": [ 21205 { 21206 "name": "MDN Reference", 21207 "url": "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-end" 21208 } 21209 ], 21210 "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." 21211 }, 21212 { 21213 "name": "scroll-padding-left", 21214 "syntax": "auto | <length-percentage>", 21215 "relevance": 50, 21216 "browsers": [ 21217 "E79", 21218 "FF68", 21219 "S11", 21220 "C69", 21221 "O56" 21222 ], 21223 "references": [ 21224 { 21225 "name": "MDN Reference", 21226 "url": "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-left" 21227 } 21228 ], 21229 "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." 21230 }, 21231 { 21232 "name": "scroll-padding-right", 21233 "syntax": "auto | <length-percentage>", 21234 "relevance": 50, 21235 "browsers": [ 21236 "E79", 21237 "FF68", 21238 "S11", 21239 "C69", 21240 "O56" 21241 ], 21242 "references": [ 21243 { 21244 "name": "MDN Reference", 21245 "url": "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-right" 21246 } 21247 ], 21248 "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." 21249 }, 21250 { 21251 "name": "scroll-padding-top", 21252 "syntax": "auto | <length-percentage>", 21253 "relevance": 50, 21254 "browsers": [ 21255 "E79", 21256 "FF68", 21257 "S11", 21258 "C69", 21259 "O56" 21260 ], 21261 "references": [ 21262 { 21263 "name": "MDN Reference", 21264 "url": "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-top" 21265 } 21266 ], 21267 "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." 21268 }, 21269 { 21270 "name": "scroll-snap-align", 21271 "syntax": "[ none | start | end | center ]{1,2}", 21272 "relevance": 50, 21273 "browsers": [ 21274 "E79", 21275 "FF68", 21276 "S11", 21277 "C69", 21278 "O56" 21279 ], 21280 "references": [ 21281 { 21282 "name": "MDN Reference", 21283 "url": "https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align" 21284 } 21285 ], 21286 "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." 21287 }, 21288 { 21289 "name": "scroll-snap-stop", 21290 "syntax": "normal | always", 21291 "relevance": 50, 21292 "browsers": [ 21293 "E79", 21294 "C75", 21295 "O62" 21296 ], 21297 "references": [ 21298 { 21299 "name": "MDN Reference", 21300 "url": "https://developer.mozilla.org/docs/Web/CSS/scroll-snap-stop" 21301 } 21302 ], 21303 "description": "The scroll-snap-stop CSS property defines whether the scroll container is allowed to \"pass over\" possible snap positions." 21304 }, 21305 { 21306 "name": "scroll-snap-type-x", 21307 "status": "obsolete", 21308 "syntax": "none | mandatory | proximity", 21309 "relevance": 0, 21310 "browsers": [ 21311 "FF39", 21312 "S9" 21313 ], 21314 "references": [ 21315 { 21316 "name": "MDN Reference", 21317 "url": "https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type-x" 21318 } 21319 ], 21320 "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." 21321 }, 21322 { 21323 "name": "scroll-snap-type-y", 21324 "status": "obsolete", 21325 "syntax": "none | mandatory | proximity", 21326 "relevance": 0, 21327 "browsers": [ 21328 "FF39" 21329 ], 21330 "references": [ 21331 { 21332 "name": "MDN Reference", 21333 "url": "https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type-y" 21334 } 21335 ], 21336 "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." 21337 }, 21338 { 21339 "name": "text-combine-upright", 21340 "syntax": "none | all | [ digits <integer>? ]", 21341 "relevance": 50, 21342 "references": [ 21343 { 21344 "name": "MDN Reference", 21345 "url": "https://developer.mozilla.org/docs/Web/CSS/text-combine-upright" 21346 } 21347 ], 21348 "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." 21349 }, 21350 { 21351 "name": "text-decoration-skip", 21352 "status": "experimental", 21353 "syntax": "none | [ objects || [ spaces | [ leading-spaces || trailing-spaces ] ] || edges || box-decoration ]", 21354 "relevance": 52, 21355 "browsers": [ 21356 "S12.1", 21357 "C57", 21358 "O44" 21359 ], 21360 "references": [ 21361 { 21362 "name": "MDN Reference", 21363 "url": "https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip" 21364 } 21365 ], 21366 "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." 21367 }, 21368 { 21369 "name": "text-decoration-skip-ink", 21370 "syntax": "auto | all | none", 21371 "relevance": 50, 21372 "browsers": [ 21373 "E79", 21374 "FF70", 21375 "C64", 21376 "O50" 21377 ], 21378 "references": [ 21379 { 21380 "name": "MDN Reference", 21381 "url": "https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip-ink" 21382 } 21383 ], 21384 "description": "The text-decoration-skip-ink CSS property specifies how overlines and underlines are drawn when they pass over glyph ascenders and descenders." 21385 }, 21386 { 21387 "name": "text-decoration-thickness", 21388 "syntax": "auto | from-font | <length> | <percentage> ", 21389 "relevance": 50, 21390 "browsers": [ 21391 "FF70", 21392 "S12.1" 21393 ], 21394 "references": [ 21395 { 21396 "name": "MDN Reference", 21397 "url": "https://developer.mozilla.org/docs/Web/CSS/text-decoration-thickness" 21398 } 21399 ], 21400 "description": "The text-decoration-thickness CSS property sets the thickness, or width, of the decoration line that is used on text in an element, such as a line-through, underline, or overline." 21401 }, 21402 { 21403 "name": "text-emphasis", 21404 "syntax": "<'text-emphasis-style'> || <'text-emphasis-color'>", 21405 "relevance": 50, 21406 "browsers": [ 21407 "E79", 21408 "FF46", 21409 "S6.1", 21410 "C25", 21411 "O15" 21412 ], 21413 "references": [ 21414 { 21415 "name": "MDN Reference", 21416 "url": "https://developer.mozilla.org/docs/Web/CSS/text-emphasis" 21417 } 21418 ], 21419 "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." 21420 }, 21421 { 21422 "name": "text-emphasis-color", 21423 "syntax": "<color>", 21424 "relevance": 50, 21425 "browsers": [ 21426 "E79", 21427 "FF46", 21428 "S6.1", 21429 "C25", 21430 "O15" 21431 ], 21432 "references": [ 21433 { 21434 "name": "MDN Reference", 21435 "url": "https://developer.mozilla.org/docs/Web/CSS/text-emphasis-color" 21436 } 21437 ], 21438 "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." 21439 }, 21440 { 21441 "name": "text-emphasis-position", 21442 "syntax": "[ over | under ] && [ right | left ]", 21443 "relevance": 50, 21444 "browsers": [ 21445 "E79", 21446 "FF46", 21447 "S6.1", 21448 "C25", 21449 "O15" 21450 ], 21451 "references": [ 21452 { 21453 "name": "MDN Reference", 21454 "url": "https://developer.mozilla.org/docs/Web/CSS/text-emphasis-position" 21455 } 21456 ], 21457 "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." 21458 }, 21459 { 21460 "name": "text-emphasis-style", 21461 "syntax": "none | [ [ filled | open ] || [ dot | circle | double-circle | triangle | sesame ] ] | <string>", 21462 "relevance": 50, 21463 "browsers": [ 21464 "E79", 21465 "FF46", 21466 "S6.1", 21467 "C25", 21468 "O15" 21469 ], 21470 "references": [ 21471 { 21472 "name": "MDN Reference", 21473 "url": "https://developer.mozilla.org/docs/Web/CSS/text-emphasis-style" 21474 } 21475 ], 21476 "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." 21477 }, 21478 { 21479 "name": "text-size-adjust", 21480 "status": "experimental", 21481 "syntax": "none | auto | <percentage>", 21482 "relevance": 56, 21483 "browsers": [ 21484 "E79", 21485 "C54", 21486 "O41" 21487 ], 21488 "references": [ 21489 { 21490 "name": "MDN Reference", 21491 "url": "https://developer.mozilla.org/docs/Web/CSS/text-size-adjust" 21492 } 21493 ], 21494 "description": "The text-size-adjust CSS property controls the text inflation algorithm used on some smartphones and tablets. Other browsers will ignore this property." 21495 }, 21496 { 21497 "name": "text-underline-offset", 21498 "syntax": "auto | <length> | <percentage> ", 21499 "relevance": 50, 21500 "browsers": [ 21501 "FF70", 21502 "S12.1" 21503 ], 21504 "references": [ 21505 { 21506 "name": "MDN Reference", 21507 "url": "https://developer.mozilla.org/docs/Web/CSS/text-underline-offset" 21508 } 21509 ], 21510 "description": "The text-underline-offset CSS property sets the offset distance of an underline text decoration line (applied using text-decoration) from its original position." 21511 }, 21512 { 21513 "name": "transform-box", 21514 "syntax": "content-box | border-box | fill-box | stroke-box | view-box", 21515 "relevance": 50, 21516 "browsers": [ 21517 "E79", 21518 "FF55", 21519 "S11", 21520 "C64", 21521 "O51" 21522 ], 21523 "references": [ 21524 { 21525 "name": "MDN Reference", 21526 "url": "https://developer.mozilla.org/docs/Web/CSS/transform-box" 21527 } 21528 ], 21529 "description": "The transform-box CSS property defines the layout box to which the transform and transform-origin properties relate." 21530 }, 21531 { 21532 "name": "translate", 21533 "syntax": "none | <length-percentage> [ <length-percentage> <length>? ]?", 21534 "relevance": 50, 21535 "browsers": [ 21536 "FF72" 21537 ], 21538 "references": [ 21539 { 21540 "name": "MDN Reference", 21541 "url": "https://developer.mozilla.org/docs/Web/CSS/translate" 21542 } 21543 ], 21544 "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." 21545 }, 21546 { 21547 "name": "speak-as", 21548 "syntax": "auto | bullets | numbers | words | spell-out | <counter-style-name>", 21549 "relevance": 50, 21550 "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." 21551 }, 21552 { 21553 "name": "font-display", 21554 "status": "experimental", 21555 "syntax": "[ auto | block | swap | fallback | optional ]", 21556 "relevance": 54, 21557 "description": "The font-display descriptor determines how a font face is displayed based on whether and when it is downloaded and ready to use." 21558 }, 21559 { 21560 "name": "bleed", 21561 "syntax": "auto | <length>", 21562 "relevance": 50, 21563 "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." 21564 }, 21565 { 21566 "name": "marks", 21567 "syntax": "none | [ crop || cross ]", 21568 "relevance": 50, 21569 "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." 21570 }, 21571 { 21572 "name": "max-zoom", 21573 "syntax": "auto | <number> | <percentage>", 21574 "relevance": 50, 21575 "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." 21576 }, 21577 { 21578 "name": "min-zoom", 21579 "syntax": "auto | <number> | <percentage>", 21580 "relevance": 50, 21581 "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." 21582 }, 21583 { 21584 "name": "orientation", 21585 "syntax": "auto | portrait | landscape", 21586 "relevance": 50, 21587 "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)." 21588 }, 21589 { 21590 "name": "user-zoom", 21591 "syntax": "zoom | fixed", 21592 "relevance": 50, 21593 "description": "The user-zoom CSS descriptor controls whether or not the user can change the zoom factor of a document defined by @viewport." 21594 }, 21595 { 21596 "name": "viewport-fit", 21597 "syntax": "auto | contain | cover", 21598 "relevance": 50, 21599 "description": "The border-block-style CSS property defines the style of the logical block borders of an element, which maps to a physical border style depending on the element's writing mode, directionality, and text orientation." 21600 } 21601 ], 21602 "atDirectives": [ 21603 { 21604 "name": "@charset", 21605 "references": [ 21606 { 21607 "name": "MDN Reference", 21608 "url": "https://developer.mozilla.org/docs/Web/CSS/@charset" 21609 } 21610 ], 21611 "description": "Defines character set of the document." 21612 }, 21613 { 21614 "name": "@counter-style", 21615 "browsers": [ 21616 "FF33" 21617 ], 21618 "references": [ 21619 { 21620 "name": "MDN Reference", 21621 "url": "https://developer.mozilla.org/docs/Web/CSS/@counter-style" 21622 } 21623 ], 21624 "description": "Defines a custom counter style." 21625 }, 21626 { 21627 "name": "@font-face", 21628 "references": [ 21629 { 21630 "name": "MDN Reference", 21631 "url": "https://developer.mozilla.org/docs/Web/CSS/@font-face" 21632 } 21633 ], 21634 "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." 21635 }, 21636 { 21637 "name": "@font-feature-values", 21638 "browsers": [ 21639 "FF34", 21640 "S9.1" 21641 ], 21642 "references": [ 21643 { 21644 "name": "MDN Reference", 21645 "url": "https://developer.mozilla.org/docs/Web/CSS/@font-feature-values" 21646 } 21647 ], 21648 "description": "Defines named values for the indices used to select alternate glyphs for a given font family." 21649 }, 21650 { 21651 "name": "@import", 21652 "references": [ 21653 { 21654 "name": "MDN Reference", 21655 "url": "https://developer.mozilla.org/docs/Web/CSS/@import" 21656 } 21657 ], 21658 "description": "Includes content of another file." 21659 }, 21660 { 21661 "name": "@keyframes", 21662 "references": [ 21663 { 21664 "name": "MDN Reference", 21665 "url": "https://developer.mozilla.org/docs/Web/CSS/@keyframes" 21666 } 21667 ], 21668 "description": "Defines set of animation key frames." 21669 }, 21670 { 21671 "name": "@media", 21672 "references": [ 21673 { 21674 "name": "MDN Reference", 21675 "url": "https://developer.mozilla.org/docs/Web/CSS/@media" 21676 } 21677 ], 21678 "description": "Defines a stylesheet for a particular media type." 21679 }, 21680 { 21681 "name": "@-moz-document", 21682 "browsers": [ 21683 "FF1.8" 21684 ], 21685 "description": "Gecko-specific at-rule that restricts the style rules contained within it based on the URL of the document." 21686 }, 21687 { 21688 "name": "@-moz-keyframes", 21689 "browsers": [ 21690 "FF5" 21691 ], 21692 "description": "Defines set of animation key frames." 21693 }, 21694 { 21695 "name": "@-ms-viewport", 21696 "browsers": [ 21697 "E", 21698 "IE10" 21699 ], 21700 "description": "Specifies the size, zoom factor, and orientation of the viewport." 21701 }, 21702 { 21703 "name": "@namespace", 21704 "references": [ 21705 { 21706 "name": "MDN Reference", 21707 "url": "https://developer.mozilla.org/docs/Web/CSS/@namespace" 21708 } 21709 ], 21710 "description": "Declares a prefix and associates it with a namespace name." 21711 }, 21712 { 21713 "name": "@-o-keyframes", 21714 "browsers": [ 21715 "O12" 21716 ], 21717 "description": "Defines set of animation key frames." 21718 }, 21719 { 21720 "name": "@-o-viewport", 21721 "browsers": [ 21722 "O11" 21723 ], 21724 "description": "Specifies the size, zoom factor, and orientation of the viewport." 21725 }, 21726 { 21727 "name": "@page", 21728 "browsers": [ 21729 "E12", 21730 "FF19", 21731 "C2", 21732 "IE8", 21733 "O6" 21734 ], 21735 "references": [ 21736 { 21737 "name": "MDN Reference", 21738 "url": "https://developer.mozilla.org/docs/Web/CSS/@page" 21739 } 21740 ], 21741 "description": "Directive defines various page parameters." 21742 }, 21743 { 21744 "name": "@supports", 21745 "browsers": [ 21746 "E12", 21747 "FF22", 21748 "S9", 21749 "C28", 21750 "O12.1" 21751 ], 21752 "references": [ 21753 { 21754 "name": "MDN Reference", 21755 "url": "https://developer.mozilla.org/docs/Web/CSS/@supports" 21756 } 21757 ], 21758 "description": "A conditional group rule whose condition tests whether the user agent supports CSS property:value pairs." 21759 }, 21760 { 21761 "name": "@-webkit-keyframes", 21762 "browsers": [ 21763 "C", 21764 "S4" 21765 ], 21766 "description": "Defines set of animation key frames." 21767 } 21768 ], 21769 "pseudoClasses": [ 21770 { 21771 "name": ":active", 21772 "references": [ 21773 { 21774 "name": "MDN Reference", 21775 "url": "https://developer.mozilla.org/docs/Web/CSS/:active" 21776 } 21777 ], 21778 "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." 21779 }, 21780 { 21781 "name": ":any-link", 21782 "browsers": [ 21783 "E79", 21784 "FF50", 21785 "S9", 21786 "C65", 21787 "O52" 21788 ], 21789 "references": [ 21790 { 21791 "name": "MDN Reference", 21792 "url": "https://developer.mozilla.org/docs/Web/CSS/:any-link" 21793 } 21794 ], 21795 "description": "Represents an element that acts as the source anchor of a hyperlink. Applies to both visited and unvisited links." 21796 }, 21797 { 21798 "name": ":checked", 21799 "references": [ 21800 { 21801 "name": "MDN Reference", 21802 "url": "https://developer.mozilla.org/docs/Web/CSS/:checked" 21803 } 21804 ], 21805 "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." 21806 }, 21807 { 21808 "name": ":corner-present", 21809 "browsers": [ 21810 "C", 21811 "S5" 21812 ], 21813 "description": "Non-standard. Indicates whether or not a scrollbar corner is present." 21814 }, 21815 { 21816 "name": ":decrement", 21817 "browsers": [ 21818 "C", 21819 "S5" 21820 ], 21821 "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." 21822 }, 21823 { 21824 "name": ":default", 21825 "browsers": [ 21826 "E79", 21827 "FF4", 21828 "S5", 21829 "C10", 21830 "O10" 21831 ], 21832 "references": [ 21833 { 21834 "name": "MDN Reference", 21835 "url": "https://developer.mozilla.org/docs/Web/CSS/:default" 21836 } 21837 ], 21838 "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." 21839 }, 21840 { 21841 "name": ":disabled", 21842 "references": [ 21843 { 21844 "name": "MDN Reference", 21845 "url": "https://developer.mozilla.org/docs/Web/CSS/:disabled" 21846 } 21847 ], 21848 "description": "Represents user interface elements that are in a disabled state; such elements have a corresponding enabled state." 21849 }, 21850 { 21851 "name": ":double-button", 21852 "browsers": [ 21853 "C", 21854 "S5" 21855 ], 21856 "description": "Non-standard. Applies to buttons and track pieces. Applies when both buttons are displayed together at the same end of the scrollbar." 21857 }, 21858 { 21859 "name": ":empty", 21860 "references": [ 21861 { 21862 "name": "MDN Reference", 21863 "url": "https://developer.mozilla.org/docs/Web/CSS/:empty" 21864 } 21865 ], 21866 "description": "Represents an element that has no children at all." 21867 }, 21868 { 21869 "name": ":enabled", 21870 "references": [ 21871 { 21872 "name": "MDN Reference", 21873 "url": "https://developer.mozilla.org/docs/Web/CSS/:enabled" 21874 } 21875 ], 21876 "description": "Represents user interface elements that are in an enabled state; such elements have a corresponding disabled state." 21877 }, 21878 { 21879 "name": ":end", 21880 "browsers": [ 21881 "C", 21882 "S5" 21883 ], 21884 "description": "Non-standard. Applies to buttons and track pieces. Indicates whether the object is placed after the thumb." 21885 }, 21886 { 21887 "name": ":first", 21888 "browsers": [ 21889 "E12", 21890 "S6", 21891 "C18", 21892 "IE8", 21893 "O9.2" 21894 ], 21895 "references": [ 21896 { 21897 "name": "MDN Reference", 21898 "url": "https://developer.mozilla.org/docs/Web/CSS/:first" 21899 } 21900 ], 21901 "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." 21902 }, 21903 { 21904 "name": ":first-child", 21905 "references": [ 21906 { 21907 "name": "MDN Reference", 21908 "url": "https://developer.mozilla.org/docs/Web/CSS/:first-child" 21909 } 21910 ], 21911 "description": "Same as :nth-child(1). Represents an element that is the first child of some other element." 21912 }, 21913 { 21914 "name": ":first-of-type", 21915 "references": [ 21916 { 21917 "name": "MDN Reference", 21918 "url": "https://developer.mozilla.org/docs/Web/CSS/:first-of-type" 21919 } 21920 ], 21921 "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." 21922 }, 21923 { 21924 "name": ":focus", 21925 "references": [ 21926 { 21927 "name": "MDN Reference", 21928 "url": "https://developer.mozilla.org/docs/Web/CSS/:focus" 21929 } 21930 ], 21931 "description": "Applies while an element has the focus (accepts keyboard or mouse events, or other forms of input)." 21932 }, 21933 { 21934 "name": ":fullscreen", 21935 "references": [ 21936 { 21937 "name": "MDN Reference", 21938 "url": "https://developer.mozilla.org/docs/Web/CSS/:fullscreen" 21939 } 21940 ], 21941 "description": "Matches any element that has its fullscreen flag set." 21942 }, 21943 { 21944 "name": ":future", 21945 "browsers": [ 21946 "C", 21947 "O16", 21948 "S6" 21949 ], 21950 "description": "Represents any element that is defined to occur entirely after a :current element." 21951 }, 21952 { 21953 "name": ":horizontal", 21954 "browsers": [ 21955 "C", 21956 "S5" 21957 ], 21958 "description": "Non-standard. Applies to any scrollbar pieces that have a horizontal orientation." 21959 }, 21960 { 21961 "name": ":host", 21962 "browsers": [ 21963 "E79", 21964 "FF63", 21965 "S10", 21966 "C54", 21967 "O41" 21968 ], 21969 "references": [ 21970 { 21971 "name": "MDN Reference", 21972 "url": "https://developer.mozilla.org/docs/Web/CSS/:host" 21973 } 21974 ], 21975 "description": "When evaluated in the context of a shadow tree, matches the shadow tree’s host element." 21976 }, 21977 { 21978 "name": ":host()", 21979 "browsers": [ 21980 "C35", 21981 "O22" 21982 ], 21983 "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." 21984 }, 21985 { 21986 "name": ":host-context()", 21987 "browsers": [ 21988 "C35", 21989 "O22" 21990 ], 21991 "description": "Tests whether there is an ancestor, outside the shadow tree, which matches a particular selector." 21992 }, 21993 { 21994 "name": ":hover", 21995 "references": [ 21996 { 21997 "name": "MDN Reference", 21998 "url": "https://developer.mozilla.org/docs/Web/CSS/:hover" 21999 } 22000 ], 22001 "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." 22002 }, 22003 { 22004 "name": ":increment", 22005 "browsers": [ 22006 "C", 22007 "S5" 22008 ], 22009 "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." 22010 }, 22011 { 22012 "name": ":indeterminate", 22013 "references": [ 22014 { 22015 "name": "MDN Reference", 22016 "url": "https://developer.mozilla.org/docs/Web/CSS/:indeterminate" 22017 } 22018 ], 22019 "description": "Applies to UI elements whose value is in an indeterminate state." 22020 }, 22021 { 22022 "name": ":in-range", 22023 "browsers": [ 22024 "E13", 22025 "FF29", 22026 "S5.1", 22027 "C10", 22028 "O11" 22029 ], 22030 "references": [ 22031 { 22032 "name": "MDN Reference", 22033 "url": "https://developer.mozilla.org/docs/Web/CSS/:in-range" 22034 } 22035 ], 22036 "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." 22037 }, 22038 { 22039 "name": ":invalid", 22040 "references": [ 22041 { 22042 "name": "MDN Reference", 22043 "url": "https://developer.mozilla.org/docs/Web/CSS/:invalid" 22044 } 22045 ], 22046 "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." 22047 }, 22048 { 22049 "name": ":lang()", 22050 "browsers": [ 22051 "E", 22052 "C", 22053 "FF1", 22054 "IE8", 22055 "O8", 22056 "S3" 22057 ], 22058 "description": "Represents an element that is in language specified." 22059 }, 22060 { 22061 "name": ":last-child", 22062 "references": [ 22063 { 22064 "name": "MDN Reference", 22065 "url": "https://developer.mozilla.org/docs/Web/CSS/:last-child" 22066 } 22067 ], 22068 "description": "Same as :nth-last-child(1). Represents an element that is the last child of some other element." 22069 }, 22070 { 22071 "name": ":last-of-type", 22072 "references": [ 22073 { 22074 "name": "MDN Reference", 22075 "url": "https://developer.mozilla.org/docs/Web/CSS/:last-of-type" 22076 } 22077 ], 22078 "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." 22079 }, 22080 { 22081 "name": ":left", 22082 "browsers": [ 22083 "E12", 22084 "S5.1", 22085 "C6", 22086 "IE8", 22087 "O9.2" 22088 ], 22089 "references": [ 22090 { 22091 "name": "MDN Reference", 22092 "url": "https://developer.mozilla.org/docs/Web/CSS/:left" 22093 } 22094 ], 22095 "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." 22096 }, 22097 { 22098 "name": ":link", 22099 "references": [ 22100 { 22101 "name": "MDN Reference", 22102 "url": "https://developer.mozilla.org/docs/Web/CSS/:link" 22103 } 22104 ], 22105 "description": "Applies to links that have not yet been visited." 22106 }, 22107 { 22108 "name": ":matches()", 22109 "browsers": [ 22110 "S9" 22111 ], 22112 "description": "Takes a selector list as its argument. It represents an element that is represented by its argument." 22113 }, 22114 { 22115 "name": ":-moz-any()", 22116 "browsers": [ 22117 "FF4" 22118 ], 22119 "description": "Represents an element that is represented by the selector list passed as its argument. Standardized as :matches()." 22120 }, 22121 { 22122 "name": ":-moz-any-link", 22123 "browsers": [ 22124 "FF1" 22125 ], 22126 "description": "Represents an element that acts as the source anchor of a hyperlink. Applies to both visited and unvisited links." 22127 }, 22128 { 22129 "name": ":-moz-broken", 22130 "browsers": [ 22131 "FF3" 22132 ], 22133 "references": [ 22134 { 22135 "name": "MDN Reference", 22136 "url": "https://developer.mozilla.org/docs/Web/CSS/:-moz-broken" 22137 } 22138 ], 22139 "description": "Non-standard. Matches elements representing broken images." 22140 }, 22141 { 22142 "name": ":-moz-drag-over", 22143 "browsers": [ 22144 "FF1" 22145 ], 22146 "description": "Non-standard. Matches elements when a drag-over event applies to it." 22147 }, 22148 { 22149 "name": ":-moz-first-node", 22150 "browsers": [ 22151 "FF1" 22152 ], 22153 "description": "Non-standard. Represents an element that is the first child node of some other element." 22154 }, 22155 { 22156 "name": ":-moz-focusring", 22157 "browsers": [ 22158 "FF4" 22159 ], 22160 "description": "Non-standard. Matches an element that has focus and focus ring drawing is enabled in the browser." 22161 }, 22162 { 22163 "name": ":-moz-full-screen", 22164 "browsers": [ 22165 "FF9" 22166 ], 22167 "description": "Matches any element that has its fullscreen flag set. Standardized as :fullscreen." 22168 }, 22169 { 22170 "name": ":-moz-last-node", 22171 "browsers": [ 22172 "FF1" 22173 ], 22174 "description": "Non-standard. Represents an element that is the last child node of some other element." 22175 }, 22176 { 22177 "name": ":-moz-loading", 22178 "browsers": [ 22179 "FF3" 22180 ], 22181 "description": "Non-standard. Matches elements, such as images, that haven’t started loading yet." 22182 }, 22183 { 22184 "name": ":-moz-only-whitespace", 22185 "browsers": [ 22186 "FF1" 22187 ], 22188 "references": [ 22189 { 22190 "name": "MDN Reference", 22191 "url": "https://developer.mozilla.org/docs/Web/CSS/:-moz-only-whitespace" 22192 } 22193 ], 22194 "description": "The same as :empty, except that it additionally matches elements that only contain code points affected by whitespace processing. Standardized as :blank." 22195 }, 22196 { 22197 "name": ":-moz-placeholder", 22198 "browsers": [ 22199 "FF4" 22200 ], 22201 "description": "Deprecated. Represents placeholder text in an input field. Use ::-moz-placeholder for Firefox 19+." 22202 }, 22203 { 22204 "name": ":-moz-submit-invalid", 22205 "browsers": [ 22206 "FF4" 22207 ], 22208 "references": [ 22209 { 22210 "name": "MDN Reference", 22211 "url": "https://developer.mozilla.org/docs/Web/CSS/:-moz-submit-invalid" 22212 } 22213 ], 22214 "description": "Non-standard. Represents any submit button when the contents of the associated form are not valid." 22215 }, 22216 { 22217 "name": ":-moz-suppressed", 22218 "browsers": [ 22219 "FF3" 22220 ], 22221 "description": "Non-standard. Matches elements representing images that have been blocked from loading." 22222 }, 22223 { 22224 "name": ":-moz-ui-invalid", 22225 "browsers": [ 22226 "FF4" 22227 ], 22228 "references": [ 22229 { 22230 "name": "MDN Reference", 22231 "url": "https://developer.mozilla.org/docs/Web/CSS/:-moz-ui-invalid" 22232 } 22233 ], 22234 "description": "Non-standard. Represents any validated form element whose value isn't valid " 22235 }, 22236 { 22237 "name": ":-moz-ui-valid", 22238 "browsers": [ 22239 "FF4" 22240 ], 22241 "references": [ 22242 { 22243 "name": "MDN Reference", 22244 "url": "https://developer.mozilla.org/docs/Web/CSS/:-moz-ui-valid" 22245 } 22246 ], 22247 "description": "Non-standard. Represents any validated form element whose value is valid " 22248 }, 22249 { 22250 "name": ":-moz-user-disabled", 22251 "browsers": [ 22252 "FF3" 22253 ], 22254 "description": "Non-standard. Matches elements representing images that have been disabled due to the user’s preferences." 22255 }, 22256 { 22257 "name": ":-moz-window-inactive", 22258 "browsers": [ 22259 "FF4" 22260 ], 22261 "references": [ 22262 { 22263 "name": "MDN Reference", 22264 "url": "https://developer.mozilla.org/docs/Web/CSS/:-moz-window-inactive" 22265 } 22266 ], 22267 "description": "Non-standard. Matches elements in an inactive window." 22268 }, 22269 { 22270 "name": ":-ms-fullscreen", 22271 "browsers": [ 22272 "IE11" 22273 ], 22274 "description": "Matches any element that has its fullscreen flag set." 22275 }, 22276 { 22277 "name": ":-ms-input-placeholder", 22278 "browsers": [ 22279 "IE10" 22280 ], 22281 "description": "Represents placeholder text in an input field. Note: for Edge use the pseudo-element ::-ms-input-placeholder. Standardized as ::placeholder." 22282 }, 22283 { 22284 "name": ":-ms-keyboard-active", 22285 "browsers": [ 22286 "IE10" 22287 ], 22288 "description": "Windows Store apps only. Applies one or more styles to an element when it has focus and the user presses the space bar." 22289 }, 22290 { 22291 "name": ":-ms-lang()", 22292 "browsers": [ 22293 "E", 22294 "IE10" 22295 ], 22296 "description": "Represents an element that is in the language specified. Accepts a comma separated list of language tokens." 22297 }, 22298 { 22299 "name": ":no-button", 22300 "browsers": [ 22301 "C", 22302 "S5" 22303 ], 22304 "description": "Non-standard. Applies to track pieces. Applies when there is no button at that end of the track." 22305 }, 22306 { 22307 "name": ":not()", 22308 "browsers": [ 22309 "E", 22310 "C", 22311 "FF1", 22312 "IE9", 22313 "O9.5", 22314 "S2" 22315 ], 22316 "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." 22317 }, 22318 { 22319 "name": ":nth-child()", 22320 "browsers": [ 22321 "E", 22322 "C", 22323 "FF3.5", 22324 "IE9", 22325 "O9.5", 22326 "S3.1" 22327 ], 22328 "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." 22329 }, 22330 { 22331 "name": ":nth-last-child()", 22332 "browsers": [ 22333 "E", 22334 "C", 22335 "FF3.5", 22336 "IE9", 22337 "O9.5", 22338 "S3.1" 22339 ], 22340 "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." 22341 }, 22342 { 22343 "name": ":nth-last-of-type()", 22344 "browsers": [ 22345 "E", 22346 "C", 22347 "FF3.5", 22348 "IE9", 22349 "O9.5", 22350 "S3.1" 22351 ], 22352 "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." 22353 }, 22354 { 22355 "name": ":nth-of-type()", 22356 "browsers": [ 22357 "E", 22358 "C", 22359 "FF3.5", 22360 "IE9", 22361 "O9.5", 22362 "S3.1" 22363 ], 22364 "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." 22365 }, 22366 { 22367 "name": ":only-child", 22368 "references": [ 22369 { 22370 "name": "MDN Reference", 22371 "url": "https://developer.mozilla.org/docs/Web/CSS/:only-child" 22372 } 22373 ], 22374 "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." 22375 }, 22376 { 22377 "name": ":only-of-type", 22378 "references": [ 22379 { 22380 "name": "MDN Reference", 22381 "url": "https://developer.mozilla.org/docs/Web/CSS/:only-of-type" 22382 } 22383 ], 22384 "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." 22385 }, 22386 { 22387 "name": ":optional", 22388 "references": [ 22389 { 22390 "name": "MDN Reference", 22391 "url": "https://developer.mozilla.org/docs/Web/CSS/:optional" 22392 } 22393 ], 22394 "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." 22395 }, 22396 { 22397 "name": ":out-of-range", 22398 "browsers": [ 22399 "E13", 22400 "FF29", 22401 "S5.1", 22402 "C10", 22403 "O11" 22404 ], 22405 "references": [ 22406 { 22407 "name": "MDN Reference", 22408 "url": "https://developer.mozilla.org/docs/Web/CSS/:out-of-range" 22409 } 22410 ], 22411 "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." 22412 }, 22413 { 22414 "name": ":past", 22415 "browsers": [ 22416 "C", 22417 "O16", 22418 "S6" 22419 ], 22420 "description": "Represents any element that is defined to occur entirely prior to a :current element." 22421 }, 22422 { 22423 "name": ":read-only", 22424 "browsers": [ 22425 "E13", 22426 "FF78", 22427 "S4", 22428 "C1", 22429 "O9" 22430 ], 22431 "references": [ 22432 { 22433 "name": "MDN Reference", 22434 "url": "https://developer.mozilla.org/docs/Web/CSS/:read-only" 22435 } 22436 ], 22437 "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." 22438 }, 22439 { 22440 "name": ":read-write", 22441 "browsers": [ 22442 "E13", 22443 "FF78", 22444 "S4", 22445 "C1", 22446 "O9" 22447 ], 22448 "references": [ 22449 { 22450 "name": "MDN Reference", 22451 "url": "https://developer.mozilla.org/docs/Web/CSS/:read-write" 22452 } 22453 ], 22454 "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." 22455 }, 22456 { 22457 "name": ":required", 22458 "references": [ 22459 { 22460 "name": "MDN Reference", 22461 "url": "https://developer.mozilla.org/docs/Web/CSS/:required" 22462 } 22463 ], 22464 "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." 22465 }, 22466 { 22467 "name": ":right", 22468 "browsers": [ 22469 "E12", 22470 "S5.1", 22471 "C6", 22472 "IE8", 22473 "O9.2" 22474 ], 22475 "references": [ 22476 { 22477 "name": "MDN Reference", 22478 "url": "https://developer.mozilla.org/docs/Web/CSS/:right" 22479 } 22480 ], 22481 "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." 22482 }, 22483 { 22484 "name": ":root", 22485 "references": [ 22486 { 22487 "name": "MDN Reference", 22488 "url": "https://developer.mozilla.org/docs/Web/CSS/:root" 22489 } 22490 ], 22491 "description": "Represents an element that is the root of the document. In HTML 4, this is always the HTML element." 22492 }, 22493 { 22494 "name": ":scope", 22495 "browsers": [ 22496 "E79", 22497 "FF32", 22498 "S7", 22499 "C27", 22500 "O15" 22501 ], 22502 "references": [ 22503 { 22504 "name": "MDN Reference", 22505 "url": "https://developer.mozilla.org/docs/Web/CSS/:scope" 22506 } 22507 ], 22508 "description": "Represents any element that is in the contextual reference element set." 22509 }, 22510 { 22511 "name": ":single-button", 22512 "browsers": [ 22513 "C", 22514 "S5" 22515 ], 22516 "description": "Non-standard. Applies to buttons and track pieces. Applies when both buttons are displayed separately at either end of the scrollbar." 22517 }, 22518 { 22519 "name": ":start", 22520 "browsers": [ 22521 "C", 22522 "S5" 22523 ], 22524 "description": "Non-standard. Applies to buttons and track pieces. Indicates whether the object is placed before the thumb." 22525 }, 22526 { 22527 "name": ":target", 22528 "references": [ 22529 { 22530 "name": "MDN Reference", 22531 "url": "https://developer.mozilla.org/docs/Web/CSS/:target" 22532 } 22533 ], 22534 "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)." 22535 }, 22536 { 22537 "name": ":valid", 22538 "references": [ 22539 { 22540 "name": "MDN Reference", 22541 "url": "https://developer.mozilla.org/docs/Web/CSS/:valid" 22542 } 22543 ], 22544 "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." 22545 }, 22546 { 22547 "name": ":vertical", 22548 "browsers": [ 22549 "C", 22550 "S5" 22551 ], 22552 "description": "Non-standard. Applies to any scrollbar pieces that have a vertical orientation." 22553 }, 22554 { 22555 "name": ":visited", 22556 "references": [ 22557 { 22558 "name": "MDN Reference", 22559 "url": "https://developer.mozilla.org/docs/Web/CSS/:visited" 22560 } 22561 ], 22562 "description": "Applies once the link has been visited by the user." 22563 }, 22564 { 22565 "name": ":-webkit-any()", 22566 "browsers": [ 22567 "C", 22568 "S5" 22569 ], 22570 "description": "Represents an element that is represented by the selector list passed as its argument. Standardized as :matches()." 22571 }, 22572 { 22573 "name": ":-webkit-full-screen", 22574 "browsers": [ 22575 "C", 22576 "S6" 22577 ], 22578 "description": "Matches any element that has its fullscreen flag set. Standardized as :fullscreen." 22579 }, 22580 { 22581 "name": ":window-inactive", 22582 "browsers": [ 22583 "C", 22584 "S3" 22585 ], 22586 "description": "Non-standard. Applies to all scrollbar pieces. Indicates whether or not the window containing the scrollbar is currently active." 22587 }, 22588 { 22589 "name": ":blank", 22590 "status": "experimental", 22591 "references": [ 22592 { 22593 "name": "MDN Reference", 22594 "url": "https://developer.mozilla.org/docs/Web/CSS/:blank" 22595 } 22596 ], 22597 "description": "The :blank CSS pseudo-class selects empty user input elements (eg. <input> or <textarea>)." 22598 }, 22599 { 22600 "name": ":defined", 22601 "status": "experimental", 22602 "browsers": [ 22603 "E79", 22604 "FF63", 22605 "S10", 22606 "C54", 22607 "O41" 22608 ], 22609 "references": [ 22610 { 22611 "name": "MDN Reference", 22612 "url": "https://developer.mozilla.org/docs/Web/CSS/:defined" 22613 } 22614 ], 22615 "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)." 22616 }, 22617 { 22618 "name": ":dir", 22619 "browsers": [ 22620 "FF49" 22621 ], 22622 "references": [ 22623 { 22624 "name": "MDN Reference", 22625 "url": "https://developer.mozilla.org/docs/Web/CSS/:dir" 22626 } 22627 ], 22628 "description": "The :dir() CSS pseudo-class matches elements based on the directionality of the text contained in them." 22629 }, 22630 { 22631 "name": ":focus-visible", 22632 "status": "experimental", 22633 "browsers": [ 22634 "E79", 22635 "FF4", 22636 "C67", 22637 "O54" 22638 ], 22639 "references": [ 22640 { 22641 "name": "MDN Reference", 22642 "url": "https://developer.mozilla.org/docs/Web/CSS/:focus-visible" 22643 } 22644 ], 22645 "description": "The :focus-visible pseudo-class applies while an element matches the :focus pseudo-class and the UA determines via heuristics that the focus should be made evident on the element." 22646 }, 22647 { 22648 "name": ":focus-within", 22649 "status": "experimental", 22650 "browsers": [ 22651 "E79", 22652 "FF52", 22653 "S10.1", 22654 "C60", 22655 "O47" 22656 ], 22657 "references": [ 22658 { 22659 "name": "MDN Reference", 22660 "url": "https://developer.mozilla.org/docs/Web/CSS/:focus-within" 22661 } 22662 ], 22663 "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." 22664 }, 22665 { 22666 "name": ":has", 22667 "status": "experimental", 22668 "references": [ 22669 { 22670 "name": "MDN Reference", 22671 "url": "https://developer.mozilla.org/docs/Web/CSS/:has" 22672 } 22673 ], 22674 "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." 22675 }, 22676 { 22677 "name": ":is", 22678 "status": "experimental", 22679 "browsers": [ 22680 "E79", 22681 "FF78", 22682 "S9", 22683 "C68", 22684 "O55" 22685 ], 22686 "references": [ 22687 { 22688 "name": "MDN Reference", 22689 "url": "https://developer.mozilla.org/docs/Web/CSS/:is" 22690 } 22691 ], 22692 "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." 22693 }, 22694 { 22695 "name": ":placeholder-shown", 22696 "status": "experimental", 22697 "references": [ 22698 { 22699 "name": "MDN Reference", 22700 "url": "https://developer.mozilla.org/docs/Web/CSS/:placeholder-shown" 22701 } 22702 ], 22703 "description": "The :placeholder-shown CSS pseudo-class represents any <input> or <textarea> element that is currently displaying placeholder text." 22704 }, 22705 { 22706 "name": ":where", 22707 "status": "experimental", 22708 "browsers": [ 22709 "FF78", 22710 "C72" 22711 ], 22712 "references": [ 22713 { 22714 "name": "MDN Reference", 22715 "url": "https://developer.mozilla.org/docs/Web/CSS/:where" 22716 } 22717 ], 22718 "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." 22719 } 22720 ], 22721 "pseudoElements": [ 22722 { 22723 "name": "::after", 22724 "references": [ 22725 { 22726 "name": "MDN Reference", 22727 "url": "https://developer.mozilla.org/docs/Web/CSS/::after" 22728 } 22729 ], 22730 "description": "Represents a styleable child pseudo-element immediately after the originating element’s actual content." 22731 }, 22732 { 22733 "name": "::backdrop", 22734 "browsers": [ 22735 "E12", 22736 "FF47", 22737 "C37", 22738 "IE11", 22739 "O24" 22740 ], 22741 "references": [ 22742 { 22743 "name": "MDN Reference", 22744 "url": "https://developer.mozilla.org/docs/Web/CSS/::backdrop" 22745 } 22746 ], 22747 "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)." 22748 }, 22749 { 22750 "name": "::before", 22751 "references": [ 22752 { 22753 "name": "MDN Reference", 22754 "url": "https://developer.mozilla.org/docs/Web/CSS/::before" 22755 } 22756 ], 22757 "description": "Represents a styleable child pseudo-element immediately before the originating element’s actual content." 22758 }, 22759 { 22760 "name": "::content", 22761 "browsers": [ 22762 "C35", 22763 "O22" 22764 ], 22765 "description": "Deprecated. Matches the distribution list itself, on elements that have one. Use ::slotted for forward compatibility." 22766 }, 22767 { 22768 "name": "::cue", 22769 "browsers": [ 22770 "E79", 22771 "FF55", 22772 "S6.1", 22773 "C26", 22774 "O15" 22775 ], 22776 "references": [ 22777 { 22778 "name": "MDN Reference", 22779 "url": "https://developer.mozilla.org/docs/Web/CSS/::cue" 22780 } 22781 ] 22782 }, 22783 { 22784 "name": "::cue()", 22785 "browsers": [ 22786 "C", 22787 "O16", 22788 "S6" 22789 ] 22790 }, 22791 { 22792 "name": "::cue-region", 22793 "browsers": [ 22794 "C", 22795 "O16", 22796 "S6" 22797 ] 22798 }, 22799 { 22800 "name": "::cue-region()", 22801 "browsers": [ 22802 "C", 22803 "O16", 22804 "S6" 22805 ] 22806 }, 22807 { 22808 "name": "::first-letter", 22809 "references": [ 22810 { 22811 "name": "MDN Reference", 22812 "url": "https://developer.mozilla.org/docs/Web/CSS/::first-letter" 22813 } 22814 ], 22815 "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." 22816 }, 22817 { 22818 "name": "::first-line", 22819 "references": [ 22820 { 22821 "name": "MDN Reference", 22822 "url": "https://developer.mozilla.org/docs/Web/CSS/::first-line" 22823 } 22824 ], 22825 "description": "Describes the contents of the first formatted line of its originating element." 22826 }, 22827 { 22828 "name": "::-moz-focus-inner", 22829 "browsers": [ 22830 "FF4" 22831 ] 22832 }, 22833 { 22834 "name": "::-moz-focus-outer", 22835 "browsers": [ 22836 "FF4" 22837 ] 22838 }, 22839 { 22840 "name": "::-moz-list-bullet", 22841 "browsers": [ 22842 "FF1" 22843 ], 22844 "description": "Used to style the bullet of a list element. Similar to the standardized ::marker." 22845 }, 22846 { 22847 "name": "::-moz-list-number", 22848 "browsers": [ 22849 "FF1" 22850 ], 22851 "description": "Used to style the numbers of a list element. Similar to the standardized ::marker." 22852 }, 22853 { 22854 "name": "::-moz-placeholder", 22855 "browsers": [ 22856 "FF19" 22857 ], 22858 "description": "Represents placeholder text in an input field" 22859 }, 22860 { 22861 "name": "::-moz-progress-bar", 22862 "browsers": [ 22863 "FF9" 22864 ], 22865 "description": "Represents the bar portion of a progress bar." 22866 }, 22867 { 22868 "name": "::-moz-selection", 22869 "browsers": [ 22870 "FF1" 22871 ], 22872 "description": "Represents the portion of a document that has been highlighted by the user." 22873 }, 22874 { 22875 "name": "::-ms-backdrop", 22876 "browsers": [ 22877 "IE11" 22878 ], 22879 "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)." 22880 }, 22881 { 22882 "name": "::-ms-browse", 22883 "browsers": [ 22884 "E", 22885 "IE10" 22886 ], 22887 "description": "Represents the browse button of an input type=file control." 22888 }, 22889 { 22890 "name": "::-ms-check", 22891 "browsers": [ 22892 "E", 22893 "IE10" 22894 ], 22895 "description": "Represents the check of a checkbox or radio button input control." 22896 }, 22897 { 22898 "name": "::-ms-clear", 22899 "browsers": [ 22900 "E", 22901 "IE10" 22902 ], 22903 "description": "Represents the clear button of a text input control" 22904 }, 22905 { 22906 "name": "::-ms-expand", 22907 "browsers": [ 22908 "E", 22909 "IE10" 22910 ], 22911 "description": "Represents the drop-down button of a select control." 22912 }, 22913 { 22914 "name": "::-ms-fill", 22915 "browsers": [ 22916 "E", 22917 "IE10" 22918 ], 22919 "description": "Represents the bar portion of a progress bar." 22920 }, 22921 { 22922 "name": "::-ms-fill-lower", 22923 "browsers": [ 22924 "E", 22925 "IE10" 22926 ], 22927 "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." 22928 }, 22929 { 22930 "name": "::-ms-fill-upper", 22931 "browsers": [ 22932 "E", 22933 "IE10" 22934 ], 22935 "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." 22936 }, 22937 { 22938 "name": "::-ms-reveal", 22939 "browsers": [ 22940 "E", 22941 "IE10" 22942 ], 22943 "description": "Represents the password reveal button of an input type=password control." 22944 }, 22945 { 22946 "name": "::-ms-thumb", 22947 "browsers": [ 22948 "E", 22949 "IE10" 22950 ], 22951 "description": "Represents the portion of range input control (also known as a slider control) that the user drags." 22952 }, 22953 { 22954 "name": "::-ms-ticks-after", 22955 "browsers": [ 22956 "E", 22957 "IE10" 22958 ], 22959 "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." 22960 }, 22961 { 22962 "name": "::-ms-ticks-before", 22963 "browsers": [ 22964 "E", 22965 "IE10" 22966 ], 22967 "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." 22968 }, 22969 { 22970 "name": "::-ms-tooltip", 22971 "browsers": [ 22972 "E", 22973 "IE10" 22974 ], 22975 "description": "Represents the tooltip of a slider (input type=range)." 22976 }, 22977 { 22978 "name": "::-ms-track", 22979 "browsers": [ 22980 "E", 22981 "IE10" 22982 ], 22983 "description": "Represents the track of a slider." 22984 }, 22985 { 22986 "name": "::-ms-value", 22987 "browsers": [ 22988 "E", 22989 "IE10" 22990 ], 22991 "description": "Represents the content of a text or password input control, or a select control." 22992 }, 22993 { 22994 "name": "::selection", 22995 "references": [ 22996 { 22997 "name": "MDN Reference", 22998 "url": "https://developer.mozilla.org/docs/Web/CSS/::selection" 22999 } 23000 ], 23001 "description": "Represents the portion of a document that has been highlighted by the user." 23002 }, 23003 { 23004 "name": "::shadow", 23005 "browsers": [ 23006 "C35", 23007 "O22" 23008 ], 23009 "description": "Matches the shadow root if an element has a shadow tree." 23010 }, 23011 { 23012 "name": "::-webkit-file-upload-button", 23013 "browsers": [ 23014 "E79", 23015 "S3", 23016 "C1", 23017 "O15" 23018 ], 23019 "references": [ 23020 { 23021 "name": "MDN Reference", 23022 "url": "https://developer.mozilla.org/docs/Web/CSS/::-webkit-file-upload-button" 23023 } 23024 ] 23025 }, 23026 { 23027 "name": "::-webkit-inner-spin-button", 23028 "browsers": [ 23029 "E79", 23030 "S5", 23031 "C6", 23032 "O15" 23033 ], 23034 "references": [ 23035 { 23036 "name": "MDN Reference", 23037 "url": "https://developer.mozilla.org/docs/Web/CSS/::-webkit-inner-spin-button" 23038 } 23039 ] 23040 }, 23041 { 23042 "name": "::-webkit-input-placeholder", 23043 "browsers": [ 23044 "C", 23045 "S4" 23046 ] 23047 }, 23048 { 23049 "name": "::-webkit-keygen-select", 23050 "browsers": [ 23051 "C", 23052 "O", 23053 "S6" 23054 ] 23055 }, 23056 { 23057 "name": "::-webkit-meter-bar", 23058 "browsers": [ 23059 "E79", 23060 "S5.1", 23061 "C12", 23062 "O15" 23063 ], 23064 "references": [ 23065 { 23066 "name": "MDN Reference", 23067 "url": "https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-bar" 23068 } 23069 ] 23070 }, 23071 { 23072 "name": "::-webkit-meter-even-less-good-value", 23073 "browsers": [ 23074 "E79", 23075 "S5.1", 23076 "C12", 23077 "O15" 23078 ], 23079 "references": [ 23080 { 23081 "name": "MDN Reference", 23082 "url": "https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-even-less-good-value" 23083 } 23084 ] 23085 }, 23086 { 23087 "name": "::-webkit-meter-optimum-value", 23088 "browsers": [ 23089 "E79", 23090 "S5.1", 23091 "C12", 23092 "O15" 23093 ], 23094 "references": [ 23095 { 23096 "name": "MDN Reference", 23097 "url": "https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-optimum-value" 23098 } 23099 ] 23100 }, 23101 { 23102 "name": "::-webkit-meter-suboptimum-value", 23103 "browsers": [ 23104 "E79", 23105 "S5.1", 23106 "C12", 23107 "O15" 23108 ], 23109 "references": [ 23110 { 23111 "name": "MDN Reference", 23112 "url": "https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-suboptimum-value" 23113 } 23114 ] 23115 }, 23116 { 23117 "name": "::-webkit-outer-spin-button", 23118 "browsers": [ 23119 "S5", 23120 "C6" 23121 ], 23122 "references": [ 23123 { 23124 "name": "MDN Reference", 23125 "url": "https://developer.mozilla.org/docs/Web/CSS/::-webkit-outer-spin-button" 23126 } 23127 ] 23128 }, 23129 { 23130 "name": "::-webkit-progress-bar", 23131 "browsers": [ 23132 "E79", 23133 "S6.1", 23134 "C25", 23135 "O15" 23136 ], 23137 "references": [ 23138 { 23139 "name": "MDN Reference", 23140 "url": "https://developer.mozilla.org/docs/Web/CSS/::-webkit-progress-bar" 23141 } 23142 ] 23143 }, 23144 { 23145 "name": "::-webkit-progress-inner-element", 23146 "browsers": [ 23147 "E79", 23148 "S6.1", 23149 "C23", 23150 "O15" 23151 ], 23152 "references": [ 23153 { 23154 "name": "MDN Reference", 23155 "url": "https://developer.mozilla.org/docs/Web/CSS/::-webkit-progress-inner-element" 23156 } 23157 ] 23158 }, 23159 { 23160 "name": "::-webkit-progress-value", 23161 "browsers": [ 23162 "E79", 23163 "S6.1", 23164 "C25", 23165 "O15" 23166 ], 23167 "references": [ 23168 { 23169 "name": "MDN Reference", 23170 "url": "https://developer.mozilla.org/docs/Web/CSS/::-webkit-progress-value" 23171 } 23172 ] 23173 }, 23174 { 23175 "name": "::-webkit-resizer", 23176 "browsers": [ 23177 "E79", 23178 "S4", 23179 "C2", 23180 "O15" 23181 ], 23182 "references": [ 23183 { 23184 "name": "MDN Reference", 23185 "url": "https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar" 23186 } 23187 ] 23188 }, 23189 { 23190 "name": "::-webkit-scrollbar", 23191 "browsers": [ 23192 "E79", 23193 "S4", 23194 "C2", 23195 "O15" 23196 ], 23197 "references": [ 23198 { 23199 "name": "MDN Reference", 23200 "url": "https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar" 23201 } 23202 ] 23203 }, 23204 { 23205 "name": "::-webkit-scrollbar-button", 23206 "browsers": [ 23207 "E79", 23208 "S4", 23209 "C2", 23210 "O15" 23211 ], 23212 "references": [ 23213 { 23214 "name": "MDN Reference", 23215 "url": "https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar" 23216 } 23217 ] 23218 }, 23219 { 23220 "name": "::-webkit-scrollbar-corner", 23221 "browsers": [ 23222 "E79", 23223 "S4", 23224 "C2", 23225 "O15" 23226 ], 23227 "references": [ 23228 { 23229 "name": "MDN Reference", 23230 "url": "https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar" 23231 } 23232 ] 23233 }, 23234 { 23235 "name": "::-webkit-scrollbar-thumb", 23236 "browsers": [ 23237 "E79", 23238 "S4", 23239 "C2", 23240 "O15" 23241 ], 23242 "references": [ 23243 { 23244 "name": "MDN Reference", 23245 "url": "https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar" 23246 } 23247 ] 23248 }, 23249 { 23250 "name": "::-webkit-scrollbar-track", 23251 "browsers": [ 23252 "E79", 23253 "S4", 23254 "C2", 23255 "O15" 23256 ], 23257 "references": [ 23258 { 23259 "name": "MDN Reference", 23260 "url": "https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar" 23261 } 23262 ] 23263 }, 23264 { 23265 "name": "::-webkit-scrollbar-track-piece", 23266 "browsers": [ 23267 "E79", 23268 "S4", 23269 "C2", 23270 "O15" 23271 ], 23272 "references": [ 23273 { 23274 "name": "MDN Reference", 23275 "url": "https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar" 23276 } 23277 ] 23278 }, 23279 { 23280 "name": "::-webkit-search-cancel-button", 23281 "browsers": [ 23282 "E79", 23283 "S3", 23284 "C1", 23285 "O15" 23286 ], 23287 "references": [ 23288 { 23289 "name": "MDN Reference", 23290 "url": "https://developer.mozilla.org/docs/Web/CSS/::-webkit-search-cancel-button" 23291 } 23292 ] 23293 }, 23294 { 23295 "name": "::-webkit-search-decoration", 23296 "browsers": [ 23297 "C", 23298 "S4" 23299 ] 23300 }, 23301 { 23302 "name": "::-webkit-search-results-button", 23303 "browsers": [ 23304 "E79", 23305 "S3", 23306 "C1", 23307 "O15" 23308 ], 23309 "references": [ 23310 { 23311 "name": "MDN Reference", 23312 "url": "https://developer.mozilla.org/docs/Web/CSS/::-webkit-search-results-button" 23313 } 23314 ] 23315 }, 23316 { 23317 "name": "::-webkit-search-results-decoration", 23318 "browsers": [ 23319 "C", 23320 "S4" 23321 ] 23322 }, 23323 { 23324 "name": "::-webkit-slider-runnable-track", 23325 "browsers": [ 23326 "C", 23327 "O", 23328 "S6" 23329 ] 23330 }, 23331 { 23332 "name": "::-webkit-slider-thumb", 23333 "browsers": [ 23334 "C", 23335 "O", 23336 "S6" 23337 ] 23338 }, 23339 { 23340 "name": "::-webkit-textfield-decoration-container", 23341 "browsers": [ 23342 "C", 23343 "O", 23344 "S6" 23345 ] 23346 }, 23347 { 23348 "name": "::-webkit-validation-bubble", 23349 "browsers": [ 23350 "C", 23351 "O", 23352 "S6" 23353 ] 23354 }, 23355 { 23356 "name": "::-webkit-validation-bubble-arrow", 23357 "browsers": [ 23358 "C", 23359 "O", 23360 "S6" 23361 ] 23362 }, 23363 { 23364 "name": "::-webkit-validation-bubble-arrow-clipper", 23365 "browsers": [ 23366 "C", 23367 "O", 23368 "S6" 23369 ] 23370 }, 23371 { 23372 "name": "::-webkit-validation-bubble-heading", 23373 "browsers": [ 23374 "C", 23375 "O", 23376 "S6" 23377 ] 23378 }, 23379 { 23380 "name": "::-webkit-validation-bubble-message", 23381 "browsers": [ 23382 "C", 23383 "O", 23384 "S6" 23385 ] 23386 }, 23387 { 23388 "name": "::-webkit-validation-bubble-text-block", 23389 "browsers": [ 23390 "C", 23391 "O", 23392 "S6" 23393 ] 23394 }, 23395 { 23396 "name": "::-moz-range-progress", 23397 "status": "nonstandard", 23398 "browsers": [ 23399 "FF22" 23400 ], 23401 "references": [ 23402 { 23403 "name": "MDN Reference", 23404 "url": "https://developer.mozilla.org/docs/Web/CSS/::-moz-range-progress" 23405 } 23406 ], 23407 "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)." 23408 }, 23409 { 23410 "name": "::-moz-range-thumb", 23411 "status": "nonstandard", 23412 "browsers": [ 23413 "FF21" 23414 ], 23415 "references": [ 23416 { 23417 "name": "MDN Reference", 23418 "url": "https://developer.mozilla.org/docs/Web/CSS/::-moz-range-thumb" 23419 } 23420 ], 23421 "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." 23422 }, 23423 { 23424 "name": "::-moz-range-track", 23425 "status": "nonstandard", 23426 "browsers": [ 23427 "FF21" 23428 ], 23429 "references": [ 23430 { 23431 "name": "MDN Reference", 23432 "url": "https://developer.mozilla.org/docs/Web/CSS/::-moz-range-track" 23433 } 23434 ], 23435 "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\"." 23436 }, 23437 { 23438 "name": "::-webkit-progress-inner-value", 23439 "status": "nonstandard", 23440 "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." 23441 }, 23442 { 23443 "name": "::grammar-error", 23444 "status": "experimental", 23445 "references": [ 23446 { 23447 "name": "MDN Reference", 23448 "url": "https://developer.mozilla.org/docs/Web/CSS/::grammar-error" 23449 } 23450 ], 23451 "description": "The ::grammar-error CSS pseudo-element represents a text segment which the user agent has flagged as grammatically incorrect." 23452 }, 23453 { 23454 "name": "::marker", 23455 "browsers": [ 23456 "E80", 23457 "FF68", 23458 "S11.1", 23459 "C80" 23460 ], 23461 "references": [ 23462 { 23463 "name": "MDN Reference", 23464 "url": "https://developer.mozilla.org/docs/Web/CSS/::marker" 23465 } 23466 ], 23467 "description": "The ::marker CSS pseudo-element selects the marker box of a list item, which typically contains a bullet or number. It works on any element or pseudo-element set to display: list-item, such as the <li> and <summary> elements." 23468 }, 23469 { 23470 "name": "::part", 23471 "status": "experimental", 23472 "browsers": [ 23473 "E79", 23474 "FF72", 23475 "S13.1", 23476 "C73", 23477 "O60" 23478 ], 23479 "references": [ 23480 { 23481 "name": "MDN Reference", 23482 "url": "https://developer.mozilla.org/docs/Web/CSS/::part" 23483 } 23484 ], 23485 "description": "The ::part CSS pseudo-element represents any element within a shadow tree that has a matching part attribute." 23486 }, 23487 { 23488 "name": "::placeholder", 23489 "browsers": [ 23490 "E12", 23491 "FF51", 23492 "S10.1", 23493 "C57", 23494 "O44" 23495 ], 23496 "references": [ 23497 { 23498 "name": "MDN Reference", 23499 "url": "https://developer.mozilla.org/docs/Web/CSS/::placeholder" 23500 } 23501 ], 23502 "description": "The ::placeholder CSS pseudo-element represents the placeholder text of a form element." 23503 }, 23504 { 23505 "name": "::slotted", 23506 "browsers": [ 23507 "E79", 23508 "FF63", 23509 "S10", 23510 "C50", 23511 "O37" 23512 ], 23513 "references": [ 23514 { 23515 "name": "MDN Reference", 23516 "url": "https://developer.mozilla.org/docs/Web/CSS/::slotted" 23517 } 23518 ], 23519 "description": "The :slotted() CSS pseudo-element represents any element that has been placed into a slot inside an HTML template." 23520 }, 23521 { 23522 "name": "::spelling-error", 23523 "status": "experimental", 23524 "references": [ 23525 { 23526 "name": "MDN Reference", 23527 "url": "https://developer.mozilla.org/docs/Web/CSS/::spelling-error" 23528 } 23529 ], 23530 "description": "The ::spelling-error CSS pseudo-element represents a text segment which the user agent has flagged as incorrectly spelled." 23531 } 23532 ] 23533}; 23534 23535 23536/***/ }), 23537 23538/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/languageFacts/builtinData.js": 23539/*!**********************************************************************************************************************!*\ 23540 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/languageFacts/builtinData.js ***! 23541 \**********************************************************************************************************************/ 23542/*! exports provided: positionKeywords, repeatStyleKeywords, lineStyleKeywords, lineWidthKeywords, boxKeywords, geometryBoxKeywords, cssWideKeywords, imageFunctions, transitionTimingFunctions, basicShapeFunctions, units, html5Tags, svgElements, pageBoxDirectives */ 23543/***/ (function(module, __webpack_exports__, __webpack_require__) { 23544 23545"use strict"; 23546__webpack_require__.r(__webpack_exports__); 23547/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "positionKeywords", function() { return positionKeywords; }); 23548/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "repeatStyleKeywords", function() { return repeatStyleKeywords; }); 23549/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lineStyleKeywords", function() { return lineStyleKeywords; }); 23550/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lineWidthKeywords", function() { return lineWidthKeywords; }); 23551/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "boxKeywords", function() { return boxKeywords; }); 23552/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "geometryBoxKeywords", function() { return geometryBoxKeywords; }); 23553/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cssWideKeywords", function() { return cssWideKeywords; }); 23554/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "imageFunctions", function() { return imageFunctions; }); 23555/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "transitionTimingFunctions", function() { return transitionTimingFunctions; }); 23556/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "basicShapeFunctions", function() { return basicShapeFunctions; }); 23557/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "units", function() { return units; }); 23558/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "html5Tags", function() { return html5Tags; }); 23559/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "svgElements", function() { return svgElements; }); 23560/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pageBoxDirectives", function() { return pageBoxDirectives; }); 23561/*--------------------------------------------------------------------------------------------- 23562 * Copyright (c) Microsoft Corporation. All rights reserved. 23563 * Licensed under the MIT License. See License.txt in the project root for license information. 23564 *--------------------------------------------------------------------------------------------*/ 23565 23566var positionKeywords = { 23567 '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.', 23568 '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.', 23569 '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.', 23570 '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.', 23571 '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.' 23572}; 23573var repeatStyleKeywords = { 23574 'no-repeat': 'Placed once and not repeated in this direction.', 23575 'repeat': 'Repeated in this direction as often as needed to cover the background painting area.', 23576 'repeat-x': 'Computes to ‘repeat no-repeat’.', 23577 'repeat-y': 'Computes to ‘no-repeat repeat’.', 23578 '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.', 23579 '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.' 23580}; 23581var lineStyleKeywords = { 23582 'dashed': 'A series of square-ended dashes.', 23583 'dotted': 'A series of round dots.', 23584 'double': 'Two parallel solid lines with some space between them.', 23585 'groove': 'Looks as if it were carved in the canvas.', 23586 'hidden': 'Same as ‘none’, but has different behavior in the border conflict resolution rules for border-collapsed tables.', 23587 'inset': 'Looks as if the content on the inside of the border is sunken into the canvas.', 23588 'none': 'No border. Color and width are ignored.', 23589 'outset': 'Looks as if the content on the inside of the border is coming out of the canvas.', 23590 'ridge': 'Looks as if it were coming out of the canvas.', 23591 'solid': 'A single line segment.' 23592}; 23593var lineWidthKeywords = ['medium', 'thick', 'thin']; 23594var boxKeywords = { 23595 'border-box': 'The background is painted within (clipped to) the border box.', 23596 'content-box': 'The background is painted within (clipped to) the content box.', 23597 'padding-box': 'The background is painted within (clipped to) the padding box.' 23598}; 23599var geometryBoxKeywords = { 23600 'margin-box': 'Uses the margin box as reference box.', 23601 'fill-box': 'Uses the object bounding box as reference box.', 23602 'stroke-box': 'Uses the stroke bounding box as reference box.', 23603 'view-box': 'Uses the nearest SVG viewport as reference box.' 23604}; 23605var cssWideKeywords = { 23606 'initial': 'Represents the value specified as the property’s initial value.', 23607 'inherit': 'Represents the computed value of the property on the element’s parent.', 23608 'unset': 'Acts as either `inherit` or `initial`, depending on whether the property is inherited or not.' 23609}; 23610var imageFunctions = { 23611 'url()': 'Reference an image file by URL', 23612 'image()': 'Provide image fallbacks and annotations.', 23613 '-webkit-image-set()': 'Provide multiple resolutions. Remember to use unprefixed image-set() in addition.', 23614 'image-set()': 'Provide multiple resolutions of an image and const the UA decide which is most appropriate in a given situation.', 23615 '-moz-element()': 'Use an element in the document as an image. Remember to use unprefixed element() in addition.', 23616 'element()': 'Use an element in the document as an image.', 23617 'cross-fade()': 'Indicates the two images to be combined and how far along in the transition the combination is.', 23618 '-webkit-gradient()': 'Deprecated. Use modern linear-gradient() or radial-gradient() instead.', 23619 '-webkit-linear-gradient()': 'Linear gradient. Remember to use unprefixed version in addition.', 23620 '-moz-linear-gradient()': 'Linear gradient. Remember to use unprefixed version in addition.', 23621 '-o-linear-gradient()': 'Linear gradient. Remember to use unprefixed version in addition.', 23622 'linear-gradient()': 'A linear gradient is created by specifying a straight gradient line, and then several colors placed along that line.', 23623 '-webkit-repeating-linear-gradient()': 'Repeating Linear gradient. Remember to use unprefixed version in addition.', 23624 '-moz-repeating-linear-gradient()': 'Repeating Linear gradient. Remember to use unprefixed version in addition.', 23625 '-o-repeating-linear-gradient()': 'Repeating Linear gradient. Remember to use unprefixed version in addition.', 23626 '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.', 23627 '-webkit-radial-gradient()': 'Radial gradient. Remember to use unprefixed version in addition.', 23628 '-moz-radial-gradient()': 'Radial gradient. Remember to use unprefixed version in addition.', 23629 'radial-gradient()': 'Colors emerge from a single point and smoothly spread outward in a circular or elliptical shape.', 23630 '-webkit-repeating-radial-gradient()': 'Repeating radial gradient. Remember to use unprefixed version in addition.', 23631 '-moz-repeating-radial-gradient()': 'Repeating radial gradient. Remember to use unprefixed version in addition.', 23632 '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.' 23633}; 23634var transitionTimingFunctions = { 23635 'ease': 'Equivalent to cubic-bezier(0.25, 0.1, 0.25, 1.0).', 23636 'ease-in': 'Equivalent to cubic-bezier(0.42, 0, 1.0, 1.0).', 23637 'ease-in-out': 'Equivalent to cubic-bezier(0.42, 0, 0.58, 1.0).', 23638 'ease-out': 'Equivalent to cubic-bezier(0, 0, 0.58, 1.0).', 23639 'linear': 'Equivalent to cubic-bezier(0.0, 0.0, 1.0, 1.0).', 23640 'step-end': 'Equivalent to steps(1, end).', 23641 'step-start': 'Equivalent to steps(1, start).', 23642 '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”.', 23643 'cubic-bezier()': 'Specifies a cubic-bezier curve. The four values specify points P1 and P2 of the curve as (x1, y1, x2, y2).', 23644 'cubic-bezier(0.6, -0.28, 0.735, 0.045)': 'Ease-in Back. Overshoots.', 23645 'cubic-bezier(0.68, -0.55, 0.265, 1.55)': 'Ease-in-out Back. Overshoots.', 23646 'cubic-bezier(0.175, 0.885, 0.32, 1.275)': 'Ease-out Back. Overshoots.', 23647 'cubic-bezier(0.6, 0.04, 0.98, 0.335)': 'Ease-in Circular. Based on half circle.', 23648 'cubic-bezier(0.785, 0.135, 0.15, 0.86)': 'Ease-in-out Circular. Based on half circle.', 23649 'cubic-bezier(0.075, 0.82, 0.165, 1)': 'Ease-out Circular. Based on half circle.', 23650 'cubic-bezier(0.55, 0.055, 0.675, 0.19)': 'Ease-in Cubic. Based on power of three.', 23651 'cubic-bezier(0.645, 0.045, 0.355, 1)': 'Ease-in-out Cubic. Based on power of three.', 23652 'cubic-bezier(0.215, 0.610, 0.355, 1)': 'Ease-out Cubic. Based on power of three.', 23653 'cubic-bezier(0.95, 0.05, 0.795, 0.035)': 'Ease-in Exponential. Based on two to the power ten.', 23654 'cubic-bezier(1, 0, 0, 1)': 'Ease-in-out Exponential. Based on two to the power ten.', 23655 'cubic-bezier(0.19, 1, 0.22, 1)': 'Ease-out Exponential. Based on two to the power ten.', 23656 'cubic-bezier(0.47, 0, 0.745, 0.715)': 'Ease-in Sine.', 23657 'cubic-bezier(0.445, 0.05, 0.55, 0.95)': 'Ease-in-out Sine.', 23658 'cubic-bezier(0.39, 0.575, 0.565, 1)': 'Ease-out Sine.', 23659 'cubic-bezier(0.55, 0.085, 0.68, 0.53)': 'Ease-in Quadratic. Based on power of two.', 23660 'cubic-bezier(0.455, 0.03, 0.515, 0.955)': 'Ease-in-out Quadratic. Based on power of two.', 23661 'cubic-bezier(0.25, 0.46, 0.45, 0.94)': 'Ease-out Quadratic. Based on power of two.', 23662 'cubic-bezier(0.895, 0.03, 0.685, 0.22)': 'Ease-in Quartic. Based on power of four.', 23663 'cubic-bezier(0.77, 0, 0.175, 1)': 'Ease-in-out Quartic. Based on power of four.', 23664 'cubic-bezier(0.165, 0.84, 0.44, 1)': 'Ease-out Quartic. Based on power of four.', 23665 'cubic-bezier(0.755, 0.05, 0.855, 0.06)': 'Ease-in Quintic. Based on power of five.', 23666 'cubic-bezier(0.86, 0, 0.07, 1)': 'Ease-in-out Quintic. Based on power of five.', 23667 'cubic-bezier(0.23, 1, 0.320, 1)': 'Ease-out Quintic. Based on power of five.' 23668}; 23669var basicShapeFunctions = { 23670 'circle()': 'Defines a circle.', 23671 'ellipse()': 'Defines an ellipse.', 23672 'inset()': 'Defines an inset rectangle.', 23673 'polygon()': 'Defines a polygon.' 23674}; 23675var units = { 23676 'length': ['em', 'rem', 'ex', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ch', 'vw', 'vh', 'vmin', 'vmax'], 23677 'angle': ['deg', 'rad', 'grad', 'turn'], 23678 'time': ['ms', 's'], 23679 'frequency': ['Hz', 'kHz'], 23680 'resolution': ['dpi', 'dpcm', 'dppx'], 23681 'percentage': ['%', 'fr'] 23682}; 23683var html5Tags = ['a', 'abbr', 'address', 'area', 'article', 'aside', 'audio', 'b', 'base', 'bdi', 'bdo', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 23684 'cite', 'code', 'col', 'colgroup', 'data', 'datalist', 'dd', 'del', 'details', 'dfn', 'dialog', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 23685 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'iframe', 'img', 'input', 'ins', 'kbd', 'keygen', 'label', 'legend', 'li', 'link', 23686 'main', 'map', 'mark', 'menu', 'menuitem', 'meta', 'meter', 'nav', 'noscript', 'object', 'ol', 'optgroup', 'option', 'output', 'p', 'param', 'picture', 'pre', 'progress', 'q', 23687 'rb', 'rp', 'rt', 'rtc', 'ruby', 's', 'samp', 'script', 'section', 'select', 'small', 'source', 'span', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 23688 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'title', 'tr', 'track', 'u', 'ul', 'const', 'video', 'wbr']; 23689var svgElements = ['circle', 'clipPath', 'cursor', 'defs', 'desc', 'ellipse', 'feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 23690 'feDisplacementMap', 'feDistantLight', 'feDropShadow', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 23691 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence', 'filter', 'foreignObject', 'g', 'hatch', 'hatchpath', 'image', 'line', 'linearGradient', 23692 'marker', 'mask', 'mesh', 'meshpatch', 'meshrow', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'set', 'solidcolor', 'stop', 'svg', 'switch', 23693 'symbol', 'text', 'textPath', 'tspan', 'use', 'view']; 23694var pageBoxDirectives = [ 23695 '@bottom-center', '@bottom-left', '@bottom-left-corner', '@bottom-right', '@bottom-right-corner', 23696 '@left-bottom', '@left-middle', '@left-top', '@right-bottom', '@right-middle', '@right-top', 23697 '@top-center', '@top-left', '@top-left-corner', '@top-right', '@top-right-corner' 23698]; 23699 23700 23701/***/ }), 23702 23703/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/languageFacts/colors.js": 23704/*!*****************************************************************************************************************!*\ 23705 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/languageFacts/colors.js ***! 23706 \*****************************************************************************************************************/ 23707/*! exports provided: colorFunctions, colors, colorKeywords, isColorConstructor, isColorValue, hexDigit, colorFromHex, colorFrom256RGB, colorFromHSL, hslFromColor, getColorValue */ 23708/***/ (function(module, __webpack_exports__, __webpack_require__) { 23709 23710"use strict"; 23711__webpack_require__.r(__webpack_exports__); 23712/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "colorFunctions", function() { return colorFunctions; }); 23713/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "colors", function() { return colors; }); 23714/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "colorKeywords", function() { return colorKeywords; }); 23715/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isColorConstructor", function() { return isColorConstructor; }); 23716/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isColorValue", function() { return isColorValue; }); 23717/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hexDigit", function() { return hexDigit; }); 23718/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "colorFromHex", function() { return colorFromHex; }); 23719/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "colorFrom256RGB", function() { return colorFrom256RGB; }); 23720/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "colorFromHSL", function() { return colorFromHSL; }); 23721/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hslFromColor", function() { return hslFromColor; }); 23722/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getColorValue", function() { return getColorValue; }); 23723/* harmony import */ var _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../parser/cssNodes.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssNodes.js"); 23724/* harmony import */ var _fillers_vscode_nls_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../fillers/vscode-nls.js */ "./node_modules/monaco-editor/esm/vs/language/css/fillers/vscode-nls.js"); 23725/*--------------------------------------------------------------------------------------------- 23726 * Copyright (c) Microsoft Corporation. All rights reserved. 23727 * Licensed under the MIT License. See License.txt in the project root for license information. 23728 *--------------------------------------------------------------------------------------------*/ 23729 23730 23731var localize = _fillers_vscode_nls_js__WEBPACK_IMPORTED_MODULE_1__["loadMessageBundle"](); 23732var colorFunctions = [ 23733 { func: 'rgb($red, $green, $blue)', desc: localize('css.builtin.rgb', 'Creates a Color from red, green, and blue values.') }, 23734 { func: 'rgba($red, $green, $blue, $alpha)', desc: localize('css.builtin.rgba', 'Creates a Color from red, green, blue, and alpha values.') }, 23735 { func: 'hsl($hue, $saturation, $lightness)', desc: localize('css.builtin.hsl', 'Creates a Color from hue, saturation, and lightness values.') }, 23736 { func: 'hsla($hue, $saturation, $lightness, $alpha)', desc: localize('css.builtin.hsla', 'Creates a Color from hue, saturation, lightness, and alpha values.') } 23737]; 23738var colors = { 23739 aliceblue: '#f0f8ff', 23740 antiquewhite: '#faebd7', 23741 aqua: '#00ffff', 23742 aquamarine: '#7fffd4', 23743 azure: '#f0ffff', 23744 beige: '#f5f5dc', 23745 bisque: '#ffe4c4', 23746 black: '#000000', 23747 blanchedalmond: '#ffebcd', 23748 blue: '#0000ff', 23749 blueviolet: '#8a2be2', 23750 brown: '#a52a2a', 23751 burlywood: '#deb887', 23752 cadetblue: '#5f9ea0', 23753 chartreuse: '#7fff00', 23754 chocolate: '#d2691e', 23755 coral: '#ff7f50', 23756 cornflowerblue: '#6495ed', 23757 cornsilk: '#fff8dc', 23758 crimson: '#dc143c', 23759 cyan: '#00ffff', 23760 darkblue: '#00008b', 23761 darkcyan: '#008b8b', 23762 darkgoldenrod: '#b8860b', 23763 darkgray: '#a9a9a9', 23764 darkgrey: '#a9a9a9', 23765 darkgreen: '#006400', 23766 darkkhaki: '#bdb76b', 23767 darkmagenta: '#8b008b', 23768 darkolivegreen: '#556b2f', 23769 darkorange: '#ff8c00', 23770 darkorchid: '#9932cc', 23771 darkred: '#8b0000', 23772 darksalmon: '#e9967a', 23773 darkseagreen: '#8fbc8f', 23774 darkslateblue: '#483d8b', 23775 darkslategray: '#2f4f4f', 23776 darkslategrey: '#2f4f4f', 23777 darkturquoise: '#00ced1', 23778 darkviolet: '#9400d3', 23779 deeppink: '#ff1493', 23780 deepskyblue: '#00bfff', 23781 dimgray: '#696969', 23782 dimgrey: '#696969', 23783 dodgerblue: '#1e90ff', 23784 firebrick: '#b22222', 23785 floralwhite: '#fffaf0', 23786 forestgreen: '#228b22', 23787 fuchsia: '#ff00ff', 23788 gainsboro: '#dcdcdc', 23789 ghostwhite: '#f8f8ff', 23790 gold: '#ffd700', 23791 goldenrod: '#daa520', 23792 gray: '#808080', 23793 grey: '#808080', 23794 green: '#008000', 23795 greenyellow: '#adff2f', 23796 honeydew: '#f0fff0', 23797 hotpink: '#ff69b4', 23798 indianred: '#cd5c5c', 23799 indigo: '#4b0082', 23800 ivory: '#fffff0', 23801 khaki: '#f0e68c', 23802 lavender: '#e6e6fa', 23803 lavenderblush: '#fff0f5', 23804 lawngreen: '#7cfc00', 23805 lemonchiffon: '#fffacd', 23806 lightblue: '#add8e6', 23807 lightcoral: '#f08080', 23808 lightcyan: '#e0ffff', 23809 lightgoldenrodyellow: '#fafad2', 23810 lightgray: '#d3d3d3', 23811 lightgrey: '#d3d3d3', 23812 lightgreen: '#90ee90', 23813 lightpink: '#ffb6c1', 23814 lightsalmon: '#ffa07a', 23815 lightseagreen: '#20b2aa', 23816 lightskyblue: '#87cefa', 23817 lightslategray: '#778899', 23818 lightslategrey: '#778899', 23819 lightsteelblue: '#b0c4de', 23820 lightyellow: '#ffffe0', 23821 lime: '#00ff00', 23822 limegreen: '#32cd32', 23823 linen: '#faf0e6', 23824 magenta: '#ff00ff', 23825 maroon: '#800000', 23826 mediumaquamarine: '#66cdaa', 23827 mediumblue: '#0000cd', 23828 mediumorchid: '#ba55d3', 23829 mediumpurple: '#9370d8', 23830 mediumseagreen: '#3cb371', 23831 mediumslateblue: '#7b68ee', 23832 mediumspringgreen: '#00fa9a', 23833 mediumturquoise: '#48d1cc', 23834 mediumvioletred: '#c71585', 23835 midnightblue: '#191970', 23836 mintcream: '#f5fffa', 23837 mistyrose: '#ffe4e1', 23838 moccasin: '#ffe4b5', 23839 navajowhite: '#ffdead', 23840 navy: '#000080', 23841 oldlace: '#fdf5e6', 23842 olive: '#808000', 23843 olivedrab: '#6b8e23', 23844 orange: '#ffa500', 23845 orangered: '#ff4500', 23846 orchid: '#da70d6', 23847 palegoldenrod: '#eee8aa', 23848 palegreen: '#98fb98', 23849 paleturquoise: '#afeeee', 23850 palevioletred: '#d87093', 23851 papayawhip: '#ffefd5', 23852 peachpuff: '#ffdab9', 23853 peru: '#cd853f', 23854 pink: '#ffc0cb', 23855 plum: '#dda0dd', 23856 powderblue: '#b0e0e6', 23857 purple: '#800080', 23858 red: '#ff0000', 23859 rebeccapurple: '#663399', 23860 rosybrown: '#bc8f8f', 23861 royalblue: '#4169e1', 23862 saddlebrown: '#8b4513', 23863 salmon: '#fa8072', 23864 sandybrown: '#f4a460', 23865 seagreen: '#2e8b57', 23866 seashell: '#fff5ee', 23867 sienna: '#a0522d', 23868 silver: '#c0c0c0', 23869 skyblue: '#87ceeb', 23870 slateblue: '#6a5acd', 23871 slategray: '#708090', 23872 slategrey: '#708090', 23873 snow: '#fffafa', 23874 springgreen: '#00ff7f', 23875 steelblue: '#4682b4', 23876 tan: '#d2b48c', 23877 teal: '#008080', 23878 thistle: '#d8bfd8', 23879 tomato: '#ff6347', 23880 turquoise: '#40e0d0', 23881 violet: '#ee82ee', 23882 wheat: '#f5deb3', 23883 white: '#ffffff', 23884 whitesmoke: '#f5f5f5', 23885 yellow: '#ffff00', 23886 yellowgreen: '#9acd32' 23887}; 23888var colorKeywords = { 23889 '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.', 23890 'transparent': 'Fully transparent. This keyword can be considered a shorthand for rgba(0,0,0,0) which is its computed value.', 23891}; 23892function getNumericValue(node, factor) { 23893 var val = node.getText(); 23894 var m = val.match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/); 23895 if (m) { 23896 if (m[2]) { 23897 factor = 100.0; 23898 } 23899 var result = parseFloat(m[1]) / factor; 23900 if (result >= 0 && result <= 1) { 23901 return result; 23902 } 23903 } 23904 throw new Error(); 23905} 23906function getAngle(node) { 23907 var val = node.getText(); 23908 var m = val.match(/^([-+]?[0-9]*\.?[0-9]+)(deg)?$/); 23909 if (m) { 23910 return parseFloat(val) % 360; 23911 } 23912 throw new Error(); 23913} 23914function isColorConstructor(node) { 23915 var name = node.getName(); 23916 if (!name) { 23917 return false; 23918 } 23919 return /^(rgb|rgba|hsl|hsla)$/gi.test(name); 23920} 23921/** 23922 * Returns true if the node is a color value - either 23923 * defined a hex number, as rgb or rgba function, or 23924 * as color name. 23925 */ 23926function isColorValue(node) { 23927 if (node.type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].HexColorValue) { 23928 return true; 23929 } 23930 else if (node.type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].Function) { 23931 return isColorConstructor(node); 23932 } 23933 else if (node.type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].Identifier) { 23934 if (node.parent && node.parent.type !== _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].Term) { 23935 return false; 23936 } 23937 var candidateColor = node.getText().toLowerCase(); 23938 if (candidateColor === 'none') { 23939 return false; 23940 } 23941 if (colors[candidateColor]) { 23942 return true; 23943 } 23944 } 23945 return false; 23946} 23947var Digit0 = 48; 23948var Digit9 = 57; 23949var A = 65; 23950var F = 70; 23951var a = 97; 23952var f = 102; 23953function hexDigit(charCode) { 23954 if (charCode < Digit0) { 23955 return 0; 23956 } 23957 if (charCode <= Digit9) { 23958 return charCode - Digit0; 23959 } 23960 if (charCode < a) { 23961 charCode += (a - A); 23962 } 23963 if (charCode >= a && charCode <= f) { 23964 return charCode - a + 10; 23965 } 23966 return 0; 23967} 23968function colorFromHex(text) { 23969 if (text[0] !== '#') { 23970 return null; 23971 } 23972 switch (text.length) { 23973 case 4: 23974 return { 23975 red: (hexDigit(text.charCodeAt(1)) * 0x11) / 255.0, 23976 green: (hexDigit(text.charCodeAt(2)) * 0x11) / 255.0, 23977 blue: (hexDigit(text.charCodeAt(3)) * 0x11) / 255.0, 23978 alpha: 1 23979 }; 23980 case 5: 23981 return { 23982 red: (hexDigit(text.charCodeAt(1)) * 0x11) / 255.0, 23983 green: (hexDigit(text.charCodeAt(2)) * 0x11) / 255.0, 23984 blue: (hexDigit(text.charCodeAt(3)) * 0x11) / 255.0, 23985 alpha: (hexDigit(text.charCodeAt(4)) * 0x11) / 255.0, 23986 }; 23987 case 7: 23988 return { 23989 red: (hexDigit(text.charCodeAt(1)) * 0x10 + hexDigit(text.charCodeAt(2))) / 255.0, 23990 green: (hexDigit(text.charCodeAt(3)) * 0x10 + hexDigit(text.charCodeAt(4))) / 255.0, 23991 blue: (hexDigit(text.charCodeAt(5)) * 0x10 + hexDigit(text.charCodeAt(6))) / 255.0, 23992 alpha: 1 23993 }; 23994 case 9: 23995 return { 23996 red: (hexDigit(text.charCodeAt(1)) * 0x10 + hexDigit(text.charCodeAt(2))) / 255.0, 23997 green: (hexDigit(text.charCodeAt(3)) * 0x10 + hexDigit(text.charCodeAt(4))) / 255.0, 23998 blue: (hexDigit(text.charCodeAt(5)) * 0x10 + hexDigit(text.charCodeAt(6))) / 255.0, 23999 alpha: (hexDigit(text.charCodeAt(7)) * 0x10 + hexDigit(text.charCodeAt(8))) / 255.0 24000 }; 24001 } 24002 return null; 24003} 24004function colorFrom256RGB(red, green, blue, alpha) { 24005 if (alpha === void 0) { alpha = 1.0; } 24006 return { 24007 red: red / 255.0, 24008 green: green / 255.0, 24009 blue: blue / 255.0, 24010 alpha: alpha 24011 }; 24012} 24013function colorFromHSL(hue, sat, light, alpha) { 24014 if (alpha === void 0) { alpha = 1.0; } 24015 hue = hue / 60.0; 24016 if (sat === 0) { 24017 return { red: light, green: light, blue: light, alpha: alpha }; 24018 } 24019 else { 24020 var hueToRgb = function (t1, t2, hue) { 24021 while (hue < 0) { 24022 hue += 6; 24023 } 24024 while (hue >= 6) { 24025 hue -= 6; 24026 } 24027 if (hue < 1) { 24028 return (t2 - t1) * hue + t1; 24029 } 24030 if (hue < 3) { 24031 return t2; 24032 } 24033 if (hue < 4) { 24034 return (t2 - t1) * (4 - hue) + t1; 24035 } 24036 return t1; 24037 }; 24038 var t2 = light <= 0.5 ? (light * (sat + 1)) : (light + sat - (light * sat)); 24039 var t1 = light * 2 - t2; 24040 return { red: hueToRgb(t1, t2, hue + 2), green: hueToRgb(t1, t2, hue), blue: hueToRgb(t1, t2, hue - 2), alpha: alpha }; 24041 } 24042} 24043function hslFromColor(rgba) { 24044 var r = rgba.red; 24045 var g = rgba.green; 24046 var b = rgba.blue; 24047 var a = rgba.alpha; 24048 var max = Math.max(r, g, b); 24049 var min = Math.min(r, g, b); 24050 var h = 0; 24051 var s = 0; 24052 var l = (min + max) / 2; 24053 var chroma = max - min; 24054 if (chroma > 0) { 24055 s = Math.min((l <= 0.5 ? chroma / (2 * l) : chroma / (2 - (2 * l))), 1); 24056 switch (max) { 24057 case r: 24058 h = (g - b) / chroma + (g < b ? 6 : 0); 24059 break; 24060 case g: 24061 h = (b - r) / chroma + 2; 24062 break; 24063 case b: 24064 h = (r - g) / chroma + 4; 24065 break; 24066 } 24067 h *= 60; 24068 h = Math.round(h); 24069 } 24070 return { h: h, s: s, l: l, a: a }; 24071} 24072function getColorValue(node) { 24073 if (node.type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].HexColorValue) { 24074 var text = node.getText(); 24075 return colorFromHex(text); 24076 } 24077 else if (node.type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].Function) { 24078 var functionNode = node; 24079 var name = functionNode.getName(); 24080 var colorValues = functionNode.getArguments().getChildren(); 24081 if (!name || colorValues.length < 3 || colorValues.length > 4) { 24082 return null; 24083 } 24084 try { 24085 var alpha = colorValues.length === 4 ? getNumericValue(colorValues[3], 1) : 1; 24086 if (name === 'rgb' || name === 'rgba') { 24087 return { 24088 red: getNumericValue(colorValues[0], 255.0), 24089 green: getNumericValue(colorValues[1], 255.0), 24090 blue: getNumericValue(colorValues[2], 255.0), 24091 alpha: alpha 24092 }; 24093 } 24094 else if (name === 'hsl' || name === 'hsla') { 24095 var h = getAngle(colorValues[0]); 24096 var s = getNumericValue(colorValues[1], 100.0); 24097 var l = getNumericValue(colorValues[2], 100.0); 24098 return colorFromHSL(h, s, l, alpha); 24099 } 24100 } 24101 catch (e) { 24102 // parse error on numeric value 24103 return null; 24104 } 24105 } 24106 else if (node.type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].Identifier) { 24107 if (node.parent && node.parent.type !== _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].Term) { 24108 return null; 24109 } 24110 var term = node.parent; 24111 if (term && term.parent && term.parent.type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].BinaryExpression) { 24112 var expression = term.parent; 24113 if (expression.parent && expression.parent.type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].ListEntry && expression.parent.key === expression) { 24114 return null; 24115 } 24116 } 24117 var candidateColor = node.getText().toLowerCase(); 24118 if (candidateColor === 'none') { 24119 return null; 24120 } 24121 var colorHex = colors[candidateColor]; 24122 if (colorHex) { 24123 return colorFromHex(colorHex); 24124 } 24125 } 24126 return null; 24127} 24128 24129 24130/***/ }), 24131 24132/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/languageFacts/dataManager.js": 24133/*!**********************************************************************************************************************!*\ 24134 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/languageFacts/dataManager.js ***! 24135 \**********************************************************************************************************************/ 24136/*! exports provided: CSSDataManager */ 24137/***/ (function(module, __webpack_exports__, __webpack_require__) { 24138 24139"use strict"; 24140__webpack_require__.r(__webpack_exports__); 24141/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CSSDataManager", function() { return CSSDataManager; }); 24142/* harmony import */ var _utils_objects_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/objects.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/utils/objects.js"); 24143/* harmony import */ var _data_webCustomData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../data/webCustomData.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/data/webCustomData.js"); 24144/* harmony import */ var _dataProvider_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dataProvider.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/languageFacts/dataProvider.js"); 24145/*--------------------------------------------------------------------------------------------- 24146 * Copyright (c) Microsoft Corporation. All rights reserved. 24147 * Licensed under the MIT License. See License.txt in the project root for license information. 24148 *--------------------------------------------------------------------------------------------*/ 24149 24150 24151 24152 24153var CSSDataManager = /** @class */ (function () { 24154 function CSSDataManager(options) { 24155 this.dataProviders = []; 24156 this._propertySet = {}; 24157 this._atDirectiveSet = {}; 24158 this._pseudoClassSet = {}; 24159 this._pseudoElementSet = {}; 24160 this._properties = []; 24161 this._atDirectives = []; 24162 this._pseudoClasses = []; 24163 this._pseudoElements = []; 24164 this.setDataProviders((options === null || options === void 0 ? void 0 : options.useDefaultDataProvider) !== false, (options === null || options === void 0 ? void 0 : options.customDataProviders) || []); 24165 } 24166 CSSDataManager.prototype.setDataProviders = function (builtIn, providers) { 24167 var _a; 24168 this.dataProviders = []; 24169 if (builtIn) { 24170 this.dataProviders.push(new _dataProvider_js__WEBPACK_IMPORTED_MODULE_2__["CSSDataProvider"](_data_webCustomData_js__WEBPACK_IMPORTED_MODULE_1__["cssData"])); 24171 } 24172 (_a = this.dataProviders).push.apply(_a, providers); 24173 this.collectData(); 24174 }; 24175 /** 24176 * Collect all data & handle duplicates 24177 */ 24178 CSSDataManager.prototype.collectData = function () { 24179 var _this = this; 24180 this._propertySet = {}; 24181 this._atDirectiveSet = {}; 24182 this._pseudoClassSet = {}; 24183 this._pseudoElementSet = {}; 24184 this.dataProviders.forEach(function (provider) { 24185 provider.provideProperties().forEach(function (p) { 24186 if (!_this._propertySet[p.name]) { 24187 _this._propertySet[p.name] = p; 24188 } 24189 }); 24190 provider.provideAtDirectives().forEach(function (p) { 24191 if (!_this._atDirectiveSet[p.name]) { 24192 _this._atDirectiveSet[p.name] = p; 24193 } 24194 }); 24195 provider.providePseudoClasses().forEach(function (p) { 24196 if (!_this._pseudoClassSet[p.name]) { 24197 _this._pseudoClassSet[p.name] = p; 24198 } 24199 }); 24200 provider.providePseudoElements().forEach(function (p) { 24201 if (!_this._pseudoElementSet[p.name]) { 24202 _this._pseudoElementSet[p.name] = p; 24203 } 24204 }); 24205 }); 24206 this._properties = _utils_objects_js__WEBPACK_IMPORTED_MODULE_0__["values"](this._propertySet); 24207 this._atDirectives = _utils_objects_js__WEBPACK_IMPORTED_MODULE_0__["values"](this._atDirectiveSet); 24208 this._pseudoClasses = _utils_objects_js__WEBPACK_IMPORTED_MODULE_0__["values"](this._pseudoClassSet); 24209 this._pseudoElements = _utils_objects_js__WEBPACK_IMPORTED_MODULE_0__["values"](this._pseudoElementSet); 24210 }; 24211 CSSDataManager.prototype.getProperty = function (name) { return this._propertySet[name]; }; 24212 CSSDataManager.prototype.getAtDirective = function (name) { return this._atDirectiveSet[name]; }; 24213 CSSDataManager.prototype.getPseudoClass = function (name) { return this._pseudoClassSet[name]; }; 24214 CSSDataManager.prototype.getPseudoElement = function (name) { return this._pseudoElementSet[name]; }; 24215 CSSDataManager.prototype.getProperties = function () { 24216 return this._properties; 24217 }; 24218 CSSDataManager.prototype.getAtDirectives = function () { 24219 return this._atDirectives; 24220 }; 24221 CSSDataManager.prototype.getPseudoClasses = function () { 24222 return this._pseudoClasses; 24223 }; 24224 CSSDataManager.prototype.getPseudoElements = function () { 24225 return this._pseudoElements; 24226 }; 24227 CSSDataManager.prototype.isKnownProperty = function (name) { 24228 return name.toLowerCase() in this._propertySet; 24229 }; 24230 CSSDataManager.prototype.isStandardProperty = function (name) { 24231 return this.isKnownProperty(name) && 24232 (!this._propertySet[name.toLowerCase()].status || this._propertySet[name.toLowerCase()].status === 'standard'); 24233 }; 24234 return CSSDataManager; 24235}()); 24236 24237 24238 24239/***/ }), 24240 24241/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/languageFacts/dataProvider.js": 24242/*!***********************************************************************************************************************!*\ 24243 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/languageFacts/dataProvider.js ***! 24244 \***********************************************************************************************************************/ 24245/*! exports provided: CSSDataProvider */ 24246/***/ (function(module, __webpack_exports__, __webpack_require__) { 24247 24248"use strict"; 24249__webpack_require__.r(__webpack_exports__); 24250/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CSSDataProvider", function() { return CSSDataProvider; }); 24251/*--------------------------------------------------------------------------------------------- 24252 * Copyright (c) Microsoft Corporation. All rights reserved. 24253 * Licensed under the MIT License. See License.txt in the project root for license information. 24254 *--------------------------------------------------------------------------------------------*/ 24255 24256var CSSDataProvider = /** @class */ (function () { 24257 /** 24258 * Currently, unversioned data uses the V1 implementation 24259 * In the future when the provider handles multiple versions of HTML custom data, 24260 * use the latest implementation for unversioned data 24261 */ 24262 function CSSDataProvider(data) { 24263 this._properties = []; 24264 this._atDirectives = []; 24265 this._pseudoClasses = []; 24266 this._pseudoElements = []; 24267 this.addData(data); 24268 } 24269 CSSDataProvider.prototype.provideProperties = function () { 24270 return this._properties; 24271 }; 24272 CSSDataProvider.prototype.provideAtDirectives = function () { 24273 return this._atDirectives; 24274 }; 24275 CSSDataProvider.prototype.providePseudoClasses = function () { 24276 return this._pseudoClasses; 24277 }; 24278 CSSDataProvider.prototype.providePseudoElements = function () { 24279 return this._pseudoElements; 24280 }; 24281 CSSDataProvider.prototype.addData = function (data) { 24282 if (Array.isArray(data.properties)) { 24283 for (var _i = 0, _a = data.properties; _i < _a.length; _i++) { 24284 var prop = _a[_i]; 24285 if (isPropertyData(prop)) { 24286 this._properties.push(prop); 24287 } 24288 } 24289 } 24290 if (Array.isArray(data.atDirectives)) { 24291 for (var _b = 0, _c = data.atDirectives; _b < _c.length; _b++) { 24292 var prop = _c[_b]; 24293 if (isAtDirective(prop)) { 24294 this._atDirectives.push(prop); 24295 } 24296 } 24297 } 24298 if (Array.isArray(data.pseudoClasses)) { 24299 for (var _d = 0, _e = data.pseudoClasses; _d < _e.length; _d++) { 24300 var prop = _e[_d]; 24301 if (isPseudoClassData(prop)) { 24302 this._pseudoClasses.push(prop); 24303 } 24304 } 24305 } 24306 if (Array.isArray(data.pseudoElements)) { 24307 for (var _f = 0, _g = data.pseudoElements; _f < _g.length; _f++) { 24308 var prop = _g[_f]; 24309 if (isPseudoElementData(prop)) { 24310 this._pseudoElements.push(prop); 24311 } 24312 } 24313 } 24314 }; 24315 return CSSDataProvider; 24316}()); 24317 24318function isPropertyData(d) { 24319 return typeof d.name === 'string'; 24320} 24321function isAtDirective(d) { 24322 return typeof d.name === 'string'; 24323} 24324function isPseudoClassData(d) { 24325 return typeof d.name === 'string'; 24326} 24327function isPseudoElementData(d) { 24328 return typeof d.name === 'string'; 24329} 24330 24331 24332/***/ }), 24333 24334/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/languageFacts/entry.js": 24335/*!****************************************************************************************************************!*\ 24336 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/languageFacts/entry.js ***! 24337 \****************************************************************************************************************/ 24338/*! exports provided: browserNames, getEntryDescription, textToMarkedString, getBrowserLabel */ 24339/***/ (function(module, __webpack_exports__, __webpack_require__) { 24340 24341"use strict"; 24342__webpack_require__.r(__webpack_exports__); 24343/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "browserNames", function() { return browserNames; }); 24344/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getEntryDescription", function() { return getEntryDescription; }); 24345/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "textToMarkedString", function() { return textToMarkedString; }); 24346/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBrowserLabel", function() { return getBrowserLabel; }); 24347/*--------------------------------------------------------------------------------------------- 24348 * Copyright (c) Microsoft Corporation. All rights reserved. 24349 * Licensed under the MIT License. See License.txt in the project root for license information. 24350 *--------------------------------------------------------------------------------------------*/ 24351 24352var browserNames = { 24353 E: 'Edge', 24354 FF: 'Firefox', 24355 S: 'Safari', 24356 C: 'Chrome', 24357 IE: 'IE', 24358 O: 'Opera' 24359}; 24360function getEntryStatus(status) { 24361 switch (status) { 24362 case 'experimental': 24363 return '⚠️ Property is experimental. Be cautious when using it.️\n\n'; 24364 case 'nonstandard': 24365 return '️ Property is nonstandard. Avoid using it.\n\n'; 24366 case 'obsolete': 24367 return '️️️ Property is obsolete. Avoid using it.\n\n'; 24368 default: 24369 return ''; 24370 } 24371} 24372function getEntryDescription(entry, doesSupportMarkdown) { 24373 var result; 24374 if (doesSupportMarkdown) { 24375 result = { 24376 kind: 'markdown', 24377 value: getEntryMarkdownDescription(entry) 24378 }; 24379 } 24380 else { 24381 result = { 24382 kind: 'plaintext', 24383 value: getEntryStringDescription(entry) 24384 }; 24385 } 24386 if (result.value === '') { 24387 return undefined; 24388 } 24389 return result; 24390} 24391function textToMarkedString(text) { 24392 text = text.replace(/[\\`*_{}[\]()#+\-.!]/g, '\\$&'); // escape markdown syntax tokens: http://daringfireball.net/projects/markdown/syntax#backslash 24393 return text.replace(/</g, '<').replace(/>/g, '>'); 24394} 24395function getEntryStringDescription(entry) { 24396 if (!entry.description || entry.description === '') { 24397 return ''; 24398 } 24399 if (typeof entry.description !== 'string') { 24400 return entry.description.value; 24401 } 24402 var result = ''; 24403 if (entry.status) { 24404 result += getEntryStatus(entry.status); 24405 } 24406 result += entry.description; 24407 var browserLabel = getBrowserLabel(entry.browsers); 24408 if (browserLabel) { 24409 result += '\n(' + browserLabel + ')'; 24410 } 24411 if ('syntax' in entry) { 24412 result += "\n\nSyntax: " + entry.syntax; 24413 } 24414 if (entry.references && entry.references.length > 0) { 24415 result += '\n\n'; 24416 result += entry.references.map(function (r) { 24417 return r.name + ": " + r.url; 24418 }).join(' | '); 24419 } 24420 return result; 24421} 24422function getEntryMarkdownDescription(entry) { 24423 if (!entry.description || entry.description === '') { 24424 return ''; 24425 } 24426 var result = ''; 24427 if (entry.status) { 24428 result += getEntryStatus(entry.status); 24429 } 24430 var description = typeof entry.description === 'string' ? entry.description : entry.description.value; 24431 result += textToMarkedString(description); 24432 var browserLabel = getBrowserLabel(entry.browsers); 24433 if (browserLabel) { 24434 result += '\n\n(' + textToMarkedString(browserLabel) + ')'; 24435 } 24436 if ('syntax' in entry && entry.syntax) { 24437 result += "\n\nSyntax: " + textToMarkedString(entry.syntax); 24438 } 24439 if (entry.references && entry.references.length > 0) { 24440 result += '\n\n'; 24441 result += entry.references.map(function (r) { 24442 return "[" + r.name + "](" + r.url + ")"; 24443 }).join(' | '); 24444 } 24445 return result; 24446} 24447/** 24448 * Input is like `["E12","FF49","C47","IE","O"]` 24449 * Output is like `Edge 12, Firefox 49, Chrome 47, IE, Opera` 24450 */ 24451function getBrowserLabel(browsers) { 24452 if (browsers === void 0) { browsers = []; } 24453 if (browsers.length === 0) { 24454 return null; 24455 } 24456 return browsers 24457 .map(function (b) { 24458 var result = ''; 24459 var matches = b.match(/([A-Z]+)(\d+)?/); 24460 var name = matches[1]; 24461 var version = matches[2]; 24462 if (name in browserNames) { 24463 result += browserNames[name]; 24464 } 24465 if (version) { 24466 result += ' ' + version; 24467 } 24468 return result; 24469 }) 24470 .join(', '); 24471} 24472 24473 24474/***/ }), 24475 24476/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/languageFacts/facts.js": 24477/*!****************************************************************************************************************!*\ 24478 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/languageFacts/facts.js ***! 24479 \****************************************************************************************************************/ 24480/*! exports provided: browserNames, getEntryDescription, textToMarkedString, getBrowserLabel, colorFunctions, colors, colorKeywords, isColorConstructor, isColorValue, hexDigit, colorFromHex, colorFrom256RGB, colorFromHSL, hslFromColor, getColorValue, positionKeywords, repeatStyleKeywords, lineStyleKeywords, lineWidthKeywords, boxKeywords, geometryBoxKeywords, cssWideKeywords, imageFunctions, transitionTimingFunctions, basicShapeFunctions, units, html5Tags, svgElements, pageBoxDirectives */ 24481/***/ (function(module, __webpack_exports__, __webpack_require__) { 24482 24483"use strict"; 24484__webpack_require__.r(__webpack_exports__); 24485/* harmony import */ var _entry_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./entry.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/languageFacts/entry.js"); 24486/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "browserNames", function() { return _entry_js__WEBPACK_IMPORTED_MODULE_0__["browserNames"]; }); 24487 24488/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getEntryDescription", function() { return _entry_js__WEBPACK_IMPORTED_MODULE_0__["getEntryDescription"]; }); 24489 24490/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "textToMarkedString", function() { return _entry_js__WEBPACK_IMPORTED_MODULE_0__["textToMarkedString"]; }); 24491 24492/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getBrowserLabel", function() { return _entry_js__WEBPACK_IMPORTED_MODULE_0__["getBrowserLabel"]; }); 24493 24494/* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./colors.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/languageFacts/colors.js"); 24495/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "colorFunctions", function() { return _colors_js__WEBPACK_IMPORTED_MODULE_1__["colorFunctions"]; }); 24496 24497/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "colors", function() { return _colors_js__WEBPACK_IMPORTED_MODULE_1__["colors"]; }); 24498 24499/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "colorKeywords", function() { return _colors_js__WEBPACK_IMPORTED_MODULE_1__["colorKeywords"]; }); 24500 24501/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isColorConstructor", function() { return _colors_js__WEBPACK_IMPORTED_MODULE_1__["isColorConstructor"]; }); 24502 24503/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isColorValue", function() { return _colors_js__WEBPACK_IMPORTED_MODULE_1__["isColorValue"]; }); 24504 24505/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hexDigit", function() { return _colors_js__WEBPACK_IMPORTED_MODULE_1__["hexDigit"]; }); 24506 24507/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "colorFromHex", function() { return _colors_js__WEBPACK_IMPORTED_MODULE_1__["colorFromHex"]; }); 24508 24509/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "colorFrom256RGB", function() { return _colors_js__WEBPACK_IMPORTED_MODULE_1__["colorFrom256RGB"]; }); 24510 24511/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "colorFromHSL", function() { return _colors_js__WEBPACK_IMPORTED_MODULE_1__["colorFromHSL"]; }); 24512 24513/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hslFromColor", function() { return _colors_js__WEBPACK_IMPORTED_MODULE_1__["hslFromColor"]; }); 24514 24515/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getColorValue", function() { return _colors_js__WEBPACK_IMPORTED_MODULE_1__["getColorValue"]; }); 24516 24517/* harmony import */ var _builtinData_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./builtinData.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/languageFacts/builtinData.js"); 24518/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "positionKeywords", function() { return _builtinData_js__WEBPACK_IMPORTED_MODULE_2__["positionKeywords"]; }); 24519 24520/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "repeatStyleKeywords", function() { return _builtinData_js__WEBPACK_IMPORTED_MODULE_2__["repeatStyleKeywords"]; }); 24521 24522/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "lineStyleKeywords", function() { return _builtinData_js__WEBPACK_IMPORTED_MODULE_2__["lineStyleKeywords"]; }); 24523 24524/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "lineWidthKeywords", function() { return _builtinData_js__WEBPACK_IMPORTED_MODULE_2__["lineWidthKeywords"]; }); 24525 24526/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "boxKeywords", function() { return _builtinData_js__WEBPACK_IMPORTED_MODULE_2__["boxKeywords"]; }); 24527 24528/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geometryBoxKeywords", function() { return _builtinData_js__WEBPACK_IMPORTED_MODULE_2__["geometryBoxKeywords"]; }); 24529 24530/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "cssWideKeywords", function() { return _builtinData_js__WEBPACK_IMPORTED_MODULE_2__["cssWideKeywords"]; }); 24531 24532/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "imageFunctions", function() { return _builtinData_js__WEBPACK_IMPORTED_MODULE_2__["imageFunctions"]; }); 24533 24534/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "transitionTimingFunctions", function() { return _builtinData_js__WEBPACK_IMPORTED_MODULE_2__["transitionTimingFunctions"]; }); 24535 24536/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "basicShapeFunctions", function() { return _builtinData_js__WEBPACK_IMPORTED_MODULE_2__["basicShapeFunctions"]; }); 24537 24538/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "units", function() { return _builtinData_js__WEBPACK_IMPORTED_MODULE_2__["units"]; }); 24539 24540/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "html5Tags", function() { return _builtinData_js__WEBPACK_IMPORTED_MODULE_2__["html5Tags"]; }); 24541 24542/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "svgElements", function() { return _builtinData_js__WEBPACK_IMPORTED_MODULE_2__["svgElements"]; }); 24543 24544/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pageBoxDirectives", function() { return _builtinData_js__WEBPACK_IMPORTED_MODULE_2__["pageBoxDirectives"]; }); 24545 24546/*--------------------------------------------------------------------------------------------- 24547 * Copyright (c) Microsoft Corporation. All rights reserved. 24548 * Licensed under the MIT License. See License.txt in the project root for license information. 24549 *--------------------------------------------------------------------------------------------*/ 24550 24551 24552 24553 24554 24555 24556/***/ }), 24557 24558/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssErrors.js": 24559/*!*************************************************************************************************************!*\ 24560 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssErrors.js ***! 24561 \*************************************************************************************************************/ 24562/*! exports provided: CSSIssueType, ParseError */ 24563/***/ (function(module, __webpack_exports__, __webpack_require__) { 24564 24565"use strict"; 24566__webpack_require__.r(__webpack_exports__); 24567/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CSSIssueType", function() { return CSSIssueType; }); 24568/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ParseError", function() { return ParseError; }); 24569/* harmony import */ var _fillers_vscode_nls_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../fillers/vscode-nls.js */ "./node_modules/monaco-editor/esm/vs/language/css/fillers/vscode-nls.js"); 24570/*--------------------------------------------------------------------------------------------- 24571 * Copyright (c) Microsoft Corporation. All rights reserved. 24572 * Licensed under the MIT License. See License.txt in the project root for license information. 24573 *--------------------------------------------------------------------------------------------*/ 24574 24575 24576var localize = _fillers_vscode_nls_js__WEBPACK_IMPORTED_MODULE_0__["loadMessageBundle"](); 24577var CSSIssueType = /** @class */ (function () { 24578 function CSSIssueType(id, message) { 24579 this.id = id; 24580 this.message = message; 24581 } 24582 return CSSIssueType; 24583}()); 24584 24585var ParseError = { 24586 NumberExpected: new CSSIssueType('css-numberexpected', localize('expected.number', "number expected")), 24587 ConditionExpected: new CSSIssueType('css-conditionexpected', localize('expected.condt', "condition expected")), 24588 RuleOrSelectorExpected: new CSSIssueType('css-ruleorselectorexpected', localize('expected.ruleorselector', "at-rule or selector expected")), 24589 DotExpected: new CSSIssueType('css-dotexpected', localize('expected.dot', "dot expected")), 24590 ColonExpected: new CSSIssueType('css-colonexpected', localize('expected.colon', "colon expected")), 24591 SemiColonExpected: new CSSIssueType('css-semicolonexpected', localize('expected.semicolon', "semi-colon expected")), 24592 TermExpected: new CSSIssueType('css-termexpected', localize('expected.term', "term expected")), 24593 ExpressionExpected: new CSSIssueType('css-expressionexpected', localize('expected.expression', "expression expected")), 24594 OperatorExpected: new CSSIssueType('css-operatorexpected', localize('expected.operator', "operator expected")), 24595 IdentifierExpected: new CSSIssueType('css-identifierexpected', localize('expected.ident', "identifier expected")), 24596 PercentageExpected: new CSSIssueType('css-percentageexpected', localize('expected.percentage', "percentage expected")), 24597 URIOrStringExpected: new CSSIssueType('css-uriorstringexpected', localize('expected.uriorstring', "uri or string expected")), 24598 URIExpected: new CSSIssueType('css-uriexpected', localize('expected.uri', "URI expected")), 24599 VariableNameExpected: new CSSIssueType('css-varnameexpected', localize('expected.varname', "variable name expected")), 24600 VariableValueExpected: new CSSIssueType('css-varvalueexpected', localize('expected.varvalue', "variable value expected")), 24601 PropertyValueExpected: new CSSIssueType('css-propertyvalueexpected', localize('expected.propvalue', "property value expected")), 24602 LeftCurlyExpected: new CSSIssueType('css-lcurlyexpected', localize('expected.lcurly', "{ expected")), 24603 RightCurlyExpected: new CSSIssueType('css-rcurlyexpected', localize('expected.rcurly', "} expected")), 24604 LeftSquareBracketExpected: new CSSIssueType('css-rbracketexpected', localize('expected.lsquare', "[ expected")), 24605 RightSquareBracketExpected: new CSSIssueType('css-lbracketexpected', localize('expected.rsquare', "] expected")), 24606 LeftParenthesisExpected: new CSSIssueType('css-lparentexpected', localize('expected.lparen', "( expected")), 24607 RightParenthesisExpected: new CSSIssueType('css-rparentexpected', localize('expected.rparent', ") expected")), 24608 CommaExpected: new CSSIssueType('css-commaexpected', localize('expected.comma', "comma expected")), 24609 PageDirectiveOrDeclarationExpected: new CSSIssueType('css-pagedirordeclexpected', localize('expected.pagedirordecl', "page directive or declaraton expected")), 24610 UnknownAtRule: new CSSIssueType('css-unknownatrule', localize('unknown.atrule', "at-rule unknown")), 24611 UnknownKeyword: new CSSIssueType('css-unknownkeyword', localize('unknown.keyword', "unknown keyword")), 24612 SelectorExpected: new CSSIssueType('css-selectorexpected', localize('expected.selector', "selector expected")), 24613 StringLiteralExpected: new CSSIssueType('css-stringliteralexpected', localize('expected.stringliteral', "string literal expected")), 24614 WhitespaceExpected: new CSSIssueType('css-whitespaceexpected', localize('expected.whitespace', "whitespace expected")), 24615 MediaQueryExpected: new CSSIssueType('css-mediaqueryexpected', localize('expected.mediaquery', "media query expected")), 24616 IdentifierOrWildcardExpected: new CSSIssueType('css-idorwildcardexpected', localize('expected.idorwildcard', "identifier or wildcard expected")), 24617 WildcardExpected: new CSSIssueType('css-wildcardexpected', localize('expected.wildcard', "wildcard expected")), 24618 IdentifierOrVariableExpected: new CSSIssueType('css-idorvarexpected', localize('expected.idorvar', "identifier or variable expected")), 24619}; 24620 24621 24622/***/ }), 24623 24624/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssNodes.js": 24625/*!************************************************************************************************************!*\ 24626 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssNodes.js ***! 24627 \************************************************************************************************************/ 24628/*! exports provided: NodeType, ReferenceType, getNodeAtOffset, getNodePath, getParentDeclaration, Node, Nodelist, Identifier, Stylesheet, Declarations, BodyDeclaration, RuleSet, Selector, SimpleSelector, AtApplyRule, AbstractDeclaration, CustomPropertyDeclaration, CustomPropertySet, Declaration, Property, Invocation, Function, FunctionParameter, FunctionArgument, IfStatement, ForStatement, EachStatement, WhileStatement, ElseStatement, FunctionDeclaration, ViewPort, FontFace, NestedProperties, Keyframe, KeyframeSelector, Import, Use, ModuleConfiguration, Forward, ForwardVisibility, Namespace, Media, Supports, Document, Medialist, MediaQuery, SupportsCondition, Page, PageBoxMarginBox, Expression, BinaryExpression, Term, AttributeSelector, Operator, HexColorValue, NumericValue, VariableDeclaration, Interpolation, Variable, ExtendsReference, MixinContentReference, MixinContentDeclaration, MixinReference, MixinDeclaration, UnknownAtRule, ListEntry, LessGuard, GuardCondition, Module, Level, Marker, ParseErrorCollector */ 24629/***/ (function(module, __webpack_exports__, __webpack_require__) { 24630 24631"use strict"; 24632__webpack_require__.r(__webpack_exports__); 24633/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeType", function() { return NodeType; }); 24634/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReferenceType", function() { return ReferenceType; }); 24635/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNodeAtOffset", function() { return getNodeAtOffset; }); 24636/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNodePath", function() { return getNodePath; }); 24637/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getParentDeclaration", function() { return getParentDeclaration; }); 24638/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Node", function() { return Node; }); 24639/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nodelist", function() { return Nodelist; }); 24640/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Identifier", function() { return Identifier; }); 24641/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Stylesheet", function() { return Stylesheet; }); 24642/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Declarations", function() { return Declarations; }); 24643/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BodyDeclaration", function() { return BodyDeclaration; }); 24644/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RuleSet", function() { return RuleSet; }); 24645/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Selector", function() { return Selector; }); 24646/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SimpleSelector", function() { return SimpleSelector; }); 24647/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AtApplyRule", function() { return AtApplyRule; }); 24648/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AbstractDeclaration", function() { return AbstractDeclaration; }); 24649/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CustomPropertyDeclaration", function() { return CustomPropertyDeclaration; }); 24650/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CustomPropertySet", function() { return CustomPropertySet; }); 24651/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Declaration", function() { return Declaration; }); 24652/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Property", function() { return Property; }); 24653/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Invocation", function() { return Invocation; }); 24654/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Function", function() { return Function; }); 24655/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FunctionParameter", function() { return FunctionParameter; }); 24656/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FunctionArgument", function() { return FunctionArgument; }); 24657/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IfStatement", function() { return IfStatement; }); 24658/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ForStatement", function() { return ForStatement; }); 24659/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EachStatement", function() { return EachStatement; }); 24660/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WhileStatement", function() { return WhileStatement; }); 24661/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ElseStatement", function() { return ElseStatement; }); 24662/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FunctionDeclaration", function() { return FunctionDeclaration; }); 24663/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ViewPort", function() { return ViewPort; }); 24664/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FontFace", function() { return FontFace; }); 24665/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NestedProperties", function() { return NestedProperties; }); 24666/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Keyframe", function() { return Keyframe; }); 24667/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KeyframeSelector", function() { return KeyframeSelector; }); 24668/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Import", function() { return Import; }); 24669/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Use", function() { return Use; }); 24670/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ModuleConfiguration", function() { return ModuleConfiguration; }); 24671/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Forward", function() { return Forward; }); 24672/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ForwardVisibility", function() { return ForwardVisibility; }); 24673/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Namespace", function() { return Namespace; }); 24674/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Media", function() { return Media; }); 24675/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Supports", function() { return Supports; }); 24676/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Document", function() { return Document; }); 24677/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Medialist", function() { return Medialist; }); 24678/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MediaQuery", function() { return MediaQuery; }); 24679/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SupportsCondition", function() { return SupportsCondition; }); 24680/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Page", function() { return Page; }); 24681/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PageBoxMarginBox", function() { return PageBoxMarginBox; }); 24682/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Expression", function() { return Expression; }); 24683/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BinaryExpression", function() { return BinaryExpression; }); 24684/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Term", function() { return Term; }); 24685/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AttributeSelector", function() { return AttributeSelector; }); 24686/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Operator", function() { return Operator; }); 24687/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HexColorValue", function() { return HexColorValue; }); 24688/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NumericValue", function() { return NumericValue; }); 24689/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VariableDeclaration", function() { return VariableDeclaration; }); 24690/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Interpolation", function() { return Interpolation; }); 24691/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Variable", function() { return Variable; }); 24692/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExtendsReference", function() { return ExtendsReference; }); 24693/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MixinContentReference", function() { return MixinContentReference; }); 24694/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MixinContentDeclaration", function() { return MixinContentDeclaration; }); 24695/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MixinReference", function() { return MixinReference; }); 24696/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MixinDeclaration", function() { return MixinDeclaration; }); 24697/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnknownAtRule", function() { return UnknownAtRule; }); 24698/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListEntry", function() { return ListEntry; }); 24699/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LessGuard", function() { return LessGuard; }); 24700/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GuardCondition", function() { return GuardCondition; }); 24701/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Module", function() { return Module; }); 24702/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Level", function() { return Level; }); 24703/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Marker", function() { return Marker; }); 24704/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ParseErrorCollector", function() { return ParseErrorCollector; }); 24705/* harmony import */ var _utils_strings_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/strings.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/utils/strings.js"); 24706/*--------------------------------------------------------------------------------------------- 24707 * Copyright (c) Microsoft Corporation. All rights reserved. 24708 * Licensed under the MIT License. See License.txt in the project root for license information. 24709 *--------------------------------------------------------------------------------------------*/ 24710 24711var __extends = (undefined && undefined.__extends) || (function () { 24712 var extendStatics = function (d, b) { 24713 extendStatics = Object.setPrototypeOf || 24714 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || 24715 function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; 24716 return extendStatics(d, b); 24717 }; 24718 return function (d, b) { 24719 extendStatics(d, b); 24720 function __() { this.constructor = d; } 24721 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); 24722 }; 24723})(); 24724 24725/// <summary> 24726/// Nodes for the css 2.1 specification. See for reference: 24727/// http://www.w3.org/TR/CSS21/grammar.html#grammar 24728/// </summary> 24729var NodeType; 24730(function (NodeType) { 24731 NodeType[NodeType["Undefined"] = 0] = "Undefined"; 24732 NodeType[NodeType["Identifier"] = 1] = "Identifier"; 24733 NodeType[NodeType["Stylesheet"] = 2] = "Stylesheet"; 24734 NodeType[NodeType["Ruleset"] = 3] = "Ruleset"; 24735 NodeType[NodeType["Selector"] = 4] = "Selector"; 24736 NodeType[NodeType["SimpleSelector"] = 5] = "SimpleSelector"; 24737 NodeType[NodeType["SelectorInterpolation"] = 6] = "SelectorInterpolation"; 24738 NodeType[NodeType["SelectorCombinator"] = 7] = "SelectorCombinator"; 24739 NodeType[NodeType["SelectorCombinatorParent"] = 8] = "SelectorCombinatorParent"; 24740 NodeType[NodeType["SelectorCombinatorSibling"] = 9] = "SelectorCombinatorSibling"; 24741 NodeType[NodeType["SelectorCombinatorAllSiblings"] = 10] = "SelectorCombinatorAllSiblings"; 24742 NodeType[NodeType["SelectorCombinatorShadowPiercingDescendant"] = 11] = "SelectorCombinatorShadowPiercingDescendant"; 24743 NodeType[NodeType["Page"] = 12] = "Page"; 24744 NodeType[NodeType["PageBoxMarginBox"] = 13] = "PageBoxMarginBox"; 24745 NodeType[NodeType["ClassSelector"] = 14] = "ClassSelector"; 24746 NodeType[NodeType["IdentifierSelector"] = 15] = "IdentifierSelector"; 24747 NodeType[NodeType["ElementNameSelector"] = 16] = "ElementNameSelector"; 24748 NodeType[NodeType["PseudoSelector"] = 17] = "PseudoSelector"; 24749 NodeType[NodeType["AttributeSelector"] = 18] = "AttributeSelector"; 24750 NodeType[NodeType["Declaration"] = 19] = "Declaration"; 24751 NodeType[NodeType["Declarations"] = 20] = "Declarations"; 24752 NodeType[NodeType["Property"] = 21] = "Property"; 24753 NodeType[NodeType["Expression"] = 22] = "Expression"; 24754 NodeType[NodeType["BinaryExpression"] = 23] = "BinaryExpression"; 24755 NodeType[NodeType["Term"] = 24] = "Term"; 24756 NodeType[NodeType["Operator"] = 25] = "Operator"; 24757 NodeType[NodeType["Value"] = 26] = "Value"; 24758 NodeType[NodeType["StringLiteral"] = 27] = "StringLiteral"; 24759 NodeType[NodeType["URILiteral"] = 28] = "URILiteral"; 24760 NodeType[NodeType["EscapedValue"] = 29] = "EscapedValue"; 24761 NodeType[NodeType["Function"] = 30] = "Function"; 24762 NodeType[NodeType["NumericValue"] = 31] = "NumericValue"; 24763 NodeType[NodeType["HexColorValue"] = 32] = "HexColorValue"; 24764 NodeType[NodeType["MixinDeclaration"] = 33] = "MixinDeclaration"; 24765 NodeType[NodeType["MixinReference"] = 34] = "MixinReference"; 24766 NodeType[NodeType["VariableName"] = 35] = "VariableName"; 24767 NodeType[NodeType["VariableDeclaration"] = 36] = "VariableDeclaration"; 24768 NodeType[NodeType["Prio"] = 37] = "Prio"; 24769 NodeType[NodeType["Interpolation"] = 38] = "Interpolation"; 24770 NodeType[NodeType["NestedProperties"] = 39] = "NestedProperties"; 24771 NodeType[NodeType["ExtendsReference"] = 40] = "ExtendsReference"; 24772 NodeType[NodeType["SelectorPlaceholder"] = 41] = "SelectorPlaceholder"; 24773 NodeType[NodeType["Debug"] = 42] = "Debug"; 24774 NodeType[NodeType["If"] = 43] = "If"; 24775 NodeType[NodeType["Else"] = 44] = "Else"; 24776 NodeType[NodeType["For"] = 45] = "For"; 24777 NodeType[NodeType["Each"] = 46] = "Each"; 24778 NodeType[NodeType["While"] = 47] = "While"; 24779 NodeType[NodeType["MixinContentReference"] = 48] = "MixinContentReference"; 24780 NodeType[NodeType["MixinContentDeclaration"] = 49] = "MixinContentDeclaration"; 24781 NodeType[NodeType["Media"] = 50] = "Media"; 24782 NodeType[NodeType["Keyframe"] = 51] = "Keyframe"; 24783 NodeType[NodeType["FontFace"] = 52] = "FontFace"; 24784 NodeType[NodeType["Import"] = 53] = "Import"; 24785 NodeType[NodeType["Namespace"] = 54] = "Namespace"; 24786 NodeType[NodeType["Invocation"] = 55] = "Invocation"; 24787 NodeType[NodeType["FunctionDeclaration"] = 56] = "FunctionDeclaration"; 24788 NodeType[NodeType["ReturnStatement"] = 57] = "ReturnStatement"; 24789 NodeType[NodeType["MediaQuery"] = 58] = "MediaQuery"; 24790 NodeType[NodeType["FunctionParameter"] = 59] = "FunctionParameter"; 24791 NodeType[NodeType["FunctionArgument"] = 60] = "FunctionArgument"; 24792 NodeType[NodeType["KeyframeSelector"] = 61] = "KeyframeSelector"; 24793 NodeType[NodeType["ViewPort"] = 62] = "ViewPort"; 24794 NodeType[NodeType["Document"] = 63] = "Document"; 24795 NodeType[NodeType["AtApplyRule"] = 64] = "AtApplyRule"; 24796 NodeType[NodeType["CustomPropertyDeclaration"] = 65] = "CustomPropertyDeclaration"; 24797 NodeType[NodeType["CustomPropertySet"] = 66] = "CustomPropertySet"; 24798 NodeType[NodeType["ListEntry"] = 67] = "ListEntry"; 24799 NodeType[NodeType["Supports"] = 68] = "Supports"; 24800 NodeType[NodeType["SupportsCondition"] = 69] = "SupportsCondition"; 24801 NodeType[NodeType["NamespacePrefix"] = 70] = "NamespacePrefix"; 24802 NodeType[NodeType["GridLine"] = 71] = "GridLine"; 24803 NodeType[NodeType["Plugin"] = 72] = "Plugin"; 24804 NodeType[NodeType["UnknownAtRule"] = 73] = "UnknownAtRule"; 24805 NodeType[NodeType["Use"] = 74] = "Use"; 24806 NodeType[NodeType["ModuleConfiguration"] = 75] = "ModuleConfiguration"; 24807 NodeType[NodeType["Forward"] = 76] = "Forward"; 24808 NodeType[NodeType["ForwardVisibility"] = 77] = "ForwardVisibility"; 24809 NodeType[NodeType["Module"] = 78] = "Module"; 24810})(NodeType || (NodeType = {})); 24811var ReferenceType; 24812(function (ReferenceType) { 24813 ReferenceType[ReferenceType["Mixin"] = 0] = "Mixin"; 24814 ReferenceType[ReferenceType["Rule"] = 1] = "Rule"; 24815 ReferenceType[ReferenceType["Variable"] = 2] = "Variable"; 24816 ReferenceType[ReferenceType["Function"] = 3] = "Function"; 24817 ReferenceType[ReferenceType["Keyframe"] = 4] = "Keyframe"; 24818 ReferenceType[ReferenceType["Unknown"] = 5] = "Unknown"; 24819 ReferenceType[ReferenceType["Module"] = 6] = "Module"; 24820 ReferenceType[ReferenceType["Forward"] = 7] = "Forward"; 24821 ReferenceType[ReferenceType["ForwardVisibility"] = 8] = "ForwardVisibility"; 24822})(ReferenceType || (ReferenceType = {})); 24823function getNodeAtOffset(node, offset) { 24824 var candidate = null; 24825 if (!node || offset < node.offset || offset > node.end) { 24826 return null; 24827 } 24828 // Find the shortest node at the position 24829 node.accept(function (node) { 24830 if (node.offset === -1 && node.length === -1) { 24831 return true; 24832 } 24833 if (node.offset <= offset && node.end >= offset) { 24834 if (!candidate) { 24835 candidate = node; 24836 } 24837 else if (node.length <= candidate.length) { 24838 candidate = node; 24839 } 24840 return true; 24841 } 24842 return false; 24843 }); 24844 return candidate; 24845} 24846function getNodePath(node, offset) { 24847 var candidate = getNodeAtOffset(node, offset); 24848 var path = []; 24849 while (candidate) { 24850 path.unshift(candidate); 24851 candidate = candidate.parent; 24852 } 24853 return path; 24854} 24855function getParentDeclaration(node) { 24856 var decl = node.findParent(NodeType.Declaration); 24857 var value = decl && decl.getValue(); 24858 if (value && value.encloses(node)) { 24859 return decl; 24860 } 24861 return null; 24862} 24863var Node = /** @class */ (function () { 24864 function Node(offset, len, nodeType) { 24865 if (offset === void 0) { offset = -1; } 24866 if (len === void 0) { len = -1; } 24867 this.parent = null; 24868 this.offset = offset; 24869 this.length = len; 24870 if (nodeType) { 24871 this.nodeType = nodeType; 24872 } 24873 } 24874 Object.defineProperty(Node.prototype, "end", { 24875 get: function () { return this.offset + this.length; }, 24876 enumerable: true, 24877 configurable: true 24878 }); 24879 Object.defineProperty(Node.prototype, "type", { 24880 get: function () { 24881 return this.nodeType || NodeType.Undefined; 24882 }, 24883 set: function (type) { 24884 this.nodeType = type; 24885 }, 24886 enumerable: true, 24887 configurable: true 24888 }); 24889 Node.prototype.getTextProvider = function () { 24890 var node = this; 24891 while (node && !node.textProvider) { 24892 node = node.parent; 24893 } 24894 if (node) { 24895 return node.textProvider; 24896 } 24897 return function () { return 'unknown'; }; 24898 }; 24899 Node.prototype.getText = function () { 24900 return this.getTextProvider()(this.offset, this.length); 24901 }; 24902 Node.prototype.matches = function (str) { 24903 return this.length === str.length && this.getTextProvider()(this.offset, this.length) === str; 24904 }; 24905 Node.prototype.startsWith = function (str) { 24906 return this.length >= str.length && this.getTextProvider()(this.offset, str.length) === str; 24907 }; 24908 Node.prototype.endsWith = function (str) { 24909 return this.length >= str.length && this.getTextProvider()(this.end - str.length, str.length) === str; 24910 }; 24911 Node.prototype.accept = function (visitor) { 24912 if (visitor(this) && this.children) { 24913 for (var _i = 0, _a = this.children; _i < _a.length; _i++) { 24914 var child = _a[_i]; 24915 child.accept(visitor); 24916 } 24917 } 24918 }; 24919 Node.prototype.acceptVisitor = function (visitor) { 24920 this.accept(visitor.visitNode.bind(visitor)); 24921 }; 24922 Node.prototype.adoptChild = function (node, index) { 24923 if (index === void 0) { index = -1; } 24924 if (node.parent && node.parent.children) { 24925 var idx = node.parent.children.indexOf(node); 24926 if (idx >= 0) { 24927 node.parent.children.splice(idx, 1); 24928 } 24929 } 24930 node.parent = this; 24931 var children = this.children; 24932 if (!children) { 24933 children = this.children = []; 24934 } 24935 if (index !== -1) { 24936 children.splice(index, 0, node); 24937 } 24938 else { 24939 children.push(node); 24940 } 24941 return node; 24942 }; 24943 Node.prototype.attachTo = function (parent, index) { 24944 if (index === void 0) { index = -1; } 24945 if (parent) { 24946 parent.adoptChild(this, index); 24947 } 24948 return this; 24949 }; 24950 Node.prototype.collectIssues = function (results) { 24951 if (this.issues) { 24952 results.push.apply(results, this.issues); 24953 } 24954 }; 24955 Node.prototype.addIssue = function (issue) { 24956 if (!this.issues) { 24957 this.issues = []; 24958 } 24959 this.issues.push(issue); 24960 }; 24961 Node.prototype.hasIssue = function (rule) { 24962 return Array.isArray(this.issues) && this.issues.some(function (i) { return i.getRule() === rule; }); 24963 }; 24964 Node.prototype.isErroneous = function (recursive) { 24965 if (recursive === void 0) { recursive = false; } 24966 if (this.issues && this.issues.length > 0) { 24967 return true; 24968 } 24969 return recursive && Array.isArray(this.children) && this.children.some(function (c) { return c.isErroneous(true); }); 24970 }; 24971 Node.prototype.setNode = function (field, node, index) { 24972 if (index === void 0) { index = -1; } 24973 if (node) { 24974 node.attachTo(this, index); 24975 this[field] = node; 24976 return true; 24977 } 24978 return false; 24979 }; 24980 Node.prototype.addChild = function (node) { 24981 if (node) { 24982 if (!this.children) { 24983 this.children = []; 24984 } 24985 node.attachTo(this); 24986 this.updateOffsetAndLength(node); 24987 return true; 24988 } 24989 return false; 24990 }; 24991 Node.prototype.updateOffsetAndLength = function (node) { 24992 if (node.offset < this.offset || this.offset === -1) { 24993 this.offset = node.offset; 24994 } 24995 var nodeEnd = node.end; 24996 if ((nodeEnd > this.end) || this.length === -1) { 24997 this.length = nodeEnd - this.offset; 24998 } 24999 }; 25000 Node.prototype.hasChildren = function () { 25001 return !!this.children && this.children.length > 0; 25002 }; 25003 Node.prototype.getChildren = function () { 25004 return this.children ? this.children.slice(0) : []; 25005 }; 25006 Node.prototype.getChild = function (index) { 25007 if (this.children && index < this.children.length) { 25008 return this.children[index]; 25009 } 25010 return null; 25011 }; 25012 Node.prototype.addChildren = function (nodes) { 25013 for (var _i = 0, nodes_1 = nodes; _i < nodes_1.length; _i++) { 25014 var node = nodes_1[_i]; 25015 this.addChild(node); 25016 } 25017 }; 25018 Node.prototype.findFirstChildBeforeOffset = function (offset) { 25019 if (this.children) { 25020 var current = null; 25021 for (var i = this.children.length - 1; i >= 0; i--) { 25022 // iterate until we find a child that has a start offset smaller than the input offset 25023 current = this.children[i]; 25024 if (current.offset <= offset) { 25025 return current; 25026 } 25027 } 25028 } 25029 return null; 25030 }; 25031 Node.prototype.findChildAtOffset = function (offset, goDeep) { 25032 var current = this.findFirstChildBeforeOffset(offset); 25033 if (current && current.end >= offset) { 25034 if (goDeep) { 25035 return current.findChildAtOffset(offset, true) || current; 25036 } 25037 return current; 25038 } 25039 return null; 25040 }; 25041 Node.prototype.encloses = function (candidate) { 25042 return this.offset <= candidate.offset && this.offset + this.length >= candidate.offset + candidate.length; 25043 }; 25044 Node.prototype.getParent = function () { 25045 var result = this.parent; 25046 while (result instanceof Nodelist) { 25047 result = result.parent; 25048 } 25049 return result; 25050 }; 25051 Node.prototype.findParent = function (type) { 25052 var result = this; 25053 while (result && result.type !== type) { 25054 result = result.parent; 25055 } 25056 return result; 25057 }; 25058 Node.prototype.findAParent = function () { 25059 var types = []; 25060 for (var _i = 0; _i < arguments.length; _i++) { 25061 types[_i] = arguments[_i]; 25062 } 25063 var result = this; 25064 while (result && !types.some(function (t) { return result.type === t; })) { 25065 result = result.parent; 25066 } 25067 return result; 25068 }; 25069 Node.prototype.setData = function (key, value) { 25070 if (!this.options) { 25071 this.options = {}; 25072 } 25073 this.options[key] = value; 25074 }; 25075 Node.prototype.getData = function (key) { 25076 if (!this.options || !this.options.hasOwnProperty(key)) { 25077 return null; 25078 } 25079 return this.options[key]; 25080 }; 25081 return Node; 25082}()); 25083 25084var Nodelist = /** @class */ (function (_super) { 25085 __extends(Nodelist, _super); 25086 function Nodelist(parent, index) { 25087 if (index === void 0) { index = -1; } 25088 var _this = _super.call(this, -1, -1) || this; 25089 _this.attachTo(parent, index); 25090 _this.offset = -1; 25091 _this.length = -1; 25092 return _this; 25093 } 25094 return Nodelist; 25095}(Node)); 25096 25097var Identifier = /** @class */ (function (_super) { 25098 __extends(Identifier, _super); 25099 function Identifier(offset, length) { 25100 var _this = _super.call(this, offset, length) || this; 25101 _this.isCustomProperty = false; 25102 return _this; 25103 } 25104 Object.defineProperty(Identifier.prototype, "type", { 25105 get: function () { 25106 return NodeType.Identifier; 25107 }, 25108 enumerable: true, 25109 configurable: true 25110 }); 25111 Identifier.prototype.containsInterpolation = function () { 25112 return this.hasChildren(); 25113 }; 25114 return Identifier; 25115}(Node)); 25116 25117var Stylesheet = /** @class */ (function (_super) { 25118 __extends(Stylesheet, _super); 25119 function Stylesheet(offset, length) { 25120 return _super.call(this, offset, length) || this; 25121 } 25122 Object.defineProperty(Stylesheet.prototype, "type", { 25123 get: function () { 25124 return NodeType.Stylesheet; 25125 }, 25126 enumerable: true, 25127 configurable: true 25128 }); 25129 return Stylesheet; 25130}(Node)); 25131 25132var Declarations = /** @class */ (function (_super) { 25133 __extends(Declarations, _super); 25134 function Declarations(offset, length) { 25135 return _super.call(this, offset, length) || this; 25136 } 25137 Object.defineProperty(Declarations.prototype, "type", { 25138 get: function () { 25139 return NodeType.Declarations; 25140 }, 25141 enumerable: true, 25142 configurable: true 25143 }); 25144 return Declarations; 25145}(Node)); 25146 25147var BodyDeclaration = /** @class */ (function (_super) { 25148 __extends(BodyDeclaration, _super); 25149 function BodyDeclaration(offset, length) { 25150 return _super.call(this, offset, length) || this; 25151 } 25152 BodyDeclaration.prototype.getDeclarations = function () { 25153 return this.declarations; 25154 }; 25155 BodyDeclaration.prototype.setDeclarations = function (decls) { 25156 return this.setNode('declarations', decls); 25157 }; 25158 return BodyDeclaration; 25159}(Node)); 25160 25161var RuleSet = /** @class */ (function (_super) { 25162 __extends(RuleSet, _super); 25163 function RuleSet(offset, length) { 25164 return _super.call(this, offset, length) || this; 25165 } 25166 Object.defineProperty(RuleSet.prototype, "type", { 25167 get: function () { 25168 return NodeType.Ruleset; 25169 }, 25170 enumerable: true, 25171 configurable: true 25172 }); 25173 RuleSet.prototype.getSelectors = function () { 25174 if (!this.selectors) { 25175 this.selectors = new Nodelist(this); 25176 } 25177 return this.selectors; 25178 }; 25179 RuleSet.prototype.isNested = function () { 25180 return !!this.parent && this.parent.findParent(NodeType.Declarations) !== null; 25181 }; 25182 return RuleSet; 25183}(BodyDeclaration)); 25184 25185var Selector = /** @class */ (function (_super) { 25186 __extends(Selector, _super); 25187 function Selector(offset, length) { 25188 return _super.call(this, offset, length) || this; 25189 } 25190 Object.defineProperty(Selector.prototype, "type", { 25191 get: function () { 25192 return NodeType.Selector; 25193 }, 25194 enumerable: true, 25195 configurable: true 25196 }); 25197 return Selector; 25198}(Node)); 25199 25200var SimpleSelector = /** @class */ (function (_super) { 25201 __extends(SimpleSelector, _super); 25202 function SimpleSelector(offset, length) { 25203 return _super.call(this, offset, length) || this; 25204 } 25205 Object.defineProperty(SimpleSelector.prototype, "type", { 25206 get: function () { 25207 return NodeType.SimpleSelector; 25208 }, 25209 enumerable: true, 25210 configurable: true 25211 }); 25212 return SimpleSelector; 25213}(Node)); 25214 25215var AtApplyRule = /** @class */ (function (_super) { 25216 __extends(AtApplyRule, _super); 25217 function AtApplyRule(offset, length) { 25218 return _super.call(this, offset, length) || this; 25219 } 25220 Object.defineProperty(AtApplyRule.prototype, "type", { 25221 get: function () { 25222 return NodeType.AtApplyRule; 25223 }, 25224 enumerable: true, 25225 configurable: true 25226 }); 25227 AtApplyRule.prototype.setIdentifier = function (node) { 25228 return this.setNode('identifier', node, 0); 25229 }; 25230 AtApplyRule.prototype.getIdentifier = function () { 25231 return this.identifier; 25232 }; 25233 AtApplyRule.prototype.getName = function () { 25234 return this.identifier ? this.identifier.getText() : ''; 25235 }; 25236 return AtApplyRule; 25237}(Node)); 25238 25239var AbstractDeclaration = /** @class */ (function (_super) { 25240 __extends(AbstractDeclaration, _super); 25241 function AbstractDeclaration(offset, length) { 25242 return _super.call(this, offset, length) || this; 25243 } 25244 return AbstractDeclaration; 25245}(Node)); 25246 25247var CustomPropertyDeclaration = /** @class */ (function (_super) { 25248 __extends(CustomPropertyDeclaration, _super); 25249 function CustomPropertyDeclaration(offset, length) { 25250 return _super.call(this, offset, length) || this; 25251 } 25252 Object.defineProperty(CustomPropertyDeclaration.prototype, "type", { 25253 get: function () { 25254 return NodeType.CustomPropertyDeclaration; 25255 }, 25256 enumerable: true, 25257 configurable: true 25258 }); 25259 CustomPropertyDeclaration.prototype.setProperty = function (node) { 25260 return this.setNode('property', node); 25261 }; 25262 CustomPropertyDeclaration.prototype.getProperty = function () { 25263 return this.property; 25264 }; 25265 CustomPropertyDeclaration.prototype.setValue = function (value) { 25266 return this.setNode('value', value); 25267 }; 25268 CustomPropertyDeclaration.prototype.getValue = function () { 25269 return this.value; 25270 }; 25271 CustomPropertyDeclaration.prototype.setPropertySet = function (value) { 25272 return this.setNode('propertySet', value); 25273 }; 25274 CustomPropertyDeclaration.prototype.getPropertySet = function () { 25275 return this.propertySet; 25276 }; 25277 return CustomPropertyDeclaration; 25278}(AbstractDeclaration)); 25279 25280var CustomPropertySet = /** @class */ (function (_super) { 25281 __extends(CustomPropertySet, _super); 25282 function CustomPropertySet(offset, length) { 25283 return _super.call(this, offset, length) || this; 25284 } 25285 Object.defineProperty(CustomPropertySet.prototype, "type", { 25286 get: function () { 25287 return NodeType.CustomPropertySet; 25288 }, 25289 enumerable: true, 25290 configurable: true 25291 }); 25292 return CustomPropertySet; 25293}(BodyDeclaration)); 25294 25295var Declaration = /** @class */ (function (_super) { 25296 __extends(Declaration, _super); 25297 function Declaration(offset, length) { 25298 var _this = _super.call(this, offset, length) || this; 25299 _this.property = null; 25300 return _this; 25301 } 25302 Object.defineProperty(Declaration.prototype, "type", { 25303 get: function () { 25304 return NodeType.Declaration; 25305 }, 25306 enumerable: true, 25307 configurable: true 25308 }); 25309 Declaration.prototype.setProperty = function (node) { 25310 return this.setNode('property', node); 25311 }; 25312 Declaration.prototype.getProperty = function () { 25313 return this.property; 25314 }; 25315 Declaration.prototype.getFullPropertyName = function () { 25316 var propertyName = this.property ? this.property.getName() : 'unknown'; 25317 if (this.parent instanceof Declarations && this.parent.getParent() instanceof NestedProperties) { 25318 var parentDecl = this.parent.getParent().getParent(); 25319 if (parentDecl instanceof Declaration) { 25320 return parentDecl.getFullPropertyName() + propertyName; 25321 } 25322 } 25323 return propertyName; 25324 }; 25325 Declaration.prototype.getNonPrefixedPropertyName = function () { 25326 var propertyName = this.getFullPropertyName(); 25327 if (propertyName && propertyName.charAt(0) === '-') { 25328 var vendorPrefixEnd = propertyName.indexOf('-', 1); 25329 if (vendorPrefixEnd !== -1) { 25330 return propertyName.substring(vendorPrefixEnd + 1); 25331 } 25332 } 25333 return propertyName; 25334 }; 25335 Declaration.prototype.setValue = function (value) { 25336 return this.setNode('value', value); 25337 }; 25338 Declaration.prototype.getValue = function () { 25339 return this.value; 25340 }; 25341 Declaration.prototype.setNestedProperties = function (value) { 25342 return this.setNode('nestedProperties', value); 25343 }; 25344 Declaration.prototype.getNestedProperties = function () { 25345 return this.nestedProperties; 25346 }; 25347 return Declaration; 25348}(AbstractDeclaration)); 25349 25350var Property = /** @class */ (function (_super) { 25351 __extends(Property, _super); 25352 function Property(offset, length) { 25353 return _super.call(this, offset, length) || this; 25354 } 25355 Object.defineProperty(Property.prototype, "type", { 25356 get: function () { 25357 return NodeType.Property; 25358 }, 25359 enumerable: true, 25360 configurable: true 25361 }); 25362 Property.prototype.setIdentifier = function (value) { 25363 return this.setNode('identifier', value); 25364 }; 25365 Property.prototype.getIdentifier = function () { 25366 return this.identifier; 25367 }; 25368 Property.prototype.getName = function () { 25369 return Object(_utils_strings_js__WEBPACK_IMPORTED_MODULE_0__["trim"])(this.getText(), /[_\+]+$/); /* +_: less merge */ 25370 }; 25371 Property.prototype.isCustomProperty = function () { 25372 return !!this.identifier && this.identifier.isCustomProperty; 25373 }; 25374 return Property; 25375}(Node)); 25376 25377var Invocation = /** @class */ (function (_super) { 25378 __extends(Invocation, _super); 25379 function Invocation(offset, length) { 25380 return _super.call(this, offset, length) || this; 25381 } 25382 Object.defineProperty(Invocation.prototype, "type", { 25383 get: function () { 25384 return NodeType.Invocation; 25385 }, 25386 enumerable: true, 25387 configurable: true 25388 }); 25389 Invocation.prototype.getArguments = function () { 25390 if (!this.arguments) { 25391 this.arguments = new Nodelist(this); 25392 } 25393 return this.arguments; 25394 }; 25395 return Invocation; 25396}(Node)); 25397 25398var Function = /** @class */ (function (_super) { 25399 __extends(Function, _super); 25400 function Function(offset, length) { 25401 return _super.call(this, offset, length) || this; 25402 } 25403 Object.defineProperty(Function.prototype, "type", { 25404 get: function () { 25405 return NodeType.Function; 25406 }, 25407 enumerable: true, 25408 configurable: true 25409 }); 25410 Function.prototype.setIdentifier = function (node) { 25411 return this.setNode('identifier', node, 0); 25412 }; 25413 Function.prototype.getIdentifier = function () { 25414 return this.identifier; 25415 }; 25416 Function.prototype.getName = function () { 25417 return this.identifier ? this.identifier.getText() : ''; 25418 }; 25419 return Function; 25420}(Invocation)); 25421 25422var FunctionParameter = /** @class */ (function (_super) { 25423 __extends(FunctionParameter, _super); 25424 function FunctionParameter(offset, length) { 25425 return _super.call(this, offset, length) || this; 25426 } 25427 Object.defineProperty(FunctionParameter.prototype, "type", { 25428 get: function () { 25429 return NodeType.FunctionParameter; 25430 }, 25431 enumerable: true, 25432 configurable: true 25433 }); 25434 FunctionParameter.prototype.setIdentifier = function (node) { 25435 return this.setNode('identifier', node, 0); 25436 }; 25437 FunctionParameter.prototype.getIdentifier = function () { 25438 return this.identifier; 25439 }; 25440 FunctionParameter.prototype.getName = function () { 25441 return this.identifier ? this.identifier.getText() : ''; 25442 }; 25443 FunctionParameter.prototype.setDefaultValue = function (node) { 25444 return this.setNode('defaultValue', node, 0); 25445 }; 25446 FunctionParameter.prototype.getDefaultValue = function () { 25447 return this.defaultValue; 25448 }; 25449 return FunctionParameter; 25450}(Node)); 25451 25452var FunctionArgument = /** @class */ (function (_super) { 25453 __extends(FunctionArgument, _super); 25454 function FunctionArgument(offset, length) { 25455 return _super.call(this, offset, length) || this; 25456 } 25457 Object.defineProperty(FunctionArgument.prototype, "type", { 25458 get: function () { 25459 return NodeType.FunctionArgument; 25460 }, 25461 enumerable: true, 25462 configurable: true 25463 }); 25464 FunctionArgument.prototype.setIdentifier = function (node) { 25465 return this.setNode('identifier', node, 0); 25466 }; 25467 FunctionArgument.prototype.getIdentifier = function () { 25468 return this.identifier; 25469 }; 25470 FunctionArgument.prototype.getName = function () { 25471 return this.identifier ? this.identifier.getText() : ''; 25472 }; 25473 FunctionArgument.prototype.setValue = function (node) { 25474 return this.setNode('value', node, 0); 25475 }; 25476 FunctionArgument.prototype.getValue = function () { 25477 return this.value; 25478 }; 25479 return FunctionArgument; 25480}(Node)); 25481 25482var IfStatement = /** @class */ (function (_super) { 25483 __extends(IfStatement, _super); 25484 function IfStatement(offset, length) { 25485 return _super.call(this, offset, length) || this; 25486 } 25487 Object.defineProperty(IfStatement.prototype, "type", { 25488 get: function () { 25489 return NodeType.If; 25490 }, 25491 enumerable: true, 25492 configurable: true 25493 }); 25494 IfStatement.prototype.setExpression = function (node) { 25495 return this.setNode('expression', node, 0); 25496 }; 25497 IfStatement.prototype.setElseClause = function (elseClause) { 25498 return this.setNode('elseClause', elseClause); 25499 }; 25500 return IfStatement; 25501}(BodyDeclaration)); 25502 25503var ForStatement = /** @class */ (function (_super) { 25504 __extends(ForStatement, _super); 25505 function ForStatement(offset, length) { 25506 return _super.call(this, offset, length) || this; 25507 } 25508 Object.defineProperty(ForStatement.prototype, "type", { 25509 get: function () { 25510 return NodeType.For; 25511 }, 25512 enumerable: true, 25513 configurable: true 25514 }); 25515 ForStatement.prototype.setVariable = function (node) { 25516 return this.setNode('variable', node, 0); 25517 }; 25518 return ForStatement; 25519}(BodyDeclaration)); 25520 25521var EachStatement = /** @class */ (function (_super) { 25522 __extends(EachStatement, _super); 25523 function EachStatement(offset, length) { 25524 return _super.call(this, offset, length) || this; 25525 } 25526 Object.defineProperty(EachStatement.prototype, "type", { 25527 get: function () { 25528 return NodeType.Each; 25529 }, 25530 enumerable: true, 25531 configurable: true 25532 }); 25533 EachStatement.prototype.getVariables = function () { 25534 if (!this.variables) { 25535 this.variables = new Nodelist(this); 25536 } 25537 return this.variables; 25538 }; 25539 return EachStatement; 25540}(BodyDeclaration)); 25541 25542var WhileStatement = /** @class */ (function (_super) { 25543 __extends(WhileStatement, _super); 25544 function WhileStatement(offset, length) { 25545 return _super.call(this, offset, length) || this; 25546 } 25547 Object.defineProperty(WhileStatement.prototype, "type", { 25548 get: function () { 25549 return NodeType.While; 25550 }, 25551 enumerable: true, 25552 configurable: true 25553 }); 25554 return WhileStatement; 25555}(BodyDeclaration)); 25556 25557var ElseStatement = /** @class */ (function (_super) { 25558 __extends(ElseStatement, _super); 25559 function ElseStatement(offset, length) { 25560 return _super.call(this, offset, length) || this; 25561 } 25562 Object.defineProperty(ElseStatement.prototype, "type", { 25563 get: function () { 25564 return NodeType.Else; 25565 }, 25566 enumerable: true, 25567 configurable: true 25568 }); 25569 return ElseStatement; 25570}(BodyDeclaration)); 25571 25572var FunctionDeclaration = /** @class */ (function (_super) { 25573 __extends(FunctionDeclaration, _super); 25574 function FunctionDeclaration(offset, length) { 25575 return _super.call(this, offset, length) || this; 25576 } 25577 Object.defineProperty(FunctionDeclaration.prototype, "type", { 25578 get: function () { 25579 return NodeType.FunctionDeclaration; 25580 }, 25581 enumerable: true, 25582 configurable: true 25583 }); 25584 FunctionDeclaration.prototype.setIdentifier = function (node) { 25585 return this.setNode('identifier', node, 0); 25586 }; 25587 FunctionDeclaration.prototype.getIdentifier = function () { 25588 return this.identifier; 25589 }; 25590 FunctionDeclaration.prototype.getName = function () { 25591 return this.identifier ? this.identifier.getText() : ''; 25592 }; 25593 FunctionDeclaration.prototype.getParameters = function () { 25594 if (!this.parameters) { 25595 this.parameters = new Nodelist(this); 25596 } 25597 return this.parameters; 25598 }; 25599 return FunctionDeclaration; 25600}(BodyDeclaration)); 25601 25602var ViewPort = /** @class */ (function (_super) { 25603 __extends(ViewPort, _super); 25604 function ViewPort(offset, length) { 25605 return _super.call(this, offset, length) || this; 25606 } 25607 Object.defineProperty(ViewPort.prototype, "type", { 25608 get: function () { 25609 return NodeType.ViewPort; 25610 }, 25611 enumerable: true, 25612 configurable: true 25613 }); 25614 return ViewPort; 25615}(BodyDeclaration)); 25616 25617var FontFace = /** @class */ (function (_super) { 25618 __extends(FontFace, _super); 25619 function FontFace(offset, length) { 25620 return _super.call(this, offset, length) || this; 25621 } 25622 Object.defineProperty(FontFace.prototype, "type", { 25623 get: function () { 25624 return NodeType.FontFace; 25625 }, 25626 enumerable: true, 25627 configurable: true 25628 }); 25629 return FontFace; 25630}(BodyDeclaration)); 25631 25632var NestedProperties = /** @class */ (function (_super) { 25633 __extends(NestedProperties, _super); 25634 function NestedProperties(offset, length) { 25635 return _super.call(this, offset, length) || this; 25636 } 25637 Object.defineProperty(NestedProperties.prototype, "type", { 25638 get: function () { 25639 return NodeType.NestedProperties; 25640 }, 25641 enumerable: true, 25642 configurable: true 25643 }); 25644 return NestedProperties; 25645}(BodyDeclaration)); 25646 25647var Keyframe = /** @class */ (function (_super) { 25648 __extends(Keyframe, _super); 25649 function Keyframe(offset, length) { 25650 return _super.call(this, offset, length) || this; 25651 } 25652 Object.defineProperty(Keyframe.prototype, "type", { 25653 get: function () { 25654 return NodeType.Keyframe; 25655 }, 25656 enumerable: true, 25657 configurable: true 25658 }); 25659 Keyframe.prototype.setKeyword = function (keyword) { 25660 return this.setNode('keyword', keyword, 0); 25661 }; 25662 Keyframe.prototype.getKeyword = function () { 25663 return this.keyword; 25664 }; 25665 Keyframe.prototype.setIdentifier = function (node) { 25666 return this.setNode('identifier', node, 0); 25667 }; 25668 Keyframe.prototype.getIdentifier = function () { 25669 return this.identifier; 25670 }; 25671 Keyframe.prototype.getName = function () { 25672 return this.identifier ? this.identifier.getText() : ''; 25673 }; 25674 return Keyframe; 25675}(BodyDeclaration)); 25676 25677var KeyframeSelector = /** @class */ (function (_super) { 25678 __extends(KeyframeSelector, _super); 25679 function KeyframeSelector(offset, length) { 25680 return _super.call(this, offset, length) || this; 25681 } 25682 Object.defineProperty(KeyframeSelector.prototype, "type", { 25683 get: function () { 25684 return NodeType.KeyframeSelector; 25685 }, 25686 enumerable: true, 25687 configurable: true 25688 }); 25689 return KeyframeSelector; 25690}(BodyDeclaration)); 25691 25692var Import = /** @class */ (function (_super) { 25693 __extends(Import, _super); 25694 function Import(offset, length) { 25695 return _super.call(this, offset, length) || this; 25696 } 25697 Object.defineProperty(Import.prototype, "type", { 25698 get: function () { 25699 return NodeType.Import; 25700 }, 25701 enumerable: true, 25702 configurable: true 25703 }); 25704 Import.prototype.setMedialist = function (node) { 25705 if (node) { 25706 node.attachTo(this); 25707 return true; 25708 } 25709 return false; 25710 }; 25711 return Import; 25712}(Node)); 25713 25714var Use = /** @class */ (function (_super) { 25715 __extends(Use, _super); 25716 function Use() { 25717 return _super !== null && _super.apply(this, arguments) || this; 25718 } 25719 Object.defineProperty(Use.prototype, "type", { 25720 get: function () { 25721 return NodeType.Use; 25722 }, 25723 enumerable: true, 25724 configurable: true 25725 }); 25726 Use.prototype.getParameters = function () { 25727 if (!this.parameters) { 25728 this.parameters = new Nodelist(this); 25729 } 25730 return this.parameters; 25731 }; 25732 Use.prototype.setIdentifier = function (node) { 25733 return this.setNode('identifier', node, 0); 25734 }; 25735 Use.prototype.getIdentifier = function () { 25736 return this.identifier; 25737 }; 25738 return Use; 25739}(Node)); 25740 25741var ModuleConfiguration = /** @class */ (function (_super) { 25742 __extends(ModuleConfiguration, _super); 25743 function ModuleConfiguration() { 25744 return _super !== null && _super.apply(this, arguments) || this; 25745 } 25746 Object.defineProperty(ModuleConfiguration.prototype, "type", { 25747 get: function () { 25748 return NodeType.ModuleConfiguration; 25749 }, 25750 enumerable: true, 25751 configurable: true 25752 }); 25753 ModuleConfiguration.prototype.setIdentifier = function (node) { 25754 return this.setNode('identifier', node, 0); 25755 }; 25756 ModuleConfiguration.prototype.getIdentifier = function () { 25757 return this.identifier; 25758 }; 25759 ModuleConfiguration.prototype.getName = function () { 25760 return this.identifier ? this.identifier.getText() : ''; 25761 }; 25762 ModuleConfiguration.prototype.setValue = function (node) { 25763 return this.setNode('value', node, 0); 25764 }; 25765 ModuleConfiguration.prototype.getValue = function () { 25766 return this.value; 25767 }; 25768 return ModuleConfiguration; 25769}(Node)); 25770 25771var Forward = /** @class */ (function (_super) { 25772 __extends(Forward, _super); 25773 function Forward() { 25774 return _super !== null && _super.apply(this, arguments) || this; 25775 } 25776 Object.defineProperty(Forward.prototype, "type", { 25777 get: function () { 25778 return NodeType.Forward; 25779 }, 25780 enumerable: true, 25781 configurable: true 25782 }); 25783 Forward.prototype.setIdentifier = function (node) { 25784 return this.setNode('identifier', node, 0); 25785 }; 25786 Forward.prototype.getIdentifier = function () { 25787 return this.identifier; 25788 }; 25789 return Forward; 25790}(Node)); 25791 25792var ForwardVisibility = /** @class */ (function (_super) { 25793 __extends(ForwardVisibility, _super); 25794 function ForwardVisibility() { 25795 return _super !== null && _super.apply(this, arguments) || this; 25796 } 25797 Object.defineProperty(ForwardVisibility.prototype, "type", { 25798 get: function () { 25799 return NodeType.ForwardVisibility; 25800 }, 25801 enumerable: true, 25802 configurable: true 25803 }); 25804 ForwardVisibility.prototype.setIdentifier = function (node) { 25805 return this.setNode('identifier', node, 0); 25806 }; 25807 ForwardVisibility.prototype.getIdentifier = function () { 25808 return this.identifier; 25809 }; 25810 return ForwardVisibility; 25811}(Node)); 25812 25813var Namespace = /** @class */ (function (_super) { 25814 __extends(Namespace, _super); 25815 function Namespace(offset, length) { 25816 return _super.call(this, offset, length) || this; 25817 } 25818 Object.defineProperty(Namespace.prototype, "type", { 25819 get: function () { 25820 return NodeType.Namespace; 25821 }, 25822 enumerable: true, 25823 configurable: true 25824 }); 25825 return Namespace; 25826}(Node)); 25827 25828var Media = /** @class */ (function (_super) { 25829 __extends(Media, _super); 25830 function Media(offset, length) { 25831 return _super.call(this, offset, length) || this; 25832 } 25833 Object.defineProperty(Media.prototype, "type", { 25834 get: function () { 25835 return NodeType.Media; 25836 }, 25837 enumerable: true, 25838 configurable: true 25839 }); 25840 return Media; 25841}(BodyDeclaration)); 25842 25843var Supports = /** @class */ (function (_super) { 25844 __extends(Supports, _super); 25845 function Supports(offset, length) { 25846 return _super.call(this, offset, length) || this; 25847 } 25848 Object.defineProperty(Supports.prototype, "type", { 25849 get: function () { 25850 return NodeType.Supports; 25851 }, 25852 enumerable: true, 25853 configurable: true 25854 }); 25855 return Supports; 25856}(BodyDeclaration)); 25857 25858var Document = /** @class */ (function (_super) { 25859 __extends(Document, _super); 25860 function Document(offset, length) { 25861 return _super.call(this, offset, length) || this; 25862 } 25863 Object.defineProperty(Document.prototype, "type", { 25864 get: function () { 25865 return NodeType.Document; 25866 }, 25867 enumerable: true, 25868 configurable: true 25869 }); 25870 return Document; 25871}(BodyDeclaration)); 25872 25873var Medialist = /** @class */ (function (_super) { 25874 __extends(Medialist, _super); 25875 function Medialist(offset, length) { 25876 return _super.call(this, offset, length) || this; 25877 } 25878 Medialist.prototype.getMediums = function () { 25879 if (!this.mediums) { 25880 this.mediums = new Nodelist(this); 25881 } 25882 return this.mediums; 25883 }; 25884 return Medialist; 25885}(Node)); 25886 25887var MediaQuery = /** @class */ (function (_super) { 25888 __extends(MediaQuery, _super); 25889 function MediaQuery(offset, length) { 25890 return _super.call(this, offset, length) || this; 25891 } 25892 Object.defineProperty(MediaQuery.prototype, "type", { 25893 get: function () { 25894 return NodeType.MediaQuery; 25895 }, 25896 enumerable: true, 25897 configurable: true 25898 }); 25899 return MediaQuery; 25900}(Node)); 25901 25902var SupportsCondition = /** @class */ (function (_super) { 25903 __extends(SupportsCondition, _super); 25904 function SupportsCondition(offset, length) { 25905 return _super.call(this, offset, length) || this; 25906 } 25907 Object.defineProperty(SupportsCondition.prototype, "type", { 25908 get: function () { 25909 return NodeType.SupportsCondition; 25910 }, 25911 enumerable: true, 25912 configurable: true 25913 }); 25914 return SupportsCondition; 25915}(Node)); 25916 25917var Page = /** @class */ (function (_super) { 25918 __extends(Page, _super); 25919 function Page(offset, length) { 25920 return _super.call(this, offset, length) || this; 25921 } 25922 Object.defineProperty(Page.prototype, "type", { 25923 get: function () { 25924 return NodeType.Page; 25925 }, 25926 enumerable: true, 25927 configurable: true 25928 }); 25929 return Page; 25930}(BodyDeclaration)); 25931 25932var PageBoxMarginBox = /** @class */ (function (_super) { 25933 __extends(PageBoxMarginBox, _super); 25934 function PageBoxMarginBox(offset, length) { 25935 return _super.call(this, offset, length) || this; 25936 } 25937 Object.defineProperty(PageBoxMarginBox.prototype, "type", { 25938 get: function () { 25939 return NodeType.PageBoxMarginBox; 25940 }, 25941 enumerable: true, 25942 configurable: true 25943 }); 25944 return PageBoxMarginBox; 25945}(BodyDeclaration)); 25946 25947var Expression = /** @class */ (function (_super) { 25948 __extends(Expression, _super); 25949 function Expression(offset, length) { 25950 return _super.call(this, offset, length) || this; 25951 } 25952 Object.defineProperty(Expression.prototype, "type", { 25953 get: function () { 25954 return NodeType.Expression; 25955 }, 25956 enumerable: true, 25957 configurable: true 25958 }); 25959 return Expression; 25960}(Node)); 25961 25962var BinaryExpression = /** @class */ (function (_super) { 25963 __extends(BinaryExpression, _super); 25964 function BinaryExpression(offset, length) { 25965 return _super.call(this, offset, length) || this; 25966 } 25967 Object.defineProperty(BinaryExpression.prototype, "type", { 25968 get: function () { 25969 return NodeType.BinaryExpression; 25970 }, 25971 enumerable: true, 25972 configurable: true 25973 }); 25974 BinaryExpression.prototype.setLeft = function (left) { 25975 return this.setNode('left', left); 25976 }; 25977 BinaryExpression.prototype.getLeft = function () { 25978 return this.left; 25979 }; 25980 BinaryExpression.prototype.setRight = function (right) { 25981 return this.setNode('right', right); 25982 }; 25983 BinaryExpression.prototype.getRight = function () { 25984 return this.right; 25985 }; 25986 BinaryExpression.prototype.setOperator = function (value) { 25987 return this.setNode('operator', value); 25988 }; 25989 BinaryExpression.prototype.getOperator = function () { 25990 return this.operator; 25991 }; 25992 return BinaryExpression; 25993}(Node)); 25994 25995var Term = /** @class */ (function (_super) { 25996 __extends(Term, _super); 25997 function Term(offset, length) { 25998 return _super.call(this, offset, length) || this; 25999 } 26000 Object.defineProperty(Term.prototype, "type", { 26001 get: function () { 26002 return NodeType.Term; 26003 }, 26004 enumerable: true, 26005 configurable: true 26006 }); 26007 Term.prototype.setOperator = function (value) { 26008 return this.setNode('operator', value); 26009 }; 26010 Term.prototype.getOperator = function () { 26011 return this.operator; 26012 }; 26013 Term.prototype.setExpression = function (value) { 26014 return this.setNode('expression', value); 26015 }; 26016 Term.prototype.getExpression = function () { 26017 return this.expression; 26018 }; 26019 return Term; 26020}(Node)); 26021 26022var AttributeSelector = /** @class */ (function (_super) { 26023 __extends(AttributeSelector, _super); 26024 function AttributeSelector(offset, length) { 26025 return _super.call(this, offset, length) || this; 26026 } 26027 Object.defineProperty(AttributeSelector.prototype, "type", { 26028 get: function () { 26029 return NodeType.AttributeSelector; 26030 }, 26031 enumerable: true, 26032 configurable: true 26033 }); 26034 AttributeSelector.prototype.setNamespacePrefix = function (value) { 26035 return this.setNode('namespacePrefix', value); 26036 }; 26037 AttributeSelector.prototype.getNamespacePrefix = function () { 26038 return this.namespacePrefix; 26039 }; 26040 AttributeSelector.prototype.setIdentifier = function (value) { 26041 return this.setNode('identifier', value); 26042 }; 26043 AttributeSelector.prototype.getIdentifier = function () { 26044 return this.identifier; 26045 }; 26046 AttributeSelector.prototype.setOperator = function (operator) { 26047 return this.setNode('operator', operator); 26048 }; 26049 AttributeSelector.prototype.getOperator = function () { 26050 return this.operator; 26051 }; 26052 AttributeSelector.prototype.setValue = function (value) { 26053 return this.setNode('value', value); 26054 }; 26055 AttributeSelector.prototype.getValue = function () { 26056 return this.value; 26057 }; 26058 return AttributeSelector; 26059}(Node)); 26060 26061var Operator = /** @class */ (function (_super) { 26062 __extends(Operator, _super); 26063 function Operator(offset, length) { 26064 return _super.call(this, offset, length) || this; 26065 } 26066 Object.defineProperty(Operator.prototype, "type", { 26067 get: function () { 26068 return NodeType.Operator; 26069 }, 26070 enumerable: true, 26071 configurable: true 26072 }); 26073 return Operator; 26074}(Node)); 26075 26076var HexColorValue = /** @class */ (function (_super) { 26077 __extends(HexColorValue, _super); 26078 function HexColorValue(offset, length) { 26079 return _super.call(this, offset, length) || this; 26080 } 26081 Object.defineProperty(HexColorValue.prototype, "type", { 26082 get: function () { 26083 return NodeType.HexColorValue; 26084 }, 26085 enumerable: true, 26086 configurable: true 26087 }); 26088 return HexColorValue; 26089}(Node)); 26090 26091var _dot = '.'.charCodeAt(0), _0 = '0'.charCodeAt(0), _9 = '9'.charCodeAt(0); 26092var NumericValue = /** @class */ (function (_super) { 26093 __extends(NumericValue, _super); 26094 function NumericValue(offset, length) { 26095 return _super.call(this, offset, length) || this; 26096 } 26097 Object.defineProperty(NumericValue.prototype, "type", { 26098 get: function () { 26099 return NodeType.NumericValue; 26100 }, 26101 enumerable: true, 26102 configurable: true 26103 }); 26104 NumericValue.prototype.getValue = function () { 26105 var raw = this.getText(); 26106 var unitIdx = 0; 26107 var code; 26108 for (var i = 0, len = raw.length; i < len; i++) { 26109 code = raw.charCodeAt(i); 26110 if (!(_0 <= code && code <= _9 || code === _dot)) { 26111 break; 26112 } 26113 unitIdx += 1; 26114 } 26115 return { 26116 value: raw.substring(0, unitIdx), 26117 unit: unitIdx < raw.length ? raw.substring(unitIdx) : undefined 26118 }; 26119 }; 26120 return NumericValue; 26121}(Node)); 26122 26123var VariableDeclaration = /** @class */ (function (_super) { 26124 __extends(VariableDeclaration, _super); 26125 function VariableDeclaration(offset, length) { 26126 var _this = _super.call(this, offset, length) || this; 26127 _this.variable = null; 26128 _this.value = null; 26129 _this.needsSemicolon = true; 26130 return _this; 26131 } 26132 Object.defineProperty(VariableDeclaration.prototype, "type", { 26133 get: function () { 26134 return NodeType.VariableDeclaration; 26135 }, 26136 enumerable: true, 26137 configurable: true 26138 }); 26139 VariableDeclaration.prototype.setVariable = function (node) { 26140 if (node) { 26141 node.attachTo(this); 26142 this.variable = node; 26143 return true; 26144 } 26145 return false; 26146 }; 26147 VariableDeclaration.prototype.getVariable = function () { 26148 return this.variable; 26149 }; 26150 VariableDeclaration.prototype.getName = function () { 26151 return this.variable ? this.variable.getName() : ''; 26152 }; 26153 VariableDeclaration.prototype.setValue = function (node) { 26154 if (node) { 26155 node.attachTo(this); 26156 this.value = node; 26157 return true; 26158 } 26159 return false; 26160 }; 26161 VariableDeclaration.prototype.getValue = function () { 26162 return this.value; 26163 }; 26164 return VariableDeclaration; 26165}(AbstractDeclaration)); 26166 26167var Interpolation = /** @class */ (function (_super) { 26168 __extends(Interpolation, _super); 26169 // private _interpolations: void; // workaround for https://github.com/Microsoft/TypeScript/issues/18276 26170 function Interpolation(offset, length) { 26171 return _super.call(this, offset, length) || this; 26172 } 26173 Object.defineProperty(Interpolation.prototype, "type", { 26174 get: function () { 26175 return NodeType.Interpolation; 26176 }, 26177 enumerable: true, 26178 configurable: true 26179 }); 26180 return Interpolation; 26181}(Node)); 26182 26183var Variable = /** @class */ (function (_super) { 26184 __extends(Variable, _super); 26185 function Variable(offset, length) { 26186 return _super.call(this, offset, length) || this; 26187 } 26188 Object.defineProperty(Variable.prototype, "type", { 26189 get: function () { 26190 return NodeType.VariableName; 26191 }, 26192 enumerable: true, 26193 configurable: true 26194 }); 26195 Variable.prototype.getName = function () { 26196 return this.getText(); 26197 }; 26198 return Variable; 26199}(Node)); 26200 26201var ExtendsReference = /** @class */ (function (_super) { 26202 __extends(ExtendsReference, _super); 26203 function ExtendsReference(offset, length) { 26204 return _super.call(this, offset, length) || this; 26205 } 26206 Object.defineProperty(ExtendsReference.prototype, "type", { 26207 get: function () { 26208 return NodeType.ExtendsReference; 26209 }, 26210 enumerable: true, 26211 configurable: true 26212 }); 26213 ExtendsReference.prototype.getSelectors = function () { 26214 if (!this.selectors) { 26215 this.selectors = new Nodelist(this); 26216 } 26217 return this.selectors; 26218 }; 26219 return ExtendsReference; 26220}(Node)); 26221 26222var MixinContentReference = /** @class */ (function (_super) { 26223 __extends(MixinContentReference, _super); 26224 function MixinContentReference(offset, length) { 26225 return _super.call(this, offset, length) || this; 26226 } 26227 Object.defineProperty(MixinContentReference.prototype, "type", { 26228 get: function () { 26229 return NodeType.MixinContentReference; 26230 }, 26231 enumerable: true, 26232 configurable: true 26233 }); 26234 MixinContentReference.prototype.getArguments = function () { 26235 if (!this.arguments) { 26236 this.arguments = new Nodelist(this); 26237 } 26238 return this.arguments; 26239 }; 26240 return MixinContentReference; 26241}(Node)); 26242 26243var MixinContentDeclaration = /** @class */ (function (_super) { 26244 __extends(MixinContentDeclaration, _super); 26245 function MixinContentDeclaration(offset, length) { 26246 return _super.call(this, offset, length) || this; 26247 } 26248 Object.defineProperty(MixinContentDeclaration.prototype, "type", { 26249 get: function () { 26250 return NodeType.MixinContentReference; 26251 }, 26252 enumerable: true, 26253 configurable: true 26254 }); 26255 MixinContentDeclaration.prototype.getParameters = function () { 26256 if (!this.parameters) { 26257 this.parameters = new Nodelist(this); 26258 } 26259 return this.parameters; 26260 }; 26261 return MixinContentDeclaration; 26262}(BodyDeclaration)); 26263 26264var MixinReference = /** @class */ (function (_super) { 26265 __extends(MixinReference, _super); 26266 function MixinReference(offset, length) { 26267 return _super.call(this, offset, length) || this; 26268 } 26269 Object.defineProperty(MixinReference.prototype, "type", { 26270 get: function () { 26271 return NodeType.MixinReference; 26272 }, 26273 enumerable: true, 26274 configurable: true 26275 }); 26276 MixinReference.prototype.getNamespaces = function () { 26277 if (!this.namespaces) { 26278 this.namespaces = new Nodelist(this); 26279 } 26280 return this.namespaces; 26281 }; 26282 MixinReference.prototype.setIdentifier = function (node) { 26283 return this.setNode('identifier', node, 0); 26284 }; 26285 MixinReference.prototype.getIdentifier = function () { 26286 return this.identifier; 26287 }; 26288 MixinReference.prototype.getName = function () { 26289 return this.identifier ? this.identifier.getText() : ''; 26290 }; 26291 MixinReference.prototype.getArguments = function () { 26292 if (!this.arguments) { 26293 this.arguments = new Nodelist(this); 26294 } 26295 return this.arguments; 26296 }; 26297 MixinReference.prototype.setContent = function (node) { 26298 return this.setNode('content', node); 26299 }; 26300 MixinReference.prototype.getContent = function () { 26301 return this.content; 26302 }; 26303 return MixinReference; 26304}(Node)); 26305 26306var MixinDeclaration = /** @class */ (function (_super) { 26307 __extends(MixinDeclaration, _super); 26308 function MixinDeclaration(offset, length) { 26309 return _super.call(this, offset, length) || this; 26310 } 26311 Object.defineProperty(MixinDeclaration.prototype, "type", { 26312 get: function () { 26313 return NodeType.MixinDeclaration; 26314 }, 26315 enumerable: true, 26316 configurable: true 26317 }); 26318 MixinDeclaration.prototype.setIdentifier = function (node) { 26319 return this.setNode('identifier', node, 0); 26320 }; 26321 MixinDeclaration.prototype.getIdentifier = function () { 26322 return this.identifier; 26323 }; 26324 MixinDeclaration.prototype.getName = function () { 26325 return this.identifier ? this.identifier.getText() : ''; 26326 }; 26327 MixinDeclaration.prototype.getParameters = function () { 26328 if (!this.parameters) { 26329 this.parameters = new Nodelist(this); 26330 } 26331 return this.parameters; 26332 }; 26333 MixinDeclaration.prototype.setGuard = function (node) { 26334 if (node) { 26335 node.attachTo(this); 26336 this.guard = node; 26337 } 26338 return false; 26339 }; 26340 return MixinDeclaration; 26341}(BodyDeclaration)); 26342 26343var UnknownAtRule = /** @class */ (function (_super) { 26344 __extends(UnknownAtRule, _super); 26345 function UnknownAtRule(offset, length) { 26346 return _super.call(this, offset, length) || this; 26347 } 26348 Object.defineProperty(UnknownAtRule.prototype, "type", { 26349 get: function () { 26350 return NodeType.UnknownAtRule; 26351 }, 26352 enumerable: true, 26353 configurable: true 26354 }); 26355 UnknownAtRule.prototype.setAtRuleName = function (atRuleName) { 26356 this.atRuleName = atRuleName; 26357 }; 26358 UnknownAtRule.prototype.getAtRuleName = function () { 26359 return this.atRuleName; 26360 }; 26361 return UnknownAtRule; 26362}(BodyDeclaration)); 26363 26364var ListEntry = /** @class */ (function (_super) { 26365 __extends(ListEntry, _super); 26366 function ListEntry() { 26367 return _super !== null && _super.apply(this, arguments) || this; 26368 } 26369 Object.defineProperty(ListEntry.prototype, "type", { 26370 get: function () { 26371 return NodeType.ListEntry; 26372 }, 26373 enumerable: true, 26374 configurable: true 26375 }); 26376 ListEntry.prototype.setKey = function (node) { 26377 return this.setNode('key', node, 0); 26378 }; 26379 ListEntry.prototype.setValue = function (node) { 26380 return this.setNode('value', node, 1); 26381 }; 26382 return ListEntry; 26383}(Node)); 26384 26385var LessGuard = /** @class */ (function (_super) { 26386 __extends(LessGuard, _super); 26387 function LessGuard() { 26388 return _super !== null && _super.apply(this, arguments) || this; 26389 } 26390 LessGuard.prototype.getConditions = function () { 26391 if (!this.conditions) { 26392 this.conditions = new Nodelist(this); 26393 } 26394 return this.conditions; 26395 }; 26396 return LessGuard; 26397}(Node)); 26398 26399var GuardCondition = /** @class */ (function (_super) { 26400 __extends(GuardCondition, _super); 26401 function GuardCondition() { 26402 return _super !== null && _super.apply(this, arguments) || this; 26403 } 26404 GuardCondition.prototype.setVariable = function (node) { 26405 return this.setNode('variable', node); 26406 }; 26407 return GuardCondition; 26408}(Node)); 26409 26410var Module = /** @class */ (function (_super) { 26411 __extends(Module, _super); 26412 function Module() { 26413 return _super !== null && _super.apply(this, arguments) || this; 26414 } 26415 Object.defineProperty(Module.prototype, "type", { 26416 get: function () { 26417 return NodeType.Module; 26418 }, 26419 enumerable: true, 26420 configurable: true 26421 }); 26422 Module.prototype.setIdentifier = function (node) { 26423 return this.setNode('identifier', node, 0); 26424 }; 26425 Module.prototype.getIdentifier = function () { 26426 return this.identifier; 26427 }; 26428 return Module; 26429}(Node)); 26430 26431var Level; 26432(function (Level) { 26433 Level[Level["Ignore"] = 1] = "Ignore"; 26434 Level[Level["Warning"] = 2] = "Warning"; 26435 Level[Level["Error"] = 4] = "Error"; 26436})(Level || (Level = {})); 26437var Marker = /** @class */ (function () { 26438 function Marker(node, rule, level, message, offset, length) { 26439 if (offset === void 0) { offset = node.offset; } 26440 if (length === void 0) { length = node.length; } 26441 this.node = node; 26442 this.rule = rule; 26443 this.level = level; 26444 this.message = message || rule.message; 26445 this.offset = offset; 26446 this.length = length; 26447 } 26448 Marker.prototype.getRule = function () { 26449 return this.rule; 26450 }; 26451 Marker.prototype.getLevel = function () { 26452 return this.level; 26453 }; 26454 Marker.prototype.getOffset = function () { 26455 return this.offset; 26456 }; 26457 Marker.prototype.getLength = function () { 26458 return this.length; 26459 }; 26460 Marker.prototype.getNode = function () { 26461 return this.node; 26462 }; 26463 Marker.prototype.getMessage = function () { 26464 return this.message; 26465 }; 26466 return Marker; 26467}()); 26468 26469/* 26470export class DefaultVisitor implements IVisitor { 26471 26472 public visitNode(node:Node):boolean { 26473 switch (node.type) { 26474 case NodeType.Stylesheet: 26475 return this.visitStylesheet(<Stylesheet> node); 26476 case NodeType.FontFace: 26477 return this.visitFontFace(<FontFace> node); 26478 case NodeType.Ruleset: 26479 return this.visitRuleSet(<RuleSet> node); 26480 case NodeType.Selector: 26481 return this.visitSelector(<Selector> node); 26482 case NodeType.SimpleSelector: 26483 return this.visitSimpleSelector(<SimpleSelector> node); 26484 case NodeType.Declaration: 26485 return this.visitDeclaration(<Declaration> node); 26486 case NodeType.Function: 26487 return this.visitFunction(<Function> node); 26488 case NodeType.FunctionDeclaration: 26489 return this.visitFunctionDeclaration(<FunctionDeclaration> node); 26490 case NodeType.FunctionParameter: 26491 return this.visitFunctionParameter(<FunctionParameter> node); 26492 case NodeType.FunctionArgument: 26493 return this.visitFunctionArgument(<FunctionArgument> node); 26494 case NodeType.Term: 26495 return this.visitTerm(<Term> node); 26496 case NodeType.Declaration: 26497 return this.visitExpression(<Expression> node); 26498 case NodeType.NumericValue: 26499 return this.visitNumericValue(<NumericValue> node); 26500 case NodeType.Page: 26501 return this.visitPage(<Page> node); 26502 case NodeType.PageBoxMarginBox: 26503 return this.visitPageBoxMarginBox(<PageBoxMarginBox> node); 26504 case NodeType.Property: 26505 return this.visitProperty(<Property> node); 26506 case NodeType.NumericValue: 26507 return this.visitNodelist(<Nodelist> node); 26508 case NodeType.Import: 26509 return this.visitImport(<Import> node); 26510 case NodeType.Namespace: 26511 return this.visitNamespace(<Namespace> node); 26512 case NodeType.Keyframe: 26513 return this.visitKeyframe(<Keyframe> node); 26514 case NodeType.KeyframeSelector: 26515 return this.visitKeyframeSelector(<KeyframeSelector> node); 26516 case NodeType.MixinDeclaration: 26517 return this.visitMixinDeclaration(<MixinDeclaration> node); 26518 case NodeType.MixinReference: 26519 return this.visitMixinReference(<MixinReference> node); 26520 case NodeType.Variable: 26521 return this.visitVariable(<Variable> node); 26522 case NodeType.VariableDeclaration: 26523 return this.visitVariableDeclaration(<VariableDeclaration> node); 26524 } 26525 return this.visitUnknownNode(node); 26526 } 26527 26528 public visitFontFace(node:FontFace):boolean { 26529 return true; 26530 } 26531 26532 public visitKeyframe(node:Keyframe):boolean { 26533 return true; 26534 } 26535 26536 public visitKeyframeSelector(node:KeyframeSelector):boolean { 26537 return true; 26538 } 26539 26540 public visitStylesheet(node:Stylesheet):boolean { 26541 return true; 26542 } 26543 26544 public visitProperty(Node:Property):boolean { 26545 return true; 26546 } 26547 26548 public visitRuleSet(node:RuleSet):boolean { 26549 return true; 26550 } 26551 26552 public visitSelector(node:Selector):boolean { 26553 return true; 26554 } 26555 26556 public visitSimpleSelector(node:SimpleSelector):boolean { 26557 return true; 26558 } 26559 26560 public visitDeclaration(node:Declaration):boolean { 26561 return true; 26562 } 26563 26564 public visitFunction(node:Function):boolean { 26565 return true; 26566 } 26567 26568 public visitFunctionDeclaration(node:FunctionDeclaration):boolean { 26569 return true; 26570 } 26571 26572 public visitInvocation(node:Invocation):boolean { 26573 return true; 26574 } 26575 26576 public visitTerm(node:Term):boolean { 26577 return true; 26578 } 26579 26580 public visitImport(node:Import):boolean { 26581 return true; 26582 } 26583 26584 public visitNamespace(node:Namespace):boolean { 26585 return true; 26586 } 26587 26588 public visitExpression(node:Expression):boolean { 26589 return true; 26590 } 26591 26592 public visitNumericValue(node:NumericValue):boolean { 26593 return true; 26594 } 26595 26596 public visitPage(node:Page):boolean { 26597 return true; 26598 } 26599 26600 public visitPageBoxMarginBox(node:PageBoxMarginBox):boolean { 26601 return true; 26602 } 26603 26604 public visitNodelist(node:Nodelist):boolean { 26605 return true; 26606 } 26607 26608 public visitVariableDeclaration(node:VariableDeclaration):boolean { 26609 return true; 26610 } 26611 26612 public visitVariable(node:Variable):boolean { 26613 return true; 26614 } 26615 26616 public visitMixinDeclaration(node:MixinDeclaration):boolean { 26617 return true; 26618 } 26619 26620 public visitMixinReference(node:MixinReference):boolean { 26621 return true; 26622 } 26623 26624 public visitUnknownNode(node:Node):boolean { 26625 return true; 26626 } 26627} 26628*/ 26629var ParseErrorCollector = /** @class */ (function () { 26630 function ParseErrorCollector() { 26631 this.entries = []; 26632 } 26633 ParseErrorCollector.entries = function (node) { 26634 var visitor = new ParseErrorCollector(); 26635 node.acceptVisitor(visitor); 26636 return visitor.entries; 26637 }; 26638 ParseErrorCollector.prototype.visitNode = function (node) { 26639 if (node.isErroneous()) { 26640 node.collectIssues(this.entries); 26641 } 26642 return true; 26643 }; 26644 return ParseErrorCollector; 26645}()); 26646 26647 26648 26649/***/ }), 26650 26651/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssParser.js": 26652/*!*************************************************************************************************************!*\ 26653 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssParser.js ***! 26654 \*************************************************************************************************************/ 26655/*! exports provided: Parser */ 26656/***/ (function(module, __webpack_exports__, __webpack_require__) { 26657 26658"use strict"; 26659__webpack_require__.r(__webpack_exports__); 26660/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Parser", function() { return Parser; }); 26661/* harmony import */ var _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cssScanner.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssScanner.js"); 26662/* harmony import */ var _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cssNodes.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssNodes.js"); 26663/* harmony import */ var _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./cssErrors.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssErrors.js"); 26664/* harmony import */ var _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../languageFacts/facts.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/languageFacts/facts.js"); 26665/* harmony import */ var _utils_objects_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/objects.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/utils/objects.js"); 26666/*--------------------------------------------------------------------------------------------- 26667 * Copyright (c) Microsoft Corporation. All rights reserved. 26668 * Licensed under the MIT License. See License.txt in the project root for license information. 26669 *--------------------------------------------------------------------------------------------*/ 26670 26671var __spreadArrays = (undefined && undefined.__spreadArrays) || function () { 26672 for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; 26673 for (var r = Array(s), k = 0, i = 0; i < il; i++) 26674 for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) 26675 r[k] = a[j]; 26676 return r; 26677}; 26678 26679 26680 26681 26682 26683/// <summary> 26684/// A parser for the css core specification. See for reference: 26685/// https://www.w3.org/TR/CSS21/grammar.html 26686/// http://www.w3.org/TR/CSS21/syndata.html#tokenization 26687/// </summary> 26688var Parser = /** @class */ (function () { 26689 function Parser(scnr) { 26690 if (scnr === void 0) { scnr = new _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["Scanner"](); } 26691 this.keyframeRegex = /^@(\-(webkit|ms|moz|o)\-)?keyframes$/i; 26692 this.scanner = scnr; 26693 this.token = { type: _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].EOF, offset: -1, len: 0, text: '' }; 26694 this.prevToken = undefined; 26695 } 26696 Parser.prototype.peekIdent = function (text) { 26697 return _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Ident === this.token.type && text.length === this.token.text.length && text === this.token.text.toLowerCase(); 26698 }; 26699 Parser.prototype.peekKeyword = function (text) { 26700 return _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].AtKeyword === this.token.type && text.length === this.token.text.length && text === this.token.text.toLowerCase(); 26701 }; 26702 Parser.prototype.peekDelim = function (text) { 26703 return _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Delim === this.token.type && text === this.token.text; 26704 }; 26705 Parser.prototype.peek = function (type) { 26706 return type === this.token.type; 26707 }; 26708 Parser.prototype.peekRegExp = function (type, regEx) { 26709 if (type !== this.token.type) { 26710 return false; 26711 } 26712 return regEx.test(this.token.text); 26713 }; 26714 Parser.prototype.hasWhitespace = function () { 26715 return !!this.prevToken && (this.prevToken.offset + this.prevToken.len !== this.token.offset); 26716 }; 26717 Parser.prototype.consumeToken = function () { 26718 this.prevToken = this.token; 26719 this.token = this.scanner.scan(); 26720 }; 26721 Parser.prototype.mark = function () { 26722 return { 26723 prev: this.prevToken, 26724 curr: this.token, 26725 pos: this.scanner.pos() 26726 }; 26727 }; 26728 Parser.prototype.restoreAtMark = function (mark) { 26729 this.prevToken = mark.prev; 26730 this.token = mark.curr; 26731 this.scanner.goBackTo(mark.pos); 26732 }; 26733 Parser.prototype.try = function (func) { 26734 var pos = this.mark(); 26735 var node = func(); 26736 if (!node) { 26737 this.restoreAtMark(pos); 26738 return null; 26739 } 26740 return node; 26741 }; 26742 Parser.prototype.acceptOneKeyword = function (keywords) { 26743 if (_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].AtKeyword === this.token.type) { 26744 for (var _i = 0, keywords_1 = keywords; _i < keywords_1.length; _i++) { 26745 var keyword = keywords_1[_i]; 26746 if (keyword.length === this.token.text.length && keyword === this.token.text.toLowerCase()) { 26747 this.consumeToken(); 26748 return true; 26749 } 26750 } 26751 } 26752 return false; 26753 }; 26754 Parser.prototype.accept = function (type) { 26755 if (type === this.token.type) { 26756 this.consumeToken(); 26757 return true; 26758 } 26759 return false; 26760 }; 26761 Parser.prototype.acceptIdent = function (text) { 26762 if (this.peekIdent(text)) { 26763 this.consumeToken(); 26764 return true; 26765 } 26766 return false; 26767 }; 26768 Parser.prototype.acceptKeyword = function (text) { 26769 if (this.peekKeyword(text)) { 26770 this.consumeToken(); 26771 return true; 26772 } 26773 return false; 26774 }; 26775 Parser.prototype.acceptDelim = function (text) { 26776 if (this.peekDelim(text)) { 26777 this.consumeToken(); 26778 return true; 26779 } 26780 return false; 26781 }; 26782 Parser.prototype.acceptRegexp = function (regEx) { 26783 if (regEx.test(this.token.text)) { 26784 this.consumeToken(); 26785 return true; 26786 } 26787 return false; 26788 }; 26789 Parser.prototype._parseRegexp = function (regEx) { 26790 var node = this.createNode(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].Identifier); 26791 do { } while (this.acceptRegexp(regEx)); 26792 return this.finish(node); 26793 }; 26794 Parser.prototype.acceptUnquotedString = function () { 26795 var pos = this.scanner.pos(); 26796 this.scanner.goBackTo(this.token.offset); 26797 var unquoted = this.scanner.scanUnquotedString(); 26798 if (unquoted) { 26799 this.token = unquoted; 26800 this.consumeToken(); 26801 return true; 26802 } 26803 this.scanner.goBackTo(pos); 26804 return false; 26805 }; 26806 Parser.prototype.resync = function (resyncTokens, resyncStopTokens) { 26807 while (true) { 26808 if (resyncTokens && resyncTokens.indexOf(this.token.type) !== -1) { 26809 this.consumeToken(); 26810 return true; 26811 } 26812 else if (resyncStopTokens && resyncStopTokens.indexOf(this.token.type) !== -1) { 26813 return true; 26814 } 26815 else { 26816 if (this.token.type === _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].EOF) { 26817 return false; 26818 } 26819 this.token = this.scanner.scan(); 26820 } 26821 } 26822 }; 26823 Parser.prototype.createNode = function (nodeType) { 26824 return new _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Node"](this.token.offset, this.token.len, nodeType); 26825 }; 26826 Parser.prototype.create = function (ctor) { 26827 return new ctor(this.token.offset, this.token.len); 26828 }; 26829 Parser.prototype.finish = function (node, error, resyncTokens, resyncStopTokens) { 26830 // parseNumeric misuses error for boolean flagging (however the real error mustn't be a false) 26831 // + nodelist offsets mustn't be modified, because there is a offset hack in rulesets for smartselection 26832 if (!(node instanceof _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Nodelist"])) { 26833 if (error) { 26834 this.markError(node, error, resyncTokens, resyncStopTokens); 26835 } 26836 // set the node end position 26837 if (this.prevToken) { 26838 // length with more elements belonging together 26839 var prevEnd = this.prevToken.offset + this.prevToken.len; 26840 node.length = prevEnd > node.offset ? prevEnd - node.offset : 0; // offset is taken from current token, end from previous: Use 0 for empty nodes 26841 } 26842 } 26843 return node; 26844 }; 26845 Parser.prototype.markError = function (node, error, resyncTokens, resyncStopTokens) { 26846 if (this.token !== this.lastErrorToken) { // do not report twice on the same token 26847 node.addIssue(new _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Marker"](node, error, _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Level"].Error, undefined, this.token.offset, this.token.len)); 26848 this.lastErrorToken = this.token; 26849 } 26850 if (resyncTokens || resyncStopTokens) { 26851 this.resync(resyncTokens, resyncStopTokens); 26852 } 26853 }; 26854 Parser.prototype.parseStylesheet = function (textDocument) { 26855 var versionId = textDocument.version; 26856 var text = textDocument.getText(); 26857 var textProvider = function (offset, length) { 26858 if (textDocument.version !== versionId) { 26859 throw new Error('Underlying model has changed, AST is no longer valid'); 26860 } 26861 return text.substr(offset, length); 26862 }; 26863 return this.internalParse(text, this._parseStylesheet, textProvider); 26864 }; 26865 Parser.prototype.internalParse = function (input, parseFunc, textProvider) { 26866 this.scanner.setSource(input); 26867 this.token = this.scanner.scan(); 26868 var node = parseFunc.bind(this)(); 26869 if (node) { 26870 if (textProvider) { 26871 node.textProvider = textProvider; 26872 } 26873 else { 26874 node.textProvider = function (offset, length) { return input.substr(offset, length); }; 26875 } 26876 } 26877 return node; 26878 }; 26879 Parser.prototype._parseStylesheet = function () { 26880 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Stylesheet"]); 26881 while (node.addChild(this._parseStylesheetStart())) { 26882 // Parse statements only valid at the beginning of stylesheets. 26883 } 26884 var inRecovery = false; 26885 do { 26886 var hasMatch = false; 26887 do { 26888 hasMatch = false; 26889 var statement = this._parseStylesheetStatement(); 26890 if (statement) { 26891 node.addChild(statement); 26892 hasMatch = true; 26893 inRecovery = false; 26894 if (!this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].EOF) && this._needsSemicolonAfter(statement) && !this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].SemiColon)) { 26895 this.markError(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].SemiColonExpected); 26896 } 26897 } 26898 while (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].SemiColon) || this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].CDO) || this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].CDC)) { 26899 // accept empty statements 26900 hasMatch = true; 26901 inRecovery = false; 26902 } 26903 } while (hasMatch); 26904 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].EOF)) { 26905 break; 26906 } 26907 if (!inRecovery) { 26908 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].AtKeyword)) { 26909 this.markError(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].UnknownAtRule); 26910 } 26911 else { 26912 this.markError(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].RuleOrSelectorExpected); 26913 } 26914 inRecovery = true; 26915 } 26916 this.consumeToken(); 26917 } while (!this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].EOF)); 26918 return this.finish(node); 26919 }; 26920 Parser.prototype._parseStylesheetStart = function () { 26921 return this._parseCharset(); 26922 }; 26923 Parser.prototype._parseStylesheetStatement = function (isNested) { 26924 if (isNested === void 0) { isNested = false; } 26925 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].AtKeyword)) { 26926 return this._parseStylesheetAtStatement(isNested); 26927 } 26928 return this._parseRuleset(isNested); 26929 }; 26930 Parser.prototype._parseStylesheetAtStatement = function (isNested) { 26931 if (isNested === void 0) { isNested = false; } 26932 return this._parseImport() 26933 || this._parseMedia(isNested) 26934 || this._parsePage() 26935 || this._parseFontFace() 26936 || this._parseKeyframe() 26937 || this._parseSupports(isNested) 26938 || this._parseViewPort() 26939 || this._parseNamespace() 26940 || this._parseDocument() 26941 || this._parseUnknownAtRule(); 26942 }; 26943 Parser.prototype._tryParseRuleset = function (isNested) { 26944 var mark = this.mark(); 26945 if (this._parseSelector(isNested)) { 26946 while (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Comma) && this._parseSelector(isNested)) { 26947 // loop 26948 } 26949 if (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].CurlyL)) { 26950 this.restoreAtMark(mark); 26951 return this._parseRuleset(isNested); 26952 } 26953 } 26954 this.restoreAtMark(mark); 26955 return null; 26956 }; 26957 Parser.prototype._parseRuleset = function (isNested) { 26958 if (isNested === void 0) { isNested = false; } 26959 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["RuleSet"]); 26960 var selectors = node.getSelectors(); 26961 if (!selectors.addChild(this._parseSelector(isNested))) { 26962 return null; 26963 } 26964 while (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Comma)) { 26965 if (!selectors.addChild(this._parseSelector(isNested))) { 26966 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].SelectorExpected); 26967 } 26968 } 26969 return this._parseBody(node, this._parseRuleSetDeclaration.bind(this)); 26970 }; 26971 Parser.prototype._parseRuleSetDeclarationAtStatement = function () { 26972 return this._parseAtApply() 26973 || this._parseUnknownAtRule(); 26974 }; 26975 Parser.prototype._parseRuleSetDeclaration = function () { 26976 // https://www.w3.org/TR/css-syntax-3/#consume-a-list-of-declarations0 26977 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].AtKeyword)) { 26978 return this._parseRuleSetDeclarationAtStatement(); 26979 } 26980 return this._tryParseCustomPropertyDeclaration() 26981 || this._parseDeclaration(); 26982 }; 26983 /** 26984 * Parses declarations like: 26985 * @apply --my-theme; 26986 * 26987 * Follows https://tabatkins.github.io/specs/css-apply-rule/#using 26988 */ 26989 Parser.prototype._parseAtApply = function () { 26990 if (!this.peekKeyword('@apply')) { 26991 return null; 26992 } 26993 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["AtApplyRule"]); 26994 this.consumeToken(); 26995 if (!node.setIdentifier(this._parseIdent([_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["ReferenceType"].Variable]))) { 26996 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].IdentifierExpected); 26997 } 26998 return this.finish(node); 26999 }; 27000 Parser.prototype._needsSemicolonAfter = function (node) { 27001 switch (node.type) { 27002 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].Keyframe: 27003 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].ViewPort: 27004 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].Media: 27005 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].Ruleset: 27006 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].Namespace: 27007 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].If: 27008 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].For: 27009 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].Each: 27010 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].While: 27011 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].MixinDeclaration: 27012 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].FunctionDeclaration: 27013 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].MixinContentDeclaration: 27014 return false; 27015 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].ExtendsReference: 27016 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].MixinContentReference: 27017 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].ReturnStatement: 27018 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].MediaQuery: 27019 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].Debug: 27020 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].Import: 27021 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].AtApplyRule: 27022 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].CustomPropertyDeclaration: 27023 return true; 27024 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].VariableDeclaration: 27025 return node.needsSemicolon; 27026 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].MixinReference: 27027 return !node.getContent(); 27028 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].Declaration: 27029 return !node.getNestedProperties(); 27030 } 27031 return false; 27032 }; 27033 Parser.prototype._parseDeclarations = function (parseDeclaration) { 27034 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Declarations"]); 27035 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].CurlyL)) { 27036 return null; 27037 } 27038 var decl = parseDeclaration(); 27039 while (node.addChild(decl)) { 27040 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].CurlyR)) { 27041 break; 27042 } 27043 if (this._needsSemicolonAfter(decl) && !this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].SemiColon)) { 27044 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].SemiColonExpected, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].SemiColon, _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].CurlyR]); 27045 } 27046 // We accepted semicolon token. Link it to declaration. 27047 if (decl && this.prevToken && this.prevToken.type === _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].SemiColon) { 27048 decl.semicolonPosition = this.prevToken.offset; 27049 } 27050 while (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].SemiColon)) { 27051 // accept empty statements 27052 } 27053 decl = parseDeclaration(); 27054 } 27055 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].CurlyR)) { 27056 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].RightCurlyExpected, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].CurlyR, _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].SemiColon]); 27057 } 27058 return this.finish(node); 27059 }; 27060 Parser.prototype._parseBody = function (node, parseDeclaration) { 27061 if (!node.setDeclarations(this._parseDeclarations(parseDeclaration))) { 27062 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].LeftCurlyExpected, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].CurlyR, _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].SemiColon]); 27063 } 27064 return this.finish(node); 27065 }; 27066 Parser.prototype._parseSelector = function (isNested) { 27067 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Selector"]); 27068 var hasContent = false; 27069 if (isNested) { 27070 // nested selectors can start with a combinator 27071 hasContent = node.addChild(this._parseCombinator()); 27072 } 27073 while (node.addChild(this._parseSimpleSelector())) { 27074 hasContent = true; 27075 node.addChild(this._parseCombinator()); // optional 27076 } 27077 return hasContent ? this.finish(node) : null; 27078 }; 27079 Parser.prototype._parseDeclaration = function (resyncStopTokens) { 27080 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Declaration"]); 27081 if (!node.setProperty(this._parseProperty())) { 27082 return null; 27083 } 27084 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Colon)) { 27085 var stopTokens = resyncStopTokens ? __spreadArrays(resyncStopTokens, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].SemiColon]) : [_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].SemiColon]; 27086 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].ColonExpected, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Colon], stopTokens); 27087 } 27088 if (this.prevToken) { 27089 node.colonPosition = this.prevToken.offset; 27090 } 27091 if (!node.setValue(this._parseExpr())) { 27092 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].PropertyValueExpected); 27093 } 27094 node.addChild(this._parsePrio()); 27095 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].SemiColon)) { 27096 node.semicolonPosition = this.token.offset; // not part of the declaration, but useful information for code assist 27097 } 27098 return this.finish(node); 27099 }; 27100 Parser.prototype._tryParseCustomPropertyDeclaration = function () { 27101 if (!this.peekRegExp(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Ident, /^--/)) { 27102 return null; 27103 } 27104 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["CustomPropertyDeclaration"]); 27105 if (!node.setProperty(this._parseProperty())) { 27106 return null; 27107 } 27108 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Colon)) { 27109 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].ColonExpected, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Colon]); 27110 } 27111 if (this.prevToken) { 27112 node.colonPosition = this.prevToken.offset; 27113 } 27114 var mark = this.mark(); 27115 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].CurlyL)) { 27116 // try to parse it as nested declaration 27117 var propertySet = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["CustomPropertySet"]); 27118 var declarations = this._parseDeclarations(this._parseRuleSetDeclaration.bind(this)); 27119 if (propertySet.setDeclarations(declarations) && !declarations.isErroneous(true)) { 27120 propertySet.addChild(this._parsePrio()); 27121 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].SemiColon)) { 27122 this.finish(propertySet); 27123 node.setPropertySet(propertySet); 27124 node.semicolonPosition = this.token.offset; // not part of the declaration, but useful information for code assist 27125 return this.finish(node); 27126 } 27127 } 27128 this.restoreAtMark(mark); 27129 } 27130 // try tp parse as expression 27131 var expression = this._parseExpr(); 27132 if (expression && !expression.isErroneous(true)) { 27133 this._parsePrio(); 27134 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].SemiColon)) { 27135 node.setValue(expression); 27136 node.semicolonPosition = this.token.offset; // not part of the declaration, but useful information for code assist 27137 return this.finish(node); 27138 } 27139 } 27140 this.restoreAtMark(mark); 27141 node.addChild(this._parseCustomPropertyValue()); 27142 node.addChild(this._parsePrio()); 27143 if (Object(_utils_objects_js__WEBPACK_IMPORTED_MODULE_4__["isDefined"])(node.colonPosition) && this.token.offset === node.colonPosition + 1) { 27144 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].PropertyValueExpected); 27145 } 27146 return this.finish(node); 27147 }; 27148 /** 27149 * Parse custom property values. 27150 * 27151 * Based on https://www.w3.org/TR/css-variables/#syntax 27152 * 27153 * This code is somewhat unusual, as the allowed syntax is incredibly broad, 27154 * parsing almost any sequence of tokens, save for a small set of exceptions. 27155 * Unbalanced delimitors, invalid tokens, and declaration 27156 * terminators like semicolons and !important directives (when not inside 27157 * of delimitors). 27158 */ 27159 Parser.prototype._parseCustomPropertyValue = function () { 27160 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Node"]); 27161 var isTopLevel = function () { return curlyDepth === 0 && parensDepth === 0 && bracketsDepth === 0; }; 27162 var curlyDepth = 0; 27163 var parensDepth = 0; 27164 var bracketsDepth = 0; 27165 done: while (true) { 27166 switch (this.token.type) { 27167 case _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].SemiColon: 27168 // A semicolon only ends things if we're not inside a delimitor. 27169 if (isTopLevel()) { 27170 break done; 27171 } 27172 break; 27173 case _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Exclamation: 27174 // An exclamation ends the value if we're not inside delims. 27175 if (isTopLevel()) { 27176 break done; 27177 } 27178 break; 27179 case _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].CurlyL: 27180 curlyDepth++; 27181 break; 27182 case _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].CurlyR: 27183 curlyDepth--; 27184 if (curlyDepth < 0) { 27185 // The property value has been terminated without a semicolon, and 27186 // this is the last declaration in the ruleset. 27187 if (parensDepth === 0 && bracketsDepth === 0) { 27188 break done; 27189 } 27190 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].LeftCurlyExpected); 27191 } 27192 break; 27193 case _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].ParenthesisL: 27194 parensDepth++; 27195 break; 27196 case _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].ParenthesisR: 27197 parensDepth--; 27198 if (parensDepth < 0) { 27199 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].LeftParenthesisExpected); 27200 } 27201 break; 27202 case _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].BracketL: 27203 bracketsDepth++; 27204 break; 27205 case _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].BracketR: 27206 bracketsDepth--; 27207 if (bracketsDepth < 0) { 27208 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].LeftSquareBracketExpected); 27209 } 27210 break; 27211 case _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].BadString: // fall through 27212 break done; 27213 case _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].EOF: 27214 // We shouldn't have reached the end of input, something is 27215 // unterminated. 27216 var error = _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].RightCurlyExpected; 27217 if (bracketsDepth > 0) { 27218 error = _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].RightSquareBracketExpected; 27219 } 27220 else if (parensDepth > 0) { 27221 error = _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].RightParenthesisExpected; 27222 } 27223 return this.finish(node, error); 27224 } 27225 this.consumeToken(); 27226 } 27227 return this.finish(node); 27228 }; 27229 Parser.prototype._tryToParseDeclaration = function () { 27230 var mark = this.mark(); 27231 if (this._parseProperty() && this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Colon)) { 27232 // looks like a declaration, go ahead 27233 this.restoreAtMark(mark); 27234 return this._parseDeclaration(); 27235 } 27236 this.restoreAtMark(mark); 27237 return null; 27238 }; 27239 Parser.prototype._parseProperty = function () { 27240 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Property"]); 27241 var mark = this.mark(); 27242 if (this.acceptDelim('*') || this.acceptDelim('_')) { 27243 // support for IE 5.x, 6 and 7 star hack: see http://en.wikipedia.org/wiki/CSS_filter#Star_hack 27244 if (this.hasWhitespace()) { 27245 this.restoreAtMark(mark); 27246 return null; 27247 } 27248 } 27249 if (node.setIdentifier(this._parsePropertyIdentifier())) { 27250 return this.finish(node); 27251 } 27252 return null; 27253 }; 27254 Parser.prototype._parsePropertyIdentifier = function () { 27255 return this._parseIdent(); 27256 }; 27257 Parser.prototype._parseCharset = function () { 27258 if (!this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Charset)) { 27259 return null; 27260 } 27261 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Node"]); 27262 this.consumeToken(); // charset 27263 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].String)) { 27264 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].IdentifierExpected); 27265 } 27266 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].SemiColon)) { 27267 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].SemiColonExpected); 27268 } 27269 return this.finish(node); 27270 }; 27271 Parser.prototype._parseImport = function () { 27272 if (!this.peekKeyword('@import')) { 27273 return null; 27274 } 27275 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Import"]); 27276 this.consumeToken(); // @import 27277 if (!node.addChild(this._parseURILiteral()) && !node.addChild(this._parseStringLiteral())) { 27278 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].URIOrStringExpected); 27279 } 27280 if (!this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].SemiColon) && !this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].EOF)) { 27281 node.setMedialist(this._parseMediaQueryList()); 27282 } 27283 return this.finish(node); 27284 }; 27285 Parser.prototype._parseNamespace = function () { 27286 // http://www.w3.org/TR/css3-namespace/ 27287 // namespace : NAMESPACE_SYM S* [IDENT S*]? [STRING|URI] S* ';' S* 27288 if (!this.peekKeyword('@namespace')) { 27289 return null; 27290 } 27291 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Namespace"]); 27292 this.consumeToken(); // @namespace 27293 if (!node.addChild(this._parseURILiteral())) { // url literal also starts with ident 27294 node.addChild(this._parseIdent()); // optional prefix 27295 if (!node.addChild(this._parseURILiteral()) && !node.addChild(this._parseStringLiteral())) { 27296 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].URIExpected, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].SemiColon]); 27297 } 27298 } 27299 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].SemiColon)) { 27300 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].SemiColonExpected); 27301 } 27302 return this.finish(node); 27303 }; 27304 Parser.prototype._parseFontFace = function () { 27305 if (!this.peekKeyword('@font-face')) { 27306 return null; 27307 } 27308 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["FontFace"]); 27309 this.consumeToken(); // @font-face 27310 return this._parseBody(node, this._parseRuleSetDeclaration.bind(this)); 27311 }; 27312 Parser.prototype._parseViewPort = function () { 27313 if (!this.peekKeyword('@-ms-viewport') && 27314 !this.peekKeyword('@-o-viewport') && 27315 !this.peekKeyword('@viewport')) { 27316 return null; 27317 } 27318 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["ViewPort"]); 27319 this.consumeToken(); // @-ms-viewport 27320 return this._parseBody(node, this._parseRuleSetDeclaration.bind(this)); 27321 }; 27322 Parser.prototype._parseKeyframe = function () { 27323 if (!this.peekRegExp(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].AtKeyword, this.keyframeRegex)) { 27324 return null; 27325 } 27326 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Keyframe"]); 27327 var atNode = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Node"]); 27328 this.consumeToken(); // atkeyword 27329 node.setKeyword(this.finish(atNode)); 27330 if (atNode.matches('@-ms-keyframes')) { // -ms-keyframes never existed 27331 this.markError(atNode, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].UnknownKeyword); 27332 } 27333 if (!node.setIdentifier(this._parseKeyframeIdent())) { 27334 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].IdentifierExpected, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].CurlyR]); 27335 } 27336 return this._parseBody(node, this._parseKeyframeSelector.bind(this)); 27337 }; 27338 Parser.prototype._parseKeyframeIdent = function () { 27339 return this._parseIdent([_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["ReferenceType"].Keyframe]); 27340 }; 27341 Parser.prototype._parseKeyframeSelector = function () { 27342 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["KeyframeSelector"]); 27343 if (!node.addChild(this._parseIdent()) && !this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Percentage)) { 27344 return null; 27345 } 27346 while (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Comma)) { 27347 if (!node.addChild(this._parseIdent()) && !this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Percentage)) { 27348 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].PercentageExpected); 27349 } 27350 } 27351 return this._parseBody(node, this._parseRuleSetDeclaration.bind(this)); 27352 }; 27353 Parser.prototype._tryParseKeyframeSelector = function () { 27354 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["KeyframeSelector"]); 27355 var pos = this.mark(); 27356 if (!node.addChild(this._parseIdent()) && !this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Percentage)) { 27357 return null; 27358 } 27359 while (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Comma)) { 27360 if (!node.addChild(this._parseIdent()) && !this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Percentage)) { 27361 this.restoreAtMark(pos); 27362 return null; 27363 } 27364 } 27365 if (!this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].CurlyL)) { 27366 this.restoreAtMark(pos); 27367 return null; 27368 } 27369 return this._parseBody(node, this._parseRuleSetDeclaration.bind(this)); 27370 }; 27371 Parser.prototype._parseSupports = function (isNested) { 27372 if (isNested === void 0) { isNested = false; } 27373 // SUPPORTS_SYM S* supports_condition '{' S* ruleset* '}' S* 27374 if (!this.peekKeyword('@supports')) { 27375 return null; 27376 } 27377 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Supports"]); 27378 this.consumeToken(); // @supports 27379 node.addChild(this._parseSupportsCondition()); 27380 return this._parseBody(node, this._parseSupportsDeclaration.bind(this, isNested)); 27381 }; 27382 Parser.prototype._parseSupportsDeclaration = function (isNested) { 27383 if (isNested === void 0) { isNested = false; } 27384 if (isNested) { 27385 // if nested, the body can contain rulesets, but also declarations 27386 return this._tryParseRuleset(true) 27387 || this._tryToParseDeclaration() 27388 || this._parseStylesheetStatement(true); 27389 } 27390 return this._parseStylesheetStatement(false); 27391 }; 27392 Parser.prototype._parseSupportsCondition = function () { 27393 // supports_condition : supports_negation | supports_conjunction | supports_disjunction | supports_condition_in_parens ; 27394 // supports_condition_in_parens: ( '(' S* supports_condition S* ')' ) | supports_declaration_condition | general_enclosed ; 27395 // supports_negation: NOT S+ supports_condition_in_parens ; 27396 // supports_conjunction: supports_condition_in_parens ( S+ AND S+ supports_condition_in_parens )+; 27397 // supports_disjunction: supports_condition_in_parens ( S+ OR S+ supports_condition_in_parens )+; 27398 // supports_declaration_condition: '(' S* declaration ')'; 27399 // general_enclosed: ( FUNCTION | '(' ) ( any | unused )* ')' ; 27400 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["SupportsCondition"]); 27401 if (this.acceptIdent('not')) { 27402 node.addChild(this._parseSupportsConditionInParens()); 27403 } 27404 else { 27405 node.addChild(this._parseSupportsConditionInParens()); 27406 if (this.peekRegExp(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Ident, /^(and|or)$/i)) { 27407 var text = this.token.text.toLowerCase(); 27408 while (this.acceptIdent(text)) { 27409 node.addChild(this._parseSupportsConditionInParens()); 27410 } 27411 } 27412 } 27413 return this.finish(node); 27414 }; 27415 Parser.prototype._parseSupportsConditionInParens = function () { 27416 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["SupportsCondition"]); 27417 if (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].ParenthesisL)) { 27418 if (this.prevToken) { 27419 node.lParent = this.prevToken.offset; 27420 } 27421 if (!node.addChild(this._tryToParseDeclaration())) { 27422 if (!this._parseSupportsCondition()) { 27423 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].ConditionExpected); 27424 } 27425 } 27426 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].ParenthesisR)) { 27427 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].RightParenthesisExpected, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].ParenthesisR], []); 27428 } 27429 if (this.prevToken) { 27430 node.rParent = this.prevToken.offset; 27431 } 27432 return this.finish(node); 27433 } 27434 else if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Ident)) { 27435 var pos = this.mark(); 27436 this.consumeToken(); 27437 if (!this.hasWhitespace() && this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].ParenthesisL)) { 27438 var openParentCount = 1; 27439 while (this.token.type !== _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].EOF && openParentCount !== 0) { 27440 if (this.token.type === _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].ParenthesisL) { 27441 openParentCount++; 27442 } 27443 else if (this.token.type === _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].ParenthesisR) { 27444 openParentCount--; 27445 } 27446 this.consumeToken(); 27447 } 27448 return this.finish(node); 27449 } 27450 else { 27451 this.restoreAtMark(pos); 27452 } 27453 } 27454 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].LeftParenthesisExpected, [], [_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].ParenthesisL]); 27455 }; 27456 Parser.prototype._parseMediaDeclaration = function (isNested) { 27457 if (isNested === void 0) { isNested = false; } 27458 if (isNested) { 27459 // if nested, the body can contain rulesets, but also declarations 27460 return this._tryParseRuleset(true) 27461 || this._tryToParseDeclaration() 27462 || this._parseStylesheetStatement(true); 27463 } 27464 return this._parseStylesheetStatement(false); 27465 }; 27466 Parser.prototype._parseMedia = function (isNested) { 27467 if (isNested === void 0) { isNested = false; } 27468 // MEDIA_SYM S* media_query_list '{' S* ruleset* '}' S* 27469 // media_query_list : S* [media_query [ ',' S* media_query ]* ]? 27470 if (!this.peekKeyword('@media')) { 27471 return null; 27472 } 27473 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Media"]); 27474 this.consumeToken(); // @media 27475 if (!node.addChild(this._parseMediaQueryList())) { 27476 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].MediaQueryExpected); 27477 } 27478 return this._parseBody(node, this._parseMediaDeclaration.bind(this, isNested)); 27479 }; 27480 Parser.prototype._parseMediaQueryList = function () { 27481 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Medialist"]); 27482 if (!node.addChild(this._parseMediaQuery([_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].CurlyL]))) { 27483 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].MediaQueryExpected); 27484 } 27485 while (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Comma)) { 27486 if (!node.addChild(this._parseMediaQuery([_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].CurlyL]))) { 27487 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].MediaQueryExpected); 27488 } 27489 } 27490 return this.finish(node); 27491 }; 27492 Parser.prototype._parseMediaQuery = function (resyncStopToken) { 27493 // http://www.w3.org/TR/css3-mediaqueries/ 27494 // media_query : [ONLY | NOT]? S* IDENT S* [ AND S* expression ]* | expression [ AND S* expression ]* 27495 // expression : '(' S* IDENT S* [ ':' S* expr ]? ')' S* 27496 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["MediaQuery"]); 27497 var parseExpression = true; 27498 var hasContent = false; 27499 if (!this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].ParenthesisL)) { 27500 if (this.acceptIdent('only') || this.acceptIdent('not')) { 27501 // optional 27502 } 27503 if (!node.addChild(this._parseIdent())) { 27504 return null; 27505 } 27506 hasContent = true; 27507 parseExpression = this.acceptIdent('and'); 27508 } 27509 while (parseExpression) { 27510 // Allow short-circuting for other language constructs. 27511 if (node.addChild(this._parseMediaContentStart())) { 27512 parseExpression = this.acceptIdent('and'); 27513 continue; 27514 } 27515 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].ParenthesisL)) { 27516 if (hasContent) { 27517 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].LeftParenthesisExpected, [], resyncStopToken); 27518 } 27519 return null; 27520 } 27521 if (!node.addChild(this._parseMediaFeatureName())) { 27522 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].IdentifierExpected, [], resyncStopToken); 27523 } 27524 if (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Colon)) { 27525 if (!node.addChild(this._parseExpr())) { 27526 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].TermExpected, [], resyncStopToken); 27527 } 27528 } 27529 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].ParenthesisR)) { 27530 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].RightParenthesisExpected, [], resyncStopToken); 27531 } 27532 parseExpression = this.acceptIdent('and'); 27533 } 27534 return this.finish(node); 27535 }; 27536 Parser.prototype._parseMediaContentStart = function () { 27537 return null; 27538 }; 27539 Parser.prototype._parseMediaFeatureName = function () { 27540 return this._parseIdent(); 27541 }; 27542 Parser.prototype._parseMedium = function () { 27543 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Node"]); 27544 if (node.addChild(this._parseIdent())) { 27545 return this.finish(node); 27546 } 27547 else { 27548 return null; 27549 } 27550 }; 27551 Parser.prototype._parsePageDeclaration = function () { 27552 return this._parsePageMarginBox() || this._parseRuleSetDeclaration(); 27553 }; 27554 Parser.prototype._parsePage = function () { 27555 // http://www.w3.org/TR/css3-page/ 27556 // page_rule : PAGE_SYM S* page_selector_list '{' S* page_body '}' S* 27557 // page_body : /* Can be empty */ declaration? [ ';' S* page_body ]? | page_margin_box page_body 27558 if (!this.peekKeyword('@page')) { 27559 return null; 27560 } 27561 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Page"]); 27562 this.consumeToken(); 27563 if (node.addChild(this._parsePageSelector())) { 27564 while (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Comma)) { 27565 if (!node.addChild(this._parsePageSelector())) { 27566 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].IdentifierExpected); 27567 } 27568 } 27569 } 27570 return this._parseBody(node, this._parsePageDeclaration.bind(this)); 27571 }; 27572 Parser.prototype._parsePageMarginBox = function () { 27573 // page_margin_box : margin_sym S* '{' S* declaration? [ ';' S* declaration? ]* '}' S* 27574 if (!this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].AtKeyword)) { 27575 return null; 27576 } 27577 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["PageBoxMarginBox"]); 27578 if (!this.acceptOneKeyword(_languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_3__["pageBoxDirectives"])) { 27579 this.markError(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].UnknownAtRule, [], [_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].CurlyL]); 27580 } 27581 return this._parseBody(node, this._parseRuleSetDeclaration.bind(this)); 27582 }; 27583 Parser.prototype._parsePageSelector = function () { 27584 // page_selector : pseudo_page+ | IDENT pseudo_page* 27585 // pseudo_page : ':' [ "left" | "right" | "first" | "blank" ]; 27586 if (!this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Ident) && !this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Colon)) { 27587 return null; 27588 } 27589 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Node"]); 27590 node.addChild(this._parseIdent()); // optional ident 27591 if (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Colon)) { 27592 if (!node.addChild(this._parseIdent())) { // optional ident 27593 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].IdentifierExpected); 27594 } 27595 } 27596 return this.finish(node); 27597 }; 27598 Parser.prototype._parseDocument = function () { 27599 // -moz-document is experimental but has been pushed to css4 27600 if (!this.peekKeyword('@-moz-document')) { 27601 return null; 27602 } 27603 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Document"]); 27604 this.consumeToken(); // @-moz-document 27605 this.resync([], [_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].CurlyL]); // ignore all the rules 27606 return this._parseBody(node, this._parseStylesheetStatement.bind(this)); 27607 }; 27608 // https://www.w3.org/TR/css-syntax-3/#consume-an-at-rule 27609 Parser.prototype._parseUnknownAtRule = function () { 27610 if (!this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].AtKeyword)) { 27611 return null; 27612 } 27613 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["UnknownAtRule"]); 27614 node.addChild(this._parseUnknownAtRuleName()); 27615 var isTopLevel = function () { return curlyDepth === 0 && parensDepth === 0 && bracketsDepth === 0; }; 27616 var curlyLCount = 0; 27617 var curlyDepth = 0; 27618 var parensDepth = 0; 27619 var bracketsDepth = 0; 27620 done: while (true) { 27621 switch (this.token.type) { 27622 case _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].SemiColon: 27623 if (isTopLevel()) { 27624 break done; 27625 } 27626 break; 27627 case _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].EOF: 27628 if (curlyDepth > 0) { 27629 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].RightCurlyExpected); 27630 } 27631 else if (bracketsDepth > 0) { 27632 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].RightSquareBracketExpected); 27633 } 27634 else if (parensDepth > 0) { 27635 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].RightParenthesisExpected); 27636 } 27637 else { 27638 return this.finish(node); 27639 } 27640 case _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].CurlyL: 27641 curlyLCount++; 27642 curlyDepth++; 27643 break; 27644 case _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].CurlyR: 27645 curlyDepth--; 27646 // End of at-rule, consume CurlyR and return node 27647 if (curlyLCount > 0 && curlyDepth === 0) { 27648 this.consumeToken(); 27649 if (bracketsDepth > 0) { 27650 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].RightSquareBracketExpected); 27651 } 27652 else if (parensDepth > 0) { 27653 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].RightParenthesisExpected); 27654 } 27655 break done; 27656 } 27657 if (curlyDepth < 0) { 27658 // The property value has been terminated without a semicolon, and 27659 // this is the last declaration in the ruleset. 27660 if (parensDepth === 0 && bracketsDepth === 0) { 27661 break done; 27662 } 27663 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].LeftCurlyExpected); 27664 } 27665 break; 27666 case _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].ParenthesisL: 27667 parensDepth++; 27668 break; 27669 case _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].ParenthesisR: 27670 parensDepth--; 27671 if (parensDepth < 0) { 27672 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].LeftParenthesisExpected); 27673 } 27674 break; 27675 case _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].BracketL: 27676 bracketsDepth++; 27677 break; 27678 case _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].BracketR: 27679 bracketsDepth--; 27680 if (bracketsDepth < 0) { 27681 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].LeftSquareBracketExpected); 27682 } 27683 break; 27684 } 27685 this.consumeToken(); 27686 } 27687 return node; 27688 }; 27689 Parser.prototype._parseUnknownAtRuleName = function () { 27690 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Node"]); 27691 if (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].AtKeyword)) { 27692 return this.finish(node); 27693 } 27694 return node; 27695 }; 27696 Parser.prototype._parseOperator = function () { 27697 // these are operators for binary expressions 27698 if (this.peekDelim('/') || 27699 this.peekDelim('*') || 27700 this.peekDelim('+') || 27701 this.peekDelim('-') || 27702 this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Dashmatch) || 27703 this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Includes) || 27704 this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].SubstringOperator) || 27705 this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].PrefixOperator) || 27706 this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].SuffixOperator) || 27707 this.peekDelim('=')) { // doesn't stick to the standard here 27708 var node = this.createNode(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].Operator); 27709 this.consumeToken(); 27710 return this.finish(node); 27711 } 27712 else { 27713 return null; 27714 } 27715 }; 27716 Parser.prototype._parseUnaryOperator = function () { 27717 if (!this.peekDelim('+') && !this.peekDelim('-')) { 27718 return null; 27719 } 27720 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Node"]); 27721 this.consumeToken(); 27722 return this.finish(node); 27723 }; 27724 Parser.prototype._parseCombinator = function () { 27725 if (this.peekDelim('>')) { 27726 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Node"]); 27727 this.consumeToken(); 27728 var mark = this.mark(); 27729 if (!this.hasWhitespace() && this.acceptDelim('>')) { 27730 if (!this.hasWhitespace() && this.acceptDelim('>')) { 27731 node.type = _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].SelectorCombinatorShadowPiercingDescendant; 27732 return this.finish(node); 27733 } 27734 this.restoreAtMark(mark); 27735 } 27736 node.type = _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].SelectorCombinatorParent; 27737 return this.finish(node); 27738 } 27739 else if (this.peekDelim('+')) { 27740 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Node"]); 27741 this.consumeToken(); 27742 node.type = _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].SelectorCombinatorSibling; 27743 return this.finish(node); 27744 } 27745 else if (this.peekDelim('~')) { 27746 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Node"]); 27747 this.consumeToken(); 27748 node.type = _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].SelectorCombinatorAllSiblings; 27749 return this.finish(node); 27750 } 27751 else if (this.peekDelim('/')) { 27752 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Node"]); 27753 this.consumeToken(); 27754 var mark = this.mark(); 27755 if (!this.hasWhitespace() && this.acceptIdent('deep') && !this.hasWhitespace() && this.acceptDelim('/')) { 27756 node.type = _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].SelectorCombinatorShadowPiercingDescendant; 27757 return this.finish(node); 27758 } 27759 this.restoreAtMark(mark); 27760 } 27761 return null; 27762 }; 27763 Parser.prototype._parseSimpleSelector = function () { 27764 // simple_selector 27765 // : element_name [ HASH | class | attrib | pseudo ]* | [ HASH | class | attrib | pseudo ]+ ; 27766 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["SimpleSelector"]); 27767 var c = 0; 27768 if (node.addChild(this._parseElementName())) { 27769 c++; 27770 } 27771 while ((c === 0 || !this.hasWhitespace()) && node.addChild(this._parseSimpleSelectorBody())) { 27772 c++; 27773 } 27774 return c > 0 ? this.finish(node) : null; 27775 }; 27776 Parser.prototype._parseSimpleSelectorBody = function () { 27777 return this._parsePseudo() || this._parseHash() || this._parseClass() || this._parseAttrib(); 27778 }; 27779 Parser.prototype._parseSelectorIdent = function () { 27780 return this._parseIdent(); 27781 }; 27782 Parser.prototype._parseHash = function () { 27783 if (!this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Hash) && !this.peekDelim('#')) { 27784 return null; 27785 } 27786 var node = this.createNode(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].IdentifierSelector); 27787 if (this.acceptDelim('#')) { 27788 if (this.hasWhitespace() || !node.addChild(this._parseSelectorIdent())) { 27789 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].IdentifierExpected); 27790 } 27791 } 27792 else { 27793 this.consumeToken(); // TokenType.Hash 27794 } 27795 return this.finish(node); 27796 }; 27797 Parser.prototype._parseClass = function () { 27798 // class: '.' IDENT ; 27799 if (!this.peekDelim('.')) { 27800 return null; 27801 } 27802 var node = this.createNode(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].ClassSelector); 27803 this.consumeToken(); // '.' 27804 if (this.hasWhitespace() || !node.addChild(this._parseSelectorIdent())) { 27805 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].IdentifierExpected); 27806 } 27807 return this.finish(node); 27808 }; 27809 Parser.prototype._parseElementName = function () { 27810 // element_name: (ns? '|')? IDENT | '*'; 27811 var pos = this.mark(); 27812 var node = this.createNode(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].ElementNameSelector); 27813 node.addChild(this._parseNamespacePrefix()); 27814 if (!node.addChild(this._parseSelectorIdent()) && !this.acceptDelim('*')) { 27815 this.restoreAtMark(pos); 27816 return null; 27817 } 27818 return this.finish(node); 27819 }; 27820 Parser.prototype._parseNamespacePrefix = function () { 27821 var pos = this.mark(); 27822 var node = this.createNode(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].NamespacePrefix); 27823 if (!node.addChild(this._parseIdent()) && !this.acceptDelim('*')) { 27824 // ns is optional 27825 } 27826 if (!this.acceptDelim('|')) { 27827 this.restoreAtMark(pos); 27828 return null; 27829 } 27830 return this.finish(node); 27831 }; 27832 Parser.prototype._parseAttrib = function () { 27833 // attrib : '[' S* IDENT S* [ [ '=' | INCLUDES | DASHMATCH ] S* [ IDENT | STRING ] S* ]? ']' 27834 if (!this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].BracketL)) { 27835 return null; 27836 } 27837 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["AttributeSelector"]); 27838 this.consumeToken(); // BracketL 27839 // Optional attrib namespace 27840 node.setNamespacePrefix(this._parseNamespacePrefix()); 27841 if (!node.setIdentifier(this._parseIdent())) { 27842 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].IdentifierExpected); 27843 } 27844 if (node.setOperator(this._parseOperator())) { 27845 node.setValue(this._parseBinaryExpr()); 27846 this.acceptIdent('i'); // case insensitive matching 27847 } 27848 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].BracketR)) { 27849 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].RightSquareBracketExpected); 27850 } 27851 return this.finish(node); 27852 }; 27853 Parser.prototype._parsePseudo = function () { 27854 var _this = this; 27855 // pseudo: ':' [ IDENT | FUNCTION S* [IDENT S*]? ')' ] 27856 var node = this._tryParsePseudoIdentifier(); 27857 if (node) { 27858 if (!this.hasWhitespace() && this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].ParenthesisL)) { 27859 var tryAsSelector = function () { 27860 var selectors = _this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Node"]); 27861 if (!selectors.addChild(_this._parseSelector(false))) { 27862 return null; 27863 } 27864 while (_this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Comma) && selectors.addChild(_this._parseSelector(false))) { 27865 // loop 27866 } 27867 if (_this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].ParenthesisR)) { 27868 return _this.finish(selectors); 27869 } 27870 return null; 27871 }; 27872 node.addChild(this.try(tryAsSelector) || this._parseBinaryExpr()); 27873 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].ParenthesisR)) { 27874 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].RightParenthesisExpected); 27875 } 27876 } 27877 return this.finish(node); 27878 } 27879 return null; 27880 }; 27881 Parser.prototype._tryParsePseudoIdentifier = function () { 27882 if (!this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Colon)) { 27883 return null; 27884 } 27885 var pos = this.mark(); 27886 var node = this.createNode(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].PseudoSelector); 27887 this.consumeToken(); // Colon 27888 if (this.hasWhitespace()) { 27889 this.restoreAtMark(pos); 27890 return null; 27891 } 27892 // optional, support :: 27893 if (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Colon) && this.hasWhitespace()) { 27894 this.markError(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].IdentifierExpected); 27895 } 27896 if (!node.addChild(this._parseIdent())) { 27897 this.markError(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].IdentifierExpected); 27898 } 27899 return node; 27900 }; 27901 Parser.prototype._tryParsePrio = function () { 27902 var mark = this.mark(); 27903 var prio = this._parsePrio(); 27904 if (prio) { 27905 return prio; 27906 } 27907 this.restoreAtMark(mark); 27908 return null; 27909 }; 27910 Parser.prototype._parsePrio = function () { 27911 if (!this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Exclamation)) { 27912 return null; 27913 } 27914 var node = this.createNode(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].Prio); 27915 if (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Exclamation) && this.acceptIdent('important')) { 27916 return this.finish(node); 27917 } 27918 return null; 27919 }; 27920 Parser.prototype._parseExpr = function (stopOnComma) { 27921 if (stopOnComma === void 0) { stopOnComma = false; } 27922 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Expression"]); 27923 if (!node.addChild(this._parseBinaryExpr())) { 27924 return null; 27925 } 27926 while (true) { 27927 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Comma)) { // optional 27928 if (stopOnComma) { 27929 return this.finish(node); 27930 } 27931 this.consumeToken(); 27932 } 27933 if (!node.addChild(this._parseBinaryExpr())) { 27934 break; 27935 } 27936 } 27937 return this.finish(node); 27938 }; 27939 Parser.prototype._parseNamedLine = function () { 27940 // https://www.w3.org/TR/css-grid-1/#named-lines 27941 if (!this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].BracketL)) { 27942 return null; 27943 } 27944 var node = this.createNode(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].GridLine); 27945 this.consumeToken(); 27946 while (node.addChild(this._parseIdent())) { 27947 // repeat 27948 } 27949 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].BracketR)) { 27950 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].RightSquareBracketExpected); 27951 } 27952 return this.finish(node); 27953 }; 27954 Parser.prototype._parseBinaryExpr = function (preparsedLeft, preparsedOper) { 27955 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["BinaryExpression"]); 27956 if (!node.setLeft((preparsedLeft || this._parseTerm()))) { 27957 return null; 27958 } 27959 if (!node.setOperator(preparsedOper || this._parseOperator())) { 27960 return this.finish(node); 27961 } 27962 if (!node.setRight(this._parseTerm())) { 27963 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].TermExpected); 27964 } 27965 // things needed for multiple binary expressions 27966 node = this.finish(node); 27967 var operator = this._parseOperator(); 27968 if (operator) { 27969 node = this._parseBinaryExpr(node, operator); 27970 } 27971 return this.finish(node); 27972 }; 27973 Parser.prototype._parseTerm = function () { 27974 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Term"]); 27975 node.setOperator(this._parseUnaryOperator()); // optional 27976 if (node.setExpression(this._parseTermExpression())) { 27977 return this.finish(node); 27978 } 27979 return null; 27980 }; 27981 Parser.prototype._parseTermExpression = function () { 27982 return this._parseURILiteral() || // url before function 27983 this._parseFunction() || // function before ident 27984 this._parseIdent() || 27985 this._parseStringLiteral() || 27986 this._parseNumeric() || 27987 this._parseHexColor() || 27988 this._parseOperation() || 27989 this._parseNamedLine(); 27990 }; 27991 Parser.prototype._parseOperation = function () { 27992 if (!this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].ParenthesisL)) { 27993 return null; 27994 } 27995 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Node"]); 27996 this.consumeToken(); // ParenthesisL 27997 node.addChild(this._parseExpr()); 27998 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].ParenthesisR)) { 27999 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].RightParenthesisExpected); 28000 } 28001 return this.finish(node); 28002 }; 28003 Parser.prototype._parseNumeric = function () { 28004 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Num) || 28005 this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Percentage) || 28006 this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Resolution) || 28007 this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Length) || 28008 this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].EMS) || 28009 this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].EXS) || 28010 this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Angle) || 28011 this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Time) || 28012 this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Dimension) || 28013 this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Freq)) { 28014 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NumericValue"]); 28015 this.consumeToken(); 28016 return this.finish(node); 28017 } 28018 return null; 28019 }; 28020 Parser.prototype._parseStringLiteral = function () { 28021 if (!this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].String) && !this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].BadString)) { 28022 return null; 28023 } 28024 var node = this.createNode(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].StringLiteral); 28025 this.consumeToken(); 28026 return this.finish(node); 28027 }; 28028 Parser.prototype._parseURILiteral = function () { 28029 if (!this.peekRegExp(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Ident, /^url(-prefix)?$/i)) { 28030 return null; 28031 } 28032 var pos = this.mark(); 28033 var node = this.createNode(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].URILiteral); 28034 this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Ident); 28035 if (this.hasWhitespace() || !this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].ParenthesisL)) { 28036 this.restoreAtMark(pos); 28037 return null; 28038 } 28039 this.scanner.inURL = true; 28040 this.consumeToken(); // consume () 28041 node.addChild(this._parseURLArgument()); // argument is optional 28042 this.scanner.inURL = false; 28043 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].ParenthesisR)) { 28044 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].RightParenthesisExpected); 28045 } 28046 return this.finish(node); 28047 }; 28048 Parser.prototype._parseURLArgument = function () { 28049 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Node"]); 28050 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].String) && !this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].BadString) && !this.acceptUnquotedString()) { 28051 return null; 28052 } 28053 return this.finish(node); 28054 }; 28055 Parser.prototype._parseIdent = function (referenceTypes) { 28056 if (!this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Ident)) { 28057 return null; 28058 } 28059 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Identifier"]); 28060 if (referenceTypes) { 28061 node.referenceTypes = referenceTypes; 28062 } 28063 node.isCustomProperty = this.peekRegExp(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Ident, /^--/); 28064 this.consumeToken(); 28065 return this.finish(node); 28066 }; 28067 Parser.prototype._parseFunction = function () { 28068 var pos = this.mark(); 28069 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Function"]); 28070 if (!node.setIdentifier(this._parseFunctionIdentifier())) { 28071 return null; 28072 } 28073 if (this.hasWhitespace() || !this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].ParenthesisL)) { 28074 this.restoreAtMark(pos); 28075 return null; 28076 } 28077 if (node.getArguments().addChild(this._parseFunctionArgument())) { 28078 while (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Comma)) { 28079 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].ParenthesisR)) { 28080 break; 28081 } 28082 if (!node.getArguments().addChild(this._parseFunctionArgument())) { 28083 this.markError(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].ExpressionExpected); 28084 } 28085 } 28086 } 28087 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].ParenthesisR)) { 28088 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_2__["ParseError"].RightParenthesisExpected); 28089 } 28090 return this.finish(node); 28091 }; 28092 Parser.prototype._parseFunctionIdentifier = function () { 28093 if (!this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Ident)) { 28094 return null; 28095 } 28096 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Identifier"]); 28097 node.referenceTypes = [_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["ReferenceType"].Function]; 28098 if (this.acceptIdent('progid')) { 28099 // support for IE7 specific filters: 'progid:DXImageTransform.Microsoft.MotionBlur(strength=13, direction=310)' 28100 if (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Colon)) { 28101 while (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Ident) && this.acceptDelim('.')) { 28102 // loop 28103 } 28104 } 28105 return this.finish(node); 28106 } 28107 this.consumeToken(); 28108 return this.finish(node); 28109 }; 28110 Parser.prototype._parseFunctionArgument = function () { 28111 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["FunctionArgument"]); 28112 if (node.setValue(this._parseExpr(true))) { 28113 return this.finish(node); 28114 } 28115 return null; 28116 }; 28117 Parser.prototype._parseHexColor = function () { 28118 if (this.peekRegExp(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Hash, /^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g)) { 28119 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["HexColorValue"]); 28120 this.consumeToken(); 28121 return this.finish(node); 28122 } 28123 else { 28124 return null; 28125 } 28126 }; 28127 return Parser; 28128}()); 28129 28130 28131 28132/***/ }), 28133 28134/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssScanner.js": 28135/*!**************************************************************************************************************!*\ 28136 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssScanner.js ***! 28137 \**************************************************************************************************************/ 28138/*! exports provided: TokenType, MultiLineStream, Scanner */ 28139/***/ (function(module, __webpack_exports__, __webpack_require__) { 28140 28141"use strict"; 28142__webpack_require__.r(__webpack_exports__); 28143/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TokenType", function() { return TokenType; }); 28144/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MultiLineStream", function() { return MultiLineStream; }); 28145/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Scanner", function() { return Scanner; }); 28146/*--------------------------------------------------------------------------------------------- 28147 * Copyright (c) Microsoft Corporation. All rights reserved. 28148 * Licensed under the MIT License. See License.txt in the project root for license information. 28149 *--------------------------------------------------------------------------------------------*/ 28150 28151var TokenType; 28152(function (TokenType) { 28153 TokenType[TokenType["Ident"] = 0] = "Ident"; 28154 TokenType[TokenType["AtKeyword"] = 1] = "AtKeyword"; 28155 TokenType[TokenType["String"] = 2] = "String"; 28156 TokenType[TokenType["BadString"] = 3] = "BadString"; 28157 TokenType[TokenType["UnquotedString"] = 4] = "UnquotedString"; 28158 TokenType[TokenType["Hash"] = 5] = "Hash"; 28159 TokenType[TokenType["Num"] = 6] = "Num"; 28160 TokenType[TokenType["Percentage"] = 7] = "Percentage"; 28161 TokenType[TokenType["Dimension"] = 8] = "Dimension"; 28162 TokenType[TokenType["UnicodeRange"] = 9] = "UnicodeRange"; 28163 TokenType[TokenType["CDO"] = 10] = "CDO"; 28164 TokenType[TokenType["CDC"] = 11] = "CDC"; 28165 TokenType[TokenType["Colon"] = 12] = "Colon"; 28166 TokenType[TokenType["SemiColon"] = 13] = "SemiColon"; 28167 TokenType[TokenType["CurlyL"] = 14] = "CurlyL"; 28168 TokenType[TokenType["CurlyR"] = 15] = "CurlyR"; 28169 TokenType[TokenType["ParenthesisL"] = 16] = "ParenthesisL"; 28170 TokenType[TokenType["ParenthesisR"] = 17] = "ParenthesisR"; 28171 TokenType[TokenType["BracketL"] = 18] = "BracketL"; 28172 TokenType[TokenType["BracketR"] = 19] = "BracketR"; 28173 TokenType[TokenType["Whitespace"] = 20] = "Whitespace"; 28174 TokenType[TokenType["Includes"] = 21] = "Includes"; 28175 TokenType[TokenType["Dashmatch"] = 22] = "Dashmatch"; 28176 TokenType[TokenType["SubstringOperator"] = 23] = "SubstringOperator"; 28177 TokenType[TokenType["PrefixOperator"] = 24] = "PrefixOperator"; 28178 TokenType[TokenType["SuffixOperator"] = 25] = "SuffixOperator"; 28179 TokenType[TokenType["Delim"] = 26] = "Delim"; 28180 TokenType[TokenType["EMS"] = 27] = "EMS"; 28181 TokenType[TokenType["EXS"] = 28] = "EXS"; 28182 TokenType[TokenType["Length"] = 29] = "Length"; 28183 TokenType[TokenType["Angle"] = 30] = "Angle"; 28184 TokenType[TokenType["Time"] = 31] = "Time"; 28185 TokenType[TokenType["Freq"] = 32] = "Freq"; 28186 TokenType[TokenType["Exclamation"] = 33] = "Exclamation"; 28187 TokenType[TokenType["Resolution"] = 34] = "Resolution"; 28188 TokenType[TokenType["Comma"] = 35] = "Comma"; 28189 TokenType[TokenType["Charset"] = 36] = "Charset"; 28190 TokenType[TokenType["EscapedJavaScript"] = 37] = "EscapedJavaScript"; 28191 TokenType[TokenType["BadEscapedJavaScript"] = 38] = "BadEscapedJavaScript"; 28192 TokenType[TokenType["Comment"] = 39] = "Comment"; 28193 TokenType[TokenType["SingleLineComment"] = 40] = "SingleLineComment"; 28194 TokenType[TokenType["EOF"] = 41] = "EOF"; 28195 TokenType[TokenType["CustomToken"] = 42] = "CustomToken"; 28196})(TokenType || (TokenType = {})); 28197var MultiLineStream = /** @class */ (function () { 28198 function MultiLineStream(source) { 28199 this.source = source; 28200 this.len = source.length; 28201 this.position = 0; 28202 } 28203 MultiLineStream.prototype.substring = function (from, to) { 28204 if (to === void 0) { to = this.position; } 28205 return this.source.substring(from, to); 28206 }; 28207 MultiLineStream.prototype.eos = function () { 28208 return this.len <= this.position; 28209 }; 28210 MultiLineStream.prototype.pos = function () { 28211 return this.position; 28212 }; 28213 MultiLineStream.prototype.goBackTo = function (pos) { 28214 this.position = pos; 28215 }; 28216 MultiLineStream.prototype.goBack = function (n) { 28217 this.position -= n; 28218 }; 28219 MultiLineStream.prototype.advance = function (n) { 28220 this.position += n; 28221 }; 28222 MultiLineStream.prototype.nextChar = function () { 28223 return this.source.charCodeAt(this.position++) || 0; 28224 }; 28225 MultiLineStream.prototype.peekChar = function (n) { 28226 if (n === void 0) { n = 0; } 28227 return this.source.charCodeAt(this.position + n) || 0; 28228 }; 28229 MultiLineStream.prototype.lookbackChar = function (n) { 28230 if (n === void 0) { n = 0; } 28231 return this.source.charCodeAt(this.position - n) || 0; 28232 }; 28233 MultiLineStream.prototype.advanceIfChar = function (ch) { 28234 if (ch === this.source.charCodeAt(this.position)) { 28235 this.position++; 28236 return true; 28237 } 28238 return false; 28239 }; 28240 MultiLineStream.prototype.advanceIfChars = function (ch) { 28241 if (this.position + ch.length > this.source.length) { 28242 return false; 28243 } 28244 var i = 0; 28245 for (; i < ch.length; i++) { 28246 if (this.source.charCodeAt(this.position + i) !== ch[i]) { 28247 return false; 28248 } 28249 } 28250 this.advance(i); 28251 return true; 28252 }; 28253 MultiLineStream.prototype.advanceWhileChar = function (condition) { 28254 var posNow = this.position; 28255 while (this.position < this.len && condition(this.source.charCodeAt(this.position))) { 28256 this.position++; 28257 } 28258 return this.position - posNow; 28259 }; 28260 return MultiLineStream; 28261}()); 28262 28263var _a = 'a'.charCodeAt(0); 28264var _f = 'f'.charCodeAt(0); 28265var _z = 'z'.charCodeAt(0); 28266var _A = 'A'.charCodeAt(0); 28267var _F = 'F'.charCodeAt(0); 28268var _Z = 'Z'.charCodeAt(0); 28269var _0 = '0'.charCodeAt(0); 28270var _9 = '9'.charCodeAt(0); 28271var _TLD = '~'.charCodeAt(0); 28272var _HAT = '^'.charCodeAt(0); 28273var _EQS = '='.charCodeAt(0); 28274var _PIP = '|'.charCodeAt(0); 28275var _MIN = '-'.charCodeAt(0); 28276var _USC = '_'.charCodeAt(0); 28277var _PRC = '%'.charCodeAt(0); 28278var _MUL = '*'.charCodeAt(0); 28279var _LPA = '('.charCodeAt(0); 28280var _RPA = ')'.charCodeAt(0); 28281var _LAN = '<'.charCodeAt(0); 28282var _RAN = '>'.charCodeAt(0); 28283var _ATS = '@'.charCodeAt(0); 28284var _HSH = '#'.charCodeAt(0); 28285var _DLR = '$'.charCodeAt(0); 28286var _BSL = '\\'.charCodeAt(0); 28287var _FSL = '/'.charCodeAt(0); 28288var _NWL = '\n'.charCodeAt(0); 28289var _CAR = '\r'.charCodeAt(0); 28290var _LFD = '\f'.charCodeAt(0); 28291var _DQO = '"'.charCodeAt(0); 28292var _SQO = '\''.charCodeAt(0); 28293var _WSP = ' '.charCodeAt(0); 28294var _TAB = '\t'.charCodeAt(0); 28295var _SEM = ';'.charCodeAt(0); 28296var _COL = ':'.charCodeAt(0); 28297var _CUL = '{'.charCodeAt(0); 28298var _CUR = '}'.charCodeAt(0); 28299var _BRL = '['.charCodeAt(0); 28300var _BRR = ']'.charCodeAt(0); 28301var _CMA = ','.charCodeAt(0); 28302var _DOT = '.'.charCodeAt(0); 28303var _BNG = '!'.charCodeAt(0); 28304var staticTokenTable = {}; 28305staticTokenTable[_SEM] = TokenType.SemiColon; 28306staticTokenTable[_COL] = TokenType.Colon; 28307staticTokenTable[_CUL] = TokenType.CurlyL; 28308staticTokenTable[_CUR] = TokenType.CurlyR; 28309staticTokenTable[_BRR] = TokenType.BracketR; 28310staticTokenTable[_BRL] = TokenType.BracketL; 28311staticTokenTable[_LPA] = TokenType.ParenthesisL; 28312staticTokenTable[_RPA] = TokenType.ParenthesisR; 28313staticTokenTable[_CMA] = TokenType.Comma; 28314var staticUnitTable = {}; 28315staticUnitTable['em'] = TokenType.EMS; 28316staticUnitTable['ex'] = TokenType.EXS; 28317staticUnitTable['px'] = TokenType.Length; 28318staticUnitTable['cm'] = TokenType.Length; 28319staticUnitTable['mm'] = TokenType.Length; 28320staticUnitTable['in'] = TokenType.Length; 28321staticUnitTable['pt'] = TokenType.Length; 28322staticUnitTable['pc'] = TokenType.Length; 28323staticUnitTable['deg'] = TokenType.Angle; 28324staticUnitTable['rad'] = TokenType.Angle; 28325staticUnitTable['grad'] = TokenType.Angle; 28326staticUnitTable['ms'] = TokenType.Time; 28327staticUnitTable['s'] = TokenType.Time; 28328staticUnitTable['hz'] = TokenType.Freq; 28329staticUnitTable['khz'] = TokenType.Freq; 28330staticUnitTable['%'] = TokenType.Percentage; 28331staticUnitTable['fr'] = TokenType.Percentage; 28332staticUnitTable['dpi'] = TokenType.Resolution; 28333staticUnitTable['dpcm'] = TokenType.Resolution; 28334var Scanner = /** @class */ (function () { 28335 function Scanner() { 28336 this.stream = new MultiLineStream(''); 28337 this.ignoreComment = true; 28338 this.ignoreWhitespace = true; 28339 this.inURL = false; 28340 } 28341 Scanner.prototype.setSource = function (input) { 28342 this.stream = new MultiLineStream(input); 28343 }; 28344 Scanner.prototype.finishToken = function (offset, type, text) { 28345 return { 28346 offset: offset, 28347 len: this.stream.pos() - offset, 28348 type: type, 28349 text: text || this.stream.substring(offset) 28350 }; 28351 }; 28352 Scanner.prototype.substring = function (offset, len) { 28353 return this.stream.substring(offset, offset + len); 28354 }; 28355 Scanner.prototype.pos = function () { 28356 return this.stream.pos(); 28357 }; 28358 Scanner.prototype.goBackTo = function (pos) { 28359 this.stream.goBackTo(pos); 28360 }; 28361 Scanner.prototype.scanUnquotedString = function () { 28362 var offset = this.stream.pos(); 28363 var content = []; 28364 if (this._unquotedString(content)) { 28365 return this.finishToken(offset, TokenType.UnquotedString, content.join('')); 28366 } 28367 return null; 28368 }; 28369 Scanner.prototype.scan = function () { 28370 // processes all whitespaces and comments 28371 var triviaToken = this.trivia(); 28372 if (triviaToken !== null) { 28373 return triviaToken; 28374 } 28375 var offset = this.stream.pos(); 28376 // End of file/input 28377 if (this.stream.eos()) { 28378 return this.finishToken(offset, TokenType.EOF); 28379 } 28380 return this.scanNext(offset); 28381 }; 28382 Scanner.prototype.scanNext = function (offset) { 28383 // CDO <!-- 28384 if (this.stream.advanceIfChars([_LAN, _BNG, _MIN, _MIN])) { 28385 return this.finishToken(offset, TokenType.CDO); 28386 } 28387 // CDC --> 28388 if (this.stream.advanceIfChars([_MIN, _MIN, _RAN])) { 28389 return this.finishToken(offset, TokenType.CDC); 28390 } 28391 var content = []; 28392 if (this.ident(content)) { 28393 return this.finishToken(offset, TokenType.Ident, content.join('')); 28394 } 28395 // at-keyword 28396 if (this.stream.advanceIfChar(_ATS)) { 28397 content = ['@']; 28398 if (this._name(content)) { 28399 var keywordText = content.join(''); 28400 if (keywordText === '@charset') { 28401 return this.finishToken(offset, TokenType.Charset, keywordText); 28402 } 28403 return this.finishToken(offset, TokenType.AtKeyword, keywordText); 28404 } 28405 else { 28406 return this.finishToken(offset, TokenType.Delim); 28407 } 28408 } 28409 // hash 28410 if (this.stream.advanceIfChar(_HSH)) { 28411 content = ['#']; 28412 if (this._name(content)) { 28413 return this.finishToken(offset, TokenType.Hash, content.join('')); 28414 } 28415 else { 28416 return this.finishToken(offset, TokenType.Delim); 28417 } 28418 } 28419 // Important 28420 if (this.stream.advanceIfChar(_BNG)) { 28421 return this.finishToken(offset, TokenType.Exclamation); 28422 } 28423 // Numbers 28424 if (this._number()) { 28425 var pos = this.stream.pos(); 28426 content = [this.stream.substring(offset, pos)]; 28427 if (this.stream.advanceIfChar(_PRC)) { 28428 // Percentage 43% 28429 return this.finishToken(offset, TokenType.Percentage); 28430 } 28431 else if (this.ident(content)) { 28432 var dim = this.stream.substring(pos).toLowerCase(); 28433 var tokenType_1 = staticUnitTable[dim]; 28434 if (typeof tokenType_1 !== 'undefined') { 28435 // Known dimension 43px 28436 return this.finishToken(offset, tokenType_1, content.join('')); 28437 } 28438 else { 28439 // Unknown dimension 43ft 28440 return this.finishToken(offset, TokenType.Dimension, content.join('')); 28441 } 28442 } 28443 return this.finishToken(offset, TokenType.Num); 28444 } 28445 // String, BadString 28446 content = []; 28447 var tokenType = this._string(content); 28448 if (tokenType !== null) { 28449 return this.finishToken(offset, tokenType, content.join('')); 28450 } 28451 // single character tokens 28452 tokenType = staticTokenTable[this.stream.peekChar()]; 28453 if (typeof tokenType !== 'undefined') { 28454 this.stream.advance(1); 28455 return this.finishToken(offset, tokenType); 28456 } 28457 // includes ~= 28458 if (this.stream.peekChar(0) === _TLD && this.stream.peekChar(1) === _EQS) { 28459 this.stream.advance(2); 28460 return this.finishToken(offset, TokenType.Includes); 28461 } 28462 // DashMatch |= 28463 if (this.stream.peekChar(0) === _PIP && this.stream.peekChar(1) === _EQS) { 28464 this.stream.advance(2); 28465 return this.finishToken(offset, TokenType.Dashmatch); 28466 } 28467 // Substring operator *= 28468 if (this.stream.peekChar(0) === _MUL && this.stream.peekChar(1) === _EQS) { 28469 this.stream.advance(2); 28470 return this.finishToken(offset, TokenType.SubstringOperator); 28471 } 28472 // Substring operator ^= 28473 if (this.stream.peekChar(0) === _HAT && this.stream.peekChar(1) === _EQS) { 28474 this.stream.advance(2); 28475 return this.finishToken(offset, TokenType.PrefixOperator); 28476 } 28477 // Substring operator $= 28478 if (this.stream.peekChar(0) === _DLR && this.stream.peekChar(1) === _EQS) { 28479 this.stream.advance(2); 28480 return this.finishToken(offset, TokenType.SuffixOperator); 28481 } 28482 // Delim 28483 this.stream.nextChar(); 28484 return this.finishToken(offset, TokenType.Delim); 28485 }; 28486 Scanner.prototype.trivia = function () { 28487 while (true) { 28488 var offset = this.stream.pos(); 28489 if (this._whitespace()) { 28490 if (!this.ignoreWhitespace) { 28491 return this.finishToken(offset, TokenType.Whitespace); 28492 } 28493 } 28494 else if (this.comment()) { 28495 if (!this.ignoreComment) { 28496 return this.finishToken(offset, TokenType.Comment); 28497 } 28498 } 28499 else { 28500 return null; 28501 } 28502 } 28503 }; 28504 Scanner.prototype.comment = function () { 28505 if (this.stream.advanceIfChars([_FSL, _MUL])) { 28506 var success_1 = false, hot_1 = false; 28507 this.stream.advanceWhileChar(function (ch) { 28508 if (hot_1 && ch === _FSL) { 28509 success_1 = true; 28510 return false; 28511 } 28512 hot_1 = ch === _MUL; 28513 return true; 28514 }); 28515 if (success_1) { 28516 this.stream.advance(1); 28517 } 28518 return true; 28519 } 28520 return false; 28521 }; 28522 Scanner.prototype._number = function () { 28523 var npeek = 0, ch; 28524 if (this.stream.peekChar() === _DOT) { 28525 npeek = 1; 28526 } 28527 ch = this.stream.peekChar(npeek); 28528 if (ch >= _0 && ch <= _9) { 28529 this.stream.advance(npeek + 1); 28530 this.stream.advanceWhileChar(function (ch) { 28531 return ch >= _0 && ch <= _9 || npeek === 0 && ch === _DOT; 28532 }); 28533 return true; 28534 } 28535 return false; 28536 }; 28537 Scanner.prototype._newline = function (result) { 28538 var ch = this.stream.peekChar(); 28539 switch (ch) { 28540 case _CAR: 28541 case _LFD: 28542 case _NWL: 28543 this.stream.advance(1); 28544 result.push(String.fromCharCode(ch)); 28545 if (ch === _CAR && this.stream.advanceIfChar(_NWL)) { 28546 result.push('\n'); 28547 } 28548 return true; 28549 } 28550 return false; 28551 }; 28552 Scanner.prototype._escape = function (result, includeNewLines) { 28553 var ch = this.stream.peekChar(); 28554 if (ch === _BSL) { 28555 this.stream.advance(1); 28556 ch = this.stream.peekChar(); 28557 var hexNumCount = 0; 28558 while (hexNumCount < 6 && (ch >= _0 && ch <= _9 || ch >= _a && ch <= _f || ch >= _A && ch <= _F)) { 28559 this.stream.advance(1); 28560 ch = this.stream.peekChar(); 28561 hexNumCount++; 28562 } 28563 if (hexNumCount > 0) { 28564 try { 28565 var hexVal = parseInt(this.stream.substring(this.stream.pos() - hexNumCount), 16); 28566 if (hexVal) { 28567 result.push(String.fromCharCode(hexVal)); 28568 } 28569 } 28570 catch (e) { 28571 // ignore 28572 } 28573 // optional whitespace or new line, not part of result text 28574 if (ch === _WSP || ch === _TAB) { 28575 this.stream.advance(1); 28576 } 28577 else { 28578 this._newline([]); 28579 } 28580 return true; 28581 } 28582 if (ch !== _CAR && ch !== _LFD && ch !== _NWL) { 28583 this.stream.advance(1); 28584 result.push(String.fromCharCode(ch)); 28585 return true; 28586 } 28587 else if (includeNewLines) { 28588 return this._newline(result); 28589 } 28590 } 28591 return false; 28592 }; 28593 Scanner.prototype._stringChar = function (closeQuote, result) { 28594 // not closeQuote, not backslash, not newline 28595 var ch = this.stream.peekChar(); 28596 if (ch !== 0 && ch !== closeQuote && ch !== _BSL && ch !== _CAR && ch !== _LFD && ch !== _NWL) { 28597 this.stream.advance(1); 28598 result.push(String.fromCharCode(ch)); 28599 return true; 28600 } 28601 return false; 28602 }; 28603 Scanner.prototype._string = function (result) { 28604 if (this.stream.peekChar() === _SQO || this.stream.peekChar() === _DQO) { 28605 var closeQuote = this.stream.nextChar(); 28606 result.push(String.fromCharCode(closeQuote)); 28607 while (this._stringChar(closeQuote, result) || this._escape(result, true)) { 28608 // loop 28609 } 28610 if (this.stream.peekChar() === closeQuote) { 28611 this.stream.nextChar(); 28612 result.push(String.fromCharCode(closeQuote)); 28613 return TokenType.String; 28614 } 28615 else { 28616 return TokenType.BadString; 28617 } 28618 } 28619 return null; 28620 }; 28621 Scanner.prototype._unquotedChar = function (result) { 28622 // not closeQuote, not backslash, not newline 28623 var ch = this.stream.peekChar(); 28624 if (ch !== 0 && ch !== _BSL && ch !== _SQO && ch !== _DQO && ch !== _LPA && ch !== _RPA && ch !== _WSP && ch !== _TAB && ch !== _NWL && ch !== _LFD && ch !== _CAR) { 28625 this.stream.advance(1); 28626 result.push(String.fromCharCode(ch)); 28627 return true; 28628 } 28629 return false; 28630 }; 28631 Scanner.prototype._unquotedString = function (result) { 28632 var hasContent = false; 28633 while (this._unquotedChar(result) || this._escape(result)) { 28634 hasContent = true; 28635 } 28636 return hasContent; 28637 }; 28638 Scanner.prototype._whitespace = function () { 28639 var n = this.stream.advanceWhileChar(function (ch) { 28640 return ch === _WSP || ch === _TAB || ch === _NWL || ch === _LFD || ch === _CAR; 28641 }); 28642 return n > 0; 28643 }; 28644 Scanner.prototype._name = function (result) { 28645 var matched = false; 28646 while (this._identChar(result) || this._escape(result)) { 28647 matched = true; 28648 } 28649 return matched; 28650 }; 28651 Scanner.prototype.ident = function (result) { 28652 var pos = this.stream.pos(); 28653 var hasMinus = this._minus(result); 28654 if (hasMinus && this._minus(result) /* -- */) { 28655 if (this._identFirstChar(result) || this._escape(result)) { 28656 while (this._identChar(result) || this._escape(result)) { 28657 // loop 28658 } 28659 return true; 28660 } 28661 } 28662 else if (this._identFirstChar(result) || this._escape(result)) { 28663 while (this._identChar(result) || this._escape(result)) { 28664 // loop 28665 } 28666 return true; 28667 } 28668 this.stream.goBackTo(pos); 28669 return false; 28670 }; 28671 Scanner.prototype._identFirstChar = function (result) { 28672 var ch = this.stream.peekChar(); 28673 if (ch === _USC || // _ 28674 ch >= _a && ch <= _z || // a-z 28675 ch >= _A && ch <= _Z || // A-Z 28676 ch >= 0x80 && ch <= 0xFFFF) { // nonascii 28677 this.stream.advance(1); 28678 result.push(String.fromCharCode(ch)); 28679 return true; 28680 } 28681 return false; 28682 }; 28683 Scanner.prototype._minus = function (result) { 28684 var ch = this.stream.peekChar(); 28685 if (ch === _MIN) { 28686 this.stream.advance(1); 28687 result.push(String.fromCharCode(ch)); 28688 return true; 28689 } 28690 return false; 28691 }; 28692 Scanner.prototype._identChar = function (result) { 28693 var ch = this.stream.peekChar(); 28694 if (ch === _USC || // _ 28695 ch === _MIN || // - 28696 ch >= _a && ch <= _z || // a-z 28697 ch >= _A && ch <= _Z || // A-Z 28698 ch >= _0 && ch <= _9 || // 0/9 28699 ch >= 0x80 && ch <= 0xFFFF) { // nonascii 28700 this.stream.advance(1); 28701 result.push(String.fromCharCode(ch)); 28702 return true; 28703 } 28704 return false; 28705 }; 28706 return Scanner; 28707}()); 28708 28709 28710 28711/***/ }), 28712 28713/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssSymbolScope.js": 28714/*!******************************************************************************************************************!*\ 28715 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssSymbolScope.js ***! 28716 \******************************************************************************************************************/ 28717/*! exports provided: Scope, GlobalScope, Symbol, ScopeBuilder, Symbols */ 28718/***/ (function(module, __webpack_exports__, __webpack_require__) { 28719 28720"use strict"; 28721__webpack_require__.r(__webpack_exports__); 28722/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Scope", function() { return Scope; }); 28723/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GlobalScope", function() { return GlobalScope; }); 28724/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Symbol", function() { return Symbol; }); 28725/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ScopeBuilder", function() { return ScopeBuilder; }); 28726/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Symbols", function() { return Symbols; }); 28727/* harmony import */ var _cssNodes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cssNodes.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssNodes.js"); 28728/* harmony import */ var _utils_arrays_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/arrays.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/utils/arrays.js"); 28729/*--------------------------------------------------------------------------------------------- 28730 * Copyright (c) Microsoft Corporation. All rights reserved. 28731 * Licensed under the MIT License. See License.txt in the project root for license information. 28732 *--------------------------------------------------------------------------------------------*/ 28733 28734var __extends = (undefined && undefined.__extends) || (function () { 28735 var extendStatics = function (d, b) { 28736 extendStatics = Object.setPrototypeOf || 28737 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || 28738 function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; 28739 return extendStatics(d, b); 28740 }; 28741 return function (d, b) { 28742 extendStatics(d, b); 28743 function __() { this.constructor = d; } 28744 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); 28745 }; 28746})(); 28747 28748 28749var Scope = /** @class */ (function () { 28750 function Scope(offset, length) { 28751 this.offset = offset; 28752 this.length = length; 28753 this.symbols = []; 28754 this.parent = null; 28755 this.children = []; 28756 } 28757 Scope.prototype.addChild = function (scope) { 28758 this.children.push(scope); 28759 scope.setParent(this); 28760 }; 28761 Scope.prototype.setParent = function (scope) { 28762 this.parent = scope; 28763 }; 28764 Scope.prototype.findScope = function (offset, length) { 28765 if (length === void 0) { length = 0; } 28766 if (this.offset <= offset && this.offset + this.length > offset + length || this.offset === offset && this.length === length) { 28767 return this.findInScope(offset, length); 28768 } 28769 return null; 28770 }; 28771 Scope.prototype.findInScope = function (offset, length) { 28772 if (length === void 0) { length = 0; } 28773 // find the first scope child that has an offset larger than offset + length 28774 var end = offset + length; 28775 var idx = Object(_utils_arrays_js__WEBPACK_IMPORTED_MODULE_1__["findFirst"])(this.children, function (s) { return s.offset > end; }); 28776 if (idx === 0) { 28777 // all scopes have offsets larger than our end 28778 return this; 28779 } 28780 var res = this.children[idx - 1]; 28781 if (res.offset <= offset && res.offset + res.length >= offset + length) { 28782 return res.findInScope(offset, length); 28783 } 28784 return this; 28785 }; 28786 Scope.prototype.addSymbol = function (symbol) { 28787 this.symbols.push(symbol); 28788 }; 28789 Scope.prototype.getSymbol = function (name, type) { 28790 for (var index = 0; index < this.symbols.length; index++) { 28791 var symbol = this.symbols[index]; 28792 if (symbol.name === name && symbol.type === type) { 28793 return symbol; 28794 } 28795 } 28796 return null; 28797 }; 28798 Scope.prototype.getSymbols = function () { 28799 return this.symbols; 28800 }; 28801 return Scope; 28802}()); 28803 28804var GlobalScope = /** @class */ (function (_super) { 28805 __extends(GlobalScope, _super); 28806 function GlobalScope() { 28807 return _super.call(this, 0, Number.MAX_VALUE) || this; 28808 } 28809 return GlobalScope; 28810}(Scope)); 28811 28812var Symbol = /** @class */ (function () { 28813 function Symbol(name, value, node, type) { 28814 this.name = name; 28815 this.value = value; 28816 this.node = node; 28817 this.type = type; 28818 } 28819 return Symbol; 28820}()); 28821 28822var ScopeBuilder = /** @class */ (function () { 28823 function ScopeBuilder(scope) { 28824 this.scope = scope; 28825 } 28826 ScopeBuilder.prototype.addSymbol = function (node, name, value, type) { 28827 if (node.offset !== -1) { 28828 var current = this.scope.findScope(node.offset, node.length); 28829 if (current) { 28830 current.addSymbol(new Symbol(name, value, node, type)); 28831 } 28832 } 28833 }; 28834 ScopeBuilder.prototype.addScope = function (node) { 28835 if (node.offset !== -1) { 28836 var current = this.scope.findScope(node.offset, node.length); 28837 if (current && (current.offset !== node.offset || current.length !== node.length)) { // scope already known? 28838 var newScope = new Scope(node.offset, node.length); 28839 current.addChild(newScope); 28840 return newScope; 28841 } 28842 return current; 28843 } 28844 return null; 28845 }; 28846 ScopeBuilder.prototype.addSymbolToChildScope = function (scopeNode, node, name, value, type) { 28847 if (scopeNode && scopeNode.offset !== -1) { 28848 var current = this.addScope(scopeNode); // create the scope or gets the existing one 28849 if (current) { 28850 current.addSymbol(new Symbol(name, value, node, type)); 28851 } 28852 } 28853 }; 28854 ScopeBuilder.prototype.visitNode = function (node) { 28855 switch (node.type) { 28856 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].Keyframe: 28857 this.addSymbol(node, node.getName(), void 0, _cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["ReferenceType"].Keyframe); 28858 return true; 28859 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].CustomPropertyDeclaration: 28860 return this.visitCustomPropertyDeclarationNode(node); 28861 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].VariableDeclaration: 28862 return this.visitVariableDeclarationNode(node); 28863 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].Ruleset: 28864 return this.visitRuleSet(node); 28865 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].MixinDeclaration: 28866 this.addSymbol(node, node.getName(), void 0, _cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["ReferenceType"].Mixin); 28867 return true; 28868 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].FunctionDeclaration: 28869 this.addSymbol(node, node.getName(), void 0, _cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["ReferenceType"].Function); 28870 return true; 28871 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].FunctionParameter: { 28872 return this.visitFunctionParameterNode(node); 28873 } 28874 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].Declarations: 28875 this.addScope(node); 28876 return true; 28877 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].For: 28878 var forNode = node; 28879 var scopeNode = forNode.getDeclarations(); 28880 if (scopeNode && forNode.variable) { 28881 this.addSymbolToChildScope(scopeNode, forNode.variable, forNode.variable.getName(), void 0, _cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["ReferenceType"].Variable); 28882 } 28883 return true; 28884 case _cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].Each: { 28885 var eachNode = node; 28886 var scopeNode_1 = eachNode.getDeclarations(); 28887 if (scopeNode_1) { 28888 var variables = eachNode.getVariables().getChildren(); 28889 for (var _i = 0, variables_1 = variables; _i < variables_1.length; _i++) { 28890 var variable = variables_1[_i]; 28891 this.addSymbolToChildScope(scopeNode_1, variable, variable.getName(), void 0, _cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["ReferenceType"].Variable); 28892 } 28893 } 28894 return true; 28895 } 28896 } 28897 return true; 28898 }; 28899 ScopeBuilder.prototype.visitRuleSet = function (node) { 28900 var current = this.scope.findScope(node.offset, node.length); 28901 if (current) { 28902 for (var _i = 0, _a = node.getSelectors().getChildren(); _i < _a.length; _i++) { 28903 var child = _a[_i]; 28904 if (child instanceof _cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["Selector"]) { 28905 if (child.getChildren().length === 1) { // only selectors with a single element can be extended 28906 current.addSymbol(new Symbol(child.getChild(0).getText(), void 0, child, _cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["ReferenceType"].Rule)); 28907 } 28908 } 28909 } 28910 } 28911 return true; 28912 }; 28913 ScopeBuilder.prototype.visitVariableDeclarationNode = function (node) { 28914 var value = node.getValue() ? node.getValue().getText() : void 0; 28915 this.addSymbol(node, node.getName(), value, _cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["ReferenceType"].Variable); 28916 return true; 28917 }; 28918 ScopeBuilder.prototype.visitFunctionParameterNode = function (node) { 28919 // parameters are part of the body scope 28920 var scopeNode = node.getParent().getDeclarations(); 28921 if (scopeNode) { 28922 var valueNode = node.getDefaultValue(); 28923 var value = valueNode ? valueNode.getText() : void 0; 28924 this.addSymbolToChildScope(scopeNode, node, node.getName(), value, _cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["ReferenceType"].Variable); 28925 } 28926 return true; 28927 }; 28928 ScopeBuilder.prototype.visitCustomPropertyDeclarationNode = function (node) { 28929 var value = node.getValue() ? node.getValue().getText() : ''; 28930 this.addCSSVariable(node.getProperty(), node.getProperty().getName(), value, _cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["ReferenceType"].Variable); 28931 return true; 28932 }; 28933 ScopeBuilder.prototype.addCSSVariable = function (node, name, value, type) { 28934 if (node.offset !== -1) { 28935 this.scope.addSymbol(new Symbol(name, value, node, type)); 28936 } 28937 }; 28938 return ScopeBuilder; 28939}()); 28940 28941var Symbols = /** @class */ (function () { 28942 function Symbols(node) { 28943 this.global = new GlobalScope(); 28944 node.acceptVisitor(new ScopeBuilder(this.global)); 28945 } 28946 Symbols.prototype.findSymbolsAtOffset = function (offset, referenceType) { 28947 var scope = this.global.findScope(offset, 0); 28948 var result = []; 28949 var names = {}; 28950 while (scope) { 28951 var symbols = scope.getSymbols(); 28952 for (var i = 0; i < symbols.length; i++) { 28953 var symbol = symbols[i]; 28954 if (symbol.type === referenceType && !names[symbol.name]) { 28955 result.push(symbol); 28956 names[symbol.name] = true; 28957 } 28958 } 28959 scope = scope.parent; 28960 } 28961 return result; 28962 }; 28963 Symbols.prototype.internalFindSymbol = function (node, referenceTypes) { 28964 var scopeNode = node; 28965 if (node.parent instanceof _cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["FunctionParameter"] && node.parent.getParent() instanceof _cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["BodyDeclaration"]) { 28966 scopeNode = node.parent.getParent().getDeclarations(); 28967 } 28968 if (node.parent instanceof _cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["FunctionArgument"] && node.parent.getParent() instanceof _cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["Function"]) { 28969 var funcId = node.parent.getParent().getIdentifier(); 28970 if (funcId) { 28971 var functionSymbol = this.internalFindSymbol(funcId, [_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["ReferenceType"].Function]); 28972 if (functionSymbol) { 28973 scopeNode = functionSymbol.node.getDeclarations(); 28974 } 28975 } 28976 } 28977 if (!scopeNode) { 28978 return null; 28979 } 28980 var name = node.getText(); 28981 var scope = this.global.findScope(scopeNode.offset, scopeNode.length); 28982 while (scope) { 28983 for (var index = 0; index < referenceTypes.length; index++) { 28984 var type = referenceTypes[index]; 28985 var symbol = scope.getSymbol(name, type); 28986 if (symbol) { 28987 return symbol; 28988 } 28989 } 28990 scope = scope.parent; 28991 } 28992 return null; 28993 }; 28994 Symbols.prototype.evaluateReferenceTypes = function (node) { 28995 if (node instanceof _cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["Identifier"]) { 28996 var referenceTypes = node.referenceTypes; 28997 if (referenceTypes) { 28998 return referenceTypes; 28999 } 29000 else { 29001 if (node.isCustomProperty) { 29002 return [_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["ReferenceType"].Variable]; 29003 } 29004 // are a reference to a keyframe? 29005 var decl = _cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["getParentDeclaration"](node); 29006 if (decl) { 29007 var propertyName = decl.getNonPrefixedPropertyName(); 29008 if ((propertyName === 'animation' || propertyName === 'animation-name') 29009 && decl.getValue() && decl.getValue().offset === node.offset) { 29010 return [_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["ReferenceType"].Keyframe]; 29011 } 29012 } 29013 } 29014 } 29015 else if (node instanceof _cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["Variable"]) { 29016 return [_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["ReferenceType"].Variable]; 29017 } 29018 var selector = node.findAParent(_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].Selector, _cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].ExtendsReference); 29019 if (selector) { 29020 return [_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["ReferenceType"].Rule]; 29021 } 29022 return null; 29023 }; 29024 Symbols.prototype.findSymbolFromNode = function (node) { 29025 if (!node) { 29026 return null; 29027 } 29028 while (node.type === _cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].Interpolation) { 29029 node = node.getParent(); 29030 } 29031 var referenceTypes = this.evaluateReferenceTypes(node); 29032 if (referenceTypes) { 29033 return this.internalFindSymbol(node, referenceTypes); 29034 } 29035 return null; 29036 }; 29037 Symbols.prototype.matchesSymbol = function (node, symbol) { 29038 if (!node) { 29039 return false; 29040 } 29041 while (node.type === _cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].Interpolation) { 29042 node = node.getParent(); 29043 } 29044 if (!node.matches(symbol.name)) { 29045 return false; 29046 } 29047 var referenceTypes = this.evaluateReferenceTypes(node); 29048 if (!referenceTypes || referenceTypes.indexOf(symbol.type) === -1) { 29049 return false; 29050 } 29051 var nodeSymbol = this.internalFindSymbol(node, referenceTypes); 29052 return nodeSymbol === symbol; 29053 }; 29054 Symbols.prototype.findSymbol = function (name, type, offset) { 29055 var scope = this.global.findScope(offset); 29056 while (scope) { 29057 var symbol = scope.getSymbol(name, type); 29058 if (symbol) { 29059 return symbol; 29060 } 29061 scope = scope.parent; 29062 } 29063 return null; 29064 }; 29065 return Symbols; 29066}()); 29067 29068 29069 29070/***/ }), 29071 29072/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/lessParser.js": 29073/*!**************************************************************************************************************!*\ 29074 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/lessParser.js ***! 29075 \**************************************************************************************************************/ 29076/*! exports provided: LESSParser */ 29077/***/ (function(module, __webpack_exports__, __webpack_require__) { 29078 29079"use strict"; 29080__webpack_require__.r(__webpack_exports__); 29081/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LESSParser", function() { return LESSParser; }); 29082/* harmony import */ var _lessScanner_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./lessScanner.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/lessScanner.js"); 29083/* harmony import */ var _cssScanner_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cssScanner.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssScanner.js"); 29084/* harmony import */ var _cssParser_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./cssParser.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssParser.js"); 29085/* harmony import */ var _cssNodes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./cssNodes.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssNodes.js"); 29086/* harmony import */ var _cssErrors_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./cssErrors.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssErrors.js"); 29087/*--------------------------------------------------------------------------------------------- 29088 * Copyright (c) Microsoft Corporation. All rights reserved. 29089 * Licensed under the MIT License. See License.txt in the project root for license information. 29090 *--------------------------------------------------------------------------------------------*/ 29091 29092var __extends = (undefined && undefined.__extends) || (function () { 29093 var extendStatics = function (d, b) { 29094 extendStatics = Object.setPrototypeOf || 29095 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || 29096 function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; 29097 return extendStatics(d, b); 29098 }; 29099 return function (d, b) { 29100 extendStatics(d, b); 29101 function __() { this.constructor = d; } 29102 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); 29103 }; 29104})(); 29105 29106 29107 29108 29109 29110/// <summary> 29111/// A parser for LESS 29112/// http://lesscss.org/ 29113/// </summary> 29114var LESSParser = /** @class */ (function (_super) { 29115 __extends(LESSParser, _super); 29116 function LESSParser() { 29117 return _super.call(this, new _lessScanner_js__WEBPACK_IMPORTED_MODULE_0__["LESSScanner"]()) || this; 29118 } 29119 LESSParser.prototype._parseStylesheetStatement = function (isNested) { 29120 if (isNested === void 0) { isNested = false; } 29121 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].AtKeyword)) { 29122 return this._parseVariableDeclaration() 29123 || this._parsePlugin() 29124 || _super.prototype._parseStylesheetAtStatement.call(this, isNested); 29125 } 29126 return this._tryParseMixinDeclaration() 29127 || this._tryParseMixinReference() 29128 || this._parseFunction() 29129 || this._parseRuleset(true); 29130 }; 29131 LESSParser.prototype._parseImport = function () { 29132 if (!this.peekKeyword('@import') && !this.peekKeyword('@import-once') /* deprecated in less 1.4.1 */) { 29133 return null; 29134 } 29135 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["Import"]); 29136 this.consumeToken(); 29137 // less 1.4.1: @import (css) "lib" 29138 if (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisL)) { 29139 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Ident)) { 29140 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_4__["ParseError"].IdentifierExpected, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].SemiColon]); 29141 } 29142 do { 29143 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Comma)) { 29144 break; 29145 } 29146 } while (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Ident)); 29147 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR)) { 29148 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_4__["ParseError"].RightParenthesisExpected, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].SemiColon]); 29149 } 29150 } 29151 if (!node.addChild(this._parseURILiteral()) && !node.addChild(this._parseStringLiteral())) { 29152 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_4__["ParseError"].URIOrStringExpected, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].SemiColon]); 29153 } 29154 if (!this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].SemiColon) && !this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].EOF)) { 29155 node.setMedialist(this._parseMediaQueryList()); 29156 } 29157 return this.finish(node); 29158 }; 29159 LESSParser.prototype._parsePlugin = function () { 29160 if (!this.peekKeyword('@plugin')) { 29161 return null; 29162 } 29163 var node = this.createNode(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["NodeType"].Plugin); 29164 this.consumeToken(); // @import 29165 if (!node.addChild(this._parseStringLiteral())) { 29166 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_4__["ParseError"].StringLiteralExpected); 29167 } 29168 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].SemiColon)) { 29169 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_4__["ParseError"].SemiColonExpected); 29170 } 29171 return this.finish(node); 29172 }; 29173 LESSParser.prototype._parseMediaQuery = function (resyncStopToken) { 29174 var node = _super.prototype._parseMediaQuery.call(this, resyncStopToken); 29175 if (!node) { 29176 var node_1 = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["MediaQuery"]); 29177 if (node_1.addChild(this._parseVariable())) { 29178 return this.finish(node_1); 29179 } 29180 return null; 29181 } 29182 return node; 29183 }; 29184 LESSParser.prototype._parseMediaDeclaration = function (isNested) { 29185 if (isNested === void 0) { isNested = false; } 29186 return this._tryParseRuleset(isNested) 29187 || this._tryToParseDeclaration() 29188 || this._tryParseMixinDeclaration() 29189 || this._tryParseMixinReference() 29190 || this._parseDetachedRuleSetMixin() 29191 || this._parseStylesheetStatement(isNested); 29192 }; 29193 LESSParser.prototype._parseMediaFeatureName = function () { 29194 return this._parseIdent() || this._parseVariable(); 29195 }; 29196 LESSParser.prototype._parseVariableDeclaration = function (panic) { 29197 if (panic === void 0) { panic = []; } 29198 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["VariableDeclaration"]); 29199 var mark = this.mark(); 29200 if (!node.setVariable(this._parseVariable(true))) { 29201 return null; 29202 } 29203 if (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Colon)) { 29204 if (this.prevToken) { 29205 node.colonPosition = this.prevToken.offset; 29206 } 29207 if (node.setValue(this._parseDetachedRuleSet())) { 29208 node.needsSemicolon = false; 29209 } 29210 else if (!node.setValue(this._parseExpr())) { 29211 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_4__["ParseError"].VariableValueExpected, [], panic); 29212 } 29213 node.addChild(this._parsePrio()); 29214 } 29215 else { 29216 this.restoreAtMark(mark); 29217 return null; // at keyword, but no ':', not a variable declaration but some at keyword 29218 } 29219 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].SemiColon)) { 29220 node.semicolonPosition = this.token.offset; // not part of the declaration, but useful information for code assist 29221 } 29222 return this.finish(node); 29223 }; 29224 LESSParser.prototype._parseDetachedRuleSet = function () { 29225 var mark = this.mark(); 29226 // "Anonymous mixin" used in each() and possibly a generic type in the future 29227 if (this.peekDelim('#') || this.peekDelim('.')) { 29228 this.consumeToken(); 29229 if (!this.hasWhitespace() && this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisL)) { 29230 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["MixinDeclaration"]); 29231 if (node.getParameters().addChild(this._parseMixinParameter())) { 29232 while (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Comma) || this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].SemiColon)) { 29233 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR)) { 29234 break; 29235 } 29236 if (!node.getParameters().addChild(this._parseMixinParameter())) { 29237 this.markError(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_4__["ParseError"].IdentifierExpected, [], [_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR]); 29238 } 29239 } 29240 } 29241 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR)) { 29242 this.restoreAtMark(mark); 29243 return null; 29244 } 29245 } 29246 else { 29247 this.restoreAtMark(mark); 29248 return null; 29249 } 29250 } 29251 if (!this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].CurlyL)) { 29252 return null; 29253 } 29254 var content = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["BodyDeclaration"]); 29255 this._parseBody(content, this._parseDetachedRuleSetBody.bind(this)); 29256 return this.finish(content); 29257 }; 29258 LESSParser.prototype._parseDetachedRuleSetBody = function () { 29259 return this._tryParseKeyframeSelector() || this._parseRuleSetDeclaration(); 29260 }; 29261 LESSParser.prototype._addLookupChildren = function (node) { 29262 if (!node.addChild(this._parseLookupValue())) { 29263 return false; 29264 } 29265 var expectsValue = false; 29266 while (true) { 29267 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].BracketL)) { 29268 expectsValue = true; 29269 } 29270 if (!node.addChild(this._parseLookupValue())) { 29271 break; 29272 } 29273 expectsValue = false; 29274 } 29275 return !expectsValue; 29276 }; 29277 LESSParser.prototype._parseLookupValue = function () { 29278 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["Node"]); 29279 var mark = this.mark(); 29280 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].BracketL)) { 29281 this.restoreAtMark(mark); 29282 return null; 29283 } 29284 if (((node.addChild(this._parseVariable(false, true)) || 29285 node.addChild(this._parsePropertyIdentifier())) && 29286 this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].BracketR)) || this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].BracketR)) { 29287 return node; 29288 } 29289 this.restoreAtMark(mark); 29290 return null; 29291 }; 29292 LESSParser.prototype._parseVariable = function (declaration, insideLookup) { 29293 if (declaration === void 0) { declaration = false; } 29294 if (insideLookup === void 0) { insideLookup = false; } 29295 var isPropertyReference = !declaration && this.peekDelim('$'); 29296 if (!this.peekDelim('@') && !isPropertyReference && !this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].AtKeyword)) { 29297 return null; 29298 } 29299 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["Variable"]); 29300 var mark = this.mark(); 29301 while (this.acceptDelim('@') || (!declaration && this.acceptDelim('$'))) { 29302 if (this.hasWhitespace()) { 29303 this.restoreAtMark(mark); 29304 return null; 29305 } 29306 } 29307 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].AtKeyword) && !this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Ident)) { 29308 this.restoreAtMark(mark); 29309 return null; 29310 } 29311 if (!insideLookup && this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].BracketL)) { 29312 if (!this._addLookupChildren(node)) { 29313 this.restoreAtMark(mark); 29314 return null; 29315 } 29316 } 29317 return node; 29318 }; 29319 LESSParser.prototype._parseTermExpression = function () { 29320 return this._parseVariable() || 29321 this._parseEscaped() || 29322 _super.prototype._parseTermExpression.call(this) || // preference for colors before mixin references 29323 this._tryParseMixinReference(false); 29324 }; 29325 LESSParser.prototype._parseEscaped = function () { 29326 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].EscapedJavaScript) || 29327 this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].BadEscapedJavaScript)) { 29328 var node = this.createNode(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["NodeType"].EscapedValue); 29329 this.consumeToken(); 29330 return this.finish(node); 29331 } 29332 if (this.peekDelim('~')) { 29333 var node = this.createNode(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["NodeType"].EscapedValue); 29334 this.consumeToken(); 29335 if (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].String) || this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].EscapedJavaScript)) { 29336 return this.finish(node); 29337 } 29338 else { 29339 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_4__["ParseError"].TermExpected); 29340 } 29341 } 29342 return null; 29343 }; 29344 LESSParser.prototype._parseOperator = function () { 29345 var node = this._parseGuardOperator(); 29346 if (node) { 29347 return node; 29348 } 29349 else { 29350 return _super.prototype._parseOperator.call(this); 29351 } 29352 }; 29353 LESSParser.prototype._parseGuardOperator = function () { 29354 if (this.peekDelim('>')) { 29355 var node = this.createNode(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["NodeType"].Operator); 29356 this.consumeToken(); 29357 this.acceptDelim('='); 29358 return node; 29359 } 29360 else if (this.peekDelim('=')) { 29361 var node = this.createNode(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["NodeType"].Operator); 29362 this.consumeToken(); 29363 this.acceptDelim('<'); 29364 return node; 29365 } 29366 else if (this.peekDelim('<')) { 29367 var node = this.createNode(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["NodeType"].Operator); 29368 this.consumeToken(); 29369 this.acceptDelim('='); 29370 return node; 29371 } 29372 return null; 29373 }; 29374 LESSParser.prototype._parseRuleSetDeclaration = function () { 29375 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].AtKeyword)) { 29376 return this._parseKeyframe() 29377 || this._parseMedia(true) 29378 || this._parseImport() 29379 || this._parseSupports(true) // @supports 29380 || this._parseDetachedRuleSetMixin() // less detached ruleset mixin 29381 || this._parseVariableDeclaration() // Variable declarations 29382 || _super.prototype._parseRuleSetDeclarationAtStatement.call(this); 29383 } 29384 return this._tryParseMixinDeclaration() 29385 || this._tryParseRuleset(true) // nested ruleset 29386 || this._tryParseMixinReference() // less mixin reference 29387 || this._parseFunction() 29388 || this._parseExtend() // less extend declaration 29389 || _super.prototype._parseRuleSetDeclaration.call(this); // try css ruleset declaration as the last option 29390 }; 29391 LESSParser.prototype._parseKeyframeIdent = function () { 29392 return this._parseIdent([_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["ReferenceType"].Keyframe]) || this._parseVariable(); 29393 }; 29394 LESSParser.prototype._parseKeyframeSelector = function () { 29395 return this._parseDetachedRuleSetMixin() // less detached ruleset mixin 29396 || _super.prototype._parseKeyframeSelector.call(this); 29397 }; 29398 LESSParser.prototype._parseSimpleSelectorBody = function () { 29399 return this._parseSelectorCombinator() || _super.prototype._parseSimpleSelectorBody.call(this); 29400 }; 29401 LESSParser.prototype._parseSelector = function (isNested) { 29402 // CSS Guards 29403 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["Selector"]); 29404 var hasContent = false; 29405 if (isNested) { 29406 // nested selectors can start with a combinator 29407 hasContent = node.addChild(this._parseCombinator()); 29408 } 29409 while (node.addChild(this._parseSimpleSelector())) { 29410 hasContent = true; 29411 var mark = this.mark(); 29412 if (node.addChild(this._parseGuard()) && this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].CurlyL)) { 29413 break; 29414 } 29415 this.restoreAtMark(mark); 29416 node.addChild(this._parseCombinator()); // optional 29417 } 29418 return hasContent ? this.finish(node) : null; 29419 }; 29420 LESSParser.prototype._parseSelectorCombinator = function () { 29421 if (this.peekDelim('&')) { 29422 var node = this.createNode(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["NodeType"].SelectorCombinator); 29423 this.consumeToken(); 29424 while (!this.hasWhitespace() && (this.acceptDelim('-') || this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Num) || this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Dimension) || node.addChild(this._parseIdent()) || this.acceptDelim('&'))) { 29425 // support &-foo 29426 } 29427 return this.finish(node); 29428 } 29429 return null; 29430 }; 29431 LESSParser.prototype._parseSelectorIdent = function () { 29432 if (!this.peekInterpolatedIdent()) { 29433 return null; 29434 } 29435 var node = this.createNode(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["NodeType"].SelectorInterpolation); 29436 var hasContent = this._acceptInterpolatedIdent(node); 29437 return hasContent ? this.finish(node) : null; 29438 }; 29439 LESSParser.prototype._parsePropertyIdentifier = function (inLookup) { 29440 if (inLookup === void 0) { inLookup = false; } 29441 var propertyRegex = /^[\w-]+/; 29442 if (!this.peekInterpolatedIdent() && !this.peekRegExp(this.token.type, propertyRegex)) { 29443 return null; 29444 } 29445 var mark = this.mark(); 29446 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["Identifier"]); 29447 node.isCustomProperty = this.acceptDelim('-') && this.acceptDelim('-'); 29448 var childAdded = false; 29449 if (!inLookup) { 29450 if (node.isCustomProperty) { 29451 childAdded = this._acceptInterpolatedIdent(node); 29452 } 29453 else { 29454 childAdded = this._acceptInterpolatedIdent(node, propertyRegex); 29455 } 29456 } 29457 else { 29458 if (node.isCustomProperty) { 29459 childAdded = node.addChild(this._parseIdent()); 29460 } 29461 else { 29462 childAdded = node.addChild(this._parseRegexp(propertyRegex)); 29463 } 29464 } 29465 if (!childAdded) { 29466 this.restoreAtMark(mark); 29467 return null; 29468 } 29469 if (!inLookup && !this.hasWhitespace()) { 29470 this.acceptDelim('+'); 29471 if (!this.hasWhitespace()) { 29472 this.acceptIdent('_'); 29473 } 29474 } 29475 return this.finish(node); 29476 }; 29477 LESSParser.prototype.peekInterpolatedIdent = function () { 29478 return this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Ident) || 29479 this.peekDelim('@') || 29480 this.peekDelim('$') || 29481 this.peekDelim('-'); 29482 }; 29483 LESSParser.prototype._acceptInterpolatedIdent = function (node, identRegex) { 29484 var _this = this; 29485 var hasContent = false; 29486 var indentInterpolation = function () { 29487 var pos = _this.mark(); 29488 if (_this.acceptDelim('-')) { 29489 if (!_this.hasWhitespace()) { 29490 _this.acceptDelim('-'); 29491 } 29492 if (_this.hasWhitespace()) { 29493 _this.restoreAtMark(pos); 29494 return null; 29495 } 29496 } 29497 return _this._parseInterpolation(); 29498 }; 29499 var accept = identRegex ? 29500 function () { return _this.acceptRegexp(identRegex); } : 29501 function () { return _this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Ident); }; 29502 while (accept() || 29503 node.addChild(this._parseInterpolation() || 29504 this.try(indentInterpolation))) { 29505 hasContent = true; 29506 if (this.hasWhitespace()) { 29507 break; 29508 } 29509 } 29510 return hasContent; 29511 }; 29512 LESSParser.prototype._parseInterpolation = function () { 29513 // @{name} Variable or 29514 // ${name} Property 29515 var mark = this.mark(); 29516 if (this.peekDelim('@') || this.peekDelim('$')) { 29517 var node = this.createNode(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["NodeType"].Interpolation); 29518 this.consumeToken(); 29519 if (this.hasWhitespace() || !this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].CurlyL)) { 29520 this.restoreAtMark(mark); 29521 return null; 29522 } 29523 if (!node.addChild(this._parseIdent())) { 29524 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_4__["ParseError"].IdentifierExpected); 29525 } 29526 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].CurlyR)) { 29527 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_4__["ParseError"].RightCurlyExpected); 29528 } 29529 return this.finish(node); 29530 } 29531 return null; 29532 }; 29533 LESSParser.prototype._tryParseMixinDeclaration = function () { 29534 var mark = this.mark(); 29535 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["MixinDeclaration"]); 29536 if (!node.setIdentifier(this._parseMixinDeclarationIdentifier()) || !this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisL)) { 29537 this.restoreAtMark(mark); 29538 return null; 29539 } 29540 if (node.getParameters().addChild(this._parseMixinParameter())) { 29541 while (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Comma) || this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].SemiColon)) { 29542 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR)) { 29543 break; 29544 } 29545 if (!node.getParameters().addChild(this._parseMixinParameter())) { 29546 this.markError(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_4__["ParseError"].IdentifierExpected, [], [_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR]); 29547 } 29548 } 29549 } 29550 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR)) { 29551 this.restoreAtMark(mark); 29552 return null; 29553 } 29554 node.setGuard(this._parseGuard()); 29555 if (!this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].CurlyL)) { 29556 this.restoreAtMark(mark); 29557 return null; 29558 } 29559 return this._parseBody(node, this._parseMixInBodyDeclaration.bind(this)); 29560 }; 29561 LESSParser.prototype._parseMixInBodyDeclaration = function () { 29562 return this._parseFontFace() || this._parseRuleSetDeclaration(); 29563 }; 29564 LESSParser.prototype._parseMixinDeclarationIdentifier = function () { 29565 var identifier; 29566 if (this.peekDelim('#') || this.peekDelim('.')) { 29567 identifier = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["Identifier"]); 29568 this.consumeToken(); // # or . 29569 if (this.hasWhitespace() || !identifier.addChild(this._parseIdent())) { 29570 return null; 29571 } 29572 } 29573 else if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Hash)) { 29574 identifier = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["Identifier"]); 29575 this.consumeToken(); // TokenType.Hash 29576 } 29577 else { 29578 return null; 29579 } 29580 identifier.referenceTypes = [_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["ReferenceType"].Mixin]; 29581 return this.finish(identifier); 29582 }; 29583 LESSParser.prototype._parsePseudo = function () { 29584 if (!this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Colon)) { 29585 return null; 29586 } 29587 var mark = this.mark(); 29588 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["ExtendsReference"]); 29589 this.consumeToken(); // : 29590 if (this.acceptIdent('extend')) { 29591 return this._completeExtends(node); 29592 } 29593 this.restoreAtMark(mark); 29594 return _super.prototype._parsePseudo.call(this); 29595 }; 29596 LESSParser.prototype._parseExtend = function () { 29597 if (!this.peekDelim('&')) { 29598 return null; 29599 } 29600 var mark = this.mark(); 29601 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["ExtendsReference"]); 29602 this.consumeToken(); // & 29603 if (this.hasWhitespace() || !this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Colon) || !this.acceptIdent('extend')) { 29604 this.restoreAtMark(mark); 29605 return null; 29606 } 29607 return this._completeExtends(node); 29608 }; 29609 LESSParser.prototype._completeExtends = function (node) { 29610 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisL)) { 29611 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_4__["ParseError"].LeftParenthesisExpected); 29612 } 29613 var selectors = node.getSelectors(); 29614 if (!selectors.addChild(this._parseSelector(true))) { 29615 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_4__["ParseError"].SelectorExpected); 29616 } 29617 while (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Comma)) { 29618 if (!selectors.addChild(this._parseSelector(true))) { 29619 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_4__["ParseError"].SelectorExpected); 29620 } 29621 } 29622 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR)) { 29623 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_4__["ParseError"].RightParenthesisExpected); 29624 } 29625 return this.finish(node); 29626 }; 29627 LESSParser.prototype._parseDetachedRuleSetMixin = function () { 29628 if (!this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].AtKeyword)) { 29629 return null; 29630 } 29631 var mark = this.mark(); 29632 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["MixinReference"]); 29633 if (node.addChild(this._parseVariable(true)) && (this.hasWhitespace() || !this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisL))) { 29634 this.restoreAtMark(mark); 29635 return null; 29636 } 29637 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR)) { 29638 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_4__["ParseError"].RightParenthesisExpected); 29639 } 29640 return this.finish(node); 29641 }; 29642 LESSParser.prototype._tryParseMixinReference = function (atRoot) { 29643 if (atRoot === void 0) { atRoot = true; } 29644 var mark = this.mark(); 29645 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["MixinReference"]); 29646 var identifier = this._parseMixinDeclarationIdentifier(); 29647 while (identifier) { 29648 this.acceptDelim('>'); 29649 var nextId = this._parseMixinDeclarationIdentifier(); 29650 if (nextId) { 29651 node.getNamespaces().addChild(identifier); 29652 identifier = nextId; 29653 } 29654 else { 29655 break; 29656 } 29657 } 29658 if (!node.setIdentifier(identifier)) { 29659 this.restoreAtMark(mark); 29660 return null; 29661 } 29662 var hasArguments = false; 29663 if (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisL)) { 29664 hasArguments = true; 29665 if (node.getArguments().addChild(this._parseMixinArgument())) { 29666 while (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Comma) || this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].SemiColon)) { 29667 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR)) { 29668 break; 29669 } 29670 if (!node.getArguments().addChild(this._parseMixinArgument())) { 29671 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_4__["ParseError"].ExpressionExpected); 29672 } 29673 } 29674 } 29675 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR)) { 29676 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_4__["ParseError"].RightParenthesisExpected); 29677 } 29678 identifier.referenceTypes = [_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["ReferenceType"].Mixin]; 29679 } 29680 else { 29681 identifier.referenceTypes = [_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["ReferenceType"].Mixin, _cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["ReferenceType"].Rule]; 29682 } 29683 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].BracketL)) { 29684 if (!atRoot) { 29685 this._addLookupChildren(node); 29686 } 29687 } 29688 else { 29689 node.addChild(this._parsePrio()); 29690 } 29691 if (!hasArguments && !this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].SemiColon) && !this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].CurlyR) && !this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].EOF)) { 29692 this.restoreAtMark(mark); 29693 return null; 29694 } 29695 return this.finish(node); 29696 }; 29697 LESSParser.prototype._parseMixinArgument = function () { 29698 // [variableName ':'] expression | variableName '...' 29699 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["FunctionArgument"]); 29700 var pos = this.mark(); 29701 var argument = this._parseVariable(); 29702 if (argument) { 29703 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Colon)) { 29704 this.restoreAtMark(pos); 29705 } 29706 else { 29707 node.setIdentifier(argument); 29708 } 29709 } 29710 if (node.setValue(this._parseDetachedRuleSet() || this._parseExpr(true))) { 29711 return this.finish(node); 29712 } 29713 this.restoreAtMark(pos); 29714 return null; 29715 }; 29716 LESSParser.prototype._parseMixinParameter = function () { 29717 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["FunctionParameter"]); 29718 // special rest variable: @rest... 29719 if (this.peekKeyword('@rest')) { 29720 var restNode = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["Node"]); 29721 this.consumeToken(); 29722 if (!this.accept(_lessScanner_js__WEBPACK_IMPORTED_MODULE_0__["Ellipsis"])) { 29723 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_4__["ParseError"].DotExpected, [], [_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Comma, _cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR]); 29724 } 29725 node.setIdentifier(this.finish(restNode)); 29726 return this.finish(node); 29727 } 29728 // special const args: ... 29729 if (this.peek(_lessScanner_js__WEBPACK_IMPORTED_MODULE_0__["Ellipsis"])) { 29730 var varargsNode = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["Node"]); 29731 this.consumeToken(); 29732 node.setIdentifier(this.finish(varargsNode)); 29733 return this.finish(node); 29734 } 29735 var hasContent = false; 29736 // default variable declaration: @param: 12 or @name 29737 if (node.setIdentifier(this._parseVariable())) { 29738 this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Colon); 29739 hasContent = true; 29740 } 29741 if (!node.setDefaultValue(this._parseDetachedRuleSet() || this._parseExpr(true)) && !hasContent) { 29742 return null; 29743 } 29744 return this.finish(node); 29745 }; 29746 LESSParser.prototype._parseGuard = function () { 29747 if (!this.peekIdent('when')) { 29748 return null; 29749 } 29750 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["LessGuard"]); 29751 this.consumeToken(); // when 29752 node.isNegated = this.acceptIdent('not'); 29753 if (!node.getConditions().addChild(this._parseGuardCondition())) { 29754 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_4__["ParseError"].ConditionExpected); 29755 } 29756 while (this.acceptIdent('and') || this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Comma)) { 29757 if (!node.getConditions().addChild(this._parseGuardCondition())) { 29758 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_4__["ParseError"].ConditionExpected); 29759 } 29760 } 29761 return this.finish(node); 29762 }; 29763 LESSParser.prototype._parseGuardCondition = function () { 29764 if (!this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisL)) { 29765 return null; 29766 } 29767 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["GuardCondition"]); 29768 this.consumeToken(); // ParenthesisL 29769 if (!node.addChild(this._parseExpr())) { 29770 // empty (?) 29771 } 29772 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR)) { 29773 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_4__["ParseError"].RightParenthesisExpected); 29774 } 29775 return this.finish(node); 29776 }; 29777 LESSParser.prototype._parseFunction = function () { 29778 var pos = this.mark(); 29779 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["Function"]); 29780 if (!node.setIdentifier(this._parseFunctionIdentifier())) { 29781 return null; 29782 } 29783 if (this.hasWhitespace() || !this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisL)) { 29784 this.restoreAtMark(pos); 29785 return null; 29786 } 29787 if (node.getArguments().addChild(this._parseMixinArgument())) { 29788 while (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Comma) || this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].SemiColon)) { 29789 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR)) { 29790 break; 29791 } 29792 if (!node.getArguments().addChild(this._parseMixinArgument())) { 29793 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_4__["ParseError"].ExpressionExpected); 29794 } 29795 } 29796 } 29797 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR)) { 29798 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_4__["ParseError"].RightParenthesisExpected); 29799 } 29800 return this.finish(node); 29801 }; 29802 LESSParser.prototype._parseFunctionIdentifier = function () { 29803 if (this.peekDelim('%')) { 29804 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["Identifier"]); 29805 node.referenceTypes = [_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["ReferenceType"].Function]; 29806 this.consumeToken(); 29807 return this.finish(node); 29808 } 29809 return _super.prototype._parseFunctionIdentifier.call(this); 29810 }; 29811 LESSParser.prototype._parseURLArgument = function () { 29812 var pos = this.mark(); 29813 var node = _super.prototype._parseURLArgument.call(this); 29814 if (!node || !this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR)) { 29815 this.restoreAtMark(pos); 29816 var node_2 = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["Node"]); 29817 node_2.addChild(this._parseBinaryExpr()); 29818 return this.finish(node_2); 29819 } 29820 return node; 29821 }; 29822 return LESSParser; 29823}(_cssParser_js__WEBPACK_IMPORTED_MODULE_2__["Parser"])); 29824 29825 29826 29827/***/ }), 29828 29829/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/lessScanner.js": 29830/*!***************************************************************************************************************!*\ 29831 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/lessScanner.js ***! 29832 \***************************************************************************************************************/ 29833/*! exports provided: Ellipsis, LESSScanner */ 29834/***/ (function(module, __webpack_exports__, __webpack_require__) { 29835 29836"use strict"; 29837__webpack_require__.r(__webpack_exports__); 29838/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ellipsis", function() { return Ellipsis; }); 29839/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LESSScanner", function() { return LESSScanner; }); 29840/* harmony import */ var _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cssScanner.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssScanner.js"); 29841/*--------------------------------------------------------------------------------------------- 29842 * Copyright (c) Microsoft Corporation. All rights reserved. 29843 * Licensed under the MIT License. See License.txt in the project root for license information. 29844 *--------------------------------------------------------------------------------------------*/ 29845 29846var __extends = (undefined && undefined.__extends) || (function () { 29847 var extendStatics = function (d, b) { 29848 extendStatics = Object.setPrototypeOf || 29849 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || 29850 function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; 29851 return extendStatics(d, b); 29852 }; 29853 return function (d, b) { 29854 extendStatics(d, b); 29855 function __() { this.constructor = d; } 29856 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); 29857 }; 29858})(); 29859 29860var _FSL = '/'.charCodeAt(0); 29861var _NWL = '\n'.charCodeAt(0); 29862var _CAR = '\r'.charCodeAt(0); 29863var _LFD = '\f'.charCodeAt(0); 29864var _TIC = '`'.charCodeAt(0); 29865var _DOT = '.'.charCodeAt(0); 29866var customTokenValue = _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].CustomToken; 29867var Ellipsis = customTokenValue++; 29868var LESSScanner = /** @class */ (function (_super) { 29869 __extends(LESSScanner, _super); 29870 function LESSScanner() { 29871 return _super !== null && _super.apply(this, arguments) || this; 29872 } 29873 LESSScanner.prototype.scanNext = function (offset) { 29874 // LESS: escaped JavaScript code `const a = "dddd"` 29875 var tokenType = this.escapedJavaScript(); 29876 if (tokenType !== null) { 29877 return this.finishToken(offset, tokenType); 29878 } 29879 if (this.stream.advanceIfChars([_DOT, _DOT, _DOT])) { 29880 return this.finishToken(offset, Ellipsis); 29881 } 29882 return _super.prototype.scanNext.call(this, offset); 29883 }; 29884 LESSScanner.prototype.comment = function () { 29885 if (_super.prototype.comment.call(this)) { 29886 return true; 29887 } 29888 if (!this.inURL && this.stream.advanceIfChars([_FSL, _FSL])) { 29889 this.stream.advanceWhileChar(function (ch) { 29890 switch (ch) { 29891 case _NWL: 29892 case _CAR: 29893 case _LFD: 29894 return false; 29895 default: 29896 return true; 29897 } 29898 }); 29899 return true; 29900 } 29901 else { 29902 return false; 29903 } 29904 }; 29905 LESSScanner.prototype.escapedJavaScript = function () { 29906 var ch = this.stream.peekChar(); 29907 if (ch === _TIC) { 29908 this.stream.advance(1); 29909 this.stream.advanceWhileChar(function (ch) { return ch !== _TIC; }); 29910 return this.stream.advanceIfChar(_TIC) ? _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].EscapedJavaScript : _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].BadEscapedJavaScript; 29911 } 29912 return null; 29913 }; 29914 return LESSScanner; 29915}(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["Scanner"])); 29916 29917 29918 29919/***/ }), 29920 29921/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/scssErrors.js": 29922/*!**************************************************************************************************************!*\ 29923 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/scssErrors.js ***! 29924 \**************************************************************************************************************/ 29925/*! exports provided: SCSSIssueType, SCSSParseError */ 29926/***/ (function(module, __webpack_exports__, __webpack_require__) { 29927 29928"use strict"; 29929__webpack_require__.r(__webpack_exports__); 29930/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SCSSIssueType", function() { return SCSSIssueType; }); 29931/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SCSSParseError", function() { return SCSSParseError; }); 29932/* harmony import */ var _fillers_vscode_nls_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../fillers/vscode-nls.js */ "./node_modules/monaco-editor/esm/vs/language/css/fillers/vscode-nls.js"); 29933/*--------------------------------------------------------------------------------------------- 29934 * Copyright (c) Microsoft Corporation. All rights reserved. 29935 * Licensed under the MIT License. See License.txt in the project root for license information. 29936 *--------------------------------------------------------------------------------------------*/ 29937 29938 29939var localize = _fillers_vscode_nls_js__WEBPACK_IMPORTED_MODULE_0__["loadMessageBundle"](); 29940var SCSSIssueType = /** @class */ (function () { 29941 function SCSSIssueType(id, message) { 29942 this.id = id; 29943 this.message = message; 29944 } 29945 return SCSSIssueType; 29946}()); 29947 29948var SCSSParseError = { 29949 FromExpected: new SCSSIssueType('scss-fromexpected', localize('expected.from', "'from' expected")), 29950 ThroughOrToExpected: new SCSSIssueType('scss-throughexpected', localize('expected.through', "'through' or 'to' expected")), 29951 InExpected: new SCSSIssueType('scss-fromexpected', localize('expected.in', "'in' expected")), 29952}; 29953 29954 29955/***/ }), 29956 29957/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/scssParser.js": 29958/*!**************************************************************************************************************!*\ 29959 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/scssParser.js ***! 29960 \**************************************************************************************************************/ 29961/*! exports provided: SCSSParser */ 29962/***/ (function(module, __webpack_exports__, __webpack_require__) { 29963 29964"use strict"; 29965__webpack_require__.r(__webpack_exports__); 29966/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SCSSParser", function() { return SCSSParser; }); 29967/* harmony import */ var _scssScanner_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./scssScanner.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/scssScanner.js"); 29968/* harmony import */ var _cssScanner_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cssScanner.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssScanner.js"); 29969/* harmony import */ var _cssParser_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./cssParser.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssParser.js"); 29970/* harmony import */ var _cssNodes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./cssNodes.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssNodes.js"); 29971/* harmony import */ var _scssErrors_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scssErrors.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/scssErrors.js"); 29972/* harmony import */ var _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./cssErrors.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssErrors.js"); 29973/*--------------------------------------------------------------------------------------------- 29974 * Copyright (c) Microsoft Corporation. All rights reserved. 29975 * Licensed under the MIT License. See License.txt in the project root for license information. 29976 *--------------------------------------------------------------------------------------------*/ 29977 29978var __extends = (undefined && undefined.__extends) || (function () { 29979 var extendStatics = function (d, b) { 29980 extendStatics = Object.setPrototypeOf || 29981 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || 29982 function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; 29983 return extendStatics(d, b); 29984 }; 29985 return function (d, b) { 29986 extendStatics(d, b); 29987 function __() { this.constructor = d; } 29988 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); 29989 }; 29990})(); 29991 29992 29993 29994 29995 29996 29997/// <summary> 29998/// A parser for scss 29999/// http://sass-lang.com/documentation/file.SASS_REFERENCE.html 30000/// </summary> 30001var SCSSParser = /** @class */ (function (_super) { 30002 __extends(SCSSParser, _super); 30003 function SCSSParser() { 30004 return _super.call(this, new _scssScanner_js__WEBPACK_IMPORTED_MODULE_0__["SCSSScanner"]()) || this; 30005 } 30006 SCSSParser.prototype._parseStylesheetStatement = function (isNested) { 30007 if (isNested === void 0) { isNested = false; } 30008 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].AtKeyword)) { 30009 return this._parseWarnAndDebug() // @warn, @debug and @error statements 30010 || this._parseControlStatement() // @if, @while, @for, @each 30011 || this._parseMixinDeclaration() // @mixin 30012 || this._parseMixinContent() // @content 30013 || this._parseMixinReference() // @include 30014 || this._parseFunctionDeclaration() // @function 30015 || this._parseForward() // @forward 30016 || this._parseUse() // @use 30017 || this._parseRuleset(isNested) // @at-rule 30018 || _super.prototype._parseStylesheetAtStatement.call(this, isNested); 30019 } 30020 return this._parseRuleset(true) || this._parseVariableDeclaration(); 30021 }; 30022 SCSSParser.prototype._parseImport = function () { 30023 if (!this.peekKeyword('@import')) { 30024 return null; 30025 } 30026 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["Import"]); 30027 this.consumeToken(); 30028 if (!node.addChild(this._parseURILiteral()) && !node.addChild(this._parseStringLiteral())) { 30029 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].URIOrStringExpected); 30030 } 30031 while (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Comma)) { 30032 if (!node.addChild(this._parseURILiteral()) && !node.addChild(this._parseStringLiteral())) { 30033 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].URIOrStringExpected); 30034 } 30035 } 30036 if (!this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].SemiColon) && !this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].EOF)) { 30037 node.setMedialist(this._parseMediaQueryList()); 30038 } 30039 return this.finish(node); 30040 }; 30041 // scss variables: $font-size: 12px; 30042 SCSSParser.prototype._parseVariableDeclaration = function (panic) { 30043 if (panic === void 0) { panic = []; } 30044 if (!this.peek(_scssScanner_js__WEBPACK_IMPORTED_MODULE_0__["VariableName"])) { 30045 return null; 30046 } 30047 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["VariableDeclaration"]); 30048 if (!node.setVariable(this._parseVariable())) { 30049 return null; 30050 } 30051 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Colon)) { 30052 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].ColonExpected); 30053 } 30054 if (this.prevToken) { 30055 node.colonPosition = this.prevToken.offset; 30056 } 30057 if (!node.setValue(this._parseExpr())) { 30058 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].VariableValueExpected, [], panic); 30059 } 30060 while (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Exclamation)) { 30061 if (node.addChild(this._tryParsePrio())) { 30062 // !important 30063 } 30064 else { 30065 this.consumeToken(); 30066 if (!this.peekRegExp(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Ident, /^(default|global)$/)) { 30067 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].UnknownKeyword); 30068 } 30069 this.consumeToken(); 30070 } 30071 } 30072 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].SemiColon)) { 30073 node.semicolonPosition = this.token.offset; // not part of the declaration, but useful information for code assist 30074 } 30075 return this.finish(node); 30076 }; 30077 SCSSParser.prototype._parseMediaContentStart = function () { 30078 return this._parseInterpolation(); 30079 }; 30080 SCSSParser.prototype._parseMediaFeatureName = function () { 30081 return this._parseModuleMember() 30082 || this._parseFunction() // function before ident 30083 || this._parseIdent() 30084 || this._parseVariable(); 30085 }; 30086 SCSSParser.prototype._parseKeyframeSelector = function () { 30087 return this._tryParseKeyframeSelector() 30088 || this._parseControlStatement(this._parseKeyframeSelector.bind(this)) 30089 || this._parseVariableDeclaration() 30090 || this._parseMixinContent(); 30091 }; 30092 SCSSParser.prototype._parseVariable = function () { 30093 if (!this.peek(_scssScanner_js__WEBPACK_IMPORTED_MODULE_0__["VariableName"])) { 30094 return null; 30095 } 30096 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["Variable"]); 30097 this.consumeToken(); 30098 return node; 30099 }; 30100 SCSSParser.prototype._parseModuleMember = function () { 30101 var pos = this.mark(); 30102 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["Module"]); 30103 if (!node.setIdentifier(this._parseIdent([_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["ReferenceType"].Module]))) { 30104 return null; 30105 } 30106 if (this.hasWhitespace() 30107 || !this.acceptDelim('.') 30108 || this.hasWhitespace()) { 30109 this.restoreAtMark(pos); 30110 return null; 30111 } 30112 if (!node.addChild(this._parseVariable() || this._parseFunction())) { 30113 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].IdentifierOrVariableExpected); 30114 } 30115 return node; 30116 }; 30117 SCSSParser.prototype._parseIdent = function (referenceTypes) { 30118 var _this = this; 30119 if (!this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Ident) && !this.peek(_scssScanner_js__WEBPACK_IMPORTED_MODULE_0__["InterpolationFunction"]) && !this.peekDelim('-')) { 30120 return null; 30121 } 30122 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["Identifier"]); 30123 node.referenceTypes = referenceTypes; 30124 node.isCustomProperty = this.peekRegExp(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Ident, /^--/); 30125 var hasContent = false; 30126 var indentInterpolation = function () { 30127 var pos = _this.mark(); 30128 if (_this.acceptDelim('-')) { 30129 if (!_this.hasWhitespace()) { 30130 _this.acceptDelim('-'); 30131 } 30132 if (_this.hasWhitespace()) { 30133 _this.restoreAtMark(pos); 30134 return null; 30135 } 30136 } 30137 return _this._parseInterpolation(); 30138 }; 30139 while (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Ident) || node.addChild(indentInterpolation()) || (hasContent && this.acceptRegexp(/[\w-]/))) { 30140 hasContent = true; 30141 if (this.hasWhitespace()) { 30142 break; 30143 } 30144 } 30145 return hasContent ? this.finish(node) : null; 30146 }; 30147 SCSSParser.prototype._parseTermExpression = function () { 30148 return this._parseModuleMember() || 30149 this._parseVariable() || 30150 this._parseSelectorCombinator() || 30151 //this._tryParsePrio() || 30152 _super.prototype._parseTermExpression.call(this); 30153 }; 30154 SCSSParser.prototype._parseInterpolation = function () { 30155 if (this.peek(_scssScanner_js__WEBPACK_IMPORTED_MODULE_0__["InterpolationFunction"])) { 30156 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["Interpolation"]); 30157 this.consumeToken(); 30158 if (!node.addChild(this._parseExpr()) && !this._parseSelectorCombinator()) { 30159 if (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].CurlyR)) { 30160 return this.finish(node); 30161 } 30162 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].ExpressionExpected); 30163 } 30164 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].CurlyR)) { 30165 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].RightCurlyExpected); 30166 } 30167 return this.finish(node); 30168 } 30169 return null; 30170 }; 30171 SCSSParser.prototype._parseOperator = function () { 30172 if (this.peek(_scssScanner_js__WEBPACK_IMPORTED_MODULE_0__["EqualsOperator"]) || this.peek(_scssScanner_js__WEBPACK_IMPORTED_MODULE_0__["NotEqualsOperator"]) 30173 || this.peek(_scssScanner_js__WEBPACK_IMPORTED_MODULE_0__["GreaterEqualsOperator"]) || this.peek(_scssScanner_js__WEBPACK_IMPORTED_MODULE_0__["SmallerEqualsOperator"]) 30174 || this.peekDelim('>') || this.peekDelim('<') 30175 || this.peekIdent('and') || this.peekIdent('or') 30176 || this.peekDelim('%')) { 30177 var node = this.createNode(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["NodeType"].Operator); 30178 this.consumeToken(); 30179 return this.finish(node); 30180 } 30181 return _super.prototype._parseOperator.call(this); 30182 }; 30183 SCSSParser.prototype._parseUnaryOperator = function () { 30184 if (this.peekIdent('not')) { 30185 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["Node"]); 30186 this.consumeToken(); 30187 return this.finish(node); 30188 } 30189 return _super.prototype._parseUnaryOperator.call(this); 30190 }; 30191 SCSSParser.prototype._parseRuleSetDeclaration = function () { 30192 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].AtKeyword)) { 30193 return this._parseKeyframe() // nested @keyframe 30194 || this._parseImport() // nested @import 30195 || this._parseMedia(true) // nested @media 30196 || this._parseFontFace() // nested @font-face 30197 || this._parseWarnAndDebug() // @warn, @debug and @error statements 30198 || this._parseControlStatement() // @if, @while, @for, @each 30199 || this._parseFunctionDeclaration() // @function 30200 || this._parseExtends() // @extends 30201 || this._parseMixinReference() // @include 30202 || this._parseMixinContent() // @content 30203 || this._parseMixinDeclaration() // nested @mixin 30204 || this._parseRuleset(true) // @at-rule 30205 || this._parseSupports(true) // @supports 30206 || _super.prototype._parseRuleSetDeclarationAtStatement.call(this); 30207 } 30208 return this._parseVariableDeclaration() // variable declaration 30209 || this._tryParseRuleset(true) // nested ruleset 30210 || _super.prototype._parseRuleSetDeclaration.call(this); // try css ruleset declaration as last so in the error case, the ast will contain a declaration 30211 }; 30212 SCSSParser.prototype._parseDeclaration = function (resyncStopTokens) { 30213 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["Declaration"]); 30214 if (!node.setProperty(this._parseProperty())) { 30215 return null; 30216 } 30217 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Colon)) { 30218 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].ColonExpected, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Colon], resyncStopTokens); 30219 } 30220 if (this.prevToken) { 30221 node.colonPosition = this.prevToken.offset; 30222 } 30223 var hasContent = false; 30224 if (node.setValue(this._parseExpr())) { 30225 hasContent = true; 30226 node.addChild(this._parsePrio()); 30227 } 30228 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].CurlyL)) { 30229 node.setNestedProperties(this._parseNestedProperties()); 30230 } 30231 else { 30232 if (!hasContent) { 30233 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].PropertyValueExpected); 30234 } 30235 } 30236 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].SemiColon)) { 30237 node.semicolonPosition = this.token.offset; // not part of the declaration, but useful information for code assist 30238 } 30239 return this.finish(node); 30240 }; 30241 SCSSParser.prototype._parseNestedProperties = function () { 30242 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["NestedProperties"]); 30243 return this._parseBody(node, this._parseDeclaration.bind(this)); 30244 }; 30245 SCSSParser.prototype._parseExtends = function () { 30246 if (this.peekKeyword('@extend')) { 30247 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["ExtendsReference"]); 30248 this.consumeToken(); 30249 if (!node.getSelectors().addChild(this._parseSimpleSelector())) { 30250 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].SelectorExpected); 30251 } 30252 while (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Comma)) { 30253 node.getSelectors().addChild(this._parseSimpleSelector()); 30254 } 30255 if (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Exclamation)) { 30256 if (!this.acceptIdent('optional')) { 30257 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].UnknownKeyword); 30258 } 30259 } 30260 return this.finish(node); 30261 } 30262 return null; 30263 }; 30264 SCSSParser.prototype._parseSimpleSelectorBody = function () { 30265 return this._parseSelectorCombinator() || this._parseSelectorPlaceholder() || _super.prototype._parseSimpleSelectorBody.call(this); 30266 }; 30267 SCSSParser.prototype._parseSelectorCombinator = function () { 30268 if (this.peekDelim('&')) { 30269 var node = this.createNode(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["NodeType"].SelectorCombinator); 30270 this.consumeToken(); 30271 while (!this.hasWhitespace() && (this.acceptDelim('-') || this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Num) || this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Dimension) || node.addChild(this._parseIdent()) || this.acceptDelim('&'))) { 30272 // support &-foo-1 30273 } 30274 return this.finish(node); 30275 } 30276 return null; 30277 }; 30278 SCSSParser.prototype._parseSelectorPlaceholder = function () { 30279 if (this.peekDelim('%')) { 30280 var node = this.createNode(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["NodeType"].SelectorPlaceholder); 30281 this.consumeToken(); 30282 this._parseIdent(); 30283 return this.finish(node); 30284 } 30285 else if (this.peekKeyword('@at-root')) { 30286 var node = this.createNode(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["NodeType"].SelectorPlaceholder); 30287 this.consumeToken(); 30288 return this.finish(node); 30289 } 30290 return null; 30291 }; 30292 SCSSParser.prototype._parseElementName = function () { 30293 var pos = this.mark(); 30294 var node = _super.prototype._parseElementName.call(this); 30295 if (node && !this.hasWhitespace() && this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisL)) { // for #49589 30296 this.restoreAtMark(pos); 30297 return null; 30298 } 30299 return node; 30300 }; 30301 SCSSParser.prototype._tryParsePseudoIdentifier = function () { 30302 return this._parseInterpolation() || _super.prototype._tryParsePseudoIdentifier.call(this); // for #49589 30303 }; 30304 SCSSParser.prototype._parseWarnAndDebug = function () { 30305 if (!this.peekKeyword('@debug') 30306 && !this.peekKeyword('@warn') 30307 && !this.peekKeyword('@error')) { 30308 return null; 30309 } 30310 var node = this.createNode(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["NodeType"].Debug); 30311 this.consumeToken(); // @debug, @warn or @error 30312 node.addChild(this._parseExpr()); // optional 30313 return this.finish(node); 30314 }; 30315 SCSSParser.prototype._parseControlStatement = function (parseStatement) { 30316 if (parseStatement === void 0) { parseStatement = this._parseRuleSetDeclaration.bind(this); } 30317 if (!this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].AtKeyword)) { 30318 return null; 30319 } 30320 return this._parseIfStatement(parseStatement) || this._parseForStatement(parseStatement) 30321 || this._parseEachStatement(parseStatement) || this._parseWhileStatement(parseStatement); 30322 }; 30323 SCSSParser.prototype._parseIfStatement = function (parseStatement) { 30324 if (!this.peekKeyword('@if')) { 30325 return null; 30326 } 30327 return this._internalParseIfStatement(parseStatement); 30328 }; 30329 SCSSParser.prototype._internalParseIfStatement = function (parseStatement) { 30330 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["IfStatement"]); 30331 this.consumeToken(); // @if or if 30332 if (!node.setExpression(this._parseExpr(true))) { 30333 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].ExpressionExpected); 30334 } 30335 this._parseBody(node, parseStatement); 30336 if (this.acceptKeyword('@else')) { 30337 if (this.peekIdent('if')) { 30338 node.setElseClause(this._internalParseIfStatement(parseStatement)); 30339 } 30340 else if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].CurlyL)) { 30341 var elseNode = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["ElseStatement"]); 30342 this._parseBody(elseNode, parseStatement); 30343 node.setElseClause(elseNode); 30344 } 30345 } 30346 return this.finish(node); 30347 }; 30348 SCSSParser.prototype._parseForStatement = function (parseStatement) { 30349 if (!this.peekKeyword('@for')) { 30350 return null; 30351 } 30352 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["ForStatement"]); 30353 this.consumeToken(); // @for 30354 if (!node.setVariable(this._parseVariable())) { 30355 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].VariableNameExpected, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].CurlyR]); 30356 } 30357 if (!this.acceptIdent('from')) { 30358 return this.finish(node, _scssErrors_js__WEBPACK_IMPORTED_MODULE_4__["SCSSParseError"].FromExpected, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].CurlyR]); 30359 } 30360 if (!node.addChild(this._parseBinaryExpr())) { 30361 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].ExpressionExpected, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].CurlyR]); 30362 } 30363 if (!this.acceptIdent('to') && !this.acceptIdent('through')) { 30364 return this.finish(node, _scssErrors_js__WEBPACK_IMPORTED_MODULE_4__["SCSSParseError"].ThroughOrToExpected, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].CurlyR]); 30365 } 30366 if (!node.addChild(this._parseBinaryExpr())) { 30367 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].ExpressionExpected, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].CurlyR]); 30368 } 30369 return this._parseBody(node, parseStatement); 30370 }; 30371 SCSSParser.prototype._parseEachStatement = function (parseStatement) { 30372 if (!this.peekKeyword('@each')) { 30373 return null; 30374 } 30375 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["EachStatement"]); 30376 this.consumeToken(); // @each 30377 var variables = node.getVariables(); 30378 if (!variables.addChild(this._parseVariable())) { 30379 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].VariableNameExpected, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].CurlyR]); 30380 } 30381 while (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Comma)) { 30382 if (!variables.addChild(this._parseVariable())) { 30383 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].VariableNameExpected, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].CurlyR]); 30384 } 30385 } 30386 this.finish(variables); 30387 if (!this.acceptIdent('in')) { 30388 return this.finish(node, _scssErrors_js__WEBPACK_IMPORTED_MODULE_4__["SCSSParseError"].InExpected, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].CurlyR]); 30389 } 30390 if (!node.addChild(this._parseExpr())) { 30391 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].ExpressionExpected, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].CurlyR]); 30392 } 30393 return this._parseBody(node, parseStatement); 30394 }; 30395 SCSSParser.prototype._parseWhileStatement = function (parseStatement) { 30396 if (!this.peekKeyword('@while')) { 30397 return null; 30398 } 30399 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["WhileStatement"]); 30400 this.consumeToken(); // @while 30401 if (!node.addChild(this._parseBinaryExpr())) { 30402 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].ExpressionExpected, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].CurlyR]); 30403 } 30404 return this._parseBody(node, parseStatement); 30405 }; 30406 SCSSParser.prototype._parseFunctionBodyDeclaration = function () { 30407 return this._parseVariableDeclaration() || this._parseReturnStatement() || this._parseWarnAndDebug() 30408 || this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this)); 30409 }; 30410 SCSSParser.prototype._parseFunctionDeclaration = function () { 30411 if (!this.peekKeyword('@function')) { 30412 return null; 30413 } 30414 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["FunctionDeclaration"]); 30415 this.consumeToken(); // @function 30416 if (!node.setIdentifier(this._parseIdent([_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["ReferenceType"].Function]))) { 30417 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].IdentifierExpected, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].CurlyR]); 30418 } 30419 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisL)) { 30420 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].LeftParenthesisExpected, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].CurlyR]); 30421 } 30422 if (node.getParameters().addChild(this._parseParameterDeclaration())) { 30423 while (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Comma)) { 30424 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR)) { 30425 break; 30426 } 30427 if (!node.getParameters().addChild(this._parseParameterDeclaration())) { 30428 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].VariableNameExpected); 30429 } 30430 } 30431 } 30432 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR)) { 30433 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].RightParenthesisExpected, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].CurlyR]); 30434 } 30435 return this._parseBody(node, this._parseFunctionBodyDeclaration.bind(this)); 30436 }; 30437 SCSSParser.prototype._parseReturnStatement = function () { 30438 if (!this.peekKeyword('@return')) { 30439 return null; 30440 } 30441 var node = this.createNode(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["NodeType"].ReturnStatement); 30442 this.consumeToken(); // @function 30443 if (!node.addChild(this._parseExpr())) { 30444 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].ExpressionExpected); 30445 } 30446 return this.finish(node); 30447 }; 30448 SCSSParser.prototype._parseMixinDeclaration = function () { 30449 if (!this.peekKeyword('@mixin')) { 30450 return null; 30451 } 30452 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["MixinDeclaration"]); 30453 this.consumeToken(); 30454 if (!node.setIdentifier(this._parseIdent([_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["ReferenceType"].Mixin]))) { 30455 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].IdentifierExpected, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].CurlyR]); 30456 } 30457 if (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisL)) { 30458 if (node.getParameters().addChild(this._parseParameterDeclaration())) { 30459 while (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Comma)) { 30460 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR)) { 30461 break; 30462 } 30463 if (!node.getParameters().addChild(this._parseParameterDeclaration())) { 30464 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].VariableNameExpected); 30465 } 30466 } 30467 } 30468 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR)) { 30469 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].RightParenthesisExpected, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].CurlyR]); 30470 } 30471 } 30472 return this._parseBody(node, this._parseRuleSetDeclaration.bind(this)); 30473 }; 30474 SCSSParser.prototype._parseParameterDeclaration = function () { 30475 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["FunctionParameter"]); 30476 if (!node.setIdentifier(this._parseVariable())) { 30477 return null; 30478 } 30479 if (this.accept(_scssScanner_js__WEBPACK_IMPORTED_MODULE_0__["Ellipsis"])) { 30480 // ok 30481 } 30482 if (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Colon)) { 30483 if (!node.setDefaultValue(this._parseExpr(true))) { 30484 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].VariableValueExpected, [], [_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Comma, _cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR]); 30485 } 30486 } 30487 return this.finish(node); 30488 }; 30489 SCSSParser.prototype._parseMixinContent = function () { 30490 if (!this.peekKeyword('@content')) { 30491 return null; 30492 } 30493 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["MixinContentReference"]); 30494 this.consumeToken(); 30495 if (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisL)) { 30496 if (node.getArguments().addChild(this._parseFunctionArgument())) { 30497 while (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Comma)) { 30498 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR)) { 30499 break; 30500 } 30501 if (!node.getArguments().addChild(this._parseFunctionArgument())) { 30502 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].ExpressionExpected); 30503 } 30504 } 30505 } 30506 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR)) { 30507 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].RightParenthesisExpected); 30508 } 30509 } 30510 return this.finish(node); 30511 }; 30512 SCSSParser.prototype._parseMixinReference = function () { 30513 if (!this.peekKeyword('@include')) { 30514 return null; 30515 } 30516 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["MixinReference"]); 30517 this.consumeToken(); 30518 // Could be module or mixin identifier, set as mixin as default. 30519 var firstIdent = this._parseIdent([_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["ReferenceType"].Mixin]); 30520 if (!node.setIdentifier(firstIdent)) { 30521 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].IdentifierExpected, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].CurlyR]); 30522 } 30523 // Is a module accessor. 30524 if (!this.hasWhitespace() && this.acceptDelim('.') && !this.hasWhitespace()) { 30525 var secondIdent = this._parseIdent([_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["ReferenceType"].Mixin]); 30526 if (!secondIdent) { 30527 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].IdentifierExpected, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].CurlyR]); 30528 } 30529 var moduleToken = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["Module"]); 30530 // Re-purpose first matched ident as identifier for module token. 30531 firstIdent.referenceTypes = [_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["ReferenceType"].Module]; 30532 moduleToken.setIdentifier(firstIdent); 30533 // Override identifier with second ident. 30534 node.setIdentifier(secondIdent); 30535 node.addChild(moduleToken); 30536 } 30537 if (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisL)) { 30538 if (node.getArguments().addChild(this._parseFunctionArgument())) { 30539 while (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Comma)) { 30540 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR)) { 30541 break; 30542 } 30543 if (!node.getArguments().addChild(this._parseFunctionArgument())) { 30544 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].ExpressionExpected); 30545 } 30546 } 30547 } 30548 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR)) { 30549 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].RightParenthesisExpected); 30550 } 30551 } 30552 if (this.peekIdent('using') || this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].CurlyL)) { 30553 node.setContent(this._parseMixinContentDeclaration()); 30554 } 30555 return this.finish(node); 30556 }; 30557 SCSSParser.prototype._parseMixinContentDeclaration = function () { 30558 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["MixinContentDeclaration"]); 30559 if (this.acceptIdent('using')) { 30560 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisL)) { 30561 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].LeftParenthesisExpected, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].CurlyL]); 30562 } 30563 if (node.getParameters().addChild(this._parseParameterDeclaration())) { 30564 while (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Comma)) { 30565 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR)) { 30566 break; 30567 } 30568 if (!node.getParameters().addChild(this._parseParameterDeclaration())) { 30569 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].VariableNameExpected); 30570 } 30571 } 30572 } 30573 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR)) { 30574 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].RightParenthesisExpected, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].CurlyL]); 30575 } 30576 } 30577 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].CurlyL)) { 30578 this._parseBody(node, this._parseMixinReferenceBodyStatement.bind(this)); 30579 } 30580 return this.finish(node); 30581 }; 30582 SCSSParser.prototype._parseMixinReferenceBodyStatement = function () { 30583 return this._tryParseKeyframeSelector() || this._parseRuleSetDeclaration(); 30584 }; 30585 SCSSParser.prototype._parseFunctionArgument = function () { 30586 // [variableName ':'] expression | variableName '...' 30587 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["FunctionArgument"]); 30588 var pos = this.mark(); 30589 var argument = this._parseVariable(); 30590 if (argument) { 30591 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Colon)) { 30592 if (this.accept(_scssScanner_js__WEBPACK_IMPORTED_MODULE_0__["Ellipsis"])) { // optional 30593 node.setValue(argument); 30594 return this.finish(node); 30595 } 30596 else { 30597 this.restoreAtMark(pos); 30598 } 30599 } 30600 else { 30601 node.setIdentifier(argument); 30602 } 30603 } 30604 if (node.setValue(this._parseExpr(true))) { 30605 this.accept(_scssScanner_js__WEBPACK_IMPORTED_MODULE_0__["Ellipsis"]); // #43746 30606 node.addChild(this._parsePrio()); // #9859 30607 return this.finish(node); 30608 } 30609 else if (node.setValue(this._tryParsePrio())) { 30610 return this.finish(node); 30611 } 30612 return null; 30613 }; 30614 SCSSParser.prototype._parseURLArgument = function () { 30615 var pos = this.mark(); 30616 var node = _super.prototype._parseURLArgument.call(this); 30617 if (!node || !this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR)) { 30618 this.restoreAtMark(pos); 30619 var node_1 = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["Node"]); 30620 node_1.addChild(this._parseBinaryExpr()); 30621 return this.finish(node_1); 30622 } 30623 return node; 30624 }; 30625 SCSSParser.prototype._parseOperation = function () { 30626 if (!this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisL)) { 30627 return null; 30628 } 30629 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["Node"]); 30630 this.consumeToken(); 30631 while (node.addChild(this._parseListElement())) { 30632 this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Comma); // optional 30633 } 30634 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR)) { 30635 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].RightParenthesisExpected); 30636 } 30637 return this.finish(node); 30638 }; 30639 SCSSParser.prototype._parseListElement = function () { 30640 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["ListEntry"]); 30641 var child = this._parseBinaryExpr(); 30642 if (!child) { 30643 return null; 30644 } 30645 if (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Colon)) { 30646 node.setKey(child); 30647 if (!node.setValue(this._parseBinaryExpr())) { 30648 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].ExpressionExpected); 30649 } 30650 } 30651 else { 30652 node.setValue(child); 30653 } 30654 return this.finish(node); 30655 }; 30656 SCSSParser.prototype._parseUse = function () { 30657 if (!this.peekKeyword('@use')) { 30658 return null; 30659 } 30660 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["Use"]); 30661 this.consumeToken(); // @use 30662 if (!node.addChild(this._parseStringLiteral())) { 30663 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].StringLiteralExpected); 30664 } 30665 if (!this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].SemiColon) && !this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].EOF)) { 30666 if (!this.peekRegExp(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Ident, /as|with/)) { 30667 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].UnknownKeyword); 30668 } 30669 if (this.acceptIdent('as') && 30670 (!node.setIdentifier(this._parseIdent([_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["ReferenceType"].Module])) && !this.acceptDelim('*'))) { 30671 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].IdentifierOrWildcardExpected); 30672 } 30673 if (this.acceptIdent('with')) { 30674 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisL)) { 30675 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].LeftParenthesisExpected, [_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR]); 30676 } 30677 // First variable statement, no comma. 30678 if (!node.getParameters().addChild(this._parseModuleConfigDeclaration())) { 30679 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].VariableNameExpected); 30680 } 30681 while (this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Comma)) { 30682 if (this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR)) { 30683 break; 30684 } 30685 if (!node.getParameters().addChild(this._parseModuleConfigDeclaration())) { 30686 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].VariableNameExpected); 30687 } 30688 } 30689 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR)) { 30690 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].RightParenthesisExpected); 30691 } 30692 } 30693 } 30694 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].SemiColon) && !this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].EOF)) { 30695 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].SemiColonExpected); 30696 } 30697 return this.finish(node); 30698 }; 30699 SCSSParser.prototype._parseModuleConfigDeclaration = function () { 30700 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["ModuleConfiguration"]); 30701 if (!node.setIdentifier(this._parseVariable())) { 30702 return null; 30703 } 30704 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Colon) || !node.setValue(this._parseExpr(true))) { 30705 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].VariableValueExpected, [], [_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Comma, _cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].ParenthesisR]); 30706 } 30707 return this.finish(node); 30708 }; 30709 SCSSParser.prototype._parseForward = function () { 30710 if (!this.peekKeyword('@forward')) { 30711 return null; 30712 } 30713 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["Forward"]); 30714 this.consumeToken(); 30715 if (!node.addChild(this._parseStringLiteral())) { 30716 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].StringLiteralExpected); 30717 } 30718 if (!this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].SemiColon) && !this.peek(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].EOF)) { 30719 if (!this.peekRegExp(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].Ident, /as|hide|show/)) { 30720 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].UnknownKeyword); 30721 } 30722 if (this.acceptIdent('as')) { 30723 var identifier = this._parseIdent([_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["ReferenceType"].Forward]); 30724 if (!node.setIdentifier(identifier)) { 30725 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].IdentifierExpected); 30726 } 30727 // Wildcard must be the next character after the identifier string. 30728 if (this.hasWhitespace() || !this.acceptDelim('*')) { 30729 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].WildcardExpected); 30730 } 30731 } 30732 if (this.peekIdent('hide') || this.peekIdent('show')) { 30733 if (!node.addChild(this._parseForwardVisibility())) { 30734 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].IdentifierOrVariableExpected); 30735 } 30736 } 30737 } 30738 if (!this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].SemiColon) && !this.accept(_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["TokenType"].EOF)) { 30739 return this.finish(node, _cssErrors_js__WEBPACK_IMPORTED_MODULE_5__["ParseError"].SemiColonExpected); 30740 } 30741 return this.finish(node); 30742 }; 30743 SCSSParser.prototype._parseForwardVisibility = function () { 30744 var node = this.create(_cssNodes_js__WEBPACK_IMPORTED_MODULE_3__["ForwardVisibility"]); 30745 // Assume to be "hide" or "show". 30746 node.setIdentifier(this._parseIdent()); 30747 while (node.addChild(this._parseVariable() || this._parseIdent())) { 30748 // Consume all variables and idents ahead. 30749 } 30750 // More than just identifier 30751 return node.getChildren().length > 1 ? node : null; 30752 }; 30753 SCSSParser.prototype._parseSupportsCondition = function () { 30754 return this._parseInterpolation() || _super.prototype._parseSupportsCondition.call(this); 30755 }; 30756 return SCSSParser; 30757}(_cssParser_js__WEBPACK_IMPORTED_MODULE_2__["Parser"])); 30758 30759 30760 30761/***/ }), 30762 30763/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/scssScanner.js": 30764/*!***************************************************************************************************************!*\ 30765 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/scssScanner.js ***! 30766 \***************************************************************************************************************/ 30767/*! exports provided: VariableName, InterpolationFunction, Default, EqualsOperator, NotEqualsOperator, GreaterEqualsOperator, SmallerEqualsOperator, Ellipsis, Module, SCSSScanner */ 30768/***/ (function(module, __webpack_exports__, __webpack_require__) { 30769 30770"use strict"; 30771__webpack_require__.r(__webpack_exports__); 30772/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VariableName", function() { return VariableName; }); 30773/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InterpolationFunction", function() { return InterpolationFunction; }); 30774/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Default", function() { return Default; }); 30775/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EqualsOperator", function() { return EqualsOperator; }); 30776/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotEqualsOperator", function() { return NotEqualsOperator; }); 30777/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GreaterEqualsOperator", function() { return GreaterEqualsOperator; }); 30778/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SmallerEqualsOperator", function() { return SmallerEqualsOperator; }); 30779/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ellipsis", function() { return Ellipsis; }); 30780/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Module", function() { return Module; }); 30781/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SCSSScanner", function() { return SCSSScanner; }); 30782/* harmony import */ var _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cssScanner.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssScanner.js"); 30783/*--------------------------------------------------------------------------------------------- 30784 * Copyright (c) Microsoft Corporation. All rights reserved. 30785 * Licensed under the MIT License. See License.txt in the project root for license information. 30786 *--------------------------------------------------------------------------------------------*/ 30787 30788var __extends = (undefined && undefined.__extends) || (function () { 30789 var extendStatics = function (d, b) { 30790 extendStatics = Object.setPrototypeOf || 30791 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || 30792 function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; 30793 return extendStatics(d, b); 30794 }; 30795 return function (d, b) { 30796 extendStatics(d, b); 30797 function __() { this.constructor = d; } 30798 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); 30799 }; 30800})(); 30801 30802var _FSL = '/'.charCodeAt(0); 30803var _NWL = '\n'.charCodeAt(0); 30804var _CAR = '\r'.charCodeAt(0); 30805var _LFD = '\f'.charCodeAt(0); 30806var _DLR = '$'.charCodeAt(0); 30807var _HSH = '#'.charCodeAt(0); 30808var _CUL = '{'.charCodeAt(0); 30809var _EQS = '='.charCodeAt(0); 30810var _BNG = '!'.charCodeAt(0); 30811var _LAN = '<'.charCodeAt(0); 30812var _RAN = '>'.charCodeAt(0); 30813var _DOT = '.'.charCodeAt(0); 30814var _ATS = '@'.charCodeAt(0); 30815var customTokenValue = _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].CustomToken; 30816var VariableName = customTokenValue++; 30817var InterpolationFunction = customTokenValue++; 30818var Default = customTokenValue++; 30819var EqualsOperator = customTokenValue++; 30820var NotEqualsOperator = customTokenValue++; 30821var GreaterEqualsOperator = customTokenValue++; 30822var SmallerEqualsOperator = customTokenValue++; 30823var Ellipsis = customTokenValue++; 30824var Module = customTokenValue++; 30825var SCSSScanner = /** @class */ (function (_super) { 30826 __extends(SCSSScanner, _super); 30827 function SCSSScanner() { 30828 return _super !== null && _super.apply(this, arguments) || this; 30829 } 30830 SCSSScanner.prototype.scanNext = function (offset) { 30831 // scss variable 30832 if (this.stream.advanceIfChar(_DLR)) { 30833 var content = ['$']; 30834 if (this.ident(content)) { 30835 return this.finishToken(offset, VariableName, content.join('')); 30836 } 30837 else { 30838 this.stream.goBackTo(offset); 30839 } 30840 } 30841 // scss: interpolation function #{..}) 30842 if (this.stream.advanceIfChars([_HSH, _CUL])) { 30843 return this.finishToken(offset, InterpolationFunction); 30844 } 30845 // operator == 30846 if (this.stream.advanceIfChars([_EQS, _EQS])) { 30847 return this.finishToken(offset, EqualsOperator); 30848 } 30849 // operator != 30850 if (this.stream.advanceIfChars([_BNG, _EQS])) { 30851 return this.finishToken(offset, NotEqualsOperator); 30852 } 30853 // operators <, <= 30854 if (this.stream.advanceIfChar(_LAN)) { 30855 if (this.stream.advanceIfChar(_EQS)) { 30856 return this.finishToken(offset, SmallerEqualsOperator); 30857 } 30858 return this.finishToken(offset, _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Delim); 30859 } 30860 // ooperators >, >= 30861 if (this.stream.advanceIfChar(_RAN)) { 30862 if (this.stream.advanceIfChar(_EQS)) { 30863 return this.finishToken(offset, GreaterEqualsOperator); 30864 } 30865 return this.finishToken(offset, _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Delim); 30866 } 30867 // ellipis 30868 if (this.stream.advanceIfChars([_DOT, _DOT, _DOT])) { 30869 return this.finishToken(offset, Ellipsis); 30870 } 30871 return _super.prototype.scanNext.call(this, offset); 30872 }; 30873 SCSSScanner.prototype.comment = function () { 30874 if (_super.prototype.comment.call(this)) { 30875 return true; 30876 } 30877 if (!this.inURL && this.stream.advanceIfChars([_FSL, _FSL])) { 30878 this.stream.advanceWhileChar(function (ch) { 30879 switch (ch) { 30880 case _NWL: 30881 case _CAR: 30882 case _LFD: 30883 return false; 30884 default: 30885 return true; 30886 } 30887 }); 30888 return true; 30889 } 30890 else { 30891 return false; 30892 } 30893 }; 30894 return SCSSScanner; 30895}(_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["Scanner"])); 30896 30897 30898 30899/***/ }), 30900 30901/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/cssCodeActions.js": 30902/*!********************************************************************************************************************!*\ 30903 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/cssCodeActions.js ***! 30904 \********************************************************************************************************************/ 30905/*! exports provided: CSSCodeActions */ 30906/***/ (function(module, __webpack_exports__, __webpack_require__) { 30907 30908"use strict"; 30909__webpack_require__.r(__webpack_exports__); 30910/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CSSCodeActions", function() { return CSSCodeActions; }); 30911/* harmony import */ var _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../parser/cssNodes.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssNodes.js"); 30912/* harmony import */ var _utils_strings_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/strings.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/utils/strings.js"); 30913/* harmony import */ var _services_lintRules_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/lintRules.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/lintRules.js"); 30914/* harmony import */ var _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../cssLanguageTypes.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/cssLanguageTypes.js"); 30915/* harmony import */ var _fillers_vscode_nls_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../fillers/vscode-nls.js */ "./node_modules/monaco-editor/esm/vs/language/css/fillers/vscode-nls.js"); 30916/*--------------------------------------------------------------------------------------------- 30917 * Copyright (c) Microsoft Corporation. All rights reserved. 30918 * Licensed under the MIT License. See License.txt in the project root for license information. 30919 *--------------------------------------------------------------------------------------------*/ 30920 30921 30922 30923 30924 30925 30926var localize = _fillers_vscode_nls_js__WEBPACK_IMPORTED_MODULE_4__["loadMessageBundle"](); 30927var CSSCodeActions = /** @class */ (function () { 30928 function CSSCodeActions(cssDataManager) { 30929 this.cssDataManager = cssDataManager; 30930 } 30931 CSSCodeActions.prototype.doCodeActions = function (document, range, context, stylesheet) { 30932 return this.doCodeActions2(document, range, context, stylesheet).map(function (ca) { 30933 var textDocumentEdit = ca.edit && ca.edit.documentChanges && ca.edit.documentChanges[0]; 30934 return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_3__["Command"].create(ca.title, '_css.applyCodeAction', document.uri, document.version, textDocumentEdit && textDocumentEdit.edits); 30935 }); 30936 }; 30937 CSSCodeActions.prototype.doCodeActions2 = function (document, range, context, stylesheet) { 30938 var result = []; 30939 if (context.diagnostics) { 30940 for (var _i = 0, _a = context.diagnostics; _i < _a.length; _i++) { 30941 var diagnostic = _a[_i]; 30942 this.appendFixesForMarker(document, stylesheet, diagnostic, result); 30943 } 30944 } 30945 return result; 30946 }; 30947 CSSCodeActions.prototype.getFixesForUnknownProperty = function (document, property, marker, result) { 30948 var propertyName = property.getName(); 30949 var candidates = []; 30950 this.cssDataManager.getProperties().forEach(function (p) { 30951 var score = Object(_utils_strings_js__WEBPACK_IMPORTED_MODULE_1__["difference"])(propertyName, p.name); 30952 if (score >= propertyName.length / 2 /*score_lim*/) { 30953 candidates.push({ property: p.name, score: score }); 30954 } 30955 }); 30956 // Sort in descending order. 30957 candidates.sort(function (a, b) { 30958 return b.score - a.score || a.property.localeCompare(b.property); 30959 }); 30960 var maxActions = 3; 30961 for (var _i = 0, candidates_1 = candidates; _i < candidates_1.length; _i++) { 30962 var candidate = candidates_1[_i]; 30963 var propertyName_1 = candidate.property; 30964 var title = localize('css.codeaction.rename', "Rename to '{0}'", propertyName_1); 30965 var edit = _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_3__["TextEdit"].replace(marker.range, propertyName_1); 30966 var documentIdentifier = _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_3__["VersionedTextDocumentIdentifier"].create(document.uri, document.version); 30967 var workspaceEdit = { documentChanges: [_cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_3__["TextDocumentEdit"].create(documentIdentifier, [edit])] }; 30968 var codeAction = _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_3__["CodeAction"].create(title, workspaceEdit, _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_3__["CodeActionKind"].QuickFix); 30969 codeAction.diagnostics = [marker]; 30970 result.push(codeAction); 30971 if (--maxActions <= 0) { 30972 return; 30973 } 30974 } 30975 }; 30976 CSSCodeActions.prototype.appendFixesForMarker = function (document, stylesheet, marker, result) { 30977 if (marker.code !== _services_lintRules_js__WEBPACK_IMPORTED_MODULE_2__["Rules"].UnknownProperty.id) { 30978 return; 30979 } 30980 var offset = document.offsetAt(marker.range.start); 30981 var end = document.offsetAt(marker.range.end); 30982 var nodepath = _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["getNodePath"](stylesheet, offset); 30983 for (var i = nodepath.length - 1; i >= 0; i--) { 30984 var node = nodepath[i]; 30985 if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["Declaration"]) { 30986 var property = node.getProperty(); 30987 if (property && property.offset === offset && property.end === end) { 30988 this.getFixesForUnknownProperty(document, property, marker, result); 30989 return; 30990 } 30991 } 30992 } 30993 }; 30994 return CSSCodeActions; 30995}()); 30996 30997 30998 30999/***/ }), 31000 31001/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/cssCompletion.js": 31002/*!*******************************************************************************************************************!*\ 31003 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/cssCompletion.js ***! 31004 \*******************************************************************************************************************/ 31005/*! exports provided: CSSCompletion */ 31006/***/ (function(module, __webpack_exports__, __webpack_require__) { 31007 31008"use strict"; 31009__webpack_require__.r(__webpack_exports__); 31010/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CSSCompletion", function() { return CSSCompletion; }); 31011/* harmony import */ var _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../parser/cssNodes.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssNodes.js"); 31012/* harmony import */ var _parser_cssSymbolScope_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../parser/cssSymbolScope.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssSymbolScope.js"); 31013/* harmony import */ var _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../languageFacts/facts.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/languageFacts/facts.js"); 31014/* harmony import */ var _utils_strings_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/strings.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/utils/strings.js"); 31015/* harmony import */ var _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../cssLanguageTypes.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/cssLanguageTypes.js"); 31016/* harmony import */ var _fillers_vscode_nls_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../fillers/vscode-nls.js */ "./node_modules/monaco-editor/esm/vs/language/css/fillers/vscode-nls.js"); 31017/* harmony import */ var _utils_objects_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/objects.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/utils/objects.js"); 31018/* harmony import */ var _pathCompletion_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./pathCompletion.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/pathCompletion.js"); 31019/*--------------------------------------------------------------------------------------------- 31020 * Copyright (c) Microsoft Corporation. All rights reserved. 31021 * Licensed under the MIT License. See License.txt in the project root for license information. 31022 *--------------------------------------------------------------------------------------------*/ 31023 31024var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { 31025 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } 31026 return new (P || (P = Promise))(function (resolve, reject) { 31027 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } 31028 function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } 31029 function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } 31030 step((generator = generator.apply(thisArg, _arguments || [])).next()); 31031 }); 31032}; 31033var __generator = (undefined && undefined.__generator) || function (thisArg, body) { 31034 var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; 31035 return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; 31036 function verb(n) { return function (v) { return step([n, v]); }; } 31037 function step(op) { 31038 if (f) throw new TypeError("Generator is already executing."); 31039 while (_) try { 31040 if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; 31041 if (y = 0, t) op = [op[0] & 2, t.value]; 31042 switch (op[0]) { 31043 case 0: case 1: t = op; break; 31044 case 4: _.label++; return { value: op[1], done: false }; 31045 case 5: _.label++; y = op[1]; op = [0]; continue; 31046 case 7: op = _.ops.pop(); _.trys.pop(); continue; 31047 default: 31048 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } 31049 if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } 31050 if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } 31051 if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } 31052 if (t[2]) _.ops.pop(); 31053 _.trys.pop(); continue; 31054 } 31055 op = body.call(thisArg, _); 31056 } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } 31057 if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; 31058 } 31059}; 31060 31061 31062 31063 31064 31065 31066 31067 31068var localize = _fillers_vscode_nls_js__WEBPACK_IMPORTED_MODULE_5__["loadMessageBundle"](); 31069var SnippetFormat = _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["InsertTextFormat"].Snippet; 31070var SortTexts; 31071(function (SortTexts) { 31072 // char code 32, comes before everything 31073 SortTexts["Enums"] = " "; 31074 SortTexts["Normal"] = "d"; 31075 SortTexts["VendorPrefixed"] = "x"; 31076 SortTexts["Term"] = "y"; 31077 SortTexts["Variable"] = "z"; 31078})(SortTexts || (SortTexts = {})); 31079var CSSCompletion = /** @class */ (function () { 31080 function CSSCompletion(variablePrefix, lsOptions, cssDataManager) { 31081 if (variablePrefix === void 0) { variablePrefix = null; } 31082 this.variablePrefix = variablePrefix; 31083 this.lsOptions = lsOptions; 31084 this.cssDataManager = cssDataManager; 31085 this.completionParticipants = []; 31086 } 31087 CSSCompletion.prototype.configure = function (settings) { 31088 this.settings = settings; 31089 }; 31090 CSSCompletion.prototype.getSymbolContext = function () { 31091 if (!this.symbolContext) { 31092 this.symbolContext = new _parser_cssSymbolScope_js__WEBPACK_IMPORTED_MODULE_1__["Symbols"](this.styleSheet); 31093 } 31094 return this.symbolContext; 31095 }; 31096 CSSCompletion.prototype.setCompletionParticipants = function (registeredCompletionParticipants) { 31097 this.completionParticipants = registeredCompletionParticipants || []; 31098 }; 31099 CSSCompletion.prototype.doComplete2 = function (document, position, styleSheet, documentContext) { 31100 return __awaiter(this, void 0, void 0, function () { 31101 var participant, contributedParticipants, result, pathCompletionResult; 31102 return __generator(this, function (_a) { 31103 switch (_a.label) { 31104 case 0: 31105 if (!this.lsOptions.fileSystemProvider || !this.lsOptions.fileSystemProvider.readDirectory) { 31106 return [2 /*return*/, this.doComplete(document, position, styleSheet)]; 31107 } 31108 participant = new _pathCompletion_js__WEBPACK_IMPORTED_MODULE_7__["PathCompletionParticipant"](this.lsOptions.fileSystemProvider.readDirectory); 31109 contributedParticipants = this.completionParticipants; 31110 this.completionParticipants = [participant].concat(contributedParticipants); 31111 result = this.doComplete(document, position, styleSheet); 31112 _a.label = 1; 31113 case 1: 31114 _a.trys.push([1, , 3, 4]); 31115 return [4 /*yield*/, participant.computeCompletions(document, documentContext)]; 31116 case 2: 31117 pathCompletionResult = _a.sent(); 31118 return [2 /*return*/, { 31119 isIncomplete: result.isIncomplete || pathCompletionResult.isIncomplete, 31120 items: pathCompletionResult.items.concat(result.items) 31121 }]; 31122 case 3: 31123 this.completionParticipants = contributedParticipants; 31124 return [7 /*endfinally*/]; 31125 case 4: return [2 /*return*/]; 31126 } 31127 }); 31128 }); 31129 }; 31130 CSSCompletion.prototype.doComplete = function (document, position, styleSheet) { 31131 this.offset = document.offsetAt(position); 31132 this.position = position; 31133 this.currentWord = getCurrentWord(document, this.offset); 31134 this.defaultReplaceRange = _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["Range"].create(_cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["Position"].create(this.position.line, this.position.character - this.currentWord.length), this.position); 31135 this.textDocument = document; 31136 this.styleSheet = styleSheet; 31137 try { 31138 var result = { isIncomplete: false, items: [] }; 31139 this.nodePath = _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["getNodePath"](this.styleSheet, this.offset); 31140 for (var i = this.nodePath.length - 1; i >= 0; i--) { 31141 var node = this.nodePath[i]; 31142 if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["Property"]) { 31143 this.getCompletionsForDeclarationProperty(node.getParent(), result); 31144 } 31145 else if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["Expression"]) { 31146 if (node.parent instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["Interpolation"]) { 31147 this.getVariableProposals(null, result); 31148 } 31149 else { 31150 this.getCompletionsForExpression(node, result); 31151 } 31152 } 31153 else if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["SimpleSelector"]) { 31154 var parentRef = node.findAParent(_parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].ExtendsReference, _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].Ruleset); 31155 if (parentRef) { 31156 if (parentRef.type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].ExtendsReference) { 31157 this.getCompletionsForExtendsReference(parentRef, node, result); 31158 } 31159 else { 31160 var parentRuleSet = parentRef; 31161 this.getCompletionsForSelector(parentRuleSet, parentRuleSet && parentRuleSet.isNested(), result); 31162 } 31163 } 31164 } 31165 else if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["FunctionArgument"]) { 31166 this.getCompletionsForFunctionArgument(node, node.getParent(), result); 31167 } 31168 else if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["Declarations"]) { 31169 this.getCompletionsForDeclarations(node, result); 31170 } 31171 else if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["VariableDeclaration"]) { 31172 this.getCompletionsForVariableDeclaration(node, result); 31173 } 31174 else if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["RuleSet"]) { 31175 this.getCompletionsForRuleSet(node, result); 31176 } 31177 else if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["Interpolation"]) { 31178 this.getCompletionsForInterpolation(node, result); 31179 } 31180 else if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["FunctionDeclaration"]) { 31181 this.getCompletionsForFunctionDeclaration(node, result); 31182 } 31183 else if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["MixinReference"]) { 31184 this.getCompletionsForMixinReference(node, result); 31185 } 31186 else if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["Function"]) { 31187 this.getCompletionsForFunctionArgument(null, node, result); 31188 } 31189 else if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["Supports"]) { 31190 this.getCompletionsForSupports(node, result); 31191 } 31192 else if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["SupportsCondition"]) { 31193 this.getCompletionsForSupportsCondition(node, result); 31194 } 31195 else if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["ExtendsReference"]) { 31196 this.getCompletionsForExtendsReference(node, null, result); 31197 } 31198 else if (node.type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].URILiteral) { 31199 this.getCompletionForUriLiteralValue(node, result); 31200 } 31201 else if (node.parent === null) { 31202 this.getCompletionForTopLevel(result); 31203 } 31204 else if (node.type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].StringLiteral && this.isImportPathParent(node.parent.type)) { 31205 this.getCompletionForImportPath(node, result); 31206 // } else if (node instanceof nodes.Variable) { 31207 // this.getCompletionsForVariableDeclaration() 31208 } 31209 else { 31210 continue; 31211 } 31212 if (result.items.length > 0 || this.offset > node.offset) { 31213 return this.finalize(result); 31214 } 31215 } 31216 this.getCompletionsForStylesheet(result); 31217 if (result.items.length === 0) { 31218 if (this.variablePrefix && this.currentWord.indexOf(this.variablePrefix) === 0) { 31219 this.getVariableProposals(null, result); 31220 } 31221 } 31222 return this.finalize(result); 31223 } 31224 finally { 31225 // don't hold on any state, clear symbolContext 31226 this.position = null; 31227 this.currentWord = null; 31228 this.textDocument = null; 31229 this.styleSheet = null; 31230 this.symbolContext = null; 31231 this.defaultReplaceRange = null; 31232 this.nodePath = null; 31233 } 31234 }; 31235 CSSCompletion.prototype.isImportPathParent = function (type) { 31236 return type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].Import; 31237 }; 31238 CSSCompletion.prototype.finalize = function (result) { 31239 return result; 31240 }; 31241 CSSCompletion.prototype.findInNodePath = function () { 31242 var types = []; 31243 for (var _i = 0; _i < arguments.length; _i++) { 31244 types[_i] = arguments[_i]; 31245 } 31246 for (var i = this.nodePath.length - 1; i >= 0; i--) { 31247 var node = this.nodePath[i]; 31248 if (types.indexOf(node.type) !== -1) { 31249 return node; 31250 } 31251 } 31252 return null; 31253 }; 31254 CSSCompletion.prototype.getCompletionsForDeclarationProperty = function (declaration, result) { 31255 return this.getPropertyProposals(declaration, result); 31256 }; 31257 CSSCompletion.prototype.getPropertyProposals = function (declaration, result) { 31258 var _this = this; 31259 var triggerPropertyValueCompletion = this.isTriggerPropertyValueCompletionEnabled; 31260 var completePropertyWithSemicolon = this.isCompletePropertyWithSemicolonEnabled; 31261 var properties = this.cssDataManager.getProperties(); 31262 properties.forEach(function (entry) { 31263 var range; 31264 var insertText; 31265 var retrigger = false; 31266 if (declaration) { 31267 range = _this.getCompletionRange(declaration.getProperty()); 31268 insertText = entry.name; 31269 if (!Object(_utils_objects_js__WEBPACK_IMPORTED_MODULE_6__["isDefined"])(declaration.colonPosition)) { 31270 insertText += ': '; 31271 retrigger = true; 31272 } 31273 } 31274 else { 31275 range = _this.getCompletionRange(null); 31276 insertText = entry.name + ': '; 31277 retrigger = true; 31278 } 31279 // Empty .selector { | } case 31280 if (!declaration && completePropertyWithSemicolon) { 31281 insertText += '$0;'; 31282 } 31283 // Cases such as .selector { p; } or .selector { p:; } 31284 if (declaration && !declaration.semicolonPosition) { 31285 if (completePropertyWithSemicolon && _this.offset >= _this.textDocument.offsetAt(range.end)) { 31286 insertText += '$0;'; 31287 } 31288 } 31289 var item = { 31290 label: entry.name, 31291 documentation: _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["getEntryDescription"](entry, _this.doesSupportMarkdown()), 31292 tags: isDeprecated(entry) ? [_cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemTag"].Deprecated] : [], 31293 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["TextEdit"].replace(range, insertText), 31294 insertTextFormat: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["InsertTextFormat"].Snippet, 31295 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemKind"].Property 31296 }; 31297 if (!entry.restrictions) { 31298 retrigger = false; 31299 } 31300 if (triggerPropertyValueCompletion && retrigger) { 31301 item.command = { 31302 title: 'Suggest', 31303 command: 'editor.action.triggerSuggest' 31304 }; 31305 } 31306 var relevance = typeof entry.relevance === 'number' ? Math.min(Math.max(entry.relevance, 0), 99) : 50; 31307 var sortTextSuffix = (255 - relevance).toString(16); 31308 var sortTextPrefix = _utils_strings_js__WEBPACK_IMPORTED_MODULE_3__["startsWith"](entry.name, '-') ? SortTexts.VendorPrefixed : SortTexts.Normal; 31309 item.sortText = sortTextPrefix + '_' + sortTextSuffix; 31310 result.items.push(item); 31311 }); 31312 this.completionParticipants.forEach(function (participant) { 31313 if (participant.onCssProperty) { 31314 participant.onCssProperty({ 31315 propertyName: _this.currentWord, 31316 range: _this.defaultReplaceRange 31317 }); 31318 } 31319 }); 31320 return result; 31321 }; 31322 Object.defineProperty(CSSCompletion.prototype, "isTriggerPropertyValueCompletionEnabled", { 31323 get: function () { 31324 if (!this.settings || 31325 !this.settings.completion || 31326 this.settings.completion.triggerPropertyValueCompletion === undefined) { 31327 return true; 31328 } 31329 return this.settings.completion.triggerPropertyValueCompletion; 31330 }, 31331 enumerable: true, 31332 configurable: true 31333 }); 31334 Object.defineProperty(CSSCompletion.prototype, "isCompletePropertyWithSemicolonEnabled", { 31335 get: function () { 31336 if (!this.settings || 31337 !this.settings.completion || 31338 this.settings.completion.completePropertyWithSemicolon === undefined) { 31339 return true; 31340 } 31341 return this.settings.completion.completePropertyWithSemicolon; 31342 }, 31343 enumerable: true, 31344 configurable: true 31345 }); 31346 CSSCompletion.prototype.getCompletionsForDeclarationValue = function (node, result) { 31347 var _this = this; 31348 var propertyName = node.getFullPropertyName(); 31349 var entry = this.cssDataManager.getProperty(propertyName); 31350 var existingNode = node.getValue() || null; 31351 while (existingNode && existingNode.hasChildren()) { 31352 existingNode = existingNode.findChildAtOffset(this.offset, false); 31353 } 31354 this.completionParticipants.forEach(function (participant) { 31355 if (participant.onCssPropertyValue) { 31356 participant.onCssPropertyValue({ 31357 propertyName: propertyName, 31358 propertyValue: _this.currentWord, 31359 range: _this.getCompletionRange(existingNode) 31360 }); 31361 } 31362 }); 31363 if (entry) { 31364 if (entry.restrictions) { 31365 for (var _i = 0, _a = entry.restrictions; _i < _a.length; _i++) { 31366 var restriction = _a[_i]; 31367 switch (restriction) { 31368 case 'color': 31369 this.getColorProposals(entry, existingNode, result); 31370 break; 31371 case 'position': 31372 this.getPositionProposals(entry, existingNode, result); 31373 break; 31374 case 'repeat': 31375 this.getRepeatStyleProposals(entry, existingNode, result); 31376 break; 31377 case 'line-style': 31378 this.getLineStyleProposals(entry, existingNode, result); 31379 break; 31380 case 'line-width': 31381 this.getLineWidthProposals(entry, existingNode, result); 31382 break; 31383 case 'geometry-box': 31384 this.getGeometryBoxProposals(entry, existingNode, result); 31385 break; 31386 case 'box': 31387 this.getBoxProposals(entry, existingNode, result); 31388 break; 31389 case 'image': 31390 this.getImageProposals(entry, existingNode, result); 31391 break; 31392 case 'timing-function': 31393 this.getTimingFunctionProposals(entry, existingNode, result); 31394 break; 31395 case 'shape': 31396 this.getBasicShapeProposals(entry, existingNode, result); 31397 break; 31398 } 31399 } 31400 } 31401 this.getValueEnumProposals(entry, existingNode, result); 31402 this.getCSSWideKeywordProposals(entry, existingNode, result); 31403 this.getUnitProposals(entry, existingNode, result); 31404 } 31405 else { 31406 var existingValues = collectValues(this.styleSheet, node); 31407 for (var _b = 0, _c = existingValues.getEntries(); _b < _c.length; _b++) { 31408 var existingValue = _c[_b]; 31409 result.items.push({ 31410 label: existingValue, 31411 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["TextEdit"].replace(this.getCompletionRange(existingNode), existingValue), 31412 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemKind"].Value 31413 }); 31414 } 31415 } 31416 this.getVariableProposals(existingNode, result); 31417 this.getTermProposals(entry, existingNode, result); 31418 return result; 31419 }; 31420 CSSCompletion.prototype.getValueEnumProposals = function (entry, existingNode, result) { 31421 if (entry.values) { 31422 for (var _i = 0, _a = entry.values; _i < _a.length; _i++) { 31423 var value = _a[_i]; 31424 var insertString = value.name; 31425 var insertTextFormat = void 0; 31426 if (_utils_strings_js__WEBPACK_IMPORTED_MODULE_3__["endsWith"](insertString, ')')) { 31427 var from = insertString.lastIndexOf('('); 31428 if (from !== -1) { 31429 insertString = insertString.substr(0, from) + '($1)'; 31430 insertTextFormat = SnippetFormat; 31431 } 31432 } 31433 var sortText = SortTexts.Enums; 31434 if (_utils_strings_js__WEBPACK_IMPORTED_MODULE_3__["startsWith"](value.name, '-')) { 31435 sortText += SortTexts.VendorPrefixed; 31436 } 31437 var item = { 31438 label: value.name, 31439 documentation: _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["getEntryDescription"](value, this.doesSupportMarkdown()), 31440 tags: isDeprecated(entry) ? [_cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemTag"].Deprecated] : [], 31441 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["TextEdit"].replace(this.getCompletionRange(existingNode), insertString), 31442 sortText: sortText, 31443 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemKind"].Value, 31444 insertTextFormat: insertTextFormat 31445 }; 31446 result.items.push(item); 31447 } 31448 } 31449 return result; 31450 }; 31451 CSSCompletion.prototype.getCSSWideKeywordProposals = function (entry, existingNode, result) { 31452 for (var keywords in _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["cssWideKeywords"]) { 31453 result.items.push({ 31454 label: keywords, 31455 documentation: _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["cssWideKeywords"][keywords], 31456 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["TextEdit"].replace(this.getCompletionRange(existingNode), keywords), 31457 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemKind"].Value 31458 }); 31459 } 31460 return result; 31461 }; 31462 CSSCompletion.prototype.getCompletionsForInterpolation = function (node, result) { 31463 if (this.offset >= node.offset + 2) { 31464 this.getVariableProposals(null, result); 31465 } 31466 return result; 31467 }; 31468 CSSCompletion.prototype.getVariableProposals = function (existingNode, result) { 31469 var symbols = this.getSymbolContext().findSymbolsAtOffset(this.offset, _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["ReferenceType"].Variable); 31470 for (var _i = 0, symbols_1 = symbols; _i < symbols_1.length; _i++) { 31471 var symbol = symbols_1[_i]; 31472 var insertText = _utils_strings_js__WEBPACK_IMPORTED_MODULE_3__["startsWith"](symbol.name, '--') ? "var(" + symbol.name + ")" : symbol.name; 31473 var completionItem = { 31474 label: symbol.name, 31475 documentation: symbol.value ? _utils_strings_js__WEBPACK_IMPORTED_MODULE_3__["getLimitedString"](symbol.value) : symbol.value, 31476 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["TextEdit"].replace(this.getCompletionRange(existingNode), insertText), 31477 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemKind"].Variable, 31478 sortText: SortTexts.Variable 31479 }; 31480 if (typeof completionItem.documentation === 'string' && isColorString(completionItem.documentation)) { 31481 completionItem.kind = _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemKind"].Color; 31482 } 31483 if (symbol.node.type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].FunctionParameter) { 31484 var mixinNode = (symbol.node.getParent()); 31485 if (mixinNode.type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].MixinDeclaration) { 31486 completionItem.detail = localize('completion.argument', 'argument from \'{0}\'', mixinNode.getName()); 31487 } 31488 } 31489 result.items.push(completionItem); 31490 } 31491 return result; 31492 }; 31493 CSSCompletion.prototype.getVariableProposalsForCSSVarFunction = function (result) { 31494 var symbols = this.getSymbolContext().findSymbolsAtOffset(this.offset, _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["ReferenceType"].Variable); 31495 symbols = symbols.filter(function (symbol) { 31496 return _utils_strings_js__WEBPACK_IMPORTED_MODULE_3__["startsWith"](symbol.name, '--'); 31497 }); 31498 for (var _i = 0, symbols_2 = symbols; _i < symbols_2.length; _i++) { 31499 var symbol = symbols_2[_i]; 31500 var completionItem = { 31501 label: symbol.name, 31502 documentation: symbol.value ? _utils_strings_js__WEBPACK_IMPORTED_MODULE_3__["getLimitedString"](symbol.value) : symbol.value, 31503 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["TextEdit"].replace(this.getCompletionRange(null), symbol.name), 31504 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemKind"].Variable 31505 }; 31506 if (typeof completionItem.documentation === 'string' && isColorString(completionItem.documentation)) { 31507 completionItem.kind = _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemKind"].Color; 31508 } 31509 result.items.push(completionItem); 31510 } 31511 return result; 31512 }; 31513 CSSCompletion.prototype.getUnitProposals = function (entry, existingNode, result) { 31514 var currentWord = '0'; 31515 if (this.currentWord.length > 0) { 31516 var numMatch = this.currentWord.match(/^-?\d[\.\d+]*/); 31517 if (numMatch) { 31518 currentWord = numMatch[0]; 31519 result.isIncomplete = currentWord.length === this.currentWord.length; 31520 } 31521 } 31522 else if (this.currentWord.length === 0) { 31523 result.isIncomplete = true; 31524 } 31525 if (existingNode && existingNode.parent && existingNode.parent.type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].Term) { 31526 existingNode = existingNode.getParent(); // include the unary operator 31527 } 31528 if (entry.restrictions) { 31529 for (var _i = 0, _a = entry.restrictions; _i < _a.length; _i++) { 31530 var restriction = _a[_i]; 31531 var units = _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["units"][restriction]; 31532 if (units) { 31533 for (var _b = 0, units_1 = units; _b < units_1.length; _b++) { 31534 var unit = units_1[_b]; 31535 var insertText = currentWord + unit; 31536 result.items.push({ 31537 label: insertText, 31538 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["TextEdit"].replace(this.getCompletionRange(existingNode), insertText), 31539 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemKind"].Unit 31540 }); 31541 } 31542 } 31543 } 31544 } 31545 return result; 31546 }; 31547 CSSCompletion.prototype.getCompletionRange = function (existingNode) { 31548 if (existingNode && existingNode.offset <= this.offset && this.offset <= existingNode.end) { 31549 var end = existingNode.end !== -1 ? this.textDocument.positionAt(existingNode.end) : this.position; 31550 var start = this.textDocument.positionAt(existingNode.offset); 31551 if (start.line === end.line) { 31552 return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["Range"].create(start, end); // multi line edits are not allowed 31553 } 31554 } 31555 return this.defaultReplaceRange; 31556 }; 31557 CSSCompletion.prototype.getColorProposals = function (entry, existingNode, result) { 31558 for (var color in _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["colors"]) { 31559 result.items.push({ 31560 label: color, 31561 documentation: _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["colors"][color], 31562 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["TextEdit"].replace(this.getCompletionRange(existingNode), color), 31563 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemKind"].Color 31564 }); 31565 } 31566 for (var color in _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["colorKeywords"]) { 31567 result.items.push({ 31568 label: color, 31569 documentation: _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["colorKeywords"][color], 31570 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["TextEdit"].replace(this.getCompletionRange(existingNode), color), 31571 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemKind"].Value 31572 }); 31573 } 31574 var colorValues = new Set(); 31575 this.styleSheet.acceptVisitor(new ColorValueCollector(colorValues, this.offset)); 31576 for (var _i = 0, _a = colorValues.getEntries(); _i < _a.length; _i++) { 31577 var color = _a[_i]; 31578 result.items.push({ 31579 label: color, 31580 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["TextEdit"].replace(this.getCompletionRange(existingNode), color), 31581 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemKind"].Color 31582 }); 31583 } 31584 var _loop_1 = function (p) { 31585 var tabStop = 1; 31586 var replaceFunction = function (_match, p1) { return '${' + tabStop++ + ':' + p1 + '}'; }; 31587 var insertText = p.func.replace(/\[?\$(\w+)\]?/g, replaceFunction); 31588 result.items.push({ 31589 label: p.func.substr(0, p.func.indexOf('(')), 31590 detail: p.func, 31591 documentation: p.desc, 31592 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["TextEdit"].replace(this_1.getCompletionRange(existingNode), insertText), 31593 insertTextFormat: SnippetFormat, 31594 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemKind"].Function 31595 }); 31596 }; 31597 var this_1 = this; 31598 for (var _b = 0, _c = _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["colorFunctions"]; _b < _c.length; _b++) { 31599 var p = _c[_b]; 31600 _loop_1(p); 31601 } 31602 return result; 31603 }; 31604 CSSCompletion.prototype.getPositionProposals = function (entry, existingNode, result) { 31605 for (var position in _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["positionKeywords"]) { 31606 result.items.push({ 31607 label: position, 31608 documentation: _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["positionKeywords"][position], 31609 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["TextEdit"].replace(this.getCompletionRange(existingNode), position), 31610 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemKind"].Value 31611 }); 31612 } 31613 return result; 31614 }; 31615 CSSCompletion.prototype.getRepeatStyleProposals = function (entry, existingNode, result) { 31616 for (var repeat in _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["repeatStyleKeywords"]) { 31617 result.items.push({ 31618 label: repeat, 31619 documentation: _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["repeatStyleKeywords"][repeat], 31620 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["TextEdit"].replace(this.getCompletionRange(existingNode), repeat), 31621 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemKind"].Value 31622 }); 31623 } 31624 return result; 31625 }; 31626 CSSCompletion.prototype.getLineStyleProposals = function (entry, existingNode, result) { 31627 for (var lineStyle in _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["lineStyleKeywords"]) { 31628 result.items.push({ 31629 label: lineStyle, 31630 documentation: _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["lineStyleKeywords"][lineStyle], 31631 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["TextEdit"].replace(this.getCompletionRange(existingNode), lineStyle), 31632 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemKind"].Value 31633 }); 31634 } 31635 return result; 31636 }; 31637 CSSCompletion.prototype.getLineWidthProposals = function (entry, existingNode, result) { 31638 for (var _i = 0, _a = _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["lineWidthKeywords"]; _i < _a.length; _i++) { 31639 var lineWidth = _a[_i]; 31640 result.items.push({ 31641 label: lineWidth, 31642 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["TextEdit"].replace(this.getCompletionRange(existingNode), lineWidth), 31643 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemKind"].Value 31644 }); 31645 } 31646 return result; 31647 }; 31648 CSSCompletion.prototype.getGeometryBoxProposals = function (entry, existingNode, result) { 31649 for (var box in _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["geometryBoxKeywords"]) { 31650 result.items.push({ 31651 label: box, 31652 documentation: _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["geometryBoxKeywords"][box], 31653 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["TextEdit"].replace(this.getCompletionRange(existingNode), box), 31654 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemKind"].Value 31655 }); 31656 } 31657 return result; 31658 }; 31659 CSSCompletion.prototype.getBoxProposals = function (entry, existingNode, result) { 31660 for (var box in _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["boxKeywords"]) { 31661 result.items.push({ 31662 label: box, 31663 documentation: _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["boxKeywords"][box], 31664 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["TextEdit"].replace(this.getCompletionRange(existingNode), box), 31665 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemKind"].Value 31666 }); 31667 } 31668 return result; 31669 }; 31670 CSSCompletion.prototype.getImageProposals = function (entry, existingNode, result) { 31671 for (var image in _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["imageFunctions"]) { 31672 var insertText = moveCursorInsideParenthesis(image); 31673 result.items.push({ 31674 label: image, 31675 documentation: _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["imageFunctions"][image], 31676 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["TextEdit"].replace(this.getCompletionRange(existingNode), insertText), 31677 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemKind"].Function, 31678 insertTextFormat: image !== insertText ? SnippetFormat : void 0 31679 }); 31680 } 31681 return result; 31682 }; 31683 CSSCompletion.prototype.getTimingFunctionProposals = function (entry, existingNode, result) { 31684 for (var timing in _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["transitionTimingFunctions"]) { 31685 var insertText = moveCursorInsideParenthesis(timing); 31686 result.items.push({ 31687 label: timing, 31688 documentation: _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["transitionTimingFunctions"][timing], 31689 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["TextEdit"].replace(this.getCompletionRange(existingNode), insertText), 31690 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemKind"].Function, 31691 insertTextFormat: timing !== insertText ? SnippetFormat : void 0 31692 }); 31693 } 31694 return result; 31695 }; 31696 CSSCompletion.prototype.getBasicShapeProposals = function (entry, existingNode, result) { 31697 for (var shape in _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["basicShapeFunctions"]) { 31698 var insertText = moveCursorInsideParenthesis(shape); 31699 result.items.push({ 31700 label: shape, 31701 documentation: _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["basicShapeFunctions"][shape], 31702 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["TextEdit"].replace(this.getCompletionRange(existingNode), insertText), 31703 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemKind"].Function, 31704 insertTextFormat: shape !== insertText ? SnippetFormat : void 0 31705 }); 31706 } 31707 return result; 31708 }; 31709 CSSCompletion.prototype.getCompletionsForStylesheet = function (result) { 31710 var node = this.styleSheet.findFirstChildBeforeOffset(this.offset); 31711 if (!node) { 31712 return this.getCompletionForTopLevel(result); 31713 } 31714 if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["RuleSet"]) { 31715 return this.getCompletionsForRuleSet(node, result); 31716 } 31717 if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["Supports"]) { 31718 return this.getCompletionsForSupports(node, result); 31719 } 31720 return result; 31721 }; 31722 CSSCompletion.prototype.getCompletionForTopLevel = function (result) { 31723 var _this = this; 31724 this.cssDataManager.getAtDirectives().forEach(function (entry) { 31725 result.items.push({ 31726 label: entry.name, 31727 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["TextEdit"].replace(_this.getCompletionRange(null), entry.name), 31728 documentation: _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["getEntryDescription"](entry, _this.doesSupportMarkdown()), 31729 tags: isDeprecated(entry) ? [_cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemTag"].Deprecated] : [], 31730 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemKind"].Keyword 31731 }); 31732 }); 31733 this.getCompletionsForSelector(null, false, result); 31734 return result; 31735 }; 31736 CSSCompletion.prototype.getCompletionsForRuleSet = function (ruleSet, result) { 31737 var declarations = ruleSet.getDeclarations(); 31738 var isAfter = declarations && declarations.endsWith('}') && this.offset >= declarations.end; 31739 if (isAfter) { 31740 return this.getCompletionForTopLevel(result); 31741 } 31742 var isInSelectors = !declarations || this.offset <= declarations.offset; 31743 if (isInSelectors) { 31744 return this.getCompletionsForSelector(ruleSet, ruleSet.isNested(), result); 31745 } 31746 return this.getCompletionsForDeclarations(ruleSet.getDeclarations(), result); 31747 }; 31748 CSSCompletion.prototype.getCompletionsForSelector = function (ruleSet, isNested, result) { 31749 var _this = this; 31750 var existingNode = this.findInNodePath(_parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].PseudoSelector, _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].IdentifierSelector, _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].ClassSelector, _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].ElementNameSelector); 31751 if (!existingNode && this.offset - this.currentWord.length > 0 && this.textDocument.getText()[this.offset - this.currentWord.length - 1] === ':') { 31752 // after the ':' of a pseudo selector, no node generated for just ':' 31753 this.currentWord = ':' + this.currentWord; 31754 this.defaultReplaceRange = _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["Range"].create(_cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["Position"].create(this.position.line, this.position.character - this.currentWord.length), this.position); 31755 } 31756 var pseudoClasses = this.cssDataManager.getPseudoClasses(); 31757 pseudoClasses.forEach(function (entry) { 31758 var insertText = moveCursorInsideParenthesis(entry.name); 31759 var item = { 31760 label: entry.name, 31761 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["TextEdit"].replace(_this.getCompletionRange(existingNode), insertText), 31762 documentation: _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["getEntryDescription"](entry, _this.doesSupportMarkdown()), 31763 tags: isDeprecated(entry) ? [_cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemTag"].Deprecated] : [], 31764 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemKind"].Function, 31765 insertTextFormat: entry.name !== insertText ? SnippetFormat : void 0 31766 }; 31767 if (_utils_strings_js__WEBPACK_IMPORTED_MODULE_3__["startsWith"](entry.name, ':-')) { 31768 item.sortText = SortTexts.VendorPrefixed; 31769 } 31770 result.items.push(item); 31771 }); 31772 var pseudoElements = this.cssDataManager.getPseudoElements(); 31773 pseudoElements.forEach(function (entry) { 31774 var insertText = moveCursorInsideParenthesis(entry.name); 31775 var item = { 31776 label: entry.name, 31777 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["TextEdit"].replace(_this.getCompletionRange(existingNode), insertText), 31778 documentation: _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["getEntryDescription"](entry, _this.doesSupportMarkdown()), 31779 tags: isDeprecated(entry) ? [_cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemTag"].Deprecated] : [], 31780 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemKind"].Function, 31781 insertTextFormat: entry.name !== insertText ? SnippetFormat : void 0 31782 }; 31783 if (_utils_strings_js__WEBPACK_IMPORTED_MODULE_3__["startsWith"](entry.name, '::-')) { 31784 item.sortText = SortTexts.VendorPrefixed; 31785 } 31786 result.items.push(item); 31787 }); 31788 if (!isNested) { // show html tags only for top level 31789 for (var _i = 0, _a = _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["html5Tags"]; _i < _a.length; _i++) { 31790 var entry = _a[_i]; 31791 result.items.push({ 31792 label: entry, 31793 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["TextEdit"].replace(this.getCompletionRange(existingNode), entry), 31794 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemKind"].Keyword 31795 }); 31796 } 31797 for (var _b = 0, _c = _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["svgElements"]; _b < _c.length; _b++) { 31798 var entry = _c[_b]; 31799 result.items.push({ 31800 label: entry, 31801 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["TextEdit"].replace(this.getCompletionRange(existingNode), entry), 31802 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemKind"].Keyword 31803 }); 31804 } 31805 } 31806 var visited = {}; 31807 visited[this.currentWord] = true; 31808 var docText = this.textDocument.getText(); 31809 this.styleSheet.accept(function (n) { 31810 if (n.type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].SimpleSelector && n.length > 0) { 31811 var selector = docText.substr(n.offset, n.length); 31812 if (selector.charAt(0) === '.' && !visited[selector]) { 31813 visited[selector] = true; 31814 result.items.push({ 31815 label: selector, 31816 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["TextEdit"].replace(_this.getCompletionRange(existingNode), selector), 31817 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemKind"].Keyword 31818 }); 31819 } 31820 return false; 31821 } 31822 return true; 31823 }); 31824 if (ruleSet && ruleSet.isNested()) { 31825 var selector = ruleSet.getSelectors().findFirstChildBeforeOffset(this.offset); 31826 if (selector && ruleSet.getSelectors().getChildren().indexOf(selector) === 0) { 31827 this.getPropertyProposals(null, result); 31828 } 31829 } 31830 return result; 31831 }; 31832 CSSCompletion.prototype.getCompletionsForDeclarations = function (declarations, result) { 31833 if (!declarations || this.offset === declarations.offset) { // incomplete nodes 31834 return result; 31835 } 31836 var node = declarations.findFirstChildBeforeOffset(this.offset); 31837 if (!node) { 31838 return this.getCompletionsForDeclarationProperty(null, result); 31839 } 31840 if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["AbstractDeclaration"]) { 31841 var declaration = node; 31842 if (!Object(_utils_objects_js__WEBPACK_IMPORTED_MODULE_6__["isDefined"])(declaration.colonPosition) || this.offset <= declaration.colonPosition) { 31843 // complete property 31844 return this.getCompletionsForDeclarationProperty(declaration, result); 31845 } 31846 else if ((Object(_utils_objects_js__WEBPACK_IMPORTED_MODULE_6__["isDefined"])(declaration.semicolonPosition) && declaration.semicolonPosition < this.offset)) { 31847 if (this.offset === declaration.semicolonPosition + 1) { 31848 return result; // don't show new properties right after semicolon (see Bug 15421:[intellisense] [css] Be less aggressive when manually typing CSS) 31849 } 31850 // complete next property 31851 return this.getCompletionsForDeclarationProperty(null, result); 31852 } 31853 if (declaration instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["Declaration"]) { 31854 // complete value 31855 return this.getCompletionsForDeclarationValue(declaration, result); 31856 } 31857 } 31858 else if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["ExtendsReference"]) { 31859 this.getCompletionsForExtendsReference(node, null, result); 31860 } 31861 else if (this.currentWord && this.currentWord[0] === '@') { 31862 this.getCompletionsForDeclarationProperty(null, result); 31863 } 31864 else if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["RuleSet"]) { 31865 this.getCompletionsForDeclarationProperty(null, result); 31866 } 31867 return result; 31868 }; 31869 CSSCompletion.prototype.getCompletionsForVariableDeclaration = function (declaration, result) { 31870 if (this.offset && Object(_utils_objects_js__WEBPACK_IMPORTED_MODULE_6__["isDefined"])(declaration.colonPosition) && this.offset > declaration.colonPosition) { 31871 this.getVariableProposals(declaration.getValue(), result); 31872 } 31873 return result; 31874 }; 31875 CSSCompletion.prototype.getCompletionsForExpression = function (expression, result) { 31876 var parent = expression.getParent(); 31877 if (parent instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["FunctionArgument"]) { 31878 this.getCompletionsForFunctionArgument(parent, parent.getParent(), result); 31879 return result; 31880 } 31881 var declaration = expression.findParent(_parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].Declaration); 31882 if (!declaration) { 31883 this.getTermProposals(undefined, null, result); 31884 return result; 31885 } 31886 var node = expression.findChildAtOffset(this.offset, true); 31887 if (!node) { 31888 return this.getCompletionsForDeclarationValue(declaration, result); 31889 } 31890 if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NumericValue"] || node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["Identifier"]) { 31891 return this.getCompletionsForDeclarationValue(declaration, result); 31892 } 31893 return result; 31894 }; 31895 CSSCompletion.prototype.getCompletionsForFunctionArgument = function (arg, func, result) { 31896 var identifier = func.getIdentifier(); 31897 if (identifier && identifier.matches('var')) { 31898 if (!func.getArguments().hasChildren() || func.getArguments().getChild(0) === arg) { 31899 this.getVariableProposalsForCSSVarFunction(result); 31900 } 31901 } 31902 return result; 31903 }; 31904 CSSCompletion.prototype.getCompletionsForFunctionDeclaration = function (decl, result) { 31905 var declarations = decl.getDeclarations(); 31906 if (declarations && this.offset > declarations.offset && this.offset < declarations.end) { 31907 this.getTermProposals(undefined, null, result); 31908 } 31909 return result; 31910 }; 31911 CSSCompletion.prototype.getCompletionsForMixinReference = function (ref, result) { 31912 var _this = this; 31913 var allMixins = this.getSymbolContext().findSymbolsAtOffset(this.offset, _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["ReferenceType"].Mixin); 31914 for (var _i = 0, allMixins_1 = allMixins; _i < allMixins_1.length; _i++) { 31915 var mixinSymbol = allMixins_1[_i]; 31916 if (mixinSymbol.node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["MixinDeclaration"]) { 31917 result.items.push(this.makeTermProposal(mixinSymbol, mixinSymbol.node.getParameters(), null)); 31918 } 31919 } 31920 var identifierNode = ref.getIdentifier() || null; 31921 this.completionParticipants.forEach(function (participant) { 31922 if (participant.onCssMixinReference) { 31923 participant.onCssMixinReference({ 31924 mixinName: _this.currentWord, 31925 range: _this.getCompletionRange(identifierNode) 31926 }); 31927 } 31928 }); 31929 return result; 31930 }; 31931 CSSCompletion.prototype.getTermProposals = function (entry, existingNode, result) { 31932 var allFunctions = this.getSymbolContext().findSymbolsAtOffset(this.offset, _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["ReferenceType"].Function); 31933 for (var _i = 0, allFunctions_1 = allFunctions; _i < allFunctions_1.length; _i++) { 31934 var functionSymbol = allFunctions_1[_i]; 31935 if (functionSymbol.node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["FunctionDeclaration"]) { 31936 result.items.push(this.makeTermProposal(functionSymbol, functionSymbol.node.getParameters(), existingNode)); 31937 } 31938 } 31939 return result; 31940 }; 31941 CSSCompletion.prototype.makeTermProposal = function (symbol, parameters, existingNode) { 31942 var decl = symbol.node; 31943 var params = parameters.getChildren().map(function (c) { 31944 return (c instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["FunctionParameter"]) ? c.getName() : c.getText(); 31945 }); 31946 var insertText = symbol.name + '(' + params.map(function (p, index) { return '${' + (index + 1) + ':' + p + '}'; }).join(', ') + ')'; 31947 return { 31948 label: symbol.name, 31949 detail: symbol.name + '(' + params.join(', ') + ')', 31950 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["TextEdit"].replace(this.getCompletionRange(existingNode), insertText), 31951 insertTextFormat: SnippetFormat, 31952 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["CompletionItemKind"].Function, 31953 sortText: SortTexts.Term 31954 }; 31955 }; 31956 CSSCompletion.prototype.getCompletionsForSupportsCondition = function (supportsCondition, result) { 31957 var child = supportsCondition.findFirstChildBeforeOffset(this.offset); 31958 if (child) { 31959 if (child instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["Declaration"]) { 31960 if (!Object(_utils_objects_js__WEBPACK_IMPORTED_MODULE_6__["isDefined"])(child.colonPosition) || this.offset <= child.colonPosition) { 31961 return this.getCompletionsForDeclarationProperty(child, result); 31962 } 31963 else { 31964 return this.getCompletionsForDeclarationValue(child, result); 31965 } 31966 } 31967 else if (child instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["SupportsCondition"]) { 31968 return this.getCompletionsForSupportsCondition(child, result); 31969 } 31970 } 31971 if (Object(_utils_objects_js__WEBPACK_IMPORTED_MODULE_6__["isDefined"])(supportsCondition.lParent) && this.offset > supportsCondition.lParent && (!Object(_utils_objects_js__WEBPACK_IMPORTED_MODULE_6__["isDefined"])(supportsCondition.rParent) || this.offset <= supportsCondition.rParent)) { 31972 return this.getCompletionsForDeclarationProperty(null, result); 31973 } 31974 return result; 31975 }; 31976 CSSCompletion.prototype.getCompletionsForSupports = function (supports, result) { 31977 var declarations = supports.getDeclarations(); 31978 var inInCondition = !declarations || this.offset <= declarations.offset; 31979 if (inInCondition) { 31980 var child = supports.findFirstChildBeforeOffset(this.offset); 31981 if (child instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["SupportsCondition"]) { 31982 return this.getCompletionsForSupportsCondition(child, result); 31983 } 31984 return result; 31985 } 31986 return this.getCompletionForTopLevel(result); 31987 }; 31988 CSSCompletion.prototype.getCompletionsForExtendsReference = function (extendsRef, existingNode, result) { 31989 return result; 31990 }; 31991 CSSCompletion.prototype.getCompletionForUriLiteralValue = function (uriLiteralNode, result) { 31992 var uriValue; 31993 var position; 31994 var range; 31995 // No children, empty value 31996 if (!uriLiteralNode.hasChildren()) { 31997 uriValue = ''; 31998 position = this.position; 31999 var emptyURIValuePosition = this.textDocument.positionAt(uriLiteralNode.offset + 'url('.length); 32000 range = _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["Range"].create(emptyURIValuePosition, emptyURIValuePosition); 32001 } 32002 else { 32003 var uriValueNode = uriLiteralNode.getChild(0); 32004 uriValue = uriValueNode.getText(); 32005 position = this.position; 32006 range = this.getCompletionRange(uriValueNode); 32007 } 32008 this.completionParticipants.forEach(function (participant) { 32009 if (participant.onCssURILiteralValue) { 32010 participant.onCssURILiteralValue({ 32011 uriValue: uriValue, 32012 position: position, 32013 range: range 32014 }); 32015 } 32016 }); 32017 return result; 32018 }; 32019 CSSCompletion.prototype.getCompletionForImportPath = function (importPathNode, result) { 32020 var _this = this; 32021 this.completionParticipants.forEach(function (participant) { 32022 if (participant.onCssImportPath) { 32023 participant.onCssImportPath({ 32024 pathValue: importPathNode.getText(), 32025 position: _this.position, 32026 range: _this.getCompletionRange(importPathNode) 32027 }); 32028 } 32029 }); 32030 return result; 32031 }; 32032 CSSCompletion.prototype.doesSupportMarkdown = function () { 32033 var _a, _b, _c; 32034 if (!Object(_utils_objects_js__WEBPACK_IMPORTED_MODULE_6__["isDefined"])(this.supportsMarkdown)) { 32035 if (!Object(_utils_objects_js__WEBPACK_IMPORTED_MODULE_6__["isDefined"])(this.lsOptions.clientCapabilities)) { 32036 this.supportsMarkdown = true; 32037 return this.supportsMarkdown; 32038 } 32039 var documentationFormat = (_c = (_b = (_a = this.lsOptions.clientCapabilities.textDocument) === null || _a === void 0 ? void 0 : _a.completion) === null || _b === void 0 ? void 0 : _b.completionItem) === null || _c === void 0 ? void 0 : _c.documentationFormat; 32040 this.supportsMarkdown = Array.isArray(documentationFormat) && documentationFormat.indexOf(_cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["MarkupKind"].Markdown) !== -1; 32041 } 32042 return this.supportsMarkdown; 32043 }; 32044 return CSSCompletion; 32045}()); 32046 32047function isDeprecated(entry) { 32048 if (entry.status && (entry.status === 'nonstandard' || entry.status === 'obsolete')) { 32049 return true; 32050 } 32051 return false; 32052} 32053/** 32054 * Rank number should all be same length strings 32055 */ 32056function computeRankNumber(n) { 32057 var nstr = n.toString(); 32058 switch (nstr.length) { 32059 case 4: 32060 return nstr; 32061 case 3: 32062 return '0' + nstr; 32063 case 2: 32064 return '00' + nstr; 32065 case 1: 32066 return '000' + nstr; 32067 default: 32068 return '0000'; 32069 } 32070} 32071var Set = /** @class */ (function () { 32072 function Set() { 32073 this.entries = {}; 32074 } 32075 Set.prototype.add = function (entry) { 32076 this.entries[entry] = true; 32077 }; 32078 Set.prototype.getEntries = function () { 32079 return Object.keys(this.entries); 32080 }; 32081 return Set; 32082}()); 32083function moveCursorInsideParenthesis(text) { 32084 return text.replace(/\(\)$/, "($1)"); 32085} 32086function collectValues(styleSheet, declaration) { 32087 var fullPropertyName = declaration.getFullPropertyName(); 32088 var entries = new Set(); 32089 function visitValue(node) { 32090 if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["Identifier"] || node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NumericValue"] || node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["HexColorValue"]) { 32091 entries.add(node.getText()); 32092 } 32093 return true; 32094 } 32095 function matchesProperty(decl) { 32096 var propertyName = decl.getFullPropertyName(); 32097 return fullPropertyName === propertyName; 32098 } 32099 function vistNode(node) { 32100 if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["Declaration"] && node !== declaration) { 32101 if (matchesProperty(node)) { 32102 var value = node.getValue(); 32103 if (value) { 32104 value.accept(visitValue); 32105 } 32106 } 32107 } 32108 return true; 32109 } 32110 styleSheet.accept(vistNode); 32111 return entries; 32112} 32113var ColorValueCollector = /** @class */ (function () { 32114 function ColorValueCollector(entries, currentOffset) { 32115 this.entries = entries; 32116 this.currentOffset = currentOffset; 32117 // nothing to do 32118 } 32119 ColorValueCollector.prototype.visitNode = function (node) { 32120 if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["HexColorValue"] || (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["Function"] && _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["isColorConstructor"](node))) { 32121 if (this.currentOffset < node.offset || node.end < this.currentOffset) { 32122 this.entries.add(node.getText()); 32123 } 32124 } 32125 return true; 32126 }; 32127 return ColorValueCollector; 32128}()); 32129function getCurrentWord(document, offset) { 32130 var i = offset - 1; 32131 var text = document.getText(); 32132 while (i >= 0 && ' \t\n\r":{[()]},*>+'.indexOf(text.charAt(i)) === -1) { 32133 i--; 32134 } 32135 return text.substring(i + 1, offset); 32136} 32137function isColorString(s) { 32138 // From https://stackoverflow.com/questions/8027423/how-to-check-if-a-string-is-a-valid-hex-color-representation/8027444 32139 return (s.toLowerCase() in _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_2__["colors"]) || /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(s); 32140} 32141 32142 32143/***/ }), 32144 32145/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/cssFolding.js": 32146/*!****************************************************************************************************************!*\ 32147 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/cssFolding.js ***! 32148 \****************************************************************************************************************/ 32149/*! exports provided: getFoldingRanges */ 32150/***/ (function(module, __webpack_exports__, __webpack_require__) { 32151 32152"use strict"; 32153__webpack_require__.r(__webpack_exports__); 32154/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getFoldingRanges", function() { return getFoldingRanges; }); 32155/* harmony import */ var _parser_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../parser/cssScanner.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssScanner.js"); 32156/* harmony import */ var _parser_scssScanner_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../parser/scssScanner.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/scssScanner.js"); 32157/* harmony import */ var _parser_lessScanner_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../parser/lessScanner.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/lessScanner.js"); 32158/*--------------------------------------------------------------------------------------------- 32159 * Copyright (c) Microsoft Corporation. All rights reserved. 32160 * Licensed under the MIT License. See License.txt in the project root for license information. 32161 *--------------------------------------------------------------------------------------------*/ 32162 32163 32164 32165 32166function getFoldingRanges(document, context) { 32167 var ranges = computeFoldingRanges(document); 32168 return limitFoldingRanges(ranges, context); 32169} 32170function computeFoldingRanges(document) { 32171 function getStartLine(t) { 32172 return document.positionAt(t.offset).line; 32173 } 32174 function getEndLine(t) { 32175 return document.positionAt(t.offset + t.len).line; 32176 } 32177 function getScanner() { 32178 switch (document.languageId) { 32179 case 'scss': 32180 return new _parser_scssScanner_js__WEBPACK_IMPORTED_MODULE_1__["SCSSScanner"](); 32181 case 'less': 32182 return new _parser_lessScanner_js__WEBPACK_IMPORTED_MODULE_2__["LESSScanner"](); 32183 default: 32184 return new _parser_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["Scanner"](); 32185 } 32186 } 32187 function tokenToRange(t, kind) { 32188 var startLine = getStartLine(t); 32189 var endLine = getEndLine(t); 32190 if (startLine !== endLine) { 32191 return { 32192 startLine: startLine, 32193 endLine: endLine, 32194 kind: kind 32195 }; 32196 } 32197 else { 32198 return null; 32199 } 32200 } 32201 var ranges = []; 32202 var delimiterStack = []; 32203 var scanner = getScanner(); 32204 scanner.ignoreComment = false; 32205 scanner.setSource(document.getText()); 32206 var token = scanner.scan(); 32207 var prevToken = null; 32208 var _loop_1 = function () { 32209 switch (token.type) { 32210 case _parser_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].CurlyL: 32211 case _parser_scssScanner_js__WEBPACK_IMPORTED_MODULE_1__["InterpolationFunction"]: 32212 { 32213 delimiterStack.push({ line: getStartLine(token), type: 'brace', isStart: true }); 32214 break; 32215 } 32216 case _parser_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].CurlyR: { 32217 if (delimiterStack.length !== 0) { 32218 var prevDelimiter = popPrevStartDelimiterOfType(delimiterStack, 'brace'); 32219 if (!prevDelimiter) { 32220 break; 32221 } 32222 var endLine = getEndLine(token); 32223 if (prevDelimiter.type === 'brace') { 32224 /** 32225 * Other than the case when curly brace is not on a new line by itself, for example 32226 * .foo { 32227 * color: red; } 32228 * Use endLine minus one to show ending curly brace 32229 */ 32230 if (prevToken && getEndLine(prevToken) !== endLine) { 32231 endLine--; 32232 } 32233 if (prevDelimiter.line !== endLine) { 32234 ranges.push({ 32235 startLine: prevDelimiter.line, 32236 endLine: endLine, 32237 kind: undefined 32238 }); 32239 } 32240 } 32241 } 32242 break; 32243 } 32244 /** 32245 * In CSS, there is no single line comment prefixed with // 32246 * All comments are marked as `Comment` 32247 */ 32248 case _parser_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Comment: { 32249 var commentRegionMarkerToDelimiter_1 = function (marker) { 32250 if (marker === '#region') { 32251 return { line: getStartLine(token), type: 'comment', isStart: true }; 32252 } 32253 else { 32254 return { line: getEndLine(token), type: 'comment', isStart: false }; 32255 } 32256 }; 32257 var getCurrDelimiter = function (token) { 32258 var matches = token.text.match(/^\s*\/\*\s*(#region|#endregion)\b\s*(.*?)\s*\*\//); 32259 if (matches) { 32260 return commentRegionMarkerToDelimiter_1(matches[1]); 32261 } 32262 else if (document.languageId === 'scss' || document.languageId === 'less') { 32263 var matches_1 = token.text.match(/^\s*\/\/\s*(#region|#endregion)\b\s*(.*?)\s*/); 32264 if (matches_1) { 32265 return commentRegionMarkerToDelimiter_1(matches_1[1]); 32266 } 32267 } 32268 return null; 32269 }; 32270 var currDelimiter = getCurrDelimiter(token); 32271 // /* */ comment region folding 32272 // All #region and #endregion cases 32273 if (currDelimiter) { 32274 if (currDelimiter.isStart) { 32275 delimiterStack.push(currDelimiter); 32276 } 32277 else { 32278 var prevDelimiter = popPrevStartDelimiterOfType(delimiterStack, 'comment'); 32279 if (!prevDelimiter) { 32280 break; 32281 } 32282 if (prevDelimiter.type === 'comment') { 32283 if (prevDelimiter.line !== currDelimiter.line) { 32284 ranges.push({ 32285 startLine: prevDelimiter.line, 32286 endLine: currDelimiter.line, 32287 kind: 'region' 32288 }); 32289 } 32290 } 32291 } 32292 } 32293 // Multiline comment case 32294 else { 32295 var range = tokenToRange(token, 'comment'); 32296 if (range) { 32297 ranges.push(range); 32298 } 32299 } 32300 break; 32301 } 32302 } 32303 prevToken = token; 32304 token = scanner.scan(); 32305 }; 32306 while (token.type !== _parser_cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].EOF) { 32307 _loop_1(); 32308 } 32309 return ranges; 32310} 32311function popPrevStartDelimiterOfType(stack, type) { 32312 if (stack.length === 0) { 32313 return null; 32314 } 32315 for (var i = stack.length - 1; i >= 0; i--) { 32316 if (stack[i].type === type && stack[i].isStart) { 32317 return stack.splice(i, 1)[0]; 32318 } 32319 } 32320 return null; 32321} 32322/** 32323 * - Sort regions 32324 * - Remove invalid regions (intersections) 32325 * - If limit exceeds, only return `rangeLimit` amount of ranges 32326 */ 32327function limitFoldingRanges(ranges, context) { 32328 var maxRanges = context && context.rangeLimit || Number.MAX_VALUE; 32329 var sortedRanges = ranges.sort(function (r1, r2) { 32330 var diff = r1.startLine - r2.startLine; 32331 if (diff === 0) { 32332 diff = r1.endLine - r2.endLine; 32333 } 32334 return diff; 32335 }); 32336 var validRanges = []; 32337 var prevEndLine = -1; 32338 sortedRanges.forEach(function (r) { 32339 if (!(r.startLine < prevEndLine && prevEndLine < r.endLine)) { 32340 validRanges.push(r); 32341 prevEndLine = r.endLine; 32342 } 32343 }); 32344 if (validRanges.length < maxRanges) { 32345 return validRanges; 32346 } 32347 else { 32348 return validRanges.slice(0, maxRanges); 32349 } 32350} 32351 32352 32353/***/ }), 32354 32355/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/cssHover.js": 32356/*!**************************************************************************************************************!*\ 32357 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/cssHover.js ***! 32358 \**************************************************************************************************************/ 32359/*! exports provided: CSSHover */ 32360/***/ (function(module, __webpack_exports__, __webpack_require__) { 32361 32362"use strict"; 32363__webpack_require__.r(__webpack_exports__); 32364/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CSSHover", function() { return CSSHover; }); 32365/* harmony import */ var _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../parser/cssNodes.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssNodes.js"); 32366/* harmony import */ var _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../languageFacts/facts.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/languageFacts/facts.js"); 32367/* harmony import */ var _selectorPrinting_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./selectorPrinting.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/selectorPrinting.js"); 32368/* harmony import */ var _utils_strings_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/strings.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/utils/strings.js"); 32369/* harmony import */ var _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../cssLanguageTypes.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/cssLanguageTypes.js"); 32370/* harmony import */ var _utils_objects_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/objects.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/utils/objects.js"); 32371/*--------------------------------------------------------------------------------------------- 32372 * Copyright (c) Microsoft Corporation. All rights reserved. 32373 * Licensed under the MIT License. See License.txt in the project root for license information. 32374 *--------------------------------------------------------------------------------------------*/ 32375 32376 32377 32378 32379 32380 32381 32382var CSSHover = /** @class */ (function () { 32383 function CSSHover(clientCapabilities, cssDataManager) { 32384 this.clientCapabilities = clientCapabilities; 32385 this.cssDataManager = cssDataManager; 32386 this.selectorPrinting = new _selectorPrinting_js__WEBPACK_IMPORTED_MODULE_2__["SelectorPrinting"](cssDataManager); 32387 } 32388 CSSHover.prototype.doHover = function (document, position, stylesheet) { 32389 function getRange(node) { 32390 return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["Range"].create(document.positionAt(node.offset), document.positionAt(node.end)); 32391 } 32392 var offset = document.offsetAt(position); 32393 var nodepath = _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["getNodePath"](stylesheet, offset); 32394 /** 32395 * nodepath is top-down 32396 * Build up the hover by appending inner node's information 32397 */ 32398 var hover = null; 32399 for (var i = 0; i < nodepath.length; i++) { 32400 var node = nodepath[i]; 32401 if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["Selector"]) { 32402 hover = { 32403 contents: this.selectorPrinting.selectorToMarkedString(node), 32404 range: getRange(node) 32405 }; 32406 break; 32407 } 32408 if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["SimpleSelector"]) { 32409 /** 32410 * Some sass specific at rules such as `@at-root` are parsed as `SimpleSelector` 32411 */ 32412 if (!Object(_utils_strings_js__WEBPACK_IMPORTED_MODULE_3__["startsWith"])(node.getText(), '@')) { 32413 hover = { 32414 contents: this.selectorPrinting.simpleSelectorToMarkedString(node), 32415 range: getRange(node) 32416 }; 32417 } 32418 break; 32419 } 32420 if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["Declaration"]) { 32421 var propertyName = node.getFullPropertyName(); 32422 var entry = this.cssDataManager.getProperty(propertyName); 32423 if (entry) { 32424 var contents = _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_1__["getEntryDescription"](entry, this.doesSupportMarkdown()); 32425 if (contents) { 32426 hover = { 32427 contents: contents, 32428 range: getRange(node) 32429 }; 32430 } 32431 else { 32432 hover = null; 32433 } 32434 } 32435 continue; 32436 } 32437 if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["UnknownAtRule"]) { 32438 var atRuleName = node.getText(); 32439 var entry = this.cssDataManager.getAtDirective(atRuleName); 32440 if (entry) { 32441 var contents = _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_1__["getEntryDescription"](entry, this.doesSupportMarkdown()); 32442 if (contents) { 32443 hover = { 32444 contents: contents, 32445 range: getRange(node) 32446 }; 32447 } 32448 else { 32449 hover = null; 32450 } 32451 } 32452 continue; 32453 } 32454 if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["Node"] && node.type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].PseudoSelector) { 32455 var selectorName = node.getText(); 32456 var entry = selectorName.slice(0, 2) === '::' 32457 ? this.cssDataManager.getPseudoElement(selectorName) 32458 : this.cssDataManager.getPseudoClass(selectorName); 32459 if (entry) { 32460 var contents = _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_1__["getEntryDescription"](entry, this.doesSupportMarkdown()); 32461 if (contents) { 32462 hover = { 32463 contents: contents, 32464 range: getRange(node) 32465 }; 32466 } 32467 else { 32468 hover = null; 32469 } 32470 } 32471 continue; 32472 } 32473 } 32474 if (hover) { 32475 hover.contents = this.convertContents(hover.contents); 32476 } 32477 return hover; 32478 }; 32479 CSSHover.prototype.convertContents = function (contents) { 32480 if (!this.doesSupportMarkdown()) { 32481 if (typeof contents === 'string') { 32482 return contents; 32483 } 32484 // MarkupContent 32485 else if ('kind' in contents) { 32486 return { 32487 kind: 'plaintext', 32488 value: contents.value 32489 }; 32490 } 32491 // MarkedString[] 32492 else if (Array.isArray(contents)) { 32493 return contents.map(function (c) { 32494 return typeof c === 'string' ? c : c.value; 32495 }); 32496 } 32497 // MarkedString 32498 else { 32499 return contents.value; 32500 } 32501 } 32502 return contents; 32503 }; 32504 CSSHover.prototype.doesSupportMarkdown = function () { 32505 if (!Object(_utils_objects_js__WEBPACK_IMPORTED_MODULE_5__["isDefined"])(this.supportsMarkdown)) { 32506 if (!Object(_utils_objects_js__WEBPACK_IMPORTED_MODULE_5__["isDefined"])(this.clientCapabilities)) { 32507 this.supportsMarkdown = true; 32508 return this.supportsMarkdown; 32509 } 32510 var hover = this.clientCapabilities.textDocument && this.clientCapabilities.textDocument.hover; 32511 this.supportsMarkdown = hover && hover.contentFormat && Array.isArray(hover.contentFormat) && hover.contentFormat.indexOf(_cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_4__["MarkupKind"].Markdown) !== -1; 32512 } 32513 return this.supportsMarkdown; 32514 }; 32515 return CSSHover; 32516}()); 32517 32518 32519 32520/***/ }), 32521 32522/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/cssNavigation.js": 32523/*!*******************************************************************************************************************!*\ 32524 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/cssNavigation.js ***! 32525 \*******************************************************************************************************************/ 32526/*! exports provided: CSSNavigation */ 32527/***/ (function(module, __webpack_exports__, __webpack_require__) { 32528 32529"use strict"; 32530__webpack_require__.r(__webpack_exports__); 32531/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CSSNavigation", function() { return CSSNavigation; }); 32532/* harmony import */ var _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../cssLanguageTypes.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/cssLanguageTypes.js"); 32533/* harmony import */ var _fillers_vscode_nls_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../fillers/vscode-nls.js */ "./node_modules/monaco-editor/esm/vs/language/css/fillers/vscode-nls.js"); 32534/* harmony import */ var _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../parser/cssNodes.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssNodes.js"); 32535/* harmony import */ var _parser_cssSymbolScope_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../parser/cssSymbolScope.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssSymbolScope.js"); 32536/* harmony import */ var _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../languageFacts/facts.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/languageFacts/facts.js"); 32537/* harmony import */ var _utils_strings_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/strings.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/utils/strings.js"); 32538/* harmony import */ var _utils_resources_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/resources.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/utils/resources.js"); 32539/*--------------------------------------------------------------------------------------------- 32540 * Copyright (c) Microsoft Corporation. All rights reserved. 32541 * Licensed under the MIT License. See License.txt in the project root for license information. 32542 *--------------------------------------------------------------------------------------------*/ 32543 32544var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { 32545 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } 32546 return new (P || (P = Promise))(function (resolve, reject) { 32547 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } 32548 function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } 32549 function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } 32550 step((generator = generator.apply(thisArg, _arguments || [])).next()); 32551 }); 32552}; 32553var __generator = (undefined && undefined.__generator) || function (thisArg, body) { 32554 var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; 32555 return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; 32556 function verb(n) { return function (v) { return step([n, v]); }; } 32557 function step(op) { 32558 if (f) throw new TypeError("Generator is already executing."); 32559 while (_) try { 32560 if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; 32561 if (y = 0, t) op = [op[0] & 2, t.value]; 32562 switch (op[0]) { 32563 case 0: case 1: t = op; break; 32564 case 4: _.label++; return { value: op[1], done: false }; 32565 case 5: _.label++; y = op[1]; op = [0]; continue; 32566 case 7: op = _.ops.pop(); _.trys.pop(); continue; 32567 default: 32568 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } 32569 if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } 32570 if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } 32571 if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } 32572 if (t[2]) _.ops.pop(); 32573 _.trys.pop(); continue; 32574 } 32575 op = body.call(thisArg, _); 32576 } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } 32577 if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; 32578 } 32579}; 32580 32581 32582 32583 32584 32585 32586 32587var localize = _fillers_vscode_nls_js__WEBPACK_IMPORTED_MODULE_1__["loadMessageBundle"](); 32588var CSSNavigation = /** @class */ (function () { 32589 function CSSNavigation(fileSystemProvider) { 32590 this.fileSystemProvider = fileSystemProvider; 32591 } 32592 CSSNavigation.prototype.findDefinition = function (document, position, stylesheet) { 32593 var symbols = new _parser_cssSymbolScope_js__WEBPACK_IMPORTED_MODULE_3__["Symbols"](stylesheet); 32594 var offset = document.offsetAt(position); 32595 var node = _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["getNodeAtOffset"](stylesheet, offset); 32596 if (!node) { 32597 return null; 32598 } 32599 var symbol = symbols.findSymbolFromNode(node); 32600 if (!symbol) { 32601 return null; 32602 } 32603 return { 32604 uri: document.uri, 32605 range: getRange(symbol.node, document) 32606 }; 32607 }; 32608 CSSNavigation.prototype.findReferences = function (document, position, stylesheet) { 32609 var highlights = this.findDocumentHighlights(document, position, stylesheet); 32610 return highlights.map(function (h) { 32611 return { 32612 uri: document.uri, 32613 range: h.range 32614 }; 32615 }); 32616 }; 32617 CSSNavigation.prototype.findDocumentHighlights = function (document, position, stylesheet) { 32618 var result = []; 32619 var offset = document.offsetAt(position); 32620 var node = _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["getNodeAtOffset"](stylesheet, offset); 32621 if (!node || node.type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["NodeType"].Stylesheet || node.type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["NodeType"].Declarations) { 32622 return result; 32623 } 32624 if (node.type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["NodeType"].Identifier && node.parent && node.parent.type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["NodeType"].ClassSelector) { 32625 node = node.parent; 32626 } 32627 var symbols = new _parser_cssSymbolScope_js__WEBPACK_IMPORTED_MODULE_3__["Symbols"](stylesheet); 32628 var symbol = symbols.findSymbolFromNode(node); 32629 var name = node.getText(); 32630 stylesheet.accept(function (candidate) { 32631 if (symbol) { 32632 if (symbols.matchesSymbol(candidate, symbol)) { 32633 result.push({ 32634 kind: getHighlightKind(candidate), 32635 range: getRange(candidate, document) 32636 }); 32637 return false; 32638 } 32639 } 32640 else if (node && node.type === candidate.type && candidate.matches(name)) { 32641 // Same node type and data 32642 result.push({ 32643 kind: getHighlightKind(candidate), 32644 range: getRange(candidate, document) 32645 }); 32646 } 32647 return true; 32648 }); 32649 return result; 32650 }; 32651 CSSNavigation.prototype.isRawStringDocumentLinkNode = function (node) { 32652 return node.type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["NodeType"].Import; 32653 }; 32654 CSSNavigation.prototype.findDocumentLinks = function (document, stylesheet, documentContext) { 32655 var links = this.findUnresolvedLinks(document, stylesheet); 32656 for (var i = 0; i < links.length; i++) { 32657 var target = links[i].target; 32658 if (target && !(/^\w+:\/\//g.test(target))) { 32659 var resolved = documentContext.resolveReference(target, document.uri); 32660 if (resolved) { 32661 links[i].target = resolved; 32662 } 32663 } 32664 } 32665 return links; 32666 }; 32667 CSSNavigation.prototype.findDocumentLinks2 = function (document, stylesheet, documentContext) { 32668 return __awaiter(this, void 0, void 0, function () { 32669 var links, resolvedLinks, _i, links_1, link, target, resolvedTarget; 32670 return __generator(this, function (_a) { 32671 switch (_a.label) { 32672 case 0: 32673 links = this.findUnresolvedLinks(document, stylesheet); 32674 resolvedLinks = []; 32675 _i = 0, links_1 = links; 32676 _a.label = 1; 32677 case 1: 32678 if (!(_i < links_1.length)) return [3 /*break*/, 5]; 32679 link = links_1[_i]; 32680 target = link.target; 32681 if (!(target && !(/^\w+:\/\//g.test(target)))) return [3 /*break*/, 3]; 32682 return [4 /*yield*/, this.resolveRelativeReference(target, document.uri, documentContext)]; 32683 case 2: 32684 resolvedTarget = _a.sent(); 32685 if (resolvedTarget !== undefined) { 32686 link.target = resolvedTarget; 32687 resolvedLinks.push(link); 32688 } 32689 return [3 /*break*/, 4]; 32690 case 3: 32691 resolvedLinks.push(link); 32692 _a.label = 4; 32693 case 4: 32694 _i++; 32695 return [3 /*break*/, 1]; 32696 case 5: return [2 /*return*/, resolvedLinks]; 32697 } 32698 }); 32699 }); 32700 }; 32701 CSSNavigation.prototype.findUnresolvedLinks = function (document, stylesheet) { 32702 var _this = this; 32703 var result = []; 32704 var collect = function (uriStringNode) { 32705 var rawUri = uriStringNode.getText(); 32706 var range = getRange(uriStringNode, document); 32707 // Make sure the range is not empty 32708 if (range.start.line === range.end.line && range.start.character === range.end.character) { 32709 return; 32710 } 32711 if (Object(_utils_strings_js__WEBPACK_IMPORTED_MODULE_5__["startsWith"])(rawUri, "'") || Object(_utils_strings_js__WEBPACK_IMPORTED_MODULE_5__["startsWith"])(rawUri, "\"")) { 32712 rawUri = rawUri.slice(1, -1); 32713 } 32714 result.push({ target: rawUri, range: range }); 32715 }; 32716 stylesheet.accept(function (candidate) { 32717 if (candidate.type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["NodeType"].URILiteral) { 32718 var first = candidate.getChild(0); 32719 if (first) { 32720 collect(first); 32721 } 32722 return false; 32723 } 32724 /** 32725 * In @import, it is possible to include links that do not use `url()` 32726 * For example, `@import 'foo.css';` 32727 */ 32728 if (candidate.parent && _this.isRawStringDocumentLinkNode(candidate.parent)) { 32729 var rawText = candidate.getText(); 32730 if (Object(_utils_strings_js__WEBPACK_IMPORTED_MODULE_5__["startsWith"])(rawText, "'") || Object(_utils_strings_js__WEBPACK_IMPORTED_MODULE_5__["startsWith"])(rawText, "\"")) { 32731 collect(candidate); 32732 } 32733 return false; 32734 } 32735 return true; 32736 }); 32737 return result; 32738 }; 32739 CSSNavigation.prototype.findDocumentSymbols = function (document, stylesheet) { 32740 var result = []; 32741 stylesheet.accept(function (node) { 32742 var entry = { 32743 name: null, 32744 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__["SymbolKind"].Class, 32745 location: null 32746 }; 32747 var locationNode = node; 32748 if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["Selector"]) { 32749 entry.name = node.getText(); 32750 locationNode = node.findAParent(_parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["NodeType"].Ruleset, _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["NodeType"].ExtendsReference); 32751 if (locationNode) { 32752 entry.location = _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__["Location"].create(document.uri, getRange(locationNode, document)); 32753 result.push(entry); 32754 } 32755 return false; 32756 } 32757 else if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["VariableDeclaration"]) { 32758 entry.name = node.getName(); 32759 entry.kind = _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__["SymbolKind"].Variable; 32760 } 32761 else if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["MixinDeclaration"]) { 32762 entry.name = node.getName(); 32763 entry.kind = _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__["SymbolKind"].Method; 32764 } 32765 else if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["FunctionDeclaration"]) { 32766 entry.name = node.getName(); 32767 entry.kind = _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__["SymbolKind"].Function; 32768 } 32769 else if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["Keyframe"]) { 32770 entry.name = localize('literal.keyframes', "@keyframes {0}", node.getName()); 32771 } 32772 else if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["FontFace"]) { 32773 entry.name = localize('literal.fontface', "@font-face"); 32774 } 32775 else if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["Media"]) { 32776 var mediaList = node.getChild(0); 32777 if (mediaList instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["Medialist"]) { 32778 entry.name = '@media ' + mediaList.getText(); 32779 entry.kind = _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__["SymbolKind"].Module; 32780 } 32781 } 32782 if (entry.name) { 32783 entry.location = _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__["Location"].create(document.uri, getRange(locationNode, document)); 32784 result.push(entry); 32785 } 32786 return true; 32787 }); 32788 return result; 32789 }; 32790 CSSNavigation.prototype.findDocumentColors = function (document, stylesheet) { 32791 var result = []; 32792 stylesheet.accept(function (node) { 32793 var colorInfo = getColorInformation(node, document); 32794 if (colorInfo) { 32795 result.push(colorInfo); 32796 } 32797 return true; 32798 }); 32799 return result; 32800 }; 32801 CSSNavigation.prototype.getColorPresentations = function (document, stylesheet, color, range) { 32802 var result = []; 32803 var red256 = Math.round(color.red * 255), green256 = Math.round(color.green * 255), blue256 = Math.round(color.blue * 255); 32804 var label; 32805 if (color.alpha === 1) { 32806 label = "rgb(" + red256 + ", " + green256 + ", " + blue256 + ")"; 32807 } 32808 else { 32809 label = "rgba(" + red256 + ", " + green256 + ", " + blue256 + ", " + color.alpha + ")"; 32810 } 32811 result.push({ label: label, textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__["TextEdit"].replace(range, label) }); 32812 if (color.alpha === 1) { 32813 label = "#" + toTwoDigitHex(red256) + toTwoDigitHex(green256) + toTwoDigitHex(blue256); 32814 } 32815 else { 32816 label = "#" + toTwoDigitHex(red256) + toTwoDigitHex(green256) + toTwoDigitHex(blue256) + toTwoDigitHex(Math.round(color.alpha * 255)); 32817 } 32818 result.push({ label: label, textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__["TextEdit"].replace(range, label) }); 32819 var hsl = Object(_languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_4__["hslFromColor"])(color); 32820 if (hsl.a === 1) { 32821 label = "hsl(" + hsl.h + ", " + Math.round(hsl.s * 100) + "%, " + Math.round(hsl.l * 100) + "%)"; 32822 } 32823 else { 32824 label = "hsla(" + hsl.h + ", " + Math.round(hsl.s * 100) + "%, " + Math.round(hsl.l * 100) + "%, " + hsl.a + ")"; 32825 } 32826 result.push({ label: label, textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__["TextEdit"].replace(range, label) }); 32827 return result; 32828 }; 32829 CSSNavigation.prototype.doRename = function (document, position, newName, stylesheet) { 32830 var _a; 32831 var highlights = this.findDocumentHighlights(document, position, stylesheet); 32832 var edits = highlights.map(function (h) { return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__["TextEdit"].replace(h.range, newName); }); 32833 return { 32834 changes: (_a = {}, _a[document.uri] = edits, _a) 32835 }; 32836 }; 32837 CSSNavigation.prototype.resolveRelativeReference = function (ref, documentUri, documentContext) { 32838 return __awaiter(this, void 0, void 0, function () { 32839 var moduleName, rootFolderUri, documentFolderUri, modulePath, pathWithinModule; 32840 return __generator(this, function (_a) { 32841 switch (_a.label) { 32842 case 0: 32843 if (!(ref[0] === '~' && ref[1] !== '/' && this.fileSystemProvider)) return [3 /*break*/, 3]; 32844 ref = ref.substring(1); 32845 if (!Object(_utils_strings_js__WEBPACK_IMPORTED_MODULE_5__["startsWith"])(documentUri, 'file://')) return [3 /*break*/, 2]; 32846 moduleName = getModuleNameFromPath(ref); 32847 rootFolderUri = documentContext.resolveReference('/', documentUri); 32848 documentFolderUri = Object(_utils_resources_js__WEBPACK_IMPORTED_MODULE_6__["dirname"])(documentUri); 32849 return [4 /*yield*/, this.resolvePathToModule(moduleName, documentFolderUri, rootFolderUri)]; 32850 case 1: 32851 modulePath = _a.sent(); 32852 if (modulePath) { 32853 pathWithinModule = ref.substring(moduleName.length + 1); 32854 return [2 /*return*/, Object(_utils_resources_js__WEBPACK_IMPORTED_MODULE_6__["joinPath"])(modulePath, pathWithinModule)]; 32855 } 32856 _a.label = 2; 32857 case 2: return [2 /*return*/, documentContext.resolveReference(ref, documentUri)]; 32858 case 3: return [2 /*return*/, documentContext.resolveReference(ref, documentUri)]; 32859 } 32860 }); 32861 }); 32862 }; 32863 CSSNavigation.prototype.resolvePathToModule = function (_moduleName, documentFolderUri, rootFolderUri) { 32864 return __awaiter(this, void 0, void 0, function () { 32865 var packPath; 32866 return __generator(this, function (_a) { 32867 switch (_a.label) { 32868 case 0: 32869 packPath = Object(_utils_resources_js__WEBPACK_IMPORTED_MODULE_6__["joinPath"])(documentFolderUri, 'node_modules', _moduleName, 'package.json'); 32870 return [4 /*yield*/, this.fileExists(packPath)]; 32871 case 1: 32872 if (_a.sent()) { 32873 return [2 /*return*/, Object(_utils_resources_js__WEBPACK_IMPORTED_MODULE_6__["dirname"])(packPath)]; 32874 } 32875 else if (rootFolderUri && documentFolderUri.startsWith(rootFolderUri) && (documentFolderUri.length !== rootFolderUri.length)) { 32876 return [2 /*return*/, this.resolvePathToModule(_moduleName, Object(_utils_resources_js__WEBPACK_IMPORTED_MODULE_6__["dirname"])(documentFolderUri), rootFolderUri)]; 32877 } 32878 return [2 /*return*/, undefined]; 32879 } 32880 }); 32881 }); 32882 }; 32883 CSSNavigation.prototype.fileExists = function (uri) { 32884 return __awaiter(this, void 0, void 0, function () { 32885 var stat, err_1; 32886 return __generator(this, function (_a) { 32887 switch (_a.label) { 32888 case 0: 32889 if (!this.fileSystemProvider) { 32890 return [2 /*return*/, false]; 32891 } 32892 _a.label = 1; 32893 case 1: 32894 _a.trys.push([1, 3, , 4]); 32895 return [4 /*yield*/, this.fileSystemProvider.stat(uri)]; 32896 case 2: 32897 stat = _a.sent(); 32898 if (stat.type === _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__["FileType"].Unknown && stat.size === -1) { 32899 return [2 /*return*/, false]; 32900 } 32901 return [2 /*return*/, true]; 32902 case 3: 32903 err_1 = _a.sent(); 32904 return [2 /*return*/, false]; 32905 case 4: return [2 /*return*/]; 32906 } 32907 }); 32908 }); 32909 }; 32910 return CSSNavigation; 32911}()); 32912 32913function getColorInformation(node, document) { 32914 var color = Object(_languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_4__["getColorValue"])(node); 32915 if (color) { 32916 var range = getRange(node, document); 32917 return { color: color, range: range }; 32918 } 32919 return null; 32920} 32921function getRange(node, document) { 32922 return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__["Range"].create(document.positionAt(node.offset), document.positionAt(node.end)); 32923} 32924function getHighlightKind(node) { 32925 if (node.type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["NodeType"].Selector) { 32926 return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__["DocumentHighlightKind"].Write; 32927 } 32928 if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["Identifier"]) { 32929 if (node.parent && node.parent instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["Property"]) { 32930 if (node.isCustomProperty) { 32931 return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__["DocumentHighlightKind"].Write; 32932 } 32933 } 32934 } 32935 if (node.parent) { 32936 switch (node.parent.type) { 32937 case _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["NodeType"].FunctionDeclaration: 32938 case _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["NodeType"].MixinDeclaration: 32939 case _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["NodeType"].Keyframe: 32940 case _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["NodeType"].VariableDeclaration: 32941 case _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["NodeType"].FunctionParameter: 32942 return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__["DocumentHighlightKind"].Write; 32943 } 32944 } 32945 return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__["DocumentHighlightKind"].Read; 32946} 32947function toTwoDigitHex(n) { 32948 var r = n.toString(16); 32949 return r.length !== 2 ? '0' + r : r; 32950} 32951function getModuleNameFromPath(path) { 32952 // If a scoped module (starts with @) then get up until second instance of '/', otherwise get until first instance of '/' 32953 if (path[0] === '@') { 32954 return path.substring(0, path.indexOf('/', path.indexOf('/') + 1)); 32955 } 32956 return path.substring(0, path.indexOf('/')); 32957} 32958 32959 32960/***/ }), 32961 32962/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/cssSelectionRange.js": 32963/*!***********************************************************************************************************************!*\ 32964 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/cssSelectionRange.js ***! 32965 \***********************************************************************************************************************/ 32966/*! exports provided: getSelectionRanges */ 32967/***/ (function(module, __webpack_exports__, __webpack_require__) { 32968 32969"use strict"; 32970__webpack_require__.r(__webpack_exports__); 32971/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSelectionRanges", function() { return getSelectionRanges; }); 32972/* harmony import */ var _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../cssLanguageTypes.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/cssLanguageTypes.js"); 32973/* harmony import */ var _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../parser/cssNodes.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssNodes.js"); 32974/*--------------------------------------------------------------------------------------------- 32975 * Copyright (c) Microsoft Corporation. All rights reserved. 32976 * Licensed under the MIT License. See License.txt in the project root for license information. 32977 *--------------------------------------------------------------------------------------------*/ 32978 32979 32980 32981function getSelectionRanges(document, positions, stylesheet) { 32982 function getSelectionRange(position) { 32983 var applicableRanges = getApplicableRanges(position); 32984 var current = undefined; 32985 for (var index = applicableRanges.length - 1; index >= 0; index--) { 32986 current = _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__["SelectionRange"].create(_cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__["Range"].create(document.positionAt(applicableRanges[index][0]), document.positionAt(applicableRanges[index][1])), current); 32987 } 32988 if (!current) { 32989 current = _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__["SelectionRange"].create(_cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__["Range"].create(position, position)); 32990 } 32991 return current; 32992 } 32993 return positions.map(getSelectionRange); 32994 function getApplicableRanges(position) { 32995 var offset = document.offsetAt(position); 32996 var currNode = stylesheet.findChildAtOffset(offset, true); 32997 if (!currNode) { 32998 return []; 32999 } 33000 var result = []; 33001 while (currNode) { 33002 if (currNode.parent && 33003 currNode.offset === currNode.parent.offset && 33004 currNode.end === currNode.parent.end) { 33005 currNode = currNode.parent; 33006 continue; 33007 } 33008 // The `{ }` part of `.a { }` 33009 if (currNode.type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].Declarations) { 33010 if (offset > currNode.offset && offset < currNode.end) { 33011 // Return `{ }` and the range inside `{` and `}` 33012 result.push([currNode.offset + 1, currNode.end - 1]); 33013 } 33014 } 33015 result.push([currNode.offset, currNode.end]); 33016 currNode = currNode.parent; 33017 } 33018 return result; 33019 } 33020} 33021 33022 33023/***/ }), 33024 33025/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/cssValidation.js": 33026/*!*******************************************************************************************************************!*\ 33027 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/cssValidation.js ***! 33028 \*******************************************************************************************************************/ 33029/*! exports provided: CSSValidation */ 33030/***/ (function(module, __webpack_exports__, __webpack_require__) { 33031 33032"use strict"; 33033__webpack_require__.r(__webpack_exports__); 33034/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CSSValidation", function() { return CSSValidation; }); 33035/* harmony import */ var _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../parser/cssNodes.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssNodes.js"); 33036/* harmony import */ var _lintRules_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./lintRules.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/lintRules.js"); 33037/* harmony import */ var _lint_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lint.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/lint.js"); 33038/* harmony import */ var _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../cssLanguageTypes.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/cssLanguageTypes.js"); 33039/*--------------------------------------------------------------------------------------------- 33040 * Copyright (c) Microsoft Corporation. All rights reserved. 33041 * Licensed under the MIT License. See License.txt in the project root for license information. 33042 *--------------------------------------------------------------------------------------------*/ 33043 33044 33045 33046 33047 33048var CSSValidation = /** @class */ (function () { 33049 function CSSValidation(cssDataManager) { 33050 this.cssDataManager = cssDataManager; 33051 } 33052 CSSValidation.prototype.configure = function (settings) { 33053 this.settings = settings; 33054 }; 33055 CSSValidation.prototype.doValidation = function (document, stylesheet, settings) { 33056 if (settings === void 0) { settings = this.settings; } 33057 if (settings && settings.validate === false) { 33058 return []; 33059 } 33060 var entries = []; 33061 entries.push.apply(entries, _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["ParseErrorCollector"].entries(stylesheet)); 33062 entries.push.apply(entries, _lint_js__WEBPACK_IMPORTED_MODULE_2__["LintVisitor"].entries(stylesheet, document, new _lintRules_js__WEBPACK_IMPORTED_MODULE_1__["LintConfigurationSettings"](settings && settings.lint), this.cssDataManager)); 33063 var ruleIds = []; 33064 for (var r in _lintRules_js__WEBPACK_IMPORTED_MODULE_1__["Rules"]) { 33065 ruleIds.push(_lintRules_js__WEBPACK_IMPORTED_MODULE_1__["Rules"][r].id); 33066 } 33067 function toDiagnostic(marker) { 33068 var range = _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_3__["Range"].create(document.positionAt(marker.getOffset()), document.positionAt(marker.getOffset() + marker.getLength())); 33069 var source = document.languageId; 33070 return { 33071 code: marker.getRule().id, 33072 source: source, 33073 message: marker.getMessage(), 33074 severity: marker.getLevel() === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["Level"].Warning ? _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_3__["DiagnosticSeverity"].Warning : _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_3__["DiagnosticSeverity"].Error, 33075 range: range 33076 }; 33077 } 33078 return entries.filter(function (entry) { return entry.getLevel() !== _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["Level"].Ignore; }).map(toDiagnostic); 33079 }; 33080 return CSSValidation; 33081}()); 33082 33083 33084 33085/***/ }), 33086 33087/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion.js": 33088/*!********************************************************************************************************************!*\ 33089 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion.js ***! 33090 \********************************************************************************************************************/ 33091/*! exports provided: LESSCompletion */ 33092/***/ (function(module, __webpack_exports__, __webpack_require__) { 33093 33094"use strict"; 33095__webpack_require__.r(__webpack_exports__); 33096/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LESSCompletion", function() { return LESSCompletion; }); 33097/* harmony import */ var _cssCompletion_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cssCompletion.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/cssCompletion.js"); 33098/* harmony import */ var _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../cssLanguageTypes.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/cssLanguageTypes.js"); 33099/* harmony import */ var _fillers_vscode_nls_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../fillers/vscode-nls.js */ "./node_modules/monaco-editor/esm/vs/language/css/fillers/vscode-nls.js"); 33100/*--------------------------------------------------------------------------------------------- 33101 * Copyright (c) Microsoft Corporation. All rights reserved. 33102 * Licensed under the MIT License. See License.txt in the project root for license information. 33103 *--------------------------------------------------------------------------------------------*/ 33104 33105var __extends = (undefined && undefined.__extends) || (function () { 33106 var extendStatics = function (d, b) { 33107 extendStatics = Object.setPrototypeOf || 33108 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || 33109 function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; 33110 return extendStatics(d, b); 33111 }; 33112 return function (d, b) { 33113 extendStatics(d, b); 33114 function __() { this.constructor = d; } 33115 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); 33116 }; 33117})(); 33118 33119 33120 33121var localize = _fillers_vscode_nls_js__WEBPACK_IMPORTED_MODULE_2__["loadMessageBundle"](); 33122var LESSCompletion = /** @class */ (function (_super) { 33123 __extends(LESSCompletion, _super); 33124 function LESSCompletion(lsOptions, cssDataManager) { 33125 return _super.call(this, '@', lsOptions, cssDataManager) || this; 33126 } 33127 LESSCompletion.prototype.createFunctionProposals = function (proposals, existingNode, sortToEnd, result) { 33128 for (var _i = 0, proposals_1 = proposals; _i < proposals_1.length; _i++) { 33129 var p = proposals_1[_i]; 33130 var item = { 33131 label: p.name, 33132 detail: p.example, 33133 documentation: p.description, 33134 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_1__["TextEdit"].replace(this.getCompletionRange(existingNode), p.name + '($0)'), 33135 insertTextFormat: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_1__["InsertTextFormat"].Snippet, 33136 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_1__["CompletionItemKind"].Function 33137 }; 33138 if (sortToEnd) { 33139 item.sortText = 'z'; 33140 } 33141 result.items.push(item); 33142 } 33143 return result; 33144 }; 33145 LESSCompletion.prototype.getTermProposals = function (entry, existingNode, result) { 33146 var functions = LESSCompletion.builtInProposals; 33147 if (entry) { 33148 functions = functions.filter(function (f) { return !f.type || !entry.restrictions || entry.restrictions.indexOf(f.type) !== -1; }); 33149 } 33150 this.createFunctionProposals(functions, existingNode, true, result); 33151 return _super.prototype.getTermProposals.call(this, entry, existingNode, result); 33152 }; 33153 LESSCompletion.prototype.getColorProposals = function (entry, existingNode, result) { 33154 this.createFunctionProposals(LESSCompletion.colorProposals, existingNode, false, result); 33155 return _super.prototype.getColorProposals.call(this, entry, existingNode, result); 33156 }; 33157 LESSCompletion.prototype.getCompletionsForDeclarationProperty = function (declaration, result) { 33158 this.getCompletionsForSelector(null, true, result); 33159 return _super.prototype.getCompletionsForDeclarationProperty.call(this, declaration, result); 33160 }; 33161 LESSCompletion.builtInProposals = [ 33162 // Boolean functions 33163 { 33164 'name': 'if', 33165 'example': 'if(condition, trueValue [, falseValue]);', 33166 'description': localize('less.builtin.if', 'returns one of two values depending on a condition.') 33167 }, 33168 { 33169 'name': 'boolean', 33170 'example': 'boolean(condition);', 33171 'description': localize('less.builtin.boolean', '"store" a boolean test for later evaluation in a guard or if().') 33172 }, 33173 // List functions 33174 { 33175 'name': 'length', 33176 'example': 'length(@list);', 33177 'description': localize('less.builtin.length', 'returns the number of elements in a value list') 33178 }, 33179 { 33180 'name': 'extract', 33181 'example': 'extract(@list, index);', 33182 'description': localize('less.builtin.extract', 'returns a value at the specified position in the list') 33183 }, 33184 { 33185 'name': 'range', 33186 'example': 'range([start, ] end [, step]);', 33187 'description': localize('less.builtin.range', 'generate a list spanning a range of values') 33188 }, 33189 { 33190 'name': 'each', 33191 'example': 'each(@list, ruleset);', 33192 'description': localize('less.builtin.each', 'bind the evaluation of a ruleset to each member of a list.') 33193 }, 33194 // Other built-ins 33195 { 33196 'name': 'escape', 33197 'example': 'escape(@string);', 33198 'description': localize('less.builtin.escape', 'URL encodes a string') 33199 }, 33200 { 33201 'name': 'e', 33202 'example': 'e(@string);', 33203 'description': localize('less.builtin.e', 'escape string content') 33204 }, 33205 { 33206 'name': 'replace', 33207 'example': 'replace(@string, @pattern, @replacement[, @flags]);', 33208 'description': localize('less.builtin.replace', 'string replace') 33209 }, 33210 { 33211 'name': 'unit', 33212 'example': 'unit(@dimension, [@unit: \'\']);', 33213 'description': localize('less.builtin.unit', 'remove or change the unit of a dimension') 33214 }, 33215 { 33216 'name': 'color', 33217 'example': 'color(@string);', 33218 'description': localize('less.builtin.color', 'parses a string to a color'), 33219 'type': 'color' 33220 }, 33221 { 33222 'name': 'convert', 33223 'example': 'convert(@value, unit);', 33224 'description': localize('less.builtin.convert', 'converts numbers from one type into another') 33225 }, 33226 { 33227 'name': 'data-uri', 33228 'example': 'data-uri([mimetype,] url);', 33229 'description': localize('less.builtin.data-uri', 'inlines a resource and falls back to `url()`'), 33230 'type': 'url' 33231 }, 33232 { 33233 'name': 'abs', 33234 'description': localize('less.builtin.abs', 'absolute value of a number'), 33235 'example': 'abs(number);' 33236 }, 33237 { 33238 'name': 'acos', 33239 'description': localize('less.builtin.acos', 'arccosine - inverse of cosine function'), 33240 'example': 'acos(number);' 33241 }, 33242 { 33243 'name': 'asin', 33244 'description': localize('less.builtin.asin', 'arcsine - inverse of sine function'), 33245 'example': 'asin(number);' 33246 }, 33247 { 33248 'name': 'ceil', 33249 'example': 'ceil(@number);', 33250 'description': localize('less.builtin.ceil', 'rounds up to an integer') 33251 }, 33252 { 33253 'name': 'cos', 33254 'description': localize('less.builtin.cos', 'cosine function'), 33255 'example': 'cos(number);' 33256 }, 33257 { 33258 'name': 'floor', 33259 'description': localize('less.builtin.floor', 'rounds down to an integer'), 33260 'example': 'floor(@number);' 33261 }, 33262 { 33263 'name': 'percentage', 33264 'description': localize('less.builtin.percentage', 'converts to a %, e.g. 0.5 > 50%'), 33265 'example': 'percentage(@number);', 33266 'type': 'percentage' 33267 }, 33268 { 33269 'name': 'round', 33270 'description': localize('less.builtin.round', 'rounds a number to a number of places'), 33271 'example': 'round(number, [places: 0]);' 33272 }, 33273 { 33274 'name': 'sqrt', 33275 'description': localize('less.builtin.sqrt', 'calculates square root of a number'), 33276 'example': 'sqrt(number);' 33277 }, 33278 { 33279 'name': 'sin', 33280 'description': localize('less.builtin.sin', 'sine function'), 33281 'example': 'sin(number);' 33282 }, 33283 { 33284 'name': 'tan', 33285 'description': localize('less.builtin.tan', 'tangent function'), 33286 'example': 'tan(number);' 33287 }, 33288 { 33289 'name': 'atan', 33290 'description': localize('less.builtin.atan', 'arctangent - inverse of tangent function'), 33291 'example': 'atan(number);' 33292 }, 33293 { 33294 'name': 'pi', 33295 'description': localize('less.builtin.pi', 'returns pi'), 33296 'example': 'pi();' 33297 }, 33298 { 33299 'name': 'pow', 33300 'description': localize('less.builtin.pow', 'first argument raised to the power of the second argument'), 33301 'example': 'pow(@base, @exponent);' 33302 }, 33303 { 33304 'name': 'mod', 33305 'description': localize('less.builtin.mod', 'first argument modulus second argument'), 33306 'example': 'mod(number, number);' 33307 }, 33308 { 33309 'name': 'min', 33310 'description': localize('less.builtin.min', 'returns the lowest of one or more values'), 33311 'example': 'min(@x, @y);' 33312 }, 33313 { 33314 'name': 'max', 33315 'description': localize('less.builtin.max', 'returns the lowest of one or more values'), 33316 'example': 'max(@x, @y);' 33317 } 33318 ]; 33319 LESSCompletion.colorProposals = [ 33320 { 33321 'name': 'argb', 33322 'example': 'argb(@color);', 33323 'description': localize('less.builtin.argb', 'creates a #AARRGGBB') 33324 }, 33325 { 33326 'name': 'hsl', 33327 'example': 'hsl(@hue, @saturation, @lightness);', 33328 'description': localize('less.builtin.hsl', 'creates a color') 33329 }, 33330 { 33331 'name': 'hsla', 33332 'example': 'hsla(@hue, @saturation, @lightness, @alpha);', 33333 'description': localize('less.builtin.hsla', 'creates a color') 33334 }, 33335 { 33336 'name': 'hsv', 33337 'example': 'hsv(@hue, @saturation, @value);', 33338 'description': localize('less.builtin.hsv', 'creates a color') 33339 }, 33340 { 33341 'name': 'hsva', 33342 'example': 'hsva(@hue, @saturation, @value, @alpha);', 33343 'description': localize('less.builtin.hsva', 'creates a color') 33344 }, 33345 { 33346 'name': 'hue', 33347 'example': 'hue(@color);', 33348 'description': localize('less.builtin.hue', 'returns the `hue` channel of `@color` in the HSL space') 33349 }, 33350 { 33351 'name': 'saturation', 33352 'example': 'saturation(@color);', 33353 'description': localize('less.builtin.saturation', 'returns the `saturation` channel of `@color` in the HSL space') 33354 }, 33355 { 33356 'name': 'lightness', 33357 'example': 'lightness(@color);', 33358 'description': localize('less.builtin.lightness', 'returns the `lightness` channel of `@color` in the HSL space') 33359 }, 33360 { 33361 'name': 'hsvhue', 33362 'example': 'hsvhue(@color);', 33363 'description': localize('less.builtin.hsvhue', 'returns the `hue` channel of `@color` in the HSV space') 33364 }, 33365 { 33366 'name': 'hsvsaturation', 33367 'example': 'hsvsaturation(@color);', 33368 'description': localize('less.builtin.hsvsaturation', 'returns the `saturation` channel of `@color` in the HSV space') 33369 }, 33370 { 33371 'name': 'hsvvalue', 33372 'example': 'hsvvalue(@color);', 33373 'description': localize('less.builtin.hsvvalue', 'returns the `value` channel of `@color` in the HSV space') 33374 }, 33375 { 33376 'name': 'red', 33377 'example': 'red(@color);', 33378 'description': localize('less.builtin.red', 'returns the `red` channel of `@color`') 33379 }, 33380 { 33381 'name': 'green', 33382 'example': 'green(@color);', 33383 'description': localize('less.builtin.green', 'returns the `green` channel of `@color`') 33384 }, 33385 { 33386 'name': 'blue', 33387 'example': 'blue(@color);', 33388 'description': localize('less.builtin.blue', 'returns the `blue` channel of `@color`') 33389 }, 33390 { 33391 'name': 'alpha', 33392 'example': 'alpha(@color);', 33393 'description': localize('less.builtin.alpha', 'returns the `alpha` channel of `@color`') 33394 }, 33395 { 33396 'name': 'luma', 33397 'example': 'luma(@color);', 33398 'description': localize('less.builtin.luma', 'returns the `luma` value (perceptual brightness) of `@color`') 33399 }, 33400 { 33401 'name': 'saturate', 33402 'example': 'saturate(@color, 10%);', 33403 'description': localize('less.builtin.saturate', 'return `@color` 10% points more saturated') 33404 }, 33405 { 33406 'name': 'desaturate', 33407 'example': 'desaturate(@color, 10%);', 33408 'description': localize('less.builtin.desaturate', 'return `@color` 10% points less saturated') 33409 }, 33410 { 33411 'name': 'lighten', 33412 'example': 'lighten(@color, 10%);', 33413 'description': localize('less.builtin.lighten', 'return `@color` 10% points lighter') 33414 }, 33415 { 33416 'name': 'darken', 33417 'example': 'darken(@color, 10%);', 33418 'description': localize('less.builtin.darken', 'return `@color` 10% points darker') 33419 }, 33420 { 33421 'name': 'fadein', 33422 'example': 'fadein(@color, 10%);', 33423 'description': localize('less.builtin.fadein', 'return `@color` 10% points less transparent') 33424 }, 33425 { 33426 'name': 'fadeout', 33427 'example': 'fadeout(@color, 10%);', 33428 'description': localize('less.builtin.fadeout', 'return `@color` 10% points more transparent') 33429 }, 33430 { 33431 'name': 'fade', 33432 'example': 'fade(@color, 50%);', 33433 'description': localize('less.builtin.fade', 'return `@color` with 50% transparency') 33434 }, 33435 { 33436 'name': 'spin', 33437 'example': 'spin(@color, 10);', 33438 'description': localize('less.builtin.spin', 'return `@color` with a 10 degree larger in hue') 33439 }, 33440 { 33441 'name': 'mix', 33442 'example': 'mix(@color1, @color2, [@weight: 50%]);', 33443 'description': localize('less.builtin.mix', 'return a mix of `@color1` and `@color2`') 33444 }, 33445 { 33446 'name': 'greyscale', 33447 'example': 'greyscale(@color);', 33448 'description': localize('less.builtin.greyscale', 'returns a grey, 100% desaturated color'), 33449 }, 33450 { 33451 'name': 'contrast', 33452 'example': 'contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);', 33453 'description': localize('less.builtin.contrast', 'return `@darkcolor` if `@color1 is> 43% luma` otherwise return `@lightcolor`, see notes') 33454 }, 33455 { 33456 'name': 'multiply', 33457 'example': 'multiply(@color1, @color2);' 33458 }, 33459 { 33460 'name': 'screen', 33461 'example': 'screen(@color1, @color2);' 33462 }, 33463 { 33464 'name': 'overlay', 33465 'example': 'overlay(@color1, @color2);' 33466 }, 33467 { 33468 'name': 'softlight', 33469 'example': 'softlight(@color1, @color2);' 33470 }, 33471 { 33472 'name': 'hardlight', 33473 'example': 'hardlight(@color1, @color2);' 33474 }, 33475 { 33476 'name': 'difference', 33477 'example': 'difference(@color1, @color2);' 33478 }, 33479 { 33480 'name': 'exclusion', 33481 'example': 'exclusion(@color1, @color2);' 33482 }, 33483 { 33484 'name': 'average', 33485 'example': 'average(@color1, @color2);' 33486 }, 33487 { 33488 'name': 'negation', 33489 'example': 'negation(@color1, @color2);' 33490 } 33491 ]; 33492 return LESSCompletion; 33493}(_cssCompletion_js__WEBPACK_IMPORTED_MODULE_0__["CSSCompletion"])); 33494 33495 33496 33497/***/ }), 33498 33499/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/lint.js": 33500/*!**********************************************************************************************************!*\ 33501 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/lint.js ***! 33502 \**********************************************************************************************************/ 33503/*! exports provided: LintVisitor */ 33504/***/ (function(module, __webpack_exports__, __webpack_require__) { 33505 33506"use strict"; 33507__webpack_require__.r(__webpack_exports__); 33508/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LintVisitor", function() { return LintVisitor; }); 33509/* harmony import */ var _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../languageFacts/facts.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/languageFacts/facts.js"); 33510/* harmony import */ var _lintRules_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./lintRules.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/lintRules.js"); 33511/* harmony import */ var _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../parser/cssNodes.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssNodes.js"); 33512/* harmony import */ var _lintUtil_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lintUtil.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/lintUtil.js"); 33513/* harmony import */ var _utils_arrays_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/arrays.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/utils/arrays.js"); 33514/* harmony import */ var _fillers_vscode_nls_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../fillers/vscode-nls.js */ "./node_modules/monaco-editor/esm/vs/language/css/fillers/vscode-nls.js"); 33515/*--------------------------------------------------------------------------------------------- 33516 * Copyright (c) Microsoft Corporation. All rights reserved. 33517 * Licensed under the MIT License. See License.txt in the project root for license information. 33518 *--------------------------------------------------------------------------------------------*/ 33519 33520 33521 33522 33523 33524 33525 33526var localize = _fillers_vscode_nls_js__WEBPACK_IMPORTED_MODULE_5__["loadMessageBundle"](); 33527var NodesByRootMap = /** @class */ (function () { 33528 function NodesByRootMap() { 33529 this.data = {}; 33530 } 33531 NodesByRootMap.prototype.add = function (root, name, node) { 33532 var entry = this.data[root]; 33533 if (!entry) { 33534 entry = { nodes: [], names: [] }; 33535 this.data[root] = entry; 33536 } 33537 entry.names.push(name); 33538 if (node) { 33539 entry.nodes.push(node); 33540 } 33541 }; 33542 return NodesByRootMap; 33543}()); 33544var LintVisitor = /** @class */ (function () { 33545 function LintVisitor(document, settings, cssDataManager) { 33546 var _this = this; 33547 this.cssDataManager = cssDataManager; 33548 this.warnings = []; 33549 this.settings = settings; 33550 this.documentText = document.getText(); 33551 this.keyframes = new NodesByRootMap(); 33552 this.validProperties = {}; 33553 var properties = settings.getSetting(_lintRules_js__WEBPACK_IMPORTED_MODULE_1__["Settings"].ValidProperties); 33554 if (Array.isArray(properties)) { 33555 properties.forEach(function (p) { 33556 if (typeof p === 'string') { 33557 var name = p.trim().toLowerCase(); 33558 if (name.length) { 33559 _this.validProperties[name] = true; 33560 } 33561 } 33562 }); 33563 } 33564 } 33565 LintVisitor.entries = function (node, document, settings, cssDataManager, entryFilter) { 33566 var visitor = new LintVisitor(document, settings, cssDataManager); 33567 node.acceptVisitor(visitor); 33568 visitor.completeValidations(); 33569 return visitor.getEntries(entryFilter); 33570 }; 33571 LintVisitor.prototype.isValidPropertyDeclaration = function (element) { 33572 var propertyName = element.fullPropertyName; 33573 return this.validProperties[propertyName]; 33574 }; 33575 LintVisitor.prototype.fetch = function (input, s) { 33576 var elements = []; 33577 for (var _i = 0, input_1 = input; _i < input_1.length; _i++) { 33578 var curr = input_1[_i]; 33579 if (curr.fullPropertyName === s) { 33580 elements.push(curr); 33581 } 33582 } 33583 return elements; 33584 }; 33585 LintVisitor.prototype.fetchWithValue = function (input, s, v) { 33586 var elements = []; 33587 for (var _i = 0, input_2 = input; _i < input_2.length; _i++) { 33588 var inputElement = input_2[_i]; 33589 if (inputElement.fullPropertyName === s) { 33590 var expression = inputElement.node.getValue(); 33591 if (expression && this.findValueInExpression(expression, v)) { 33592 elements.push(inputElement); 33593 } 33594 } 33595 } 33596 return elements; 33597 }; 33598 LintVisitor.prototype.findValueInExpression = function (expression, v) { 33599 var found = false; 33600 expression.accept(function (node) { 33601 if (node.type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["NodeType"].Identifier && node.matches(v)) { 33602 found = true; 33603 } 33604 return !found; 33605 }); 33606 return found; 33607 }; 33608 LintVisitor.prototype.getEntries = function (filter) { 33609 if (filter === void 0) { filter = (_parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["Level"].Warning | _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["Level"].Error); } 33610 return this.warnings.filter(function (entry) { 33611 return (entry.getLevel() & filter) !== 0; 33612 }); 33613 }; 33614 LintVisitor.prototype.addEntry = function (node, rule, details) { 33615 var entry = new _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["Marker"](node, rule, this.settings.getRule(rule), details); 33616 this.warnings.push(entry); 33617 }; 33618 LintVisitor.prototype.getMissingNames = function (expected, actual) { 33619 var expectedClone = expected.slice(0); // clone 33620 for (var i = 0; i < actual.length; i++) { 33621 var k = expectedClone.indexOf(actual[i]); 33622 if (k !== -1) { 33623 expectedClone[k] = null; 33624 } 33625 } 33626 var result = null; 33627 for (var i = 0; i < expectedClone.length; i++) { 33628 var curr = expectedClone[i]; 33629 if (curr) { 33630 if (result === null) { 33631 result = localize('namelist.single', "'{0}'", curr); 33632 } 33633 else { 33634 result = localize('namelist.concatenated', "{0}, '{1}'", result, curr); 33635 } 33636 } 33637 } 33638 return result; 33639 }; 33640 LintVisitor.prototype.visitNode = function (node) { 33641 switch (node.type) { 33642 case _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["NodeType"].UnknownAtRule: 33643 return this.visitUnknownAtRule(node); 33644 case _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["NodeType"].Keyframe: 33645 return this.visitKeyframe(node); 33646 case _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["NodeType"].FontFace: 33647 return this.visitFontFace(node); 33648 case _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["NodeType"].Ruleset: 33649 return this.visitRuleSet(node); 33650 case _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["NodeType"].SimpleSelector: 33651 return this.visitSimpleSelector(node); 33652 case _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["NodeType"].Function: 33653 return this.visitFunction(node); 33654 case _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["NodeType"].NumericValue: 33655 return this.visitNumericValue(node); 33656 case _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["NodeType"].Import: 33657 return this.visitImport(node); 33658 case _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["NodeType"].HexColorValue: 33659 return this.visitHexColorValue(node); 33660 case _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["NodeType"].Prio: 33661 return this.visitPrio(node); 33662 } 33663 return true; 33664 }; 33665 LintVisitor.prototype.completeValidations = function () { 33666 this.validateKeyframes(); 33667 }; 33668 LintVisitor.prototype.visitUnknownAtRule = function (node) { 33669 var atRuleName = node.getChild(0); 33670 if (!atRuleName) { 33671 return false; 33672 } 33673 var atDirective = this.cssDataManager.getAtDirective(atRuleName.getText()); 33674 if (atDirective) { 33675 return false; 33676 } 33677 this.addEntry(atRuleName, _lintRules_js__WEBPACK_IMPORTED_MODULE_1__["Rules"].UnknownAtRules, "Unknown at rule " + atRuleName.getText()); 33678 return true; 33679 }; 33680 LintVisitor.prototype.visitKeyframe = function (node) { 33681 var keyword = node.getKeyword(); 33682 if (!keyword) { 33683 return false; 33684 } 33685 var text = keyword.getText(); 33686 this.keyframes.add(node.getName(), text, (text !== '@keyframes') ? keyword : null); 33687 return true; 33688 }; 33689 LintVisitor.prototype.validateKeyframes = function () { 33690 // @keyframe and it's vendor specific alternatives 33691 // @keyframe should be included 33692 var expected = ['@-webkit-keyframes', '@-moz-keyframes', '@-o-keyframes']; 33693 for (var name in this.keyframes.data) { 33694 var actual = this.keyframes.data[name].names; 33695 var needsStandard = (actual.indexOf('@keyframes') === -1); 33696 if (!needsStandard && actual.length === 1) { 33697 continue; // only the non-vendor specific keyword is used, that's fine, no warning 33698 } 33699 var missingVendorSpecific = this.getMissingNames(expected, actual); 33700 if (missingVendorSpecific || needsStandard) { 33701 for (var _i = 0, _a = this.keyframes.data[name].nodes; _i < _a.length; _i++) { 33702 var node = _a[_i]; 33703 if (needsStandard) { 33704 var message = localize('keyframes.standardrule.missing', "Always define standard rule '@keyframes' when defining keyframes."); 33705 this.addEntry(node, _lintRules_js__WEBPACK_IMPORTED_MODULE_1__["Rules"].IncludeStandardPropertyWhenUsingVendorPrefix, message); 33706 } 33707 if (missingVendorSpecific) { 33708 var message = localize('keyframes.vendorspecific.missing', "Always include all vendor specific rules: Missing: {0}", missingVendorSpecific); 33709 this.addEntry(node, _lintRules_js__WEBPACK_IMPORTED_MODULE_1__["Rules"].AllVendorPrefixes, message); 33710 } 33711 } 33712 } 33713 } 33714 return true; 33715 }; 33716 LintVisitor.prototype.visitSimpleSelector = function (node) { 33717 var firstChar = this.documentText.charAt(node.offset); 33718 ///////////////////////////////////////////////////////////// 33719 // Lint - The universal selector (*) is known to be slow. 33720 ///////////////////////////////////////////////////////////// 33721 if (node.length === 1 && firstChar === '*') { 33722 this.addEntry(node, _lintRules_js__WEBPACK_IMPORTED_MODULE_1__["Rules"].UniversalSelector); 33723 } 33724 ///////////////////////////////////////////////////////////// 33725 // Lint - Avoid id selectors 33726 ///////////////////////////////////////////////////////////// 33727 if (firstChar === '#') { 33728 this.addEntry(node, _lintRules_js__WEBPACK_IMPORTED_MODULE_1__["Rules"].AvoidIdSelector); 33729 } 33730 return true; 33731 }; 33732 LintVisitor.prototype.visitImport = function (node) { 33733 ///////////////////////////////////////////////////////////// 33734 // Lint - Import statements shouldn't be used, because they aren't offering parallel downloads. 33735 ///////////////////////////////////////////////////////////// 33736 this.addEntry(node, _lintRules_js__WEBPACK_IMPORTED_MODULE_1__["Rules"].ImportStatemement); 33737 return true; 33738 }; 33739 LintVisitor.prototype.visitRuleSet = function (node) { 33740 ///////////////////////////////////////////////////////////// 33741 // Lint - Don't use empty rulesets. 33742 ///////////////////////////////////////////////////////////// 33743 var declarations = node.getDeclarations(); 33744 if (!declarations) { 33745 // syntax error 33746 return false; 33747 } 33748 if (!declarations.hasChildren()) { 33749 this.addEntry(node.getSelectors(), _lintRules_js__WEBPACK_IMPORTED_MODULE_1__["Rules"].EmptyRuleSet); 33750 } 33751 var propertyTable = []; 33752 for (var _i = 0, _a = declarations.getChildren(); _i < _a.length; _i++) { 33753 var element = _a[_i]; 33754 if (element instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["Declaration"]) { 33755 propertyTable.push(new _lintUtil_js__WEBPACK_IMPORTED_MODULE_3__["Element"](element)); 33756 } 33757 } 33758 ///////////////////////////////////////////////////////////// 33759 // the rule warns when it finds: 33760 // width being used with border, border-left, border-right, padding, padding-left, or padding-right 33761 // height being used with border, border-top, border-bottom, padding, padding-top, or padding-bottom 33762 // No error when box-sizing property is specified, as it assumes the user knows what he's doing. 33763 // see https://github.com/CSSLint/csslint/wiki/Beware-of-box-model-size 33764 ///////////////////////////////////////////////////////////// 33765 var boxModel = Object(_lintUtil_js__WEBPACK_IMPORTED_MODULE_3__["default"])(propertyTable); 33766 if (boxModel.width) { 33767 var properties = []; 33768 if (boxModel.right.value) { 33769 properties = Object(_utils_arrays_js__WEBPACK_IMPORTED_MODULE_4__["union"])(properties, boxModel.right.properties); 33770 } 33771 if (boxModel.left.value) { 33772 properties = Object(_utils_arrays_js__WEBPACK_IMPORTED_MODULE_4__["union"])(properties, boxModel.left.properties); 33773 } 33774 if (properties.length !== 0) { 33775 for (var _b = 0, properties_1 = properties; _b < properties_1.length; _b++) { 33776 var item = properties_1[_b]; 33777 this.addEntry(item.node, _lintRules_js__WEBPACK_IMPORTED_MODULE_1__["Rules"].BewareOfBoxModelSize); 33778 } 33779 this.addEntry(boxModel.width.node, _lintRules_js__WEBPACK_IMPORTED_MODULE_1__["Rules"].BewareOfBoxModelSize); 33780 } 33781 } 33782 if (boxModel.height) { 33783 var properties = []; 33784 if (boxModel.top.value) { 33785 properties = Object(_utils_arrays_js__WEBPACK_IMPORTED_MODULE_4__["union"])(properties, boxModel.top.properties); 33786 } 33787 if (boxModel.bottom.value) { 33788 properties = Object(_utils_arrays_js__WEBPACK_IMPORTED_MODULE_4__["union"])(properties, boxModel.bottom.properties); 33789 } 33790 if (properties.length !== 0) { 33791 for (var _c = 0, properties_2 = properties; _c < properties_2.length; _c++) { 33792 var item = properties_2[_c]; 33793 this.addEntry(item.node, _lintRules_js__WEBPACK_IMPORTED_MODULE_1__["Rules"].BewareOfBoxModelSize); 33794 } 33795 this.addEntry(boxModel.height.node, _lintRules_js__WEBPACK_IMPORTED_MODULE_1__["Rules"].BewareOfBoxModelSize); 33796 } 33797 } 33798 ///////////////////////////////////////////////////////////// 33799 // Properties ignored due to display 33800 ///////////////////////////////////////////////////////////// 33801 // With 'display: inline', the width, height, margin-top, margin-bottom, and float properties have no effect 33802 var displayElems = this.fetchWithValue(propertyTable, 'display', 'inline'); 33803 if (displayElems.length > 0) { 33804 for (var _d = 0, _e = ['width', 'height', 'margin-top', 'margin-bottom', 'float']; _d < _e.length; _d++) { 33805 var prop = _e[_d]; 33806 var elem = this.fetch(propertyTable, prop); 33807 for (var index = 0; index < elem.length; index++) { 33808 var node_1 = elem[index].node; 33809 var value = node_1.getValue(); 33810 if (prop === 'float' && (!value || value.matches('none'))) { 33811 continue; 33812 } 33813 this.addEntry(node_1, _lintRules_js__WEBPACK_IMPORTED_MODULE_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.")); 33814 } 33815 } 33816 } 33817 // With 'display: inline-block', 'float' has no effect 33818 displayElems = this.fetchWithValue(propertyTable, 'display', 'inline-block'); 33819 if (displayElems.length > 0) { 33820 var elem = this.fetch(propertyTable, 'float'); 33821 for (var index = 0; index < elem.length; index++) { 33822 var node_2 = elem[index].node; 33823 var value = node_2.getValue(); 33824 if (value && !value.matches('none')) { 33825 this.addEntry(node_2, _lintRules_js__WEBPACK_IMPORTED_MODULE_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'")); 33826 } 33827 } 33828 } 33829 // With 'display: block', 'vertical-align' has no effect 33830 displayElems = this.fetchWithValue(propertyTable, 'display', 'block'); 33831 if (displayElems.length > 0) { 33832 var elem = this.fetch(propertyTable, 'vertical-align'); 33833 for (var index = 0; index < elem.length; index++) { 33834 this.addEntry(elem[index].node, _lintRules_js__WEBPACK_IMPORTED_MODULE_1__["Rules"].PropertyIgnoredDueToDisplay, localize('rule.propertyIgnoredDueToDisplayBlock', "Property is ignored due to the display. With 'display: block', vertical-align should not be used.")); 33835 } 33836 } 33837 ///////////////////////////////////////////////////////////// 33838 // Avoid 'float' 33839 ///////////////////////////////////////////////////////////// 33840 var elements = this.fetch(propertyTable, 'float'); 33841 for (var index = 0; index < elements.length; index++) { 33842 var element = elements[index]; 33843 if (!this.isValidPropertyDeclaration(element)) { 33844 this.addEntry(element.node, _lintRules_js__WEBPACK_IMPORTED_MODULE_1__["Rules"].AvoidFloat); 33845 } 33846 } 33847 ///////////////////////////////////////////////////////////// 33848 // Don't use duplicate declarations. 33849 ///////////////////////////////////////////////////////////// 33850 for (var i = 0; i < propertyTable.length; i++) { 33851 var element = propertyTable[i]; 33852 if (element.fullPropertyName !== 'background' && !this.validProperties[element.fullPropertyName]) { 33853 var value = element.node.getValue(); 33854 if (value && this.documentText.charAt(value.offset) !== '-') { 33855 var elements_1 = this.fetch(propertyTable, element.fullPropertyName); 33856 if (elements_1.length > 1) { 33857 for (var k = 0; k < elements_1.length; k++) { 33858 var value_1 = elements_1[k].node.getValue(); 33859 if (value_1 && this.documentText.charAt(value_1.offset) !== '-' && elements_1[k] !== element) { 33860 this.addEntry(element.node, _lintRules_js__WEBPACK_IMPORTED_MODULE_1__["Rules"].DuplicateDeclarations); 33861 } 33862 } 33863 } 33864 } 33865 } 33866 } 33867 ///////////////////////////////////////////////////////////// 33868 // Unknown propery & When using a vendor-prefixed gradient, make sure to use them all. 33869 ///////////////////////////////////////////////////////////// 33870 var isExportBlock = node.getSelectors().matches(":export"); 33871 if (!isExportBlock) { 33872 var propertiesBySuffix = new NodesByRootMap(); 33873 var containsUnknowns = false; 33874 for (var _f = 0, propertyTable_1 = propertyTable; _f < propertyTable_1.length; _f++) { 33875 var element = propertyTable_1[_f]; 33876 var decl = element.node; 33877 if (this.isCSSDeclaration(decl)) { 33878 var name = element.fullPropertyName; 33879 var firstChar = name.charAt(0); 33880 if (firstChar === '-') { 33881 if (name.charAt(1) !== '-') { // avoid css variables 33882 if (!this.cssDataManager.isKnownProperty(name) && !this.validProperties[name]) { 33883 this.addEntry(decl.getProperty(), _lintRules_js__WEBPACK_IMPORTED_MODULE_1__["Rules"].UnknownVendorSpecificProperty); 33884 } 33885 var nonPrefixedName = decl.getNonPrefixedPropertyName(); 33886 propertiesBySuffix.add(nonPrefixedName, name, decl.getProperty()); 33887 } 33888 } 33889 else { 33890 var fullName = name; 33891 if (firstChar === '*' || firstChar === '_') { 33892 this.addEntry(decl.getProperty(), _lintRules_js__WEBPACK_IMPORTED_MODULE_1__["Rules"].IEStarHack); 33893 name = name.substr(1); 33894 } 33895 // _property and *property might be contributed via custom data 33896 if (!this.cssDataManager.isKnownProperty(fullName) && !this.cssDataManager.isKnownProperty(name)) { 33897 if (!this.validProperties[name]) { 33898 this.addEntry(decl.getProperty(), _lintRules_js__WEBPACK_IMPORTED_MODULE_1__["Rules"].UnknownProperty, localize('property.unknownproperty.detailed', "Unknown property: '{0}'", decl.getFullPropertyName())); 33899 } 33900 } 33901 propertiesBySuffix.add(name, name, null); // don't pass the node as we don't show errors on the standard 33902 } 33903 } 33904 else { 33905 containsUnknowns = true; 33906 } 33907 } 33908 if (!containsUnknowns) { // don't perform this test if there are 33909 for (var suffix in propertiesBySuffix.data) { 33910 var entry = propertiesBySuffix.data[suffix]; 33911 var actual = entry.names; 33912 var needsStandard = this.cssDataManager.isStandardProperty(suffix) && (actual.indexOf(suffix) === -1); 33913 if (!needsStandard && actual.length === 1) { 33914 continue; // only the non-vendor specific rule is used, that's fine, no warning 33915 } 33916 var expected = []; 33917 for (var i = 0, len = LintVisitor.prefixes.length; i < len; i++) { 33918 var prefix = LintVisitor.prefixes[i]; 33919 if (this.cssDataManager.isStandardProperty(prefix + suffix)) { 33920 expected.push(prefix + suffix); 33921 } 33922 } 33923 var missingVendorSpecific = this.getMissingNames(expected, actual); 33924 if (missingVendorSpecific || needsStandard) { 33925 for (var _g = 0, _h = entry.nodes; _g < _h.length; _g++) { 33926 var node_3 = _h[_g]; 33927 if (needsStandard) { 33928 var message = localize('property.standard.missing', "Also define the standard property '{0}' for compatibility", suffix); 33929 this.addEntry(node_3, _lintRules_js__WEBPACK_IMPORTED_MODULE_1__["Rules"].IncludeStandardPropertyWhenUsingVendorPrefix, message); 33930 } 33931 if (missingVendorSpecific) { 33932 var message = localize('property.vendorspecific.missing', "Always include all vendor specific properties: Missing: {0}", missingVendorSpecific); 33933 this.addEntry(node_3, _lintRules_js__WEBPACK_IMPORTED_MODULE_1__["Rules"].AllVendorPrefixes, message); 33934 } 33935 } 33936 } 33937 } 33938 } 33939 } 33940 return true; 33941 }; 33942 LintVisitor.prototype.visitPrio = function (node) { 33943 ///////////////////////////////////////////////////////////// 33944 // Don't use !important 33945 ///////////////////////////////////////////////////////////// 33946 this.addEntry(node, _lintRules_js__WEBPACK_IMPORTED_MODULE_1__["Rules"].AvoidImportant); 33947 return true; 33948 }; 33949 LintVisitor.prototype.visitNumericValue = function (node) { 33950 ///////////////////////////////////////////////////////////// 33951 // 0 has no following unit 33952 ///////////////////////////////////////////////////////////// 33953 var funcDecl = node.findParent(_parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["NodeType"].Function); 33954 if (funcDecl && funcDecl.getName() === 'calc') { 33955 return true; 33956 } 33957 var decl = node.findParent(_parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["NodeType"].Declaration); 33958 if (decl) { 33959 var declValue = decl.getValue(); 33960 if (declValue) { 33961 var value = node.getValue(); 33962 if (!value.unit || _languageFacts_facts_js__WEBPACK_IMPORTED_MODULE_0__["units"].length.indexOf(value.unit.toLowerCase()) === -1) { 33963 return true; 33964 } 33965 if (parseFloat(value.value) === 0.0 && !!value.unit && !this.validProperties[decl.getFullPropertyName()]) { 33966 this.addEntry(node, _lintRules_js__WEBPACK_IMPORTED_MODULE_1__["Rules"].ZeroWithUnit); 33967 } 33968 } 33969 } 33970 return true; 33971 }; 33972 LintVisitor.prototype.visitFontFace = function (node) { 33973 var declarations = node.getDeclarations(); 33974 if (!declarations) { 33975 // syntax error 33976 return false; 33977 } 33978 var definesSrc = false, definesFontFamily = false; 33979 var containsUnknowns = false; 33980 for (var _i = 0, _a = declarations.getChildren(); _i < _a.length; _i++) { 33981 var node_4 = _a[_i]; 33982 if (this.isCSSDeclaration(node_4)) { 33983 var name = node_4.getProperty().getName().toLowerCase(); 33984 if (name === 'src') { 33985 definesSrc = true; 33986 } 33987 if (name === 'font-family') { 33988 definesFontFamily = true; 33989 } 33990 } 33991 else { 33992 containsUnknowns = true; 33993 } 33994 } 33995 if (!containsUnknowns && (!definesSrc || !definesFontFamily)) { 33996 this.addEntry(node, _lintRules_js__WEBPACK_IMPORTED_MODULE_1__["Rules"].RequiredPropertiesForFontFace); 33997 } 33998 return true; 33999 }; 34000 LintVisitor.prototype.isCSSDeclaration = function (node) { 34001 if (node instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["Declaration"]) { 34002 if (!node.getValue()) { 34003 return false; 34004 } 34005 var property = node.getProperty(); 34006 if (!property) { 34007 return false; 34008 } 34009 var identifier = property.getIdentifier(); 34010 if (!identifier || identifier.containsInterpolation()) { 34011 return false; 34012 } 34013 return true; 34014 } 34015 return false; 34016 }; 34017 LintVisitor.prototype.visitHexColorValue = function (node) { 34018 // Rule: #eeff0011 or #eeff00 or #ef01 or #ef0 34019 var length = node.length; 34020 if (length !== 9 && length !== 7 && length !== 5 && length !== 4) { 34021 this.addEntry(node, _lintRules_js__WEBPACK_IMPORTED_MODULE_1__["Rules"].HexColorLength); 34022 } 34023 return false; 34024 }; 34025 LintVisitor.prototype.visitFunction = function (node) { 34026 var fnName = node.getName().toLowerCase(); 34027 var expectedAttrCount = -1; 34028 var actualAttrCount = 0; 34029 switch (fnName) { 34030 case 'rgb(': 34031 case 'hsl(': 34032 expectedAttrCount = 3; 34033 break; 34034 case 'rgba(': 34035 case 'hsla(': 34036 expectedAttrCount = 4; 34037 break; 34038 } 34039 if (expectedAttrCount !== -1) { 34040 node.getArguments().accept(function (n) { 34041 if (n instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["BinaryExpression"]) { 34042 actualAttrCount += 1; 34043 return false; 34044 } 34045 return true; 34046 }); 34047 if (actualAttrCount !== expectedAttrCount) { 34048 this.addEntry(node, _lintRules_js__WEBPACK_IMPORTED_MODULE_1__["Rules"].ArgsInColorFunction); 34049 } 34050 } 34051 return true; 34052 }; 34053 LintVisitor.prefixes = [ 34054 '-ms-', '-moz-', '-o-', '-webkit-', 34055 ]; 34056 return LintVisitor; 34057}()); 34058 34059 34060 34061/***/ }), 34062 34063/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/lintRules.js": 34064/*!***************************************************************************************************************!*\ 34065 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/lintRules.js ***! 34066 \***************************************************************************************************************/ 34067/*! exports provided: Rule, Setting, Rules, Settings, LintConfigurationSettings */ 34068/***/ (function(module, __webpack_exports__, __webpack_require__) { 34069 34070"use strict"; 34071__webpack_require__.r(__webpack_exports__); 34072/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rule", function() { return Rule; }); 34073/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Setting", function() { return Setting; }); 34074/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rules", function() { return Rules; }); 34075/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Settings", function() { return Settings; }); 34076/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LintConfigurationSettings", function() { return LintConfigurationSettings; }); 34077/* harmony import */ var _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../parser/cssNodes.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssNodes.js"); 34078/* harmony import */ var _fillers_vscode_nls_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../fillers/vscode-nls.js */ "./node_modules/monaco-editor/esm/vs/language/css/fillers/vscode-nls.js"); 34079/*--------------------------------------------------------------------------------------------- 34080 * Copyright (c) Microsoft Corporation. All rights reserved. 34081 * Licensed under the MIT License. See License.txt in the project root for license information. 34082 *--------------------------------------------------------------------------------------------*/ 34083 34084 34085 34086var localize = _fillers_vscode_nls_js__WEBPACK_IMPORTED_MODULE_1__["loadMessageBundle"](); 34087var Warning = _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["Level"].Warning; 34088var Error = _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["Level"].Error; 34089var Ignore = _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["Level"].Ignore; 34090var Rule = /** @class */ (function () { 34091 function Rule(id, message, defaultValue) { 34092 this.id = id; 34093 this.message = message; 34094 this.defaultValue = defaultValue; 34095 // nothing to do 34096 } 34097 return Rule; 34098}()); 34099 34100var Setting = /** @class */ (function () { 34101 function Setting(id, message, defaultValue) { 34102 this.id = id; 34103 this.message = message; 34104 this.defaultValue = defaultValue; 34105 // nothing to do 34106 } 34107 return Setting; 34108}()); 34109 34110var Rules = { 34111 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), 34112 IncludeStandardPropertyWhenUsingVendorPrefix: new Rule('vendorPrefix', localize('rule.standardvendorprefix.all', "When using a vendor-specific prefix also include the standard property"), Warning), 34113 DuplicateDeclarations: new Rule('duplicateProperties', localize('rule.duplicateDeclarations', "Do not use duplicate style definitions"), Ignore), 34114 EmptyRuleSet: new Rule('emptyRules', localize('rule.emptyRuleSets', "Do not use empty rulesets"), Warning), 34115 ImportStatemement: new Rule('importStatement', localize('rule.importDirective', "Import statements do not load in parallel"), Ignore), 34116 BewareOfBoxModelSize: new Rule('boxModel', localize('rule.bewareOfBoxModelSize', "Do not use width or height when using padding or border"), Ignore), 34117 UniversalSelector: new Rule('universalSelector', localize('rule.universalSelector', "The universal selector (*) is known to be slow"), Ignore), 34118 ZeroWithUnit: new Rule('zeroUnits', localize('rule.zeroWidthUnit', "No unit for zero needed"), Ignore), 34119 RequiredPropertiesForFontFace: new Rule('fontFaceProperties', localize('rule.fontFaceProperties', "@font-face rule must define 'src' and 'font-family' properties"), Warning), 34120 HexColorLength: new Rule('hexColorLength', localize('rule.hexColor', "Hex colors must consist of three, four, six or eight hex numbers"), Error), 34121 ArgsInColorFunction: new Rule('argumentsInColorFunction', localize('rule.colorFunction', "Invalid number of parameters"), Error), 34122 UnknownProperty: new Rule('unknownProperties', localize('rule.unknownProperty', "Unknown property."), Warning), 34123 UnknownAtRules: new Rule('unknownAtRules', localize('rule.unknownAtRules', "Unknown at-rule."), Warning), 34124 IEStarHack: new Rule('ieHack', localize('rule.ieHack', "IE hacks are only necessary when supporting IE7 and older"), Ignore), 34125 UnknownVendorSpecificProperty: new Rule('unknownVendorSpecificProperties', localize('rule.unknownVendorSpecificProperty', "Unknown vendor specific property."), Ignore), 34126 PropertyIgnoredDueToDisplay: new Rule('propertyIgnoredDueToDisplay', localize('rule.propertyIgnoredDueToDisplay', "Property is ignored due to the display."), Warning), 34127 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), 34128 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), 34129 AvoidIdSelector: new Rule('idSelector', localize('rule.avoidIdSelector', "Selectors should not contain IDs because these rules are too tightly coupled with the HTML."), Ignore), 34130}; 34131var Settings = { 34132 ValidProperties: new Setting('validProperties', localize('rule.validProperties', "A list of properties that are not validated against the `unknownProperties` rule."), []) 34133}; 34134var LintConfigurationSettings = /** @class */ (function () { 34135 function LintConfigurationSettings(conf) { 34136 if (conf === void 0) { conf = {}; } 34137 this.conf = conf; 34138 } 34139 LintConfigurationSettings.prototype.getRule = function (rule) { 34140 if (this.conf.hasOwnProperty(rule.id)) { 34141 var level = toLevel(this.conf[rule.id]); 34142 if (level) { 34143 return level; 34144 } 34145 } 34146 return rule.defaultValue; 34147 }; 34148 LintConfigurationSettings.prototype.getSetting = function (setting) { 34149 return this.conf[setting.id]; 34150 }; 34151 return LintConfigurationSettings; 34152}()); 34153 34154function toLevel(level) { 34155 switch (level) { 34156 case 'ignore': return _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["Level"].Ignore; 34157 case 'warning': return _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["Level"].Warning; 34158 case 'error': return _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["Level"].Error; 34159 } 34160 return null; 34161} 34162 34163 34164/***/ }), 34165 34166/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/lintUtil.js": 34167/*!**************************************************************************************************************!*\ 34168 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/lintUtil.js ***! 34169 \**************************************************************************************************************/ 34170/*! exports provided: Element, default */ 34171/***/ (function(module, __webpack_exports__, __webpack_require__) { 34172 34173"use strict"; 34174__webpack_require__.r(__webpack_exports__); 34175/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Element", function() { return Element; }); 34176/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return calculateBoxModel; }); 34177/* harmony import */ var _utils_arrays_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/arrays.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/utils/arrays.js"); 34178/*--------------------------------------------------------------------------------------------- 34179 * Copyright (c) Microsoft Corporation. All rights reserved. 34180 * Licensed under the MIT License. See License.txt in the project root for license information. 34181 *--------------------------------------------------------------------------------------------*/ 34182 34183 34184var Element = /** @class */ (function () { 34185 function Element(decl) { 34186 this.fullPropertyName = decl.getFullPropertyName().toLowerCase(); 34187 this.node = decl; 34188 } 34189 return Element; 34190}()); 34191 34192function setSide(model, side, value, property) { 34193 var state = model[side]; 34194 state.value = value; 34195 if (value) { 34196 if (!Object(_utils_arrays_js__WEBPACK_IMPORTED_MODULE_0__["includes"])(state.properties, property)) { 34197 state.properties.push(property); 34198 } 34199 } 34200} 34201function setAllSides(model, value, property) { 34202 setSide(model, 'top', value, property); 34203 setSide(model, 'right', value, property); 34204 setSide(model, 'bottom', value, property); 34205 setSide(model, 'left', value, property); 34206} 34207function updateModelWithValue(model, side, value, property) { 34208 if (side === 'top' || side === 'right' || 34209 side === 'bottom' || side === 'left') { 34210 setSide(model, side, value, property); 34211 } 34212 else { 34213 setAllSides(model, value, property); 34214 } 34215} 34216function updateModelWithList(model, values, property) { 34217 switch (values.length) { 34218 case 1: 34219 updateModelWithValue(model, undefined, values[0], property); 34220 break; 34221 case 2: 34222 updateModelWithValue(model, 'top', values[0], property); 34223 updateModelWithValue(model, 'bottom', values[0], property); 34224 updateModelWithValue(model, 'right', values[1], property); 34225 updateModelWithValue(model, 'left', values[1], property); 34226 break; 34227 case 3: 34228 updateModelWithValue(model, 'top', values[0], property); 34229 updateModelWithValue(model, 'right', values[1], property); 34230 updateModelWithValue(model, 'left', values[1], property); 34231 updateModelWithValue(model, 'bottom', values[2], property); 34232 break; 34233 case 4: 34234 updateModelWithValue(model, 'top', values[0], property); 34235 updateModelWithValue(model, 'right', values[1], property); 34236 updateModelWithValue(model, 'bottom', values[2], property); 34237 updateModelWithValue(model, 'left', values[3], property); 34238 break; 34239 } 34240} 34241function matches(value, candidates) { 34242 for (var _i = 0, candidates_1 = candidates; _i < candidates_1.length; _i++) { 34243 var candidate = candidates_1[_i]; 34244 if (value.matches(candidate)) { 34245 return true; 34246 } 34247 } 34248 return false; 34249} 34250/** 34251 * @param allowsKeywords whether the initial value of property is zero, so keywords `initial` and `unset` count as zero 34252 * @return `true` if this node represents a non-zero border; otherwise, `false` 34253 */ 34254function checkLineWidth(value, allowsKeywords) { 34255 if (allowsKeywords === void 0) { allowsKeywords = true; } 34256 if (allowsKeywords && matches(value, ['initial', 'unset'])) { 34257 return false; 34258 } 34259 // a <length> is a value and a unit 34260 // so use `parseFloat` to strip the unit 34261 return parseFloat(value.getText()) !== 0; 34262} 34263function checkLineWidthList(nodes, allowsKeywords) { 34264 if (allowsKeywords === void 0) { allowsKeywords = true; } 34265 return nodes.map(function (node) { return checkLineWidth(node, allowsKeywords); }); 34266} 34267/** 34268 * @param allowsKeywords whether keywords `initial` and `unset` count as zero 34269 * @return `true` if this node represents a non-zero border; otherwise, `false` 34270 */ 34271function checkLineStyle(valueNode, allowsKeywords) { 34272 if (allowsKeywords === void 0) { allowsKeywords = true; } 34273 if (matches(valueNode, ['none', 'hidden'])) { 34274 return false; 34275 } 34276 if (allowsKeywords && matches(valueNode, ['initial', 'unset'])) { 34277 return false; 34278 } 34279 return true; 34280} 34281function checkLineStyleList(nodes, allowsKeywords) { 34282 if (allowsKeywords === void 0) { allowsKeywords = true; } 34283 return nodes.map(function (node) { return checkLineStyle(node, allowsKeywords); }); 34284} 34285function checkBorderShorthand(node) { 34286 var children = node.getChildren(); 34287 // the only child can be a keyword, a <line-width>, or a <line-style> 34288 // if either check returns false, the result is no border 34289 if (children.length === 1) { 34290 var value = children[0]; 34291 return checkLineWidth(value) && checkLineStyle(value); 34292 } 34293 // multiple children can't contain keywords 34294 // if any child means no border, the result is no border 34295 for (var _i = 0, children_1 = children; _i < children_1.length; _i++) { 34296 var child = children_1[_i]; 34297 var value = child; 34298 if (!checkLineWidth(value, /* allowsKeywords: */ false) || 34299 !checkLineStyle(value, /* allowsKeywords: */ false)) { 34300 return false; 34301 } 34302 } 34303 return true; 34304} 34305function calculateBoxModel(propertyTable) { 34306 var model = { 34307 top: { value: false, properties: [] }, 34308 right: { value: false, properties: [] }, 34309 bottom: { value: false, properties: [] }, 34310 left: { value: false, properties: [] }, 34311 }; 34312 for (var _i = 0, propertyTable_1 = propertyTable; _i < propertyTable_1.length; _i++) { 34313 var property = propertyTable_1[_i]; 34314 var value = property.node.value; 34315 if (typeof value === 'undefined') { 34316 continue; 34317 } 34318 switch (property.fullPropertyName) { 34319 case 'box-sizing': 34320 // has `box-sizing`, bail out 34321 return { 34322 top: { value: false, properties: [] }, 34323 right: { value: false, properties: [] }, 34324 bottom: { value: false, properties: [] }, 34325 left: { value: false, properties: [] }, 34326 }; 34327 case 'width': 34328 model.width = property; 34329 break; 34330 case 'height': 34331 model.height = property; 34332 break; 34333 default: 34334 var segments = property.fullPropertyName.split('-'); 34335 switch (segments[0]) { 34336 case 'border': 34337 switch (segments[1]) { 34338 case undefined: 34339 case 'top': 34340 case 'right': 34341 case 'bottom': 34342 case 'left': 34343 switch (segments[2]) { 34344 case undefined: 34345 updateModelWithValue(model, segments[1], checkBorderShorthand(value), property); 34346 break; 34347 case 'width': 34348 // the initial value of `border-width` is `medium`, not zero 34349 updateModelWithValue(model, segments[1], checkLineWidth(value, false), property); 34350 break; 34351 case 'style': 34352 // the initial value of `border-style` is `none` 34353 updateModelWithValue(model, segments[1], checkLineStyle(value, true), property); 34354 break; 34355 } 34356 break; 34357 case 'width': 34358 // the initial value of `border-width` is `medium`, not zero 34359 updateModelWithList(model, checkLineWidthList(value.getChildren(), false), property); 34360 break; 34361 case 'style': 34362 // the initial value of `border-style` is `none` 34363 updateModelWithList(model, checkLineStyleList(value.getChildren(), true), property); 34364 break; 34365 } 34366 break; 34367 case 'padding': 34368 if (segments.length === 1) { 34369 // the initial value of `padding` is zero 34370 updateModelWithList(model, checkLineWidthList(value.getChildren(), true), property); 34371 } 34372 else { 34373 // the initial value of `padding` is zero 34374 updateModelWithValue(model, segments[1], checkLineWidth(value, true), property); 34375 } 34376 break; 34377 } 34378 break; 34379 } 34380 } 34381 return model; 34382} 34383 34384 34385/***/ }), 34386 34387/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/pathCompletion.js": 34388/*!********************************************************************************************************************!*\ 34389 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/pathCompletion.js ***! 34390 \********************************************************************************************************************/ 34391/*! exports provided: PathCompletionParticipant */ 34392/***/ (function(module, __webpack_exports__, __webpack_require__) { 34393 34394"use strict"; 34395__webpack_require__.r(__webpack_exports__); 34396/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PathCompletionParticipant", function() { return PathCompletionParticipant; }); 34397/* harmony import */ var _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../cssLanguageTypes.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/cssLanguageTypes.js"); 34398/* harmony import */ var _utils_strings_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/strings.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/utils/strings.js"); 34399/* harmony import */ var _utils_resources_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/resources.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/utils/resources.js"); 34400/*--------------------------------------------------------------------------------------------- 34401 * Copyright (c) Microsoft Corporation. All rights reserved. 34402 * Licensed under the MIT License. See License.txt in the project root for license information. 34403 *--------------------------------------------------------------------------------------------*/ 34404var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { 34405 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } 34406 return new (P || (P = Promise))(function (resolve, reject) { 34407 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } 34408 function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } 34409 function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } 34410 step((generator = generator.apply(thisArg, _arguments || [])).next()); 34411 }); 34412}; 34413var __generator = (undefined && undefined.__generator) || function (thisArg, body) { 34414 var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; 34415 return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; 34416 function verb(n) { return function (v) { return step([n, v]); }; } 34417 function step(op) { 34418 if (f) throw new TypeError("Generator is already executing."); 34419 while (_) try { 34420 if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; 34421 if (y = 0, t) op = [op[0] & 2, t.value]; 34422 switch (op[0]) { 34423 case 0: case 1: t = op; break; 34424 case 4: _.label++; return { value: op[1], done: false }; 34425 case 5: _.label++; y = op[1]; op = [0]; continue; 34426 case 7: op = _.ops.pop(); _.trys.pop(); continue; 34427 default: 34428 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } 34429 if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } 34430 if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } 34431 if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } 34432 if (t[2]) _.ops.pop(); 34433 _.trys.pop(); continue; 34434 } 34435 op = body.call(thisArg, _); 34436 } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } 34437 if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; 34438 } 34439}; 34440 34441 34442 34443var PathCompletionParticipant = /** @class */ (function () { 34444 function PathCompletionParticipant(readDirectory) { 34445 this.readDirectory = readDirectory; 34446 this.literalCompletions = []; 34447 this.importCompletions = []; 34448 } 34449 PathCompletionParticipant.prototype.onCssURILiteralValue = function (context) { 34450 this.literalCompletions.push(context); 34451 }; 34452 PathCompletionParticipant.prototype.onCssImportPath = function (context) { 34453 this.importCompletions.push(context); 34454 }; 34455 PathCompletionParticipant.prototype.computeCompletions = function (document, documentContext) { 34456 return __awaiter(this, void 0, void 0, function () { 34457 var result, _i, _a, literalCompletion, uriValue, fullValue, items, _b, items_1, item, _c, _d, importCompletion, pathValue, fullValue, suggestions, _e, suggestions_1, item; 34458 return __generator(this, function (_f) { 34459 switch (_f.label) { 34460 case 0: 34461 result = { items: [], isIncomplete: false }; 34462 _i = 0, _a = this.literalCompletions; 34463 _f.label = 1; 34464 case 1: 34465 if (!(_i < _a.length)) return [3 /*break*/, 5]; 34466 literalCompletion = _a[_i]; 34467 uriValue = literalCompletion.uriValue; 34468 fullValue = stripQuotes(uriValue); 34469 if (!(fullValue === '.' || fullValue === '..')) return [3 /*break*/, 2]; 34470 result.isIncomplete = true; 34471 return [3 /*break*/, 4]; 34472 case 2: return [4 /*yield*/, this.providePathSuggestions(uriValue, literalCompletion.position, literalCompletion.range, document, documentContext)]; 34473 case 3: 34474 items = _f.sent(); 34475 for (_b = 0, items_1 = items; _b < items_1.length; _b++) { 34476 item = items_1[_b]; 34477 result.items.push(item); 34478 } 34479 _f.label = 4; 34480 case 4: 34481 _i++; 34482 return [3 /*break*/, 1]; 34483 case 5: 34484 _c = 0, _d = this.importCompletions; 34485 _f.label = 6; 34486 case 6: 34487 if (!(_c < _d.length)) return [3 /*break*/, 10]; 34488 importCompletion = _d[_c]; 34489 pathValue = importCompletion.pathValue; 34490 fullValue = stripQuotes(pathValue); 34491 if (!(fullValue === '.' || fullValue === '..')) return [3 /*break*/, 7]; 34492 result.isIncomplete = true; 34493 return [3 /*break*/, 9]; 34494 case 7: return [4 /*yield*/, this.providePathSuggestions(pathValue, importCompletion.position, importCompletion.range, document, documentContext)]; 34495 case 8: 34496 suggestions = _f.sent(); 34497 if (document.languageId === 'scss') { 34498 suggestions.forEach(function (s) { 34499 if (Object(_utils_strings_js__WEBPACK_IMPORTED_MODULE_1__["startsWith"])(s.label, '_') && Object(_utils_strings_js__WEBPACK_IMPORTED_MODULE_1__["endsWith"])(s.label, '.scss')) { 34500 if (s.textEdit) { 34501 s.textEdit.newText = s.label.slice(1, -5); 34502 } 34503 else { 34504 s.label = s.label.slice(1, -5); 34505 } 34506 } 34507 }); 34508 } 34509 for (_e = 0, suggestions_1 = suggestions; _e < suggestions_1.length; _e++) { 34510 item = suggestions_1[_e]; 34511 result.items.push(item); 34512 } 34513 _f.label = 9; 34514 case 9: 34515 _c++; 34516 return [3 /*break*/, 6]; 34517 case 10: return [2 /*return*/, result]; 34518 } 34519 }); 34520 }); 34521 }; 34522 PathCompletionParticipant.prototype.providePathSuggestions = function (pathValue, position, range, document, documentContext) { 34523 return __awaiter(this, void 0, void 0, function () { 34524 var fullValue, isValueQuoted, valueBeforeCursor, currentDocUri, fullValueRange, replaceRange, valueBeforeLastSlash, parentDir, result, infos, _i, infos_1, _a, name, type, e_1; 34525 return __generator(this, function (_b) { 34526 switch (_b.label) { 34527 case 0: 34528 fullValue = stripQuotes(pathValue); 34529 isValueQuoted = Object(_utils_strings_js__WEBPACK_IMPORTED_MODULE_1__["startsWith"])(pathValue, "'") || Object(_utils_strings_js__WEBPACK_IMPORTED_MODULE_1__["startsWith"])(pathValue, "\""); 34530 valueBeforeCursor = isValueQuoted 34531 ? fullValue.slice(0, position.character - (range.start.character + 1)) 34532 : fullValue.slice(0, position.character - range.start.character); 34533 currentDocUri = document.uri; 34534 fullValueRange = isValueQuoted ? shiftRange(range, 1, -1) : range; 34535 replaceRange = pathToReplaceRange(valueBeforeCursor, fullValue, fullValueRange); 34536 valueBeforeLastSlash = valueBeforeCursor.substring(0, valueBeforeCursor.lastIndexOf('/') + 1); 34537 parentDir = documentContext.resolveReference(valueBeforeLastSlash || '.', currentDocUri); 34538 if (!parentDir) return [3 /*break*/, 4]; 34539 _b.label = 1; 34540 case 1: 34541 _b.trys.push([1, 3, , 4]); 34542 result = []; 34543 return [4 /*yield*/, this.readDirectory(parentDir)]; 34544 case 2: 34545 infos = _b.sent(); 34546 for (_i = 0, infos_1 = infos; _i < infos_1.length; _i++) { 34547 _a = infos_1[_i], name = _a[0], type = _a[1]; 34548 // Exclude paths that start with `.` 34549 if (name.charCodeAt(0) !== CharCode_dot && (type === _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__["FileType"].Directory || Object(_utils_resources_js__WEBPACK_IMPORTED_MODULE_2__["joinPath"])(parentDir, name) !== currentDocUri)) { 34550 result.push(createCompletionItem(name, type === _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__["FileType"].Directory, replaceRange)); 34551 } 34552 } 34553 return [2 /*return*/, result]; 34554 case 3: 34555 e_1 = _b.sent(); 34556 return [3 /*break*/, 4]; 34557 case 4: return [2 /*return*/, []]; 34558 } 34559 }); 34560 }); 34561 }; 34562 return PathCompletionParticipant; 34563}()); 34564 34565var CharCode_dot = '.'.charCodeAt(0); 34566function stripQuotes(fullValue) { 34567 if (Object(_utils_strings_js__WEBPACK_IMPORTED_MODULE_1__["startsWith"])(fullValue, "'") || Object(_utils_strings_js__WEBPACK_IMPORTED_MODULE_1__["startsWith"])(fullValue, "\"")) { 34568 return fullValue.slice(1, -1); 34569 } 34570 else { 34571 return fullValue; 34572 } 34573} 34574function pathToReplaceRange(valueBeforeCursor, fullValue, fullValueRange) { 34575 var replaceRange; 34576 var lastIndexOfSlash = valueBeforeCursor.lastIndexOf('/'); 34577 if (lastIndexOfSlash === -1) { 34578 replaceRange = fullValueRange; 34579 } 34580 else { 34581 // For cases where cursor is in the middle of attribute value, like <script src="./s|rc/test.js"> 34582 // Find the last slash before cursor, and calculate the start of replace range from there 34583 var valueAfterLastSlash = fullValue.slice(lastIndexOfSlash + 1); 34584 var startPos = shiftPosition(fullValueRange.end, -valueAfterLastSlash.length); 34585 // If whitespace exists, replace until it 34586 var whitespaceIndex = valueAfterLastSlash.indexOf(' '); 34587 var endPos = void 0; 34588 if (whitespaceIndex !== -1) { 34589 endPos = shiftPosition(startPos, whitespaceIndex); 34590 } 34591 else { 34592 endPos = fullValueRange.end; 34593 } 34594 replaceRange = _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__["Range"].create(startPos, endPos); 34595 } 34596 return replaceRange; 34597} 34598function createCompletionItem(name, isDir, replaceRange) { 34599 if (isDir) { 34600 name = name + '/'; 34601 return { 34602 label: escapePath(name), 34603 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__["CompletionItemKind"].Folder, 34604 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__["TextEdit"].replace(replaceRange, escapePath(name)), 34605 command: { 34606 title: 'Suggest', 34607 command: 'editor.action.triggerSuggest' 34608 } 34609 }; 34610 } 34611 else { 34612 return { 34613 label: escapePath(name), 34614 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__["CompletionItemKind"].File, 34615 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__["TextEdit"].replace(replaceRange, escapePath(name)) 34616 }; 34617 } 34618} 34619// Escape https://www.w3.org/TR/CSS1/#url 34620function escapePath(p) { 34621 return p.replace(/(\s|\(|\)|,|"|')/g, '\\$1'); 34622} 34623function shiftPosition(pos, offset) { 34624 return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__["Position"].create(pos.line, pos.character + offset); 34625} 34626function shiftRange(range, startOffset, endOffset) { 34627 var start = shiftPosition(range.start, startOffset); 34628 var end = shiftPosition(range.end, endOffset); 34629 return _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__["Range"].create(start, end); 34630} 34631 34632 34633/***/ }), 34634 34635/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/scssCompletion.js": 34636/*!********************************************************************************************************************!*\ 34637 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/scssCompletion.js ***! 34638 \********************************************************************************************************************/ 34639/*! exports provided: SCSSCompletion */ 34640/***/ (function(module, __webpack_exports__, __webpack_require__) { 34641 34642"use strict"; 34643__webpack_require__.r(__webpack_exports__); 34644/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SCSSCompletion", function() { return SCSSCompletion; }); 34645/* harmony import */ var _cssCompletion_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cssCompletion.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/cssCompletion.js"); 34646/* harmony import */ var _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../parser/cssNodes.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssNodes.js"); 34647/* harmony import */ var _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../cssLanguageTypes.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/cssLanguageTypes.js"); 34648/* harmony import */ var _fillers_vscode_nls_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../fillers/vscode-nls.js */ "./node_modules/monaco-editor/esm/vs/language/css/fillers/vscode-nls.js"); 34649/*--------------------------------------------------------------------------------------------- 34650 * Copyright (c) Microsoft Corporation. All rights reserved. 34651 * Licensed under the MIT License. See License.txt in the project root for license information. 34652 *--------------------------------------------------------------------------------------------*/ 34653 34654var __extends = (undefined && undefined.__extends) || (function () { 34655 var extendStatics = function (d, b) { 34656 extendStatics = Object.setPrototypeOf || 34657 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || 34658 function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; 34659 return extendStatics(d, b); 34660 }; 34661 return function (d, b) { 34662 extendStatics(d, b); 34663 function __() { this.constructor = d; } 34664 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); 34665 }; 34666})(); 34667 34668 34669 34670 34671var localize = _fillers_vscode_nls_js__WEBPACK_IMPORTED_MODULE_3__["loadMessageBundle"](); 34672var SCSSCompletion = /** @class */ (function (_super) { 34673 __extends(SCSSCompletion, _super); 34674 function SCSSCompletion(lsServiceOptions, cssDataManager) { 34675 var _this = _super.call(this, '$', lsServiceOptions, cssDataManager) || this; 34676 addReferencesToDocumentation(SCSSCompletion.scssModuleLoaders); 34677 addReferencesToDocumentation(SCSSCompletion.scssModuleBuiltIns); 34678 return _this; 34679 } 34680 SCSSCompletion.prototype.isImportPathParent = function (type) { 34681 return type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].Forward 34682 || type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].Use 34683 || _super.prototype.isImportPathParent.call(this, type); 34684 }; 34685 SCSSCompletion.prototype.getCompletionForImportPath = function (importPathNode, result) { 34686 var parentType = importPathNode.getParent().type; 34687 if (parentType === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].Forward || parentType === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].Use) { 34688 for (var _i = 0, _a = SCSSCompletion.scssModuleBuiltIns; _i < _a.length; _i++) { 34689 var p = _a[_i]; 34690 var item = { 34691 label: p.label, 34692 documentation: p.documentation, 34693 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_2__["TextEdit"].replace(this.getCompletionRange(importPathNode), "'" + p.label + "'"), 34694 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_2__["CompletionItemKind"].Module 34695 }; 34696 result.items.push(item); 34697 } 34698 } 34699 return _super.prototype.getCompletionForImportPath.call(this, importPathNode, result); 34700 }; 34701 SCSSCompletion.prototype.createReplaceFunction = function () { 34702 var tabStopCounter = 1; 34703 return function (_match, p1) { 34704 return '\\' + p1 + ': ${' + tabStopCounter++ + ':' + (SCSSCompletion.variableDefaults[p1] || '') + '}'; 34705 }; 34706 }; 34707 SCSSCompletion.prototype.createFunctionProposals = function (proposals, existingNode, sortToEnd, result) { 34708 for (var _i = 0, proposals_1 = proposals; _i < proposals_1.length; _i++) { 34709 var p = proposals_1[_i]; 34710 var insertText = p.func.replace(/\[?(\$\w+)\]?/g, this.createReplaceFunction()); 34711 var label = p.func.substr(0, p.func.indexOf('(')); 34712 var item = { 34713 label: label, 34714 detail: p.func, 34715 documentation: p.desc, 34716 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_2__["TextEdit"].replace(this.getCompletionRange(existingNode), insertText), 34717 insertTextFormat: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_2__["InsertTextFormat"].Snippet, 34718 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_2__["CompletionItemKind"].Function 34719 }; 34720 if (sortToEnd) { 34721 item.sortText = 'z'; 34722 } 34723 result.items.push(item); 34724 } 34725 return result; 34726 }; 34727 SCSSCompletion.prototype.getCompletionsForSelector = function (ruleSet, isNested, result) { 34728 this.createFunctionProposals(SCSSCompletion.selectorFuncs, null, true, result); 34729 return _super.prototype.getCompletionsForSelector.call(this, ruleSet, isNested, result); 34730 }; 34731 SCSSCompletion.prototype.getTermProposals = function (entry, existingNode, result) { 34732 var functions = SCSSCompletion.builtInFuncs; 34733 if (entry) { 34734 functions = functions.filter(function (f) { return !f.type || !entry.restrictions || entry.restrictions.indexOf(f.type) !== -1; }); 34735 } 34736 this.createFunctionProposals(functions, existingNode, true, result); 34737 return _super.prototype.getTermProposals.call(this, entry, existingNode, result); 34738 }; 34739 SCSSCompletion.prototype.getColorProposals = function (entry, existingNode, result) { 34740 this.createFunctionProposals(SCSSCompletion.colorProposals, existingNode, false, result); 34741 return _super.prototype.getColorProposals.call(this, entry, existingNode, result); 34742 }; 34743 SCSSCompletion.prototype.getCompletionsForDeclarationProperty = function (declaration, result) { 34744 this.getCompletionForAtDirectives(result); 34745 this.getCompletionsForSelector(null, true, result); 34746 return _super.prototype.getCompletionsForDeclarationProperty.call(this, declaration, result); 34747 }; 34748 SCSSCompletion.prototype.getCompletionsForExtendsReference = function (_extendsRef, existingNode, result) { 34749 var symbols = this.getSymbolContext().findSymbolsAtOffset(this.offset, _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["ReferenceType"].Rule); 34750 for (var _i = 0, symbols_1 = symbols; _i < symbols_1.length; _i++) { 34751 var symbol = symbols_1[_i]; 34752 var suggest = { 34753 label: symbol.name, 34754 textEdit: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_2__["TextEdit"].replace(this.getCompletionRange(existingNode), symbol.name), 34755 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_2__["CompletionItemKind"].Function, 34756 }; 34757 result.items.push(suggest); 34758 } 34759 return result; 34760 }; 34761 SCSSCompletion.prototype.getCompletionForAtDirectives = function (result) { 34762 var _a; 34763 (_a = result.items).push.apply(_a, SCSSCompletion.scssAtDirectives); 34764 return result; 34765 }; 34766 SCSSCompletion.prototype.getCompletionForTopLevel = function (result) { 34767 this.getCompletionForAtDirectives(result); 34768 this.getCompletionForModuleLoaders(result); 34769 _super.prototype.getCompletionForTopLevel.call(this, result); 34770 return result; 34771 }; 34772 SCSSCompletion.prototype.getCompletionForModuleLoaders = function (result) { 34773 var _a; 34774 (_a = result.items).push.apply(_a, SCSSCompletion.scssModuleLoaders); 34775 return result; 34776 }; 34777 SCSSCompletion.variableDefaults = { 34778 '$red': '1', 34779 '$green': '2', 34780 '$blue': '3', 34781 '$alpha': '1.0', 34782 '$color': '#000000', 34783 '$weight': '0.5', 34784 '$hue': '0', 34785 '$saturation': '0%', 34786 '$lightness': '0%', 34787 '$degrees': '0', 34788 '$amount': '0', 34789 '$string': '""', 34790 '$substring': '"s"', 34791 '$number': '0', 34792 '$limit': '1' 34793 }; 34794 SCSSCompletion.colorProposals = [ 34795 { func: 'red($color)', desc: localize('scss.builtin.red', 'Gets the red component of a color.') }, 34796 { func: 'green($color)', desc: localize('scss.builtin.green', 'Gets the green component of a color.') }, 34797 { func: 'blue($color)', desc: localize('scss.builtin.blue', 'Gets the blue component of a color.') }, 34798 { func: 'mix($color, $color, [$weight])', desc: localize('scss.builtin.mix', 'Mixes two colors together.') }, 34799 { func: 'hue($color)', desc: localize('scss.builtin.hue', 'Gets the hue component of a color.') }, 34800 { func: 'saturation($color)', desc: localize('scss.builtin.saturation', 'Gets the saturation component of a color.') }, 34801 { func: 'lightness($color)', desc: localize('scss.builtin.lightness', 'Gets the lightness component of a color.') }, 34802 { func: 'adjust-hue($color, $degrees)', desc: localize('scss.builtin.adjust-hue', 'Changes the hue of a color.') }, 34803 { func: 'lighten($color, $amount)', desc: localize('scss.builtin.lighten', 'Makes a color lighter.') }, 34804 { func: 'darken($color, $amount)', desc: localize('scss.builtin.darken', 'Makes a color darker.') }, 34805 { func: 'saturate($color, $amount)', desc: localize('scss.builtin.saturate', 'Makes a color more saturated.') }, 34806 { func: 'desaturate($color, $amount)', desc: localize('scss.builtin.desaturate', 'Makes a color less saturated.') }, 34807 { func: 'grayscale($color)', desc: localize('scss.builtin.grayscale', 'Converts a color to grayscale.') }, 34808 { func: 'complement($color)', desc: localize('scss.builtin.complement', 'Returns the complement of a color.') }, 34809 { func: 'invert($color)', desc: localize('scss.builtin.invert', 'Returns the inverse of a color.') }, 34810 { func: 'alpha($color)', desc: localize('scss.builtin.alpha', 'Gets the opacity component of a color.') }, 34811 { func: 'opacity($color)', desc: 'Gets the alpha component (opacity) of a color.' }, 34812 { func: 'rgba($color, $alpha)', desc: localize('scss.builtin.rgba', 'Changes the alpha component for a color.') }, 34813 { func: 'opacify($color, $amount)', desc: localize('scss.builtin.opacify', 'Makes a color more opaque.') }, 34814 { func: 'fade-in($color, $amount)', desc: localize('scss.builtin.fade-in', 'Makes a color more opaque.') }, 34815 { func: 'transparentize($color, $amount)', desc: localize('scss.builtin.transparentize', 'Makes a color more transparent.') }, 34816 { func: 'fade-out($color, $amount)', desc: localize('scss.builtin.fade-out', 'Makes a color more transparent.') }, 34817 { 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.') }, 34818 { 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.') }, 34819 { 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.') }, 34820 { func: 'ie-hex-str($color)', desc: localize('scss.builtin.ie-hex-str', 'Converts a color into the format understood by IE filters.') } 34821 ]; 34822 SCSSCompletion.selectorFuncs = [ 34823 { func: 'selector-nest($selectors…)', desc: localize('scss.builtin.selector-nest', 'Nests selector beneath one another like they would be nested in the stylesheet.') }, 34824 { func: 'selector-append($selectors…)', desc: localize('scss.builtin.selector-append', 'Appends selectors to one another without spaces in between.') }, 34825 { func: 'selector-extend($selector, $extendee, $extender)', desc: localize('scss.builtin.selector-extend', 'Extends $extendee with $extender within $selector.') }, 34826 { func: 'selector-replace($selector, $original, $replacement)', desc: localize('scss.builtin.selector-replace', 'Replaces $original with $replacement within $selector.') }, 34827 { func: 'selector-unify($selector1, $selector2)', desc: localize('scss.builtin.selector-unify', 'Unifies two selectors to produce a selector that matches elements matched by both.') }, 34828 { func: 'is-superselector($super, $sub)', desc: localize('scss.builtin.is-superselector', 'Returns whether $super matches all the elements $sub does, and possibly more.') }, 34829 { func: 'simple-selectors($selector)', desc: localize('scss.builtin.simple-selectors', 'Returns the simple selectors that comprise a compound selector.') }, 34830 { func: 'selector-parse($selector)', desc: localize('scss.builtin.selector-parse', 'Parses a selector into the format returned by &.') } 34831 ]; 34832 SCSSCompletion.builtInFuncs = [ 34833 { func: 'unquote($string)', desc: localize('scss.builtin.unquote', 'Removes quotes from a string.') }, 34834 { func: 'quote($string)', desc: localize('scss.builtin.quote', 'Adds quotes to a string.') }, 34835 { func: 'str-length($string)', desc: localize('scss.builtin.str-length', 'Returns the number of characters in a string.') }, 34836 { func: 'str-insert($string, $insert, $index)', desc: localize('scss.builtin.str-insert', 'Inserts $insert into $string at $index.') }, 34837 { func: 'str-index($string, $substring)', desc: localize('scss.builtin.str-index', 'Returns the index of the first occurance of $substring in $string.') }, 34838 { func: 'str-slice($string, $start-at, [$end-at])', desc: localize('scss.builtin.str-slice', 'Extracts a substring from $string.') }, 34839 { func: 'to-upper-case($string)', desc: localize('scss.builtin.to-upper-case', 'Converts a string to upper case.') }, 34840 { func: 'to-lower-case($string)', desc: localize('scss.builtin.to-lower-case', 'Converts a string to lower case.') }, 34841 { func: 'percentage($number)', desc: localize('scss.builtin.percentage', 'Converts a unitless number to a percentage.'), type: 'percentage' }, 34842 { func: 'round($number)', desc: localize('scss.builtin.round', 'Rounds a number to the nearest whole number.') }, 34843 { func: 'ceil($number)', desc: localize('scss.builtin.ceil', 'Rounds a number up to the next whole number.') }, 34844 { func: 'floor($number)', desc: localize('scss.builtin.floor', 'Rounds a number down to the previous whole number.') }, 34845 { func: 'abs($number)', desc: localize('scss.builtin.abs', 'Returns the absolute value of a number.') }, 34846 { func: 'min($numbers)', desc: localize('scss.builtin.min', 'Finds the minimum of several numbers.') }, 34847 { func: 'max($numbers)', desc: localize('scss.builtin.max', 'Finds the maximum of several numbers.') }, 34848 { func: 'random([$limit])', desc: localize('scss.builtin.random', 'Returns a random number.') }, 34849 { func: 'length($list)', desc: localize('scss.builtin.length', 'Returns the length of a list.') }, 34850 { func: 'nth($list, $n)', desc: localize('scss.builtin.nth', 'Returns a specific item in a list.') }, 34851 { func: 'set-nth($list, $n, $value)', desc: localize('scss.builtin.set-nth', 'Replaces the nth item in a list.') }, 34852 { func: 'join($list1, $list2, [$separator])', desc: localize('scss.builtin.join', 'Joins together two lists into one.') }, 34853 { func: 'append($list1, $val, [$separator])', desc: localize('scss.builtin.append', 'Appends a single value onto the end of a list.') }, 34854 { func: 'zip($lists)', desc: localize('scss.builtin.zip', 'Combines several lists into a single multidimensional list.') }, 34855 { func: 'index($list, $value)', desc: localize('scss.builtin.index', 'Returns the position of a value within a list.') }, 34856 { func: 'list-separator(#list)', desc: localize('scss.builtin.list-separator', 'Returns the separator of a list.') }, 34857 { func: 'map-get($map, $key)', desc: localize('scss.builtin.map-get', 'Returns the value in a map associated with a given key.') }, 34858 { func: 'map-merge($map1, $map2)', desc: localize('scss.builtin.map-merge', 'Merges two maps together into a new map.') }, 34859 { func: 'map-remove($map, $keys)', desc: localize('scss.builtin.map-remove', 'Returns a new map with keys removed.') }, 34860 { func: 'map-keys($map)', desc: localize('scss.builtin.map-keys', 'Returns a list of all keys in a map.') }, 34861 { func: 'map-values($map)', desc: localize('scss.builtin.map-values', 'Returns a list of all values in a map.') }, 34862 { 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.') }, 34863 { func: 'keywords($args)', desc: localize('scss.builtin.keywords', 'Returns the keywords passed to a function that takes variable arguments.') }, 34864 { func: 'feature-exists($feature)', desc: localize('scss.builtin.feature-exists', 'Returns whether a feature exists in the current Sass runtime.') }, 34865 { func: 'variable-exists($name)', desc: localize('scss.builtin.variable-exists', 'Returns whether a variable with the given name exists in the current scope.') }, 34866 { 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.') }, 34867 { func: 'function-exists($name)', desc: localize('scss.builtin.function-exists', 'Returns whether a function with the given name exists.') }, 34868 { func: 'mixin-exists($name)', desc: localize('scss.builtin.mixin-exists', 'Returns whether a mixin with the given name exists.') }, 34869 { func: 'inspect($value)', desc: localize('scss.builtin.inspect', 'Returns the string representation of a value as it would be represented in Sass.') }, 34870 { func: 'type-of($value)', desc: localize('scss.builtin.type-of', 'Returns the type of a value.') }, 34871 { func: 'unit($number)', desc: localize('scss.builtin.unit', 'Returns the unit(s) associated with a number.') }, 34872 { func: 'unitless($number)', desc: localize('scss.builtin.unitless', 'Returns whether a number has units.') }, 34873 { func: 'comparable($number1, $number2)', desc: localize('scss.builtin.comparable', 'Returns whether two numbers can be added, subtracted, or compared.') }, 34874 { func: 'call($name, $args…)', desc: localize('scss.builtin.call', 'Dynamically calls a Sass function.') } 34875 ]; 34876 SCSSCompletion.scssAtDirectives = [ 34877 { 34878 label: "@extend", 34879 documentation: localize("scss.builtin.@extend", "Inherits the styles of another selector."), 34880 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_2__["CompletionItemKind"].Keyword 34881 }, 34882 { 34883 label: "@at-root", 34884 documentation: localize("scss.builtin.@at-root", "Causes one or more rules to be emitted at the root of the document."), 34885 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_2__["CompletionItemKind"].Keyword 34886 }, 34887 { 34888 label: "@debug", 34889 documentation: localize("scss.builtin.@debug", "Prints the value of an expression to the standard error output stream. Useful for debugging complicated Sass files."), 34890 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_2__["CompletionItemKind"].Keyword 34891 }, 34892 { 34893 label: "@warn", 34894 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."), 34895 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_2__["CompletionItemKind"].Keyword 34896 }, 34897 { 34898 label: "@error", 34899 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."), 34900 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_2__["CompletionItemKind"].Keyword 34901 }, 34902 { 34903 label: "@if", 34904 documentation: localize("scss.builtin.@if", "Includes the body if the expression does not evaluate to `false` or `null`."), 34905 insertText: "@if ${1:expr} {\n\t$0\n}", 34906 insertTextFormat: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_2__["InsertTextFormat"].Snippet, 34907 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_2__["CompletionItemKind"].Keyword 34908 }, 34909 { 34910 label: "@for", 34911 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."), 34912 insertText: "@for \\$${1:var} from ${2:start} ${3|to,through|} ${4:end} {\n\t$0\n}", 34913 insertTextFormat: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_2__["InsertTextFormat"].Snippet, 34914 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_2__["CompletionItemKind"].Keyword 34915 }, 34916 { 34917 label: "@each", 34918 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`."), 34919 insertText: "@each \\$${1:var} in ${2:list} {\n\t$0\n}", 34920 insertTextFormat: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_2__["InsertTextFormat"].Snippet, 34921 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_2__["CompletionItemKind"].Keyword 34922 }, 34923 { 34924 label: "@while", 34925 documentation: localize("scss.builtin.@while", "While loop that takes an expression and repeatedly outputs the nested styles until the statement evaluates to `false`."), 34926 insertText: "@while ${1:condition} {\n\t$0\n}", 34927 insertTextFormat: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_2__["InsertTextFormat"].Snippet, 34928 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_2__["CompletionItemKind"].Keyword 34929 }, 34930 { 34931 label: "@mixin", 34932 documentation: localize("scss.builtin.@mixin", "Defines styles that can be re-used throughout the stylesheet with `@include`."), 34933 insertText: "@mixin ${1:name} {\n\t$0\n}", 34934 insertTextFormat: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_2__["InsertTextFormat"].Snippet, 34935 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_2__["CompletionItemKind"].Keyword 34936 }, 34937 { 34938 label: "@include", 34939 documentation: localize("scss.builtin.@include", "Includes the styles defined by another mixin into the current rule."), 34940 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_2__["CompletionItemKind"].Keyword 34941 }, 34942 { 34943 label: "@function", 34944 documentation: localize("scss.builtin.@function", "Defines complex operations that can be re-used throughout stylesheets."), 34945 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_2__["CompletionItemKind"].Keyword 34946 } 34947 ]; 34948 SCSSCompletion.scssModuleLoaders = [ 34949 { 34950 label: "@use", 34951 documentation: localize("scss.builtin.@use", "Loads mixins, functions, and variables from other Sass stylesheets as 'modules', and combines CSS from multiple stylesheets together."), 34952 references: [{ name: 'Sass documentation', url: 'https://sass-lang.com/documentation/at-rules/use' }], 34953 insertText: "@use '$0';", 34954 insertTextFormat: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_2__["InsertTextFormat"].Snippet, 34955 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_2__["CompletionItemKind"].Keyword 34956 }, 34957 { 34958 label: "@forward", 34959 documentation: localize("scss.builtin.@forward", "Loads a Sass stylesheet and makes its mixins, functions, and variables available when this stylesheet is loaded with the @use rule."), 34960 references: [{ name: 'Sass documentation', url: 'https://sass-lang.com/documentation/at-rules/forward' }], 34961 insertText: "@forward '$0';", 34962 insertTextFormat: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_2__["InsertTextFormat"].Snippet, 34963 kind: _cssLanguageTypes_js__WEBPACK_IMPORTED_MODULE_2__["CompletionItemKind"].Keyword 34964 }, 34965 ]; 34966 SCSSCompletion.scssModuleBuiltIns = [ 34967 { 34968 label: 'sass:math', 34969 documentation: localize('scss.builtin.sass:math', 'Provides functions that operate on numbers.'), 34970 references: [{ name: 'Sass documentation', url: 'https://sass-lang.com/documentation/modules/math' }] 34971 }, 34972 { 34973 label: 'sass:string', 34974 documentation: localize('scss.builtin.sass:string', 'Makes it easy to combine, search, or split apart strings.'), 34975 references: [{ name: 'Sass documentation', url: 'https://sass-lang.com/documentation/modules/string' }] 34976 }, 34977 { 34978 label: 'sass:color', 34979 documentation: localize('scss.builtin.sass:color', 'Generates new colors based on existing ones, making it easy to build color themes.'), 34980 references: [{ name: 'Sass documentation', url: 'https://sass-lang.com/documentation/modules/color' }] 34981 }, 34982 { 34983 label: 'sass:list', 34984 documentation: localize('scss.builtin.sass:list', 'Lets you access and modify values in lists.'), 34985 references: [{ name: 'Sass documentation', url: 'https://sass-lang.com/documentation/modules/list' }] 34986 }, 34987 { 34988 label: 'sass:map', 34989 documentation: localize('scss.builtin.sass:map', 'Makes it possible to look up the value associated with a key in a map, and much more.'), 34990 references: [{ name: 'Sass documentation', url: 'https://sass-lang.com/documentation/modules/map' }] 34991 }, 34992 { 34993 label: 'sass:selector', 34994 documentation: localize('scss.builtin.sass:selector', 'Provides access to Sass’s powerful selector engine.'), 34995 references: [{ name: 'Sass documentation', url: 'https://sass-lang.com/documentation/modules/selector' }] 34996 }, 34997 { 34998 label: 'sass:meta', 34999 documentation: localize('scss.builtin.sass:meta', 'Exposes the details of Sass’s inner workings.'), 35000 references: [{ name: 'Sass documentation', url: 'https://sass-lang.com/documentation/modules/meta' }] 35001 }, 35002 ]; 35003 return SCSSCompletion; 35004}(_cssCompletion_js__WEBPACK_IMPORTED_MODULE_0__["CSSCompletion"])); 35005 35006/** 35007 * Todo @Pine: Remove this and do it through custom data 35008 */ 35009function addReferencesToDocumentation(items) { 35010 items.forEach(function (i) { 35011 if (i.documentation && i.references && i.references.length > 0) { 35012 var markdownDoc = typeof i.documentation === 'string' 35013 ? { kind: 'markdown', value: i.documentation } 35014 : { kind: 'markdown', value: i.documentation.value }; 35015 markdownDoc.value += '\n\n'; 35016 markdownDoc.value += i.references 35017 .map(function (r) { 35018 return "[" + r.name + "](" + r.url + ")"; 35019 }) 35020 .join(' | '); 35021 i.documentation = markdownDoc; 35022 } 35023 }); 35024} 35025 35026 35027/***/ }), 35028 35029/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/scssNavigation.js": 35030/*!********************************************************************************************************************!*\ 35031 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/scssNavigation.js ***! 35032 \********************************************************************************************************************/ 35033/*! exports provided: SCSSNavigation */ 35034/***/ (function(module, __webpack_exports__, __webpack_require__) { 35035 35036"use strict"; 35037__webpack_require__.r(__webpack_exports__); 35038/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SCSSNavigation", function() { return SCSSNavigation; }); 35039/* harmony import */ var _cssNavigation_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cssNavigation.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/cssNavigation.js"); 35040/* harmony import */ var _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../parser/cssNodes.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssNodes.js"); 35041/* harmony import */ var _vscode_uri_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../vscode-uri/index.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-uri/index.js"); 35042/* harmony import */ var _utils_strings_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/strings.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/utils/strings.js"); 35043/* harmony import */ var _utils_resources_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/resources.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/utils/resources.js"); 35044/*--------------------------------------------------------------------------------------------- 35045 * Copyright (c) Microsoft Corporation. All rights reserved. 35046 * Licensed under the MIT License. See License.txt in the project root for license information. 35047 *--------------------------------------------------------------------------------------------*/ 35048 35049var __extends = (undefined && undefined.__extends) || (function () { 35050 var extendStatics = function (d, b) { 35051 extendStatics = Object.setPrototypeOf || 35052 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || 35053 function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; 35054 return extendStatics(d, b); 35055 }; 35056 return function (d, b) { 35057 extendStatics(d, b); 35058 function __() { this.constructor = d; } 35059 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); 35060 }; 35061})(); 35062var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { 35063 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } 35064 return new (P || (P = Promise))(function (resolve, reject) { 35065 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } 35066 function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } 35067 function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } 35068 step((generator = generator.apply(thisArg, _arguments || [])).next()); 35069 }); 35070}; 35071var __generator = (undefined && undefined.__generator) || function (thisArg, body) { 35072 var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; 35073 return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; 35074 function verb(n) { return function (v) { return step([n, v]); }; } 35075 function step(op) { 35076 if (f) throw new TypeError("Generator is already executing."); 35077 while (_) try { 35078 if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; 35079 if (y = 0, t) op = [op[0] & 2, t.value]; 35080 switch (op[0]) { 35081 case 0: case 1: t = op; break; 35082 case 4: _.label++; return { value: op[1], done: false }; 35083 case 5: _.label++; y = op[1]; op = [0]; continue; 35084 case 7: op = _.ops.pop(); _.trys.pop(); continue; 35085 default: 35086 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } 35087 if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } 35088 if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } 35089 if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } 35090 if (t[2]) _.ops.pop(); 35091 _.trys.pop(); continue; 35092 } 35093 op = body.call(thisArg, _); 35094 } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } 35095 if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; 35096 } 35097}; 35098 35099 35100 35101 35102 35103var SCSSNavigation = /** @class */ (function (_super) { 35104 __extends(SCSSNavigation, _super); 35105 function SCSSNavigation(fileSystemProvider) { 35106 return _super.call(this, fileSystemProvider) || this; 35107 } 35108 SCSSNavigation.prototype.isRawStringDocumentLinkNode = function (node) { 35109 return (_super.prototype.isRawStringDocumentLinkNode.call(this, node) || 35110 node.type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].Use || 35111 node.type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["NodeType"].Forward); 35112 }; 35113 SCSSNavigation.prototype.resolveRelativeReference = function (ref, documentUri, documentContext) { 35114 return __awaiter(this, void 0, void 0, function () { 35115 function toPathVariations(uri) { 35116 // No valid path 35117 if (uri.path === '') { 35118 return undefined; 35119 } 35120 // No variation for links that ends with suffix 35121 if (uri.path.endsWith('.scss') || uri.path.endsWith('.css')) { 35122 return undefined; 35123 } 35124 // If a link is like a/, try resolving a/index.scss and a/_index.scss 35125 if (uri.path.endsWith('/')) { 35126 return [ 35127 uri.with({ path: uri.path + 'index.scss' }).toString(), 35128 uri.with({ path: uri.path + '_index.scss' }).toString() 35129 ]; 35130 } 35131 // Use `uri.path` since it's normalized to use `/` in all platforms 35132 var pathFragments = uri.path.split('/'); 35133 var basename = pathFragments[pathFragments.length - 1]; 35134 var pathWithoutBasename = uri.path.slice(0, -basename.length); 35135 // No variation for links such as _a 35136 if (basename.startsWith('_')) { 35137 if (uri.path.endsWith('.scss')) { 35138 return undefined; 35139 } 35140 else { 35141 return [uri.with({ path: uri.path + '.scss' }).toString()]; 35142 } 35143 } 35144 var normalizedBasename = basename + '.scss'; 35145 var documentUriWithBasename = function (newBasename) { 35146 return uri.with({ path: pathWithoutBasename + newBasename }).toString(); 35147 }; 35148 var normalizedPath = documentUriWithBasename(normalizedBasename); 35149 var underScorePath = documentUriWithBasename('_' + normalizedBasename); 35150 var indexPath = documentUriWithBasename(normalizedBasename.slice(0, -5) + '/index.scss'); 35151 var indexUnderscoreUri = documentUriWithBasename(normalizedBasename.slice(0, -5) + '/_index.scss'); 35152 var cssPath = documentUriWithBasename(normalizedBasename.slice(0, -5) + '.css'); 35153 return [normalizedPath, underScorePath, indexPath, indexUnderscoreUri, cssPath]; 35154 } 35155 var target, parsedUri, pathVariations, j, e_1; 35156 return __generator(this, function (_a) { 35157 switch (_a.label) { 35158 case 0: 35159 if (Object(_utils_strings_js__WEBPACK_IMPORTED_MODULE_3__["startsWith"])(ref, 'sass:')) { 35160 return [2 /*return*/, undefined]; // sass library 35161 } 35162 return [4 /*yield*/, _super.prototype.resolveRelativeReference.call(this, ref, documentUri, documentContext)]; 35163 case 1: 35164 target = _a.sent(); 35165 if (!(this.fileSystemProvider && target && Object(_utils_resources_js__WEBPACK_IMPORTED_MODULE_4__["extname"])(target).length === 0)) return [3 /*break*/, 8]; 35166 _a.label = 2; 35167 case 2: 35168 _a.trys.push([2, 7, , 8]); 35169 parsedUri = _vscode_uri_index_js__WEBPACK_IMPORTED_MODULE_2__["URI"].parse(target); 35170 pathVariations = toPathVariations(parsedUri); 35171 if (!pathVariations) return [3 /*break*/, 6]; 35172 j = 0; 35173 _a.label = 3; 35174 case 3: 35175 if (!(j < pathVariations.length)) return [3 /*break*/, 6]; 35176 return [4 /*yield*/, this.fileExists(pathVariations[j])]; 35177 case 4: 35178 if (_a.sent()) { 35179 return [2 /*return*/, pathVariations[j]]; 35180 } 35181 _a.label = 5; 35182 case 5: 35183 j++; 35184 return [3 /*break*/, 3]; 35185 case 6: return [2 /*return*/, undefined]; 35186 case 7: 35187 e_1 = _a.sent(); 35188 return [3 /*break*/, 8]; 35189 case 8: return [2 /*return*/, target]; 35190 } 35191 }); 35192 }); 35193 }; 35194 return SCSSNavigation; 35195}(_cssNavigation_js__WEBPACK_IMPORTED_MODULE_0__["CSSNavigation"])); 35196 35197 35198 35199/***/ }), 35200 35201/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/selectorPrinting.js": 35202/*!**********************************************************************************************************************!*\ 35203 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/services/selectorPrinting.js ***! 35204 \**********************************************************************************************************************/ 35205/*! exports provided: Element, RootElement, LabelElement, toElement, SelectorPrinting, selectorToElement */ 35206/***/ (function(module, __webpack_exports__, __webpack_require__) { 35207 35208"use strict"; 35209__webpack_require__.r(__webpack_exports__); 35210/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Element", function() { return Element; }); 35211/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RootElement", function() { return RootElement; }); 35212/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LabelElement", function() { return LabelElement; }); 35213/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toElement", function() { return toElement; }); 35214/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SelectorPrinting", function() { return SelectorPrinting; }); 35215/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "selectorToElement", function() { return selectorToElement; }); 35216/* harmony import */ var _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../parser/cssNodes.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssNodes.js"); 35217/* harmony import */ var _parser_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../parser/cssScanner.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/parser/cssScanner.js"); 35218/* harmony import */ var _fillers_vscode_nls_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../fillers/vscode-nls.js */ "./node_modules/monaco-editor/esm/vs/language/css/fillers/vscode-nls.js"); 35219/*--------------------------------------------------------------------------------------------- 35220 * Copyright (c) Microsoft Corporation. All rights reserved. 35221 * Licensed under the MIT License. See License.txt in the project root for license information. 35222 *--------------------------------------------------------------------------------------------*/ 35223 35224var __extends = (undefined && undefined.__extends) || (function () { 35225 var extendStatics = function (d, b) { 35226 extendStatics = Object.setPrototypeOf || 35227 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || 35228 function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; 35229 return extendStatics(d, b); 35230 }; 35231 return function (d, b) { 35232 extendStatics(d, b); 35233 function __() { this.constructor = d; } 35234 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); 35235 }; 35236})(); 35237 35238 35239 35240var localize = _fillers_vscode_nls_js__WEBPACK_IMPORTED_MODULE_2__["loadMessageBundle"](); 35241var Element = /** @class */ (function () { 35242 function Element() { 35243 this.parent = null; 35244 this.children = null; 35245 this.attributes = null; 35246 } 35247 Element.prototype.findAttribute = function (name) { 35248 if (this.attributes) { 35249 for (var _i = 0, _a = this.attributes; _i < _a.length; _i++) { 35250 var attribute = _a[_i]; 35251 if (attribute.name === name) { 35252 return attribute.value; 35253 } 35254 } 35255 } 35256 return null; 35257 }; 35258 Element.prototype.addChild = function (child) { 35259 if (child instanceof Element) { 35260 child.parent = this; 35261 } 35262 if (!this.children) { 35263 this.children = []; 35264 } 35265 this.children.push(child); 35266 }; 35267 Element.prototype.append = function (text) { 35268 if (this.attributes) { 35269 var last = this.attributes[this.attributes.length - 1]; 35270 last.value = last.value + text; 35271 } 35272 }; 35273 Element.prototype.prepend = function (text) { 35274 if (this.attributes) { 35275 var first = this.attributes[0]; 35276 first.value = text + first.value; 35277 } 35278 }; 35279 Element.prototype.findRoot = function () { 35280 var curr = this; 35281 while (curr.parent && !(curr.parent instanceof RootElement)) { 35282 curr = curr.parent; 35283 } 35284 return curr; 35285 }; 35286 Element.prototype.removeChild = function (child) { 35287 if (this.children) { 35288 var index = this.children.indexOf(child); 35289 if (index !== -1) { 35290 this.children.splice(index, 1); 35291 return true; 35292 } 35293 } 35294 return false; 35295 }; 35296 Element.prototype.addAttr = function (name, value) { 35297 if (!this.attributes) { 35298 this.attributes = []; 35299 } 35300 for (var _i = 0, _a = this.attributes; _i < _a.length; _i++) { 35301 var attribute = _a[_i]; 35302 if (attribute.name === name) { 35303 attribute.value += ' ' + value; 35304 return; 35305 } 35306 } 35307 this.attributes.push({ name: name, value: value }); 35308 }; 35309 Element.prototype.clone = function (cloneChildren) { 35310 if (cloneChildren === void 0) { cloneChildren = true; } 35311 var elem = new Element(); 35312 if (this.attributes) { 35313 elem.attributes = []; 35314 for (var _i = 0, _a = this.attributes; _i < _a.length; _i++) { 35315 var attribute = _a[_i]; 35316 elem.addAttr(attribute.name, attribute.value); 35317 } 35318 } 35319 if (cloneChildren && this.children) { 35320 elem.children = []; 35321 for (var index = 0; index < this.children.length; index++) { 35322 elem.addChild(this.children[index].clone()); 35323 } 35324 } 35325 return elem; 35326 }; 35327 Element.prototype.cloneWithParent = function () { 35328 var clone = this.clone(false); 35329 if (this.parent && !(this.parent instanceof RootElement)) { 35330 var parentClone = this.parent.cloneWithParent(); 35331 parentClone.addChild(clone); 35332 } 35333 return clone; 35334 }; 35335 return Element; 35336}()); 35337 35338var RootElement = /** @class */ (function (_super) { 35339 __extends(RootElement, _super); 35340 function RootElement() { 35341 return _super !== null && _super.apply(this, arguments) || this; 35342 } 35343 return RootElement; 35344}(Element)); 35345 35346var LabelElement = /** @class */ (function (_super) { 35347 __extends(LabelElement, _super); 35348 function LabelElement(label) { 35349 var _this = _super.call(this) || this; 35350 _this.addAttr('name', label); 35351 return _this; 35352 } 35353 return LabelElement; 35354}(Element)); 35355 35356var MarkedStringPrinter = /** @class */ (function () { 35357 function MarkedStringPrinter(quote) { 35358 this.quote = quote; 35359 this.result = []; 35360 // empty 35361 } 35362 MarkedStringPrinter.prototype.print = function (element) { 35363 this.result = []; 35364 if (element instanceof RootElement) { 35365 if (element.children) { 35366 this.doPrint(element.children, 0); 35367 } 35368 } 35369 else { 35370 this.doPrint([element], 0); 35371 } 35372 var value = this.result.join('\n'); 35373 return [{ language: 'html', value: value }]; 35374 }; 35375 MarkedStringPrinter.prototype.doPrint = function (elements, indent) { 35376 for (var _i = 0, elements_1 = elements; _i < elements_1.length; _i++) { 35377 var element = elements_1[_i]; 35378 this.doPrintElement(element, indent); 35379 if (element.children) { 35380 this.doPrint(element.children, indent + 1); 35381 } 35382 } 35383 }; 35384 MarkedStringPrinter.prototype.writeLine = function (level, content) { 35385 var indent = new Array(level + 1).join(' '); 35386 this.result.push(indent + content); 35387 }; 35388 MarkedStringPrinter.prototype.doPrintElement = function (element, indent) { 35389 var name = element.findAttribute('name'); 35390 // special case: a simple label 35391 if (element instanceof LabelElement || name === '\u2026') { 35392 this.writeLine(indent, name); 35393 return; 35394 } 35395 // the real deal 35396 var content = ['<']; 35397 // element name 35398 if (name) { 35399 content.push(name); 35400 } 35401 else { 35402 content.push('element'); 35403 } 35404 // attributes 35405 if (element.attributes) { 35406 for (var _i = 0, _a = element.attributes; _i < _a.length; _i++) { 35407 var attr = _a[_i]; 35408 if (attr.name !== 'name') { 35409 content.push(' '); 35410 content.push(attr.name); 35411 var value = attr.value; 35412 if (value) { 35413 content.push('='); 35414 content.push(quotes.ensure(value, this.quote)); 35415 } 35416 } 35417 } 35418 } 35419 content.push('>'); 35420 this.writeLine(indent, content.join('')); 35421 }; 35422 return MarkedStringPrinter; 35423}()); 35424var quotes; 35425(function (quotes) { 35426 function ensure(value, which) { 35427 return which + remove(value) + which; 35428 } 35429 quotes.ensure = ensure; 35430 function remove(value) { 35431 var match = value.match(/^['"](.*)["']$/); 35432 if (match) { 35433 return match[1]; 35434 } 35435 return value; 35436 } 35437 quotes.remove = remove; 35438})(quotes || (quotes = {})); 35439var Specificity = /** @class */ (function () { 35440 function Specificity() { 35441 /** Count of identifiers (e.g., `#app`) */ 35442 this.id = 0; 35443 /** Count of attributes (`[type="number"]`), classes (`.container-fluid`), and pseudo-classes (`:hover`) */ 35444 this.attr = 0; 35445 /** Count of tag names (`div`), and pseudo-elements (`::before`) */ 35446 this.tag = 0; 35447 } 35448 return Specificity; 35449}()); 35450function toElement(node, parentElement) { 35451 var result = new Element(); 35452 for (var _i = 0, _a = node.getChildren(); _i < _a.length; _i++) { 35453 var child = _a[_i]; 35454 switch (child.type) { 35455 case _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].SelectorCombinator: 35456 if (parentElement) { 35457 var segments = child.getText().split('&'); 35458 if (segments.length === 1) { 35459 // should not happen 35460 result.addAttr('name', segments[0]); 35461 break; 35462 } 35463 result = parentElement.cloneWithParent(); 35464 if (segments[0]) { 35465 var root = result.findRoot(); 35466 root.prepend(segments[0]); 35467 } 35468 for (var i = 1; i < segments.length; i++) { 35469 if (i > 1) { 35470 var clone = parentElement.cloneWithParent(); 35471 result.addChild(clone.findRoot()); 35472 result = clone; 35473 } 35474 result.append(segments[i]); 35475 } 35476 } 35477 break; 35478 case _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].SelectorPlaceholder: 35479 if (child.matches('@at-root')) { 35480 return result; 35481 } 35482 // fall through 35483 case _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].ElementNameSelector: 35484 var text = child.getText(); 35485 result.addAttr('name', text === '*' ? 'element' : unescape(text)); 35486 break; 35487 case _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].ClassSelector: 35488 result.addAttr('class', unescape(child.getText().substring(1))); 35489 break; 35490 case _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].IdentifierSelector: 35491 result.addAttr('id', unescape(child.getText().substring(1))); 35492 break; 35493 case _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].MixinDeclaration: 35494 result.addAttr('class', child.getName()); 35495 break; 35496 case _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].PseudoSelector: 35497 result.addAttr(unescape(child.getText()), ''); 35498 break; 35499 case _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].AttributeSelector: 35500 var selector = child; 35501 var identifier = selector.getIdentifier(); 35502 if (identifier) { 35503 var expression = selector.getValue(); 35504 var operator = selector.getOperator(); 35505 var value = void 0; 35506 if (expression && operator) { 35507 switch (unescape(operator.getText())) { 35508 case '|=': 35509 // excatly or followed by -words 35510 value = quotes.remove(unescape(expression.getText())) + "-\u2026"; 35511 break; 35512 case '^=': 35513 // prefix 35514 value = quotes.remove(unescape(expression.getText())) + "\u2026"; 35515 break; 35516 case '$=': 35517 // suffix 35518 value = "\u2026" + quotes.remove(unescape(expression.getText())); 35519 break; 35520 case '~=': 35521 // one of a list of words 35522 value = " \u2026 " + quotes.remove(unescape(expression.getText())) + " \u2026 "; 35523 break; 35524 case '*=': 35525 // substring 35526 value = "\u2026" + quotes.remove(unescape(expression.getText())) + "\u2026"; 35527 break; 35528 default: 35529 value = quotes.remove(unescape(expression.getText())); 35530 break; 35531 } 35532 } 35533 result.addAttr(unescape(identifier.getText()), value); 35534 } 35535 break; 35536 } 35537 } 35538 return result; 35539} 35540function unescape(content) { 35541 var scanner = new _parser_cssScanner_js__WEBPACK_IMPORTED_MODULE_1__["Scanner"](); 35542 scanner.setSource(content); 35543 var token = scanner.scanUnquotedString(); 35544 if (token) { 35545 return token.text; 35546 } 35547 return content; 35548} 35549var SelectorPrinting = /** @class */ (function () { 35550 function SelectorPrinting(cssDataManager) { 35551 this.cssDataManager = cssDataManager; 35552 } 35553 SelectorPrinting.prototype.selectorToMarkedString = function (node) { 35554 var root = selectorToElement(node); 35555 if (root) { 35556 var markedStrings = new MarkedStringPrinter('"').print(root); 35557 markedStrings.push(this.selectorToSpecificityMarkedString(node)); 35558 return markedStrings; 35559 } 35560 else { 35561 return []; 35562 } 35563 }; 35564 SelectorPrinting.prototype.simpleSelectorToMarkedString = function (node) { 35565 var element = toElement(node); 35566 var markedStrings = new MarkedStringPrinter('"').print(element); 35567 markedStrings.push(this.selectorToSpecificityMarkedString(node)); 35568 return markedStrings; 35569 }; 35570 SelectorPrinting.prototype.isPseudoElementIdentifier = function (text) { 35571 var match = text.match(/^::?([\w-]+)/); 35572 if (!match) { 35573 return false; 35574 } 35575 return !!this.cssDataManager.getPseudoElement("::" + match[1]); 35576 }; 35577 SelectorPrinting.prototype.selectorToSpecificityMarkedString = function (node) { 35578 var _this = this; 35579 //https://www.w3.org/TR/selectors-3/#specificity 35580 var calculateScore = function (node) { 35581 for (var _i = 0, _a = node.getChildren(); _i < _a.length; _i++) { 35582 var element = _a[_i]; 35583 switch (element.type) { 35584 case _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].IdentifierSelector: 35585 specificity.id++; 35586 break; 35587 case _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].ClassSelector: 35588 case _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].AttributeSelector: 35589 specificity.attr++; 35590 break; 35591 case _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].ElementNameSelector: 35592 //ignore universal selector 35593 if (element.matches("*")) { 35594 break; 35595 } 35596 specificity.tag++; 35597 break; 35598 case _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].PseudoSelector: 35599 var text = element.getText(); 35600 if (_this.isPseudoElementIdentifier(text)) { 35601 specificity.tag++; // pseudo element 35602 } 35603 else { 35604 //ignore psuedo class NOT 35605 if (text.match(/^:not/i)) { 35606 break; 35607 } 35608 specificity.attr++; //pseudo class 35609 } 35610 break; 35611 } 35612 if (element.getChildren().length > 0) { 35613 calculateScore(element); 35614 } 35615 } 35616 }; 35617 var specificity = new Specificity(); 35618 calculateScore(node); 35619 return localize('specificity', "[Selector Specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity): ({0}, {1}, {2})", specificity.id, specificity.attr, specificity.tag); 35620 }; 35621 return SelectorPrinting; 35622}()); 35623 35624var SelectorElementBuilder = /** @class */ (function () { 35625 function SelectorElementBuilder(element) { 35626 this.prev = null; 35627 this.element = element; 35628 } 35629 SelectorElementBuilder.prototype.processSelector = function (selector) { 35630 var parentElement = null; 35631 if (!(this.element instanceof RootElement)) { 35632 if (selector.getChildren().some(function (c) { return c.hasChildren() && c.getChild(0).type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].SelectorCombinator; })) { 35633 var curr = this.element.findRoot(); 35634 if (curr.parent instanceof RootElement) { 35635 parentElement = this.element; 35636 this.element = curr.parent; 35637 this.element.removeChild(curr); 35638 this.prev = null; 35639 } 35640 } 35641 } 35642 for (var _i = 0, _a = selector.getChildren(); _i < _a.length; _i++) { 35643 var selectorChild = _a[_i]; 35644 if (selectorChild instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["SimpleSelector"]) { 35645 if (this.prev instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["SimpleSelector"]) { 35646 var labelElement = new LabelElement('\u2026'); 35647 this.element.addChild(labelElement); 35648 this.element = labelElement; 35649 } 35650 else if (this.prev && (this.prev.matches('+') || this.prev.matches('~')) && this.element.parent) { 35651 this.element = this.element.parent; 35652 } 35653 if (this.prev && this.prev.matches('~')) { 35654 this.element.addChild(toElement(selectorChild)); 35655 this.element.addChild(new LabelElement('\u22EE')); 35656 } 35657 var thisElement = toElement(selectorChild, parentElement); 35658 var root = thisElement.findRoot(); 35659 this.element.addChild(root); 35660 this.element = thisElement; 35661 } 35662 if (selectorChild instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["SimpleSelector"] || 35663 selectorChild.type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].SelectorCombinatorParent || 35664 selectorChild.type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].SelectorCombinatorShadowPiercingDescendant || 35665 selectorChild.type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].SelectorCombinatorSibling || 35666 selectorChild.type === _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].SelectorCombinatorAllSiblings) { 35667 this.prev = selectorChild; 35668 } 35669 } 35670 }; 35671 return SelectorElementBuilder; 35672}()); 35673function isNewSelectorContext(node) { 35674 switch (node.type) { 35675 case _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].MixinDeclaration: 35676 case _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["NodeType"].Stylesheet: 35677 return true; 35678 } 35679 return false; 35680} 35681function selectorToElement(node) { 35682 if (node.matches('@at-root')) { 35683 return null; 35684 } 35685 var root = new RootElement(); 35686 var parentRuleSets = []; 35687 var ruleSet = node.getParent(); 35688 if (ruleSet instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["RuleSet"]) { 35689 var parent = ruleSet.getParent(); // parent of the selector's ruleset 35690 while (parent && !isNewSelectorContext(parent)) { 35691 if (parent instanceof _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["RuleSet"]) { 35692 if (parent.getSelectors().matches('@at-root')) { 35693 break; 35694 } 35695 parentRuleSets.push(parent); 35696 } 35697 parent = parent.getParent(); 35698 } 35699 } 35700 var builder = new SelectorElementBuilder(root); 35701 for (var i = parentRuleSets.length - 1; i >= 0; i--) { 35702 var selector = parentRuleSets[i].getSelectors().getChild(0); 35703 if (selector) { 35704 builder.processSelector(selector); 35705 } 35706 } 35707 builder.processSelector(node); 35708 return root; 35709} 35710 35711 35712/***/ }), 35713 35714/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/utils/arrays.js": 35715/*!*********************************************************************************************************!*\ 35716 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/utils/arrays.js ***! 35717 \*********************************************************************************************************/ 35718/*! exports provided: findFirst, includes, union */ 35719/***/ (function(module, __webpack_exports__, __webpack_require__) { 35720 35721"use strict"; 35722__webpack_require__.r(__webpack_exports__); 35723/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findFirst", function() { return findFirst; }); 35724/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "includes", function() { return includes; }); 35725/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "union", function() { return union; }); 35726/*--------------------------------------------------------------------------------------------- 35727 * Copyright (c) Microsoft Corporation. All rights reserved. 35728 * Licensed under the MIT License. See License.txt in the project root for license information. 35729 *--------------------------------------------------------------------------------------------*/ 35730 35731/** 35732 * Takes a sorted array and a function p. The array is sorted in such a way that all elements where p(x) is false 35733 * are located before all elements where p(x) is true. 35734 * @returns the least x for which p(x) is true or array.length if no element fullfills the given function. 35735 */ 35736function findFirst(array, p) { 35737 var low = 0, high = array.length; 35738 if (high === 0) { 35739 return 0; // no children 35740 } 35741 while (low < high) { 35742 var mid = Math.floor((low + high) / 2); 35743 if (p(array[mid])) { 35744 high = mid; 35745 } 35746 else { 35747 low = mid + 1; 35748 } 35749 } 35750 return low; 35751} 35752function includes(array, item) { 35753 return array.indexOf(item) !== -1; 35754} 35755function union() { 35756 var arrays = []; 35757 for (var _i = 0; _i < arguments.length; _i++) { 35758 arrays[_i] = arguments[_i]; 35759 } 35760 var result = []; 35761 for (var _a = 0, arrays_1 = arrays; _a < arrays_1.length; _a++) { 35762 var array = arrays_1[_a]; 35763 for (var _b = 0, array_1 = array; _b < array_1.length; _b++) { 35764 var item = array_1[_b]; 35765 if (!includes(result, item)) { 35766 result.push(item); 35767 } 35768 } 35769 } 35770 return result; 35771} 35772 35773 35774/***/ }), 35775 35776/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/utils/objects.js": 35777/*!**********************************************************************************************************!*\ 35778 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/utils/objects.js ***! 35779 \**********************************************************************************************************/ 35780/*! exports provided: values, isDefined */ 35781/***/ (function(module, __webpack_exports__, __webpack_require__) { 35782 35783"use strict"; 35784__webpack_require__.r(__webpack_exports__); 35785/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "values", function() { return values; }); 35786/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isDefined", function() { return isDefined; }); 35787/*--------------------------------------------------------------------------------------------- 35788 * Copyright (c) Microsoft Corporation. All rights reserved. 35789 * Licensed under the MIT License. See License.txt in the project root for license information. 35790 *--------------------------------------------------------------------------------------------*/ 35791 35792function values(obj) { 35793 return Object.keys(obj).map(function (key) { return obj[key]; }); 35794} 35795function isDefined(obj) { 35796 return typeof obj !== 'undefined'; 35797} 35798 35799 35800/***/ }), 35801 35802/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/utils/resources.js": 35803/*!************************************************************************************************************!*\ 35804 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/utils/resources.js ***! 35805 \************************************************************************************************************/ 35806/*! exports provided: isAbsolutePath, dirname, basename, extname, resolvePath, normalizePath, joinPath */ 35807/***/ (function(module, __webpack_exports__, __webpack_require__) { 35808 35809"use strict"; 35810__webpack_require__.r(__webpack_exports__); 35811/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isAbsolutePath", function() { return isAbsolutePath; }); 35812/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dirname", function() { return dirname; }); 35813/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "basename", function() { return basename; }); 35814/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extname", function() { return extname; }); 35815/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resolvePath", function() { return resolvePath; }); 35816/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "normalizePath", function() { return normalizePath; }); 35817/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "joinPath", function() { return joinPath; }); 35818/* harmony import */ var _vscode_uri_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../vscode-uri/index.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-uri/index.js"); 35819/*--------------------------------------------------------------------------------------------- 35820 * Copyright (c) Microsoft Corporation. All rights reserved. 35821 * Licensed under the MIT License. See License.txt in the project root for license information. 35822 *--------------------------------------------------------------------------------------------*/ 35823 35824var Slash = '/'.charCodeAt(0); 35825var Dot = '.'.charCodeAt(0); 35826function isAbsolutePath(path) { 35827 return path.charCodeAt(0) === Slash; 35828} 35829function dirname(uri) { 35830 var lastIndexOfSlash = uri.lastIndexOf('/'); 35831 return lastIndexOfSlash !== -1 ? uri.substr(0, lastIndexOfSlash) : ''; 35832} 35833function basename(uri) { 35834 var lastIndexOfSlash = uri.lastIndexOf('/'); 35835 return uri.substr(lastIndexOfSlash + 1); 35836} 35837function extname(uri) { 35838 for (var i = uri.length - 1; i >= 0; i--) { 35839 var ch = uri.charCodeAt(i); 35840 if (ch === Dot) { 35841 if (i > 0 && uri.charCodeAt(i - 1) !== Slash) { 35842 return uri.substr(i); 35843 } 35844 else { 35845 break; 35846 } 35847 } 35848 else if (ch === Slash) { 35849 break; 35850 } 35851 } 35852 return ''; 35853} 35854function resolvePath(uriString, path) { 35855 if (isAbsolutePath(path)) { 35856 var uri = _vscode_uri_index_js__WEBPACK_IMPORTED_MODULE_0__["URI"].parse(uriString); 35857 var parts = path.split('/'); 35858 return uri.with({ path: normalizePath(parts) }).toString(); 35859 } 35860 return joinPath(uriString, path); 35861} 35862function normalizePath(parts) { 35863 var newParts = []; 35864 for (var _i = 0, parts_1 = parts; _i < parts_1.length; _i++) { 35865 var part = parts_1[_i]; 35866 if (part.length === 0 || part.length === 1 && part.charCodeAt(0) === Dot) { 35867 // ignore 35868 } 35869 else if (part.length === 2 && part.charCodeAt(0) === Dot && part.charCodeAt(1) === Dot) { 35870 newParts.pop(); 35871 } 35872 else { 35873 newParts.push(part); 35874 } 35875 } 35876 if (parts.length > 1 && parts[parts.length - 1].length === 0) { 35877 newParts.push(''); 35878 } 35879 var res = newParts.join('/'); 35880 if (parts[0].length === 0) { 35881 res = '/' + res; 35882 } 35883 return res; 35884} 35885function joinPath(uriString) { 35886 var paths = []; 35887 for (var _i = 1; _i < arguments.length; _i++) { 35888 paths[_i - 1] = arguments[_i]; 35889 } 35890 var uri = _vscode_uri_index_js__WEBPACK_IMPORTED_MODULE_0__["URI"].parse(uriString); 35891 var parts = uri.path.split('/'); 35892 for (var _a = 0, paths_1 = paths; _a < paths_1.length; _a++) { 35893 var path = paths_1[_a]; 35894 parts.push.apply(parts, path.split('/')); 35895 } 35896 return uri.with({ path: normalizePath(parts) }).toString(); 35897} 35898 35899 35900/***/ }), 35901 35902/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/utils/strings.js": 35903/*!**********************************************************************************************************!*\ 35904 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/utils/strings.js ***! 35905 \**********************************************************************************************************/ 35906/*! exports provided: startsWith, endsWith, difference, getLimitedString, trim */ 35907/***/ (function(module, __webpack_exports__, __webpack_require__) { 35908 35909"use strict"; 35910__webpack_require__.r(__webpack_exports__); 35911/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "startsWith", function() { return startsWith; }); 35912/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "endsWith", function() { return endsWith; }); 35913/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "difference", function() { return difference; }); 35914/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLimitedString", function() { return getLimitedString; }); 35915/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "trim", function() { return trim; }); 35916/*--------------------------------------------------------------------------------------------- 35917 * Copyright (c) Microsoft Corporation. All rights reserved. 35918 * Licensed under the MIT License. See License.txt in the project root for license information. 35919 *--------------------------------------------------------------------------------------------*/ 35920 35921function startsWith(haystack, needle) { 35922 if (haystack.length < needle.length) { 35923 return false; 35924 } 35925 for (var i = 0; i < needle.length; i++) { 35926 if (haystack[i] !== needle[i]) { 35927 return false; 35928 } 35929 } 35930 return true; 35931} 35932/** 35933 * Determines if haystack ends with needle. 35934 */ 35935function endsWith(haystack, needle) { 35936 var diff = haystack.length - needle.length; 35937 if (diff > 0) { 35938 return haystack.lastIndexOf(needle) === diff; 35939 } 35940 else if (diff === 0) { 35941 return haystack === needle; 35942 } 35943 else { 35944 return false; 35945 } 35946} 35947/** 35948 * Computes the difference score for two strings. More similar strings have a higher score. 35949 * We use largest common subsequence dynamic programming approach but penalize in the end for length differences. 35950 * Strings that have a large length difference will get a bad default score 0. 35951 * Complexity - both time and space O(first.length * second.length) 35952 * Dynamic programming LCS computation http://en.wikipedia.org/wiki/Longest_common_subsequence_problem 35953 * 35954 * @param first a string 35955 * @param second a string 35956 */ 35957function difference(first, second, maxLenDelta) { 35958 if (maxLenDelta === void 0) { maxLenDelta = 4; } 35959 var lengthDifference = Math.abs(first.length - second.length); 35960 // We only compute score if length of the currentWord and length of entry.name are similar. 35961 if (lengthDifference > maxLenDelta) { 35962 return 0; 35963 } 35964 // Initialize LCS (largest common subsequence) matrix. 35965 var LCS = []; 35966 var zeroArray = []; 35967 var i, j; 35968 for (i = 0; i < second.length + 1; ++i) { 35969 zeroArray.push(0); 35970 } 35971 for (i = 0; i < first.length + 1; ++i) { 35972 LCS.push(zeroArray); 35973 } 35974 for (i = 1; i < first.length + 1; ++i) { 35975 for (j = 1; j < second.length + 1; ++j) { 35976 if (first[i - 1] === second[j - 1]) { 35977 LCS[i][j] = LCS[i - 1][j - 1] + 1; 35978 } 35979 else { 35980 LCS[i][j] = Math.max(LCS[i - 1][j], LCS[i][j - 1]); 35981 } 35982 } 35983 } 35984 return LCS[first.length][second.length] - Math.sqrt(lengthDifference); 35985} 35986/** 35987 * Limit of string length. 35988 */ 35989function getLimitedString(str, ellipsis) { 35990 if (ellipsis === void 0) { ellipsis = true; } 35991 if (!str) { 35992 return ''; 35993 } 35994 if (str.length < 140) { 35995 return str; 35996 } 35997 return str.slice(0, 140) + (ellipsis ? '\u2026' : ''); 35998} 35999/** 36000 * Limit of string length. 36001 */ 36002function trim(str, regexp) { 36003 var m = regexp.exec(str); 36004 if (m && m[0].length) { 36005 return str.substr(0, str.length - m[0].length); 36006 } 36007 return str; 36008} 36009 36010 36011/***/ }), 36012 36013/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-languageserver-textdocument/lib/esm/main.js": 36014/*!*****************************************************************************************************************!*\ 36015 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-languageserver-textdocument/lib/esm/main.js ***! 36016 \*****************************************************************************************************************/ 36017/*! exports provided: TextDocument */ 36018/***/ (function(module, __webpack_exports__, __webpack_require__) { 36019 36020"use strict"; 36021__webpack_require__.r(__webpack_exports__); 36022/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextDocument", function() { return TextDocument; }); 36023/* -------------------------------------------------------------------------------------------- 36024 * Copyright (c) Microsoft Corporation. All rights reserved. 36025 * Licensed under the MIT License. See License.txt in the project root for license information. 36026 * ------------------------------------------------------------------------------------------ */ 36027 36028var FullTextDocument = /** @class */ (function () { 36029 function FullTextDocument(uri, languageId, version, content) { 36030 this._uri = uri; 36031 this._languageId = languageId; 36032 this._version = version; 36033 this._content = content; 36034 this._lineOffsets = undefined; 36035 } 36036 Object.defineProperty(FullTextDocument.prototype, "uri", { 36037 get: function () { 36038 return this._uri; 36039 }, 36040 enumerable: true, 36041 configurable: true 36042 }); 36043 Object.defineProperty(FullTextDocument.prototype, "languageId", { 36044 get: function () { 36045 return this._languageId; 36046 }, 36047 enumerable: true, 36048 configurable: true 36049 }); 36050 Object.defineProperty(FullTextDocument.prototype, "version", { 36051 get: function () { 36052 return this._version; 36053 }, 36054 enumerable: true, 36055 configurable: true 36056 }); 36057 FullTextDocument.prototype.getText = function (range) { 36058 if (range) { 36059 var start = this.offsetAt(range.start); 36060 var end = this.offsetAt(range.end); 36061 return this._content.substring(start, end); 36062 } 36063 return this._content; 36064 }; 36065 FullTextDocument.prototype.update = function (changes, version) { 36066 for (var _i = 0, changes_1 = changes; _i < changes_1.length; _i++) { 36067 var change = changes_1[_i]; 36068 if (FullTextDocument.isIncremental(change)) { 36069 // makes sure start is before end 36070 var range = getWellformedRange(change.range); 36071 // update content 36072 var startOffset = this.offsetAt(range.start); 36073 var endOffset = this.offsetAt(range.end); 36074 this._content = this._content.substring(0, startOffset) + change.text + this._content.substring(endOffset, this._content.length); 36075 // update the offsets 36076 var startLine = Math.max(range.start.line, 0); 36077 var endLine = Math.max(range.end.line, 0); 36078 var lineOffsets = this._lineOffsets; 36079 var addedLineOffsets = computeLineOffsets(change.text, false, startOffset); 36080 if (endLine - startLine === addedLineOffsets.length) { 36081 for (var i = 0, len = addedLineOffsets.length; i < len; i++) { 36082 lineOffsets[i + startLine + 1] = addedLineOffsets[i]; 36083 } 36084 } 36085 else { 36086 if (addedLineOffsets.length < 10000) { 36087 lineOffsets.splice.apply(lineOffsets, [startLine + 1, endLine - startLine].concat(addedLineOffsets)); 36088 } 36089 else { // avoid too many arguments for splice 36090 this._lineOffsets = lineOffsets = lineOffsets.slice(0, startLine + 1).concat(addedLineOffsets, lineOffsets.slice(endLine + 1)); 36091 } 36092 } 36093 var diff = change.text.length - (endOffset - startOffset); 36094 if (diff !== 0) { 36095 for (var i = startLine + 1 + addedLineOffsets.length, len = lineOffsets.length; i < len; i++) { 36096 lineOffsets[i] = lineOffsets[i] + diff; 36097 } 36098 } 36099 } 36100 else if (FullTextDocument.isFull(change)) { 36101 this._content = change.text; 36102 this._lineOffsets = undefined; 36103 } 36104 else { 36105 throw new Error('Unknown change event received'); 36106 } 36107 } 36108 this._version = version; 36109 }; 36110 FullTextDocument.prototype.getLineOffsets = function () { 36111 if (this._lineOffsets === undefined) { 36112 this._lineOffsets = computeLineOffsets(this._content, true); 36113 } 36114 return this._lineOffsets; 36115 }; 36116 FullTextDocument.prototype.positionAt = function (offset) { 36117 offset = Math.max(Math.min(offset, this._content.length), 0); 36118 var lineOffsets = this.getLineOffsets(); 36119 var low = 0, high = lineOffsets.length; 36120 if (high === 0) { 36121 return { line: 0, character: offset }; 36122 } 36123 while (low < high) { 36124 var mid = Math.floor((low + high) / 2); 36125 if (lineOffsets[mid] > offset) { 36126 high = mid; 36127 } 36128 else { 36129 low = mid + 1; 36130 } 36131 } 36132 // low is the least x for which the line offset is larger than the current offset 36133 // or array.length if no line offset is larger than the current offset 36134 var line = low - 1; 36135 return { line: line, character: offset - lineOffsets[line] }; 36136 }; 36137 FullTextDocument.prototype.offsetAt = function (position) { 36138 var lineOffsets = this.getLineOffsets(); 36139 if (position.line >= lineOffsets.length) { 36140 return this._content.length; 36141 } 36142 else if (position.line < 0) { 36143 return 0; 36144 } 36145 var lineOffset = lineOffsets[position.line]; 36146 var nextLineOffset = (position.line + 1 < lineOffsets.length) ? lineOffsets[position.line + 1] : this._content.length; 36147 return Math.max(Math.min(lineOffset + position.character, nextLineOffset), lineOffset); 36148 }; 36149 Object.defineProperty(FullTextDocument.prototype, "lineCount", { 36150 get: function () { 36151 return this.getLineOffsets().length; 36152 }, 36153 enumerable: true, 36154 configurable: true 36155 }); 36156 FullTextDocument.isIncremental = function (event) { 36157 var candidate = event; 36158 return candidate !== undefined && candidate !== null && 36159 typeof candidate.text === 'string' && candidate.range !== undefined && 36160 (candidate.rangeLength === undefined || typeof candidate.rangeLength === 'number'); 36161 }; 36162 FullTextDocument.isFull = function (event) { 36163 var candidate = event; 36164 return candidate !== undefined && candidate !== null && 36165 typeof candidate.text === 'string' && candidate.range === undefined && candidate.rangeLength === undefined; 36166 }; 36167 return FullTextDocument; 36168}()); 36169var TextDocument; 36170(function (TextDocument) { 36171 /** 36172 * Creates a new text document. 36173 * 36174 * @param uri The document's uri. 36175 * @param languageId The document's language Id. 36176 * @param version The document's initial version number. 36177 * @param content The document's content. 36178 */ 36179 function create(uri, languageId, version, content) { 36180 return new FullTextDocument(uri, languageId, version, content); 36181 } 36182 TextDocument.create = create; 36183 /** 36184 * Updates a TextDocument by modifing its content. 36185 * 36186 * @param document the document to update. Only documents created by TextDocument.create are valid inputs. 36187 * @param changes the changes to apply to the document. 36188 * @returns The updated TextDocument. Note: That's the same document instance passed in as first parameter. 36189 * 36190 */ 36191 function update(document, changes, version) { 36192 if (document instanceof FullTextDocument) { 36193 document.update(changes, version); 36194 return document; 36195 } 36196 else { 36197 throw new Error('TextDocument.update: document must be created by TextDocument.create'); 36198 } 36199 } 36200 TextDocument.update = update; 36201 function applyEdits(document, edits) { 36202 var text = document.getText(); 36203 var sortedEdits = mergeSort(edits.map(getWellformedEdit), function (a, b) { 36204 var diff = a.range.start.line - b.range.start.line; 36205 if (diff === 0) { 36206 return a.range.start.character - b.range.start.character; 36207 } 36208 return diff; 36209 }); 36210 var lastModifiedOffset = 0; 36211 var spans = []; 36212 for (var _i = 0, sortedEdits_1 = sortedEdits; _i < sortedEdits_1.length; _i++) { 36213 var e = sortedEdits_1[_i]; 36214 var startOffset = document.offsetAt(e.range.start); 36215 if (startOffset < lastModifiedOffset) { 36216 throw new Error('Overlapping edit'); 36217 } 36218 else if (startOffset > lastModifiedOffset) { 36219 spans.push(text.substring(lastModifiedOffset, startOffset)); 36220 } 36221 if (e.newText.length) { 36222 spans.push(e.newText); 36223 } 36224 lastModifiedOffset = document.offsetAt(e.range.end); 36225 } 36226 spans.push(text.substr(lastModifiedOffset)); 36227 return spans.join(''); 36228 } 36229 TextDocument.applyEdits = applyEdits; 36230})(TextDocument || (TextDocument = {})); 36231function mergeSort(data, compare) { 36232 if (data.length <= 1) { 36233 // sorted 36234 return data; 36235 } 36236 var p = (data.length / 2) | 0; 36237 var left = data.slice(0, p); 36238 var right = data.slice(p); 36239 mergeSort(left, compare); 36240 mergeSort(right, compare); 36241 var leftIdx = 0; 36242 var rightIdx = 0; 36243 var i = 0; 36244 while (leftIdx < left.length && rightIdx < right.length) { 36245 var ret = compare(left[leftIdx], right[rightIdx]); 36246 if (ret <= 0) { 36247 // smaller_equal -> take left to preserve order 36248 data[i++] = left[leftIdx++]; 36249 } 36250 else { 36251 // greater -> take right 36252 data[i++] = right[rightIdx++]; 36253 } 36254 } 36255 while (leftIdx < left.length) { 36256 data[i++] = left[leftIdx++]; 36257 } 36258 while (rightIdx < right.length) { 36259 data[i++] = right[rightIdx++]; 36260 } 36261 return data; 36262} 36263function computeLineOffsets(text, isAtLineStart, textOffset) { 36264 if (textOffset === void 0) { textOffset = 0; } 36265 var result = isAtLineStart ? [textOffset] : []; 36266 for (var i = 0; i < text.length; i++) { 36267 var ch = text.charCodeAt(i); 36268 if (ch === 13 /* CarriageReturn */ || ch === 10 /* LineFeed */) { 36269 if (ch === 13 /* CarriageReturn */ && i + 1 < text.length && text.charCodeAt(i + 1) === 10 /* LineFeed */) { 36270 i++; 36271 } 36272 result.push(textOffset + i + 1); 36273 } 36274 } 36275 return result; 36276} 36277function getWellformedRange(range) { 36278 var start = range.start; 36279 var end = range.end; 36280 if (start.line > end.line || (start.line === end.line && start.character > end.character)) { 36281 return { start: end, end: start }; 36282 } 36283 return range; 36284} 36285function getWellformedEdit(textEdit) { 36286 var range = getWellformedRange(textEdit.range); 36287 if (range !== textEdit.range) { 36288 return { newText: textEdit.newText, range: range }; 36289 } 36290 return textEdit; 36291} 36292 36293 36294/***/ }), 36295 36296/***/ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-uri/index.js": 36297/*!**********************************************************************************!*\ 36298 !*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-uri/index.js ***! 36299 \**********************************************************************************/ 36300/*! exports provided: URI, uriToFsPath */ 36301/***/ (function(module, __webpack_exports__, __webpack_require__) { 36302 36303"use strict"; 36304__webpack_require__.r(__webpack_exports__); 36305/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "URI", function() { return URI; }); 36306/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uriToFsPath", function() { return uriToFsPath; }); 36307/*--------------------------------------------------------------------------------------------- 36308 * Copyright (c) Microsoft Corporation. All rights reserved. 36309 * Licensed under the MIT License. See License.txt in the project root for license information. 36310 *--------------------------------------------------------------------------------------------*/ 36311 36312var __extends = (undefined && undefined.__extends) || (function () { 36313 var extendStatics = function (d, b) { 36314 extendStatics = Object.setPrototypeOf || 36315 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || 36316 function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; 36317 return extendStatics(d, b); 36318 }; 36319 return function (d, b) { 36320 extendStatics(d, b); 36321 function __() { this.constructor = d; } 36322 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); 36323 }; 36324})(); 36325var _a; 36326var isWindows; 36327if (typeof process === 'object') { 36328 isWindows = process.platform === 'win32'; 36329} 36330else if (typeof navigator === 'object') { 36331 var userAgent = navigator.userAgent; 36332 isWindows = userAgent.indexOf('Windows') >= 0; 36333} 36334function isHighSurrogate(charCode) { 36335 return (0xD800 <= charCode && charCode <= 0xDBFF); 36336} 36337function isLowSurrogate(charCode) { 36338 return (0xDC00 <= charCode && charCode <= 0xDFFF); 36339} 36340function isLowerAsciiHex(code) { 36341 return code >= 97 /* a */ && code <= 102 /* f */; 36342} 36343function isLowerAsciiLetter(code) { 36344 return code >= 97 /* a */ && code <= 122 /* z */; 36345} 36346function isUpperAsciiLetter(code) { 36347 return code >= 65 /* A */ && code <= 90 /* Z */; 36348} 36349function isAsciiLetter(code) { 36350 return isLowerAsciiLetter(code) || isUpperAsciiLetter(code); 36351} 36352//#endregion 36353var _schemePattern = /^\w[\w\d+.-]*$/; 36354var _singleSlashStart = /^\//; 36355var _doubleSlashStart = /^\/\//; 36356function _validateUri(ret, _strict) { 36357 // scheme, must be set 36358 if (!ret.scheme && _strict) { 36359 throw new Error("[UriError]: Scheme is missing: {scheme: \"\", authority: \"" + ret.authority + "\", path: \"" + ret.path + "\", query: \"" + ret.query + "\", fragment: \"" + ret.fragment + "\"}"); 36360 } 36361 // scheme, https://tools.ietf.org/html/rfc3986#section-3.1 36362 // ALPHA *( ALPHA / DIGIT / "+" / "-" / "." ) 36363 if (ret.scheme && !_schemePattern.test(ret.scheme)) { 36364 throw new Error('[UriError]: Scheme contains illegal characters.'); 36365 } 36366 // path, http://tools.ietf.org/html/rfc3986#section-3.3 36367 // If a URI contains an authority component, then the path component 36368 // must either be empty or begin with a slash ("/") character. If a URI 36369 // does not contain an authority component, then the path cannot begin 36370 // with two slash characters ("//"). 36371 if (ret.path) { 36372 if (ret.authority) { 36373 if (!_singleSlashStart.test(ret.path)) { 36374 throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character'); 36375 } 36376 } 36377 else { 36378 if (_doubleSlashStart.test(ret.path)) { 36379 throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")'); 36380 } 36381 } 36382 } 36383} 36384// for a while we allowed uris *without* schemes and this is the migration 36385// for them, e.g. an uri without scheme and without strict-mode warns and falls 36386// back to the file-scheme. that should cause the least carnage and still be a 36387// clear warning 36388function _schemeFix(scheme, _strict) { 36389 if (!scheme && !_strict) { 36390 return 'file'; 36391 } 36392 return scheme; 36393} 36394// implements a bit of https://tools.ietf.org/html/rfc3986#section-5 36395function _referenceResolution(scheme, path) { 36396 // the slash-character is our 'default base' as we don't 36397 // support constructing URIs relative to other URIs. This 36398 // also means that we alter and potentially break paths. 36399 // see https://tools.ietf.org/html/rfc3986#section-5.1.4 36400 switch (scheme) { 36401 case 'https': 36402 case 'http': 36403 case 'file': 36404 if (!path) { 36405 path = _slash; 36406 } 36407 else if (path[0] !== _slash) { 36408 path = _slash + path; 36409 } 36410 break; 36411 } 36412 return path; 36413} 36414var _empty = ''; 36415var _slash = '/'; 36416var _regexp = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/; 36417/** 36418 * Uniform Resource Identifier (URI) http://tools.ietf.org/html/rfc3986. 36419 * This class is a simple parser which creates the basic component parts 36420 * (http://tools.ietf.org/html/rfc3986#section-3) with minimal validation 36421 * and encoding. 36422 * 36423 * ```txt 36424 * foo://example.com:8042/over/there?name=ferret#nose 36425 * \_/ \______________/\_________/ \_________/ \__/ 36426 * | | | | | 36427 * scheme authority path query fragment 36428 * | _____________________|__ 36429 * / \ / \ 36430 * urn:example:animal:ferret:nose 36431 * ``` 36432 */ 36433var URI = /** @class */ (function () { 36434 /** 36435 * @internal 36436 */ 36437 function URI(schemeOrData, authority, path, query, fragment, _strict) { 36438 if (_strict === void 0) { _strict = false; } 36439 if (typeof schemeOrData === 'object') { 36440 this.scheme = schemeOrData.scheme || _empty; 36441 this.authority = schemeOrData.authority || _empty; 36442 this.path = schemeOrData.path || _empty; 36443 this.query = schemeOrData.query || _empty; 36444 this.fragment = schemeOrData.fragment || _empty; 36445 // no validation because it's this URI 36446 // that creates uri components. 36447 // _validateUri(this); 36448 } 36449 else { 36450 this.scheme = _schemeFix(schemeOrData, _strict); 36451 this.authority = authority || _empty; 36452 this.path = _referenceResolution(this.scheme, path || _empty); 36453 this.query = query || _empty; 36454 this.fragment = fragment || _empty; 36455 _validateUri(this, _strict); 36456 } 36457 } 36458 URI.isUri = function (thing) { 36459 if (thing instanceof URI) { 36460 return true; 36461 } 36462 if (!thing) { 36463 return false; 36464 } 36465 return typeof thing.authority === 'string' 36466 && typeof thing.fragment === 'string' 36467 && typeof thing.path === 'string' 36468 && typeof thing.query === 'string' 36469 && typeof thing.scheme === 'string' 36470 && typeof thing.fsPath === 'function' 36471 && typeof thing.with === 'function' 36472 && typeof thing.toString === 'function'; 36473 }; 36474 Object.defineProperty(URI.prototype, "fsPath", { 36475 // ---- filesystem path ----------------------- 36476 /** 36477 * Returns a string representing the corresponding file system path of this URI. 36478 * Will handle UNC paths, normalizes windows drive letters to lower-case, and uses the 36479 * platform specific path separator. 36480 * 36481 * * Will *not* validate the path for invalid characters and semantics. 36482 * * Will *not* look at the scheme of this URI. 36483 * * The result shall *not* be used for display purposes but for accessing a file on disk. 36484 * 36485 * 36486 * The *difference* to `URI#path` is the use of the platform specific separator and the handling 36487 * of UNC paths. See the below sample of a file-uri with an authority (UNC path). 36488 * 36489 * ```ts 36490 const u = URI.parse('file://server/c$/folder/file.txt') 36491 u.authority === 'server' 36492 u.path === '/shares/c$/file.txt' 36493 u.fsPath === '\\server\c$\folder\file.txt' 36494 ``` 36495 * 36496 * Using `URI#path` to read a file (using fs-apis) would not be enough because parts of the path, 36497 * namely the server name, would be missing. Therefore `URI#fsPath` exists - it's sugar to ease working 36498 * with URIs that represent files on disk (`file` scheme). 36499 */ 36500 get: function () { 36501 // if (this.scheme !== 'file') { 36502 // console.warn(`[UriError] calling fsPath with scheme ${this.scheme}`); 36503 // } 36504 return uriToFsPath(this, false); 36505 }, 36506 enumerable: true, 36507 configurable: true 36508 }); 36509 // ---- modify to new ------------------------- 36510 URI.prototype.with = function (change) { 36511 if (!change) { 36512 return this; 36513 } 36514 var scheme = change.scheme, authority = change.authority, path = change.path, query = change.query, fragment = change.fragment; 36515 if (scheme === undefined) { 36516 scheme = this.scheme; 36517 } 36518 else if (scheme === null) { 36519 scheme = _empty; 36520 } 36521 if (authority === undefined) { 36522 authority = this.authority; 36523 } 36524 else if (authority === null) { 36525 authority = _empty; 36526 } 36527 if (path === undefined) { 36528 path = this.path; 36529 } 36530 else if (path === null) { 36531 path = _empty; 36532 } 36533 if (query === undefined) { 36534 query = this.query; 36535 } 36536 else if (query === null) { 36537 query = _empty; 36538 } 36539 if (fragment === undefined) { 36540 fragment = this.fragment; 36541 } 36542 else if (fragment === null) { 36543 fragment = _empty; 36544 } 36545 if (scheme === this.scheme 36546 && authority === this.authority 36547 && path === this.path 36548 && query === this.query 36549 && fragment === this.fragment) { 36550 return this; 36551 } 36552 return new _URI(scheme, authority, path, query, fragment); 36553 }; 36554 // ---- parse & validate ------------------------ 36555 /** 36556 * Creates a new URI from a string, e.g. `http://www.msft.com/some/path`, 36557 * `file:///usr/home`, or `scheme:with/path`. 36558 * 36559 * @param value A string which represents an URI (see `URI#toString`). 36560 */ 36561 URI.parse = function (value, _strict) { 36562 if (_strict === void 0) { _strict = false; } 36563 var match = _regexp.exec(value); 36564 if (!match) { 36565 return new _URI(_empty, _empty, _empty, _empty, _empty); 36566 } 36567 return new _URI(match[2] || _empty, percentDecode(match[4] || _empty), percentDecode(match[5] || _empty), percentDecode(match[7] || _empty), percentDecode(match[9] || _empty), _strict); 36568 }; 36569 /** 36570 * Creates a new URI from a file system path, e.g. `c:\my\files`, 36571 * `/usr/home`, or `\\server\share\some\path`. 36572 * 36573 * The *difference* between `URI#parse` and `URI#file` is that the latter treats the argument 36574 * as path, not as stringified-uri. E.g. `URI.file(path)` is **not the same as** 36575 * `URI.parse('file://' + path)` because the path might contain characters that are 36576 * interpreted (# and ?). See the following sample: 36577 * ```ts 36578 const good = URI.file('/coding/c#/project1'); 36579 good.scheme === 'file'; 36580 good.path === '/coding/c#/project1'; 36581 good.fragment === ''; 36582 const bad = URI.parse('file://' + '/coding/c#/project1'); 36583 bad.scheme === 'file'; 36584 bad.path === '/coding/c'; // path is now broken 36585 bad.fragment === '/project1'; 36586 ``` 36587 * 36588 * @param path A file system path (see `URI#fsPath`) 36589 */ 36590 URI.file = function (path) { 36591 var authority = _empty; 36592 // normalize to fwd-slashes on windows, 36593 // on other systems bwd-slashes are valid 36594 // filename character, eg /f\oo/ba\r.txt 36595 if (isWindows) { 36596 path = path.replace(/\\/g, _slash); 36597 } 36598 // check for authority as used in UNC shares 36599 // or use the path as given 36600 if (path[0] === _slash && path[1] === _slash) { 36601 var idx = path.indexOf(_slash, 2); 36602 if (idx === -1) { 36603 authority = path.substring(2); 36604 path = _slash; 36605 } 36606 else { 36607 authority = path.substring(2, idx); 36608 path = path.substring(idx) || _slash; 36609 } 36610 } 36611 return new _URI('file', authority, path, _empty, _empty); 36612 }; 36613 URI.from = function (components) { 36614 return new _URI(components.scheme, components.authority, components.path, components.query, components.fragment); 36615 }; 36616 // /** 36617 // * Join a URI path with path fragments and normalizes the resulting path. 36618 // * 36619 // * @param uri The input URI. 36620 // * @param pathFragment The path fragment to add to the URI path. 36621 // * @returns The resulting URI. 36622 // */ 36623 // static joinPath(uri: URI, ...pathFragment: string[]): URI { 36624 // if (!uri.path) { 36625 // throw new Error(`[UriError]: cannot call joinPaths on URI without path`); 36626 // } 36627 // let newPath: string; 36628 // if (isWindows && uri.scheme === 'file') { 36629 // newPath = URI.file(paths.win32.join(uriToFsPath(uri, true), ...pathFragment)).path; 36630 // } else { 36631 // newPath = paths.posix.join(uri.path, ...pathFragment); 36632 // } 36633 // return uri.with({ path: newPath }); 36634 // } 36635 // ---- printing/externalize --------------------------- 36636 /** 36637 * Creates a string representation for this URI. It's guaranteed that calling 36638 * `URI.parse` with the result of this function creates an URI which is equal 36639 * to this URI. 36640 * 36641 * * The result shall *not* be used for display purposes but for externalization or transport. 36642 * * The result will be encoded using the percentage encoding and encoding happens mostly 36643 * ignore the scheme-specific encoding rules. 36644 * 36645 * @param skipEncoding Do not encode the result, default is `false` 36646 */ 36647 URI.prototype.toString = function (skipEncoding) { 36648 if (skipEncoding === void 0) { skipEncoding = false; } 36649 return _asFormatted(this, skipEncoding); 36650 }; 36651 URI.prototype.toJSON = function () { 36652 return this; 36653 }; 36654 URI.revive = function (data) { 36655 if (!data) { 36656 return data; 36657 } 36658 else if (data instanceof URI) { 36659 return data; 36660 } 36661 else { 36662 var result = new _URI(data); 36663 result._formatted = data.external; 36664 result._fsPath = data._sep === _pathSepMarker ? data.fsPath : null; 36665 return result; 36666 } 36667 }; 36668 return URI; 36669}()); 36670 36671var _pathSepMarker = isWindows ? 1 : undefined; 36672// eslint-disable-next-line @typescript-eslint/class-name-casing 36673var _URI = /** @class */ (function (_super) { 36674 __extends(_URI, _super); 36675 function _URI() { 36676 var _this = _super !== null && _super.apply(this, arguments) || this; 36677 _this._formatted = null; 36678 _this._fsPath = null; 36679 return _this; 36680 } 36681 Object.defineProperty(_URI.prototype, "fsPath", { 36682 get: function () { 36683 if (!this._fsPath) { 36684 this._fsPath = uriToFsPath(this, false); 36685 } 36686 return this._fsPath; 36687 }, 36688 enumerable: true, 36689 configurable: true 36690 }); 36691 _URI.prototype.toString = function (skipEncoding) { 36692 if (skipEncoding === void 0) { skipEncoding = false; } 36693 if (!skipEncoding) { 36694 if (!this._formatted) { 36695 this._formatted = _asFormatted(this, false); 36696 } 36697 return this._formatted; 36698 } 36699 else { 36700 // we don't cache that 36701 return _asFormatted(this, true); 36702 } 36703 }; 36704 _URI.prototype.toJSON = function () { 36705 var res = { 36706 $mid: 1 36707 }; 36708 // cached state 36709 if (this._fsPath) { 36710 res.fsPath = this._fsPath; 36711 res._sep = _pathSepMarker; 36712 } 36713 if (this._formatted) { 36714 res.external = this._formatted; 36715 } 36716 // uri components 36717 if (this.path) { 36718 res.path = this.path; 36719 } 36720 if (this.scheme) { 36721 res.scheme = this.scheme; 36722 } 36723 if (this.authority) { 36724 res.authority = this.authority; 36725 } 36726 if (this.query) { 36727 res.query = this.query; 36728 } 36729 if (this.fragment) { 36730 res.fragment = this.fragment; 36731 } 36732 return res; 36733 }; 36734 return _URI; 36735}(URI)); 36736// reserved characters: https://tools.ietf.org/html/rfc3986#section-2.2 36737var encodeTable = (_a = {}, 36738 _a[58 /* Colon */] = '%3A', 36739 _a[47 /* Slash */] = '%2F', 36740 _a[63 /* QuestionMark */] = '%3F', 36741 _a[35 /* Hash */] = '%23', 36742 _a[91 /* OpenSquareBracket */] = '%5B', 36743 _a[93 /* CloseSquareBracket */] = '%5D', 36744 _a[64 /* AtSign */] = '%40', 36745 _a[33 /* ExclamationMark */] = '%21', 36746 _a[36 /* DollarSign */] = '%24', 36747 _a[38 /* Ampersand */] = '%26', 36748 _a[39 /* SingleQuote */] = '%27', 36749 _a[40 /* OpenParen */] = '%28', 36750 _a[41 /* CloseParen */] = '%29', 36751 _a[42 /* Asterisk */] = '%2A', 36752 _a[43 /* Plus */] = '%2B', 36753 _a[44 /* Comma */] = '%2C', 36754 _a[59 /* Semicolon */] = '%3B', 36755 _a[61 /* Equals */] = '%3D', 36756 _a[32 /* Space */] = '%20', 36757 _a); 36758function encodeURIComponentFast(uriComponent, allowSlash) { 36759 var res = undefined; 36760 var nativeEncodePos = -1; 36761 for (var pos = 0; pos < uriComponent.length; pos++) { 36762 var code = uriComponent.charCodeAt(pos); 36763 // unreserved characters: https://tools.ietf.org/html/rfc3986#section-2.3 36764 if ((code >= 97 /* a */ && code <= 122 /* z */) 36765 || (code >= 65 /* A */ && code <= 90 /* Z */) 36766 || (code >= 48 /* Digit0 */ && code <= 57 /* Digit9 */) 36767 || code === 45 /* Dash */ 36768 || code === 46 /* Period */ 36769 || code === 95 /* Underline */ 36770 || code === 126 /* Tilde */ 36771 || (allowSlash && code === 47 /* Slash */)) { 36772 // check if we are delaying native encode 36773 if (nativeEncodePos !== -1) { 36774 res += encodeURIComponent(uriComponent.substring(nativeEncodePos, pos)); 36775 nativeEncodePos = -1; 36776 } 36777 // check if we write into a new string (by default we try to return the param) 36778 if (res !== undefined) { 36779 res += uriComponent.charAt(pos); 36780 } 36781 } 36782 else { 36783 // encoding needed, we need to allocate a new string 36784 if (res === undefined) { 36785 res = uriComponent.substr(0, pos); 36786 } 36787 // check with default table first 36788 var escaped = encodeTable[code]; 36789 if (escaped !== undefined) { 36790 // check if we are delaying native encode 36791 if (nativeEncodePos !== -1) { 36792 res += encodeURIComponent(uriComponent.substring(nativeEncodePos, pos)); 36793 nativeEncodePos = -1; 36794 } 36795 // append escaped variant to result 36796 res += escaped; 36797 } 36798 else if (nativeEncodePos === -1) { 36799 // use native encode only when needed 36800 nativeEncodePos = pos; 36801 } 36802 } 36803 } 36804 if (nativeEncodePos !== -1) { 36805 res += encodeURIComponent(uriComponent.substring(nativeEncodePos)); 36806 } 36807 return res !== undefined ? res : uriComponent; 36808} 36809function encodeURIComponentMinimal(path) { 36810 var res = undefined; 36811 for (var pos = 0; pos < path.length; pos++) { 36812 var code = path.charCodeAt(pos); 36813 if (code === 35 /* Hash */ || code === 63 /* QuestionMark */) { 36814 if (res === undefined) { 36815 res = path.substr(0, pos); 36816 } 36817 res += encodeTable[code]; 36818 } 36819 else { 36820 if (res !== undefined) { 36821 res += path[pos]; 36822 } 36823 } 36824 } 36825 return res !== undefined ? res : path; 36826} 36827/** 36828 * Compute `fsPath` for the given uri 36829 */ 36830function uriToFsPath(uri, keepDriveLetterCasing) { 36831 var value; 36832 if (uri.authority && uri.path.length > 1 && uri.scheme === 'file') { 36833 // unc path: file://shares/c$/far/boo 36834 value = "//" + uri.authority + uri.path; 36835 } 36836 else if (uri.path.charCodeAt(0) === 47 /* Slash */ 36837 && (uri.path.charCodeAt(1) >= 65 /* A */ && uri.path.charCodeAt(1) <= 90 /* Z */ || uri.path.charCodeAt(1) >= 97 /* a */ && uri.path.charCodeAt(1) <= 122 /* z */) 36838 && uri.path.charCodeAt(2) === 58 /* Colon */) { 36839 if (!keepDriveLetterCasing) { 36840 // windows drive letter: file:///c:/far/boo 36841 value = uri.path[1].toLowerCase() + uri.path.substr(2); 36842 } 36843 else { 36844 value = uri.path.substr(1); 36845 } 36846 } 36847 else { 36848 // other path 36849 value = uri.path; 36850 } 36851 if (isWindows) { 36852 value = value.replace(/\//g, '\\'); 36853 } 36854 return value; 36855} 36856/** 36857 * Create the external version of a uri 36858 */ 36859function _asFormatted(uri, skipEncoding) { 36860 var encoder = !skipEncoding 36861 ? encodeURIComponentFast 36862 : encodeURIComponentMinimal; 36863 var res = ''; 36864 var scheme = uri.scheme, authority = uri.authority, path = uri.path, query = uri.query, fragment = uri.fragment; 36865 if (scheme) { 36866 res += scheme; 36867 res += ':'; 36868 } 36869 if (authority || scheme === 'file') { 36870 res += _slash; 36871 res += _slash; 36872 } 36873 if (authority) { 36874 var idx = authority.indexOf('@'); 36875 if (idx !== -1) { 36876 // <user>@<auth> 36877 var userinfo = authority.substr(0, idx); 36878 authority = authority.substr(idx + 1); 36879 idx = userinfo.indexOf(':'); 36880 if (idx === -1) { 36881 res += encoder(userinfo, false); 36882 } 36883 else { 36884 // <user>:<pass>@<auth> 36885 res += encoder(userinfo.substr(0, idx), false); 36886 res += ':'; 36887 res += encoder(userinfo.substr(idx + 1), false); 36888 } 36889 res += '@'; 36890 } 36891 authority = authority.toLowerCase(); 36892 idx = authority.indexOf(':'); 36893 if (idx === -1) { 36894 res += encoder(authority, false); 36895 } 36896 else { 36897 // <auth>:<port> 36898 res += encoder(authority.substr(0, idx), false); 36899 res += authority.substr(idx); 36900 } 36901 } 36902 if (path) { 36903 // lower-case windows drive letters in /C:/fff or C:/fff 36904 if (path.length >= 3 && path.charCodeAt(0) === 47 /* Slash */ && path.charCodeAt(2) === 58 /* Colon */) { 36905 var code = path.charCodeAt(1); 36906 if (code >= 65 /* A */ && code <= 90 /* Z */) { 36907 path = "/" + String.fromCharCode(code + 32) + ":" + path.substr(3); // "/c:".length === 3 36908 } 36909 } 36910 else if (path.length >= 2 && path.charCodeAt(1) === 58 /* Colon */) { 36911 var code = path.charCodeAt(0); 36912 if (code >= 65 /* A */ && code <= 90 /* Z */) { 36913 path = String.fromCharCode(code + 32) + ":" + path.substr(2); // "/c:".length === 3 36914 } 36915 } 36916 // encode the rest of the path 36917 res += encoder(path, true); 36918 } 36919 if (query) { 36920 res += '?'; 36921 res += encoder(query, false); 36922 } 36923 if (fragment) { 36924 res += '#'; 36925 res += !skipEncoding ? encodeURIComponentFast(fragment, false) : fragment; 36926 } 36927 return res; 36928} 36929// --- decode 36930function decodeURIComponentGraceful(str) { 36931 try { 36932 return decodeURIComponent(str); 36933 } 36934 catch (_a) { 36935 if (str.length > 3) { 36936 return str.substr(0, 3) + decodeURIComponentGraceful(str.substr(3)); 36937 } 36938 else { 36939 return str; 36940 } 36941 } 36942} 36943var _rEncodedAsHex = /(%[0-9A-Za-z][0-9A-Za-z])+/g; 36944function percentDecode(str) { 36945 if (!str.match(_rEncodedAsHex)) { 36946 return str; 36947 } 36948 return str.replace(_rEncodedAsHex, function (match) { return decodeURIComponentGraceful(match); }); 36949} 36950 36951/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../../process/browser.js */ "./node_modules/process/browser.js"))) 36952 36953/***/ }), 36954 36955/***/ "./node_modules/monaco-editor/esm/vs/language/css/cssMode.js": 36956/*!*******************************************************************!*\ 36957 !*** ./node_modules/monaco-editor/esm/vs/language/css/cssMode.js ***! 36958 \*******************************************************************/ 36959/*! exports provided: setupMode */ 36960/***/ (function(module, __webpack_exports__, __webpack_require__) { 36961 36962"use strict"; 36963__webpack_require__.r(__webpack_exports__); 36964/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setupMode", function() { return setupMode; }); 36965/* harmony import */ var _workerManager_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./workerManager.js */ "./node_modules/monaco-editor/esm/vs/language/css/workerManager.js"); 36966/* harmony import */ var _languageFeatures_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./languageFeatures.js */ "./node_modules/monaco-editor/esm/vs/language/css/languageFeatures.js"); 36967/* harmony import */ var _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./fillers/monaco-editor-core.js */ "./node_modules/monaco-editor/esm/vs/language/css/fillers/monaco-editor-core.js"); 36968/*--------------------------------------------------------------------------------------------- 36969 * Copyright (c) Microsoft Corporation. All rights reserved. 36970 * Licensed under the MIT License. See License.txt in the project root for license information. 36971 *--------------------------------------------------------------------------------------------*/ 36972 36973 36974 36975function setupMode(defaults) { 36976 var disposables = []; 36977 var providers = []; 36978 var client = new _workerManager_js__WEBPACK_IMPORTED_MODULE_0__["WorkerManager"](defaults); 36979 disposables.push(client); 36980 var worker = function () { 36981 var uris = []; 36982 for (var _i = 0; _i < arguments.length; _i++) { 36983 uris[_i] = arguments[_i]; 36984 } 36985 return client.getLanguageServiceWorker.apply(client, uris); 36986 }; 36987 function registerProviders() { 36988 var languageId = defaults.languageId, modeConfiguration = defaults.modeConfiguration; 36989 disposeAll(providers); 36990 if (modeConfiguration.completionItems) { 36991 providers.push(_fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_2__["languages"].registerCompletionItemProvider(languageId, new _languageFeatures_js__WEBPACK_IMPORTED_MODULE_1__["CompletionAdapter"](worker))); 36992 } 36993 if (modeConfiguration.hovers) { 36994 providers.push(_fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_2__["languages"].registerHoverProvider(languageId, new _languageFeatures_js__WEBPACK_IMPORTED_MODULE_1__["HoverAdapter"](worker))); 36995 } 36996 if (modeConfiguration.documentHighlights) { 36997 providers.push(_fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_2__["languages"].registerDocumentHighlightProvider(languageId, new _languageFeatures_js__WEBPACK_IMPORTED_MODULE_1__["DocumentHighlightAdapter"](worker))); 36998 } 36999 if (modeConfiguration.definitions) { 37000 providers.push(_fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_2__["languages"].registerDefinitionProvider(languageId, new _languageFeatures_js__WEBPACK_IMPORTED_MODULE_1__["DefinitionAdapter"](worker))); 37001 } 37002 if (modeConfiguration.references) { 37003 providers.push(_fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_2__["languages"].registerReferenceProvider(languageId, new _languageFeatures_js__WEBPACK_IMPORTED_MODULE_1__["ReferenceAdapter"](worker))); 37004 } 37005 if (modeConfiguration.documentSymbols) { 37006 providers.push(_fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_2__["languages"].registerDocumentSymbolProvider(languageId, new _languageFeatures_js__WEBPACK_IMPORTED_MODULE_1__["DocumentSymbolAdapter"](worker))); 37007 } 37008 if (modeConfiguration.rename) { 37009 providers.push(_fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_2__["languages"].registerRenameProvider(languageId, new _languageFeatures_js__WEBPACK_IMPORTED_MODULE_1__["RenameAdapter"](worker))); 37010 } 37011 if (modeConfiguration.colors) { 37012 providers.push(_fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_2__["languages"].registerColorProvider(languageId, new _languageFeatures_js__WEBPACK_IMPORTED_MODULE_1__["DocumentColorAdapter"](worker))); 37013 } 37014 if (modeConfiguration.foldingRanges) { 37015 providers.push(_fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_2__["languages"].registerFoldingRangeProvider(languageId, new _languageFeatures_js__WEBPACK_IMPORTED_MODULE_1__["FoldingRangeAdapter"](worker))); 37016 } 37017 if (modeConfiguration.diagnostics) { 37018 providers.push(new _languageFeatures_js__WEBPACK_IMPORTED_MODULE_1__["DiagnosticsAdapter"](languageId, worker, defaults)); 37019 } 37020 if (modeConfiguration.selectionRanges) { 37021 providers.push(_fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_2__["languages"].registerSelectionRangeProvider(languageId, new _languageFeatures_js__WEBPACK_IMPORTED_MODULE_1__["SelectionRangeAdapter"](worker))); 37022 } 37023 } 37024 registerProviders(); 37025 disposables.push(asDisposable(providers)); 37026 return asDisposable(disposables); 37027} 37028function asDisposable(disposables) { 37029 return { dispose: function () { return disposeAll(disposables); } }; 37030} 37031function disposeAll(disposables) { 37032 while (disposables.length) { 37033 disposables.pop().dispose(); 37034 } 37035} 37036 37037 37038/***/ }), 37039 37040/***/ "./node_modules/monaco-editor/esm/vs/language/css/fillers/vscode-nls.js": 37041/*!******************************************************************************!*\ 37042 !*** ./node_modules/monaco-editor/esm/vs/language/css/fillers/vscode-nls.js ***! 37043 \******************************************************************************/ 37044/*! exports provided: loadMessageBundle, config */ 37045/***/ (function(module, __webpack_exports__, __webpack_require__) { 37046 37047"use strict"; 37048__webpack_require__.r(__webpack_exports__); 37049/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "loadMessageBundle", function() { return loadMessageBundle; }); 37050/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "config", function() { return config; }); 37051/*--------------------------------------------------------------------------------------------- 37052 * Copyright (c) Microsoft Corporation. All rights reserved. 37053 * Licensed under the MIT License. See License.txt in the project root for license information. 37054 *--------------------------------------------------------------------------------------------*/ 37055function format(message, args) { 37056 var result; 37057 if (args.length === 0) { 37058 result = message; 37059 } 37060 else { 37061 result = message.replace(/\{(\d+)\}/g, function (match, rest) { 37062 var index = rest[0]; 37063 return typeof args[index] !== 'undefined' ? args[index] : match; 37064 }); 37065 } 37066 return result; 37067} 37068function localize(key, message) { 37069 var args = []; 37070 for (var _i = 2; _i < arguments.length; _i++) { 37071 args[_i - 2] = arguments[_i]; 37072 } 37073 return format(message, args); 37074} 37075function loadMessageBundle(file) { 37076 return localize; 37077} 37078function config(opt) { 37079 return loadMessageBundle; 37080} 37081 37082 37083/***/ }), 37084 37085/***/ "./node_modules/monaco-editor/esm/vs/language/css/languageFeatures.js": 37086/*!****************************************************************************!*\ 37087 !*** ./node_modules/monaco-editor/esm/vs/language/css/languageFeatures.js ***! 37088 \****************************************************************************/ 37089/*! exports provided: DiagnosticsAdapter, CompletionAdapter, HoverAdapter, DocumentHighlightAdapter, DefinitionAdapter, ReferenceAdapter, RenameAdapter, DocumentSymbolAdapter, DocumentColorAdapter, FoldingRangeAdapter, SelectionRangeAdapter */ 37090/***/ (function(module, __webpack_exports__, __webpack_require__) { 37091 37092"use strict"; 37093__webpack_require__.r(__webpack_exports__); 37094/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DiagnosticsAdapter", function() { return DiagnosticsAdapter; }); 37095/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CompletionAdapter", function() { return CompletionAdapter; }); 37096/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HoverAdapter", function() { return HoverAdapter; }); 37097/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentHighlightAdapter", function() { return DocumentHighlightAdapter; }); 37098/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefinitionAdapter", function() { return DefinitionAdapter; }); 37099/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReferenceAdapter", function() { return ReferenceAdapter; }); 37100/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RenameAdapter", function() { return RenameAdapter; }); 37101/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentSymbolAdapter", function() { return DocumentSymbolAdapter; }); 37102/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentColorAdapter", function() { return DocumentColorAdapter; }); 37103/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FoldingRangeAdapter", function() { return FoldingRangeAdapter; }); 37104/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SelectionRangeAdapter", function() { return SelectionRangeAdapter; }); 37105/* harmony import */ var _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_deps/vscode-css-languageservice/cssLanguageService.js */ "./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/cssLanguageService.js"); 37106/* harmony import */ var _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./fillers/monaco-editor-core.js */ "./node_modules/monaco-editor/esm/vs/language/css/fillers/monaco-editor-core.js"); 37107/*--------------------------------------------------------------------------------------------- 37108 * Copyright (c) Microsoft Corporation. All rights reserved. 37109 * Licensed under the MIT License. See License.txt in the project root for license information. 37110 *--------------------------------------------------------------------------------------------*/ 37111 37112 37113// --- diagnostics --- --- 37114var DiagnosticsAdapter = /** @class */ (function () { 37115 function DiagnosticsAdapter(_languageId, _worker, defaults) { 37116 var _this = this; 37117 this._languageId = _languageId; 37118 this._worker = _worker; 37119 this._disposables = []; 37120 this._listener = Object.create(null); 37121 var onModelAdd = function (model) { 37122 var modeId = model.getModeId(); 37123 if (modeId !== _this._languageId) { 37124 return; 37125 } 37126 var handle; 37127 _this._listener[model.uri.toString()] = model.onDidChangeContent(function () { 37128 window.clearTimeout(handle); 37129 handle = window.setTimeout(function () { return _this._doValidate(model.uri, modeId); }, 500); 37130 }); 37131 _this._doValidate(model.uri, modeId); 37132 }; 37133 var onModelRemoved = function (model) { 37134 _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_1__["editor"].setModelMarkers(model, _this._languageId, []); 37135 var uriStr = model.uri.toString(); 37136 var listener = _this._listener[uriStr]; 37137 if (listener) { 37138 listener.dispose(); 37139 delete _this._listener[uriStr]; 37140 } 37141 }; 37142 this._disposables.push(_fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_1__["editor"].onDidCreateModel(onModelAdd)); 37143 this._disposables.push(_fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_1__["editor"].onWillDisposeModel(onModelRemoved)); 37144 this._disposables.push(_fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_1__["editor"].onDidChangeModelLanguage(function (event) { 37145 onModelRemoved(event.model); 37146 onModelAdd(event.model); 37147 })); 37148 defaults.onDidChange(function (_) { 37149 _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_1__["editor"].getModels().forEach(function (model) { 37150 if (model.getModeId() === _this._languageId) { 37151 onModelRemoved(model); 37152 onModelAdd(model); 37153 } 37154 }); 37155 }); 37156 this._disposables.push({ 37157 dispose: function () { 37158 for (var key in _this._listener) { 37159 _this._listener[key].dispose(); 37160 } 37161 } 37162 }); 37163 _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_1__["editor"].getModels().forEach(onModelAdd); 37164 } 37165 DiagnosticsAdapter.prototype.dispose = function () { 37166 this._disposables.forEach(function (d) { return d && d.dispose(); }); 37167 this._disposables = []; 37168 }; 37169 DiagnosticsAdapter.prototype._doValidate = function (resource, languageId) { 37170 this._worker(resource) 37171 .then(function (worker) { 37172 return worker.doValidation(resource.toString()); 37173 }) 37174 .then(function (diagnostics) { 37175 var markers = diagnostics.map(function (d) { return toDiagnostics(resource, d); }); 37176 var model = _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_1__["editor"].getModel(resource); 37177 if (model.getModeId() === languageId) { 37178 _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_1__["editor"].setModelMarkers(model, languageId, markers); 37179 } 37180 }) 37181 .then(undefined, function (err) { 37182 console.error(err); 37183 }); 37184 }; 37185 return DiagnosticsAdapter; 37186}()); 37187 37188function toSeverity(lsSeverity) { 37189 switch (lsSeverity) { 37190 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["DiagnosticSeverity"].Error: 37191 return _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_1__["MarkerSeverity"].Error; 37192 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["DiagnosticSeverity"].Warning: 37193 return _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_1__["MarkerSeverity"].Warning; 37194 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["DiagnosticSeverity"].Information: 37195 return _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_1__["MarkerSeverity"].Info; 37196 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["DiagnosticSeverity"].Hint: 37197 return _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_1__["MarkerSeverity"].Hint; 37198 default: 37199 return _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_1__["MarkerSeverity"].Info; 37200 } 37201} 37202function toDiagnostics(resource, diag) { 37203 var code = typeof diag.code === 'number' ? String(diag.code) : diag.code; 37204 return { 37205 severity: toSeverity(diag.severity), 37206 startLineNumber: diag.range.start.line + 1, 37207 startColumn: diag.range.start.character + 1, 37208 endLineNumber: diag.range.end.line + 1, 37209 endColumn: diag.range.end.character + 1, 37210 message: diag.message, 37211 code: code, 37212 source: diag.source 37213 }; 37214} 37215// --- completion ------ 37216function fromPosition(position) { 37217 if (!position) { 37218 return void 0; 37219 } 37220 return { character: position.column - 1, line: position.lineNumber - 1 }; 37221} 37222function fromRange(range) { 37223 if (!range) { 37224 return void 0; 37225 } 37226 return { 37227 start: { 37228 line: range.startLineNumber - 1, 37229 character: range.startColumn - 1 37230 }, 37231 end: { line: range.endLineNumber - 1, character: range.endColumn - 1 } 37232 }; 37233} 37234function toRange(range) { 37235 if (!range) { 37236 return void 0; 37237 } 37238 return new _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_1__["Range"](range.start.line + 1, range.start.character + 1, range.end.line + 1, range.end.character + 1); 37239} 37240function isInsertReplaceEdit(edit) { 37241 return (typeof edit.insert !== 'undefined' && 37242 typeof edit.replace !== 'undefined'); 37243} 37244function toCompletionItemKind(kind) { 37245 var mItemKind = _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_1__["languages"].CompletionItemKind; 37246 switch (kind) { 37247 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["CompletionItemKind"].Text: 37248 return mItemKind.Text; 37249 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["CompletionItemKind"].Method: 37250 return mItemKind.Method; 37251 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["CompletionItemKind"].Function: 37252 return mItemKind.Function; 37253 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["CompletionItemKind"].Constructor: 37254 return mItemKind.Constructor; 37255 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["CompletionItemKind"].Field: 37256 return mItemKind.Field; 37257 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["CompletionItemKind"].Variable: 37258 return mItemKind.Variable; 37259 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["CompletionItemKind"].Class: 37260 return mItemKind.Class; 37261 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["CompletionItemKind"].Interface: 37262 return mItemKind.Interface; 37263 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["CompletionItemKind"].Module: 37264 return mItemKind.Module; 37265 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["CompletionItemKind"].Property: 37266 return mItemKind.Property; 37267 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["CompletionItemKind"].Unit: 37268 return mItemKind.Unit; 37269 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["CompletionItemKind"].Value: 37270 return mItemKind.Value; 37271 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["CompletionItemKind"].Enum: 37272 return mItemKind.Enum; 37273 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["CompletionItemKind"].Keyword: 37274 return mItemKind.Keyword; 37275 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["CompletionItemKind"].Snippet: 37276 return mItemKind.Snippet; 37277 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["CompletionItemKind"].Color: 37278 return mItemKind.Color; 37279 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["CompletionItemKind"].File: 37280 return mItemKind.File; 37281 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["CompletionItemKind"].Reference: 37282 return mItemKind.Reference; 37283 } 37284 return mItemKind.Property; 37285} 37286function toTextEdit(textEdit) { 37287 if (!textEdit) { 37288 return void 0; 37289 } 37290 return { 37291 range: toRange(textEdit.range), 37292 text: textEdit.newText 37293 }; 37294} 37295var CompletionAdapter = /** @class */ (function () { 37296 function CompletionAdapter(_worker) { 37297 this._worker = _worker; 37298 } 37299 Object.defineProperty(CompletionAdapter.prototype, "triggerCharacters", { 37300 get: function () { 37301 return [' ', ':']; 37302 }, 37303 enumerable: false, 37304 configurable: true 37305 }); 37306 CompletionAdapter.prototype.provideCompletionItems = function (model, position, context, token) { 37307 var resource = model.uri; 37308 return this._worker(resource) 37309 .then(function (worker) { 37310 return worker.doComplete(resource.toString(), fromPosition(position)); 37311 }) 37312 .then(function (info) { 37313 if (!info) { 37314 return; 37315 } 37316 var wordInfo = model.getWordUntilPosition(position); 37317 var wordRange = new _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_1__["Range"](position.lineNumber, wordInfo.startColumn, position.lineNumber, wordInfo.endColumn); 37318 var items = info.items.map(function (entry) { 37319 var item = { 37320 label: entry.label, 37321 insertText: entry.insertText || entry.label, 37322 sortText: entry.sortText, 37323 filterText: entry.filterText, 37324 documentation: entry.documentation, 37325 detail: entry.detail, 37326 range: wordRange, 37327 kind: toCompletionItemKind(entry.kind) 37328 }; 37329 if (entry.textEdit) { 37330 if (isInsertReplaceEdit(entry.textEdit)) { 37331 item.range = { 37332 insert: toRange(entry.textEdit.insert), 37333 replace: toRange(entry.textEdit.replace) 37334 }; 37335 } 37336 else { 37337 item.range = toRange(entry.textEdit.range); 37338 } 37339 item.insertText = entry.textEdit.newText; 37340 } 37341 if (entry.additionalTextEdits) { 37342 item.additionalTextEdits = entry.additionalTextEdits.map(toTextEdit); 37343 } 37344 if (entry.insertTextFormat === _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["InsertTextFormat"].Snippet) { 37345 item.insertTextRules = _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_1__["languages"].CompletionItemInsertTextRule.InsertAsSnippet; 37346 } 37347 return item; 37348 }); 37349 return { 37350 isIncomplete: info.isIncomplete, 37351 suggestions: items 37352 }; 37353 }); 37354 }; 37355 return CompletionAdapter; 37356}()); 37357 37358function isMarkupContent(thing) { 37359 return (thing && typeof thing === 'object' && typeof thing.kind === 'string'); 37360} 37361function toMarkdownString(entry) { 37362 if (typeof entry === 'string') { 37363 return { 37364 value: entry 37365 }; 37366 } 37367 if (isMarkupContent(entry)) { 37368 if (entry.kind === 'plaintext') { 37369 return { 37370 value: entry.value.replace(/[\\`*_{}[\]()#+\-.!]/g, '\\$&') 37371 }; 37372 } 37373 return { 37374 value: entry.value 37375 }; 37376 } 37377 return { value: '```' + entry.language + '\n' + entry.value + '\n```\n' }; 37378} 37379function toMarkedStringArray(contents) { 37380 if (!contents) { 37381 return void 0; 37382 } 37383 if (Array.isArray(contents)) { 37384 return contents.map(toMarkdownString); 37385 } 37386 return [toMarkdownString(contents)]; 37387} 37388// --- hover ------ 37389var HoverAdapter = /** @class */ (function () { 37390 function HoverAdapter(_worker) { 37391 this._worker = _worker; 37392 } 37393 HoverAdapter.prototype.provideHover = function (model, position, token) { 37394 var resource = model.uri; 37395 return this._worker(resource) 37396 .then(function (worker) { 37397 return worker.doHover(resource.toString(), fromPosition(position)); 37398 }) 37399 .then(function (info) { 37400 if (!info) { 37401 return; 37402 } 37403 return { 37404 range: toRange(info.range), 37405 contents: toMarkedStringArray(info.contents) 37406 }; 37407 }); 37408 }; 37409 return HoverAdapter; 37410}()); 37411 37412// --- document highlights ------ 37413function toDocumentHighlightKind(kind) { 37414 switch (kind) { 37415 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["DocumentHighlightKind"].Read: 37416 return _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_1__["languages"].DocumentHighlightKind.Read; 37417 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["DocumentHighlightKind"].Write: 37418 return _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_1__["languages"].DocumentHighlightKind.Write; 37419 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["DocumentHighlightKind"].Text: 37420 return _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_1__["languages"].DocumentHighlightKind.Text; 37421 } 37422 return _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_1__["languages"].DocumentHighlightKind.Text; 37423} 37424var DocumentHighlightAdapter = /** @class */ (function () { 37425 function DocumentHighlightAdapter(_worker) { 37426 this._worker = _worker; 37427 } 37428 DocumentHighlightAdapter.prototype.provideDocumentHighlights = function (model, position, token) { 37429 var resource = model.uri; 37430 return this._worker(resource) 37431 .then(function (worker) { 37432 return worker.findDocumentHighlights(resource.toString(), fromPosition(position)); 37433 }) 37434 .then(function (entries) { 37435 if (!entries) { 37436 return; 37437 } 37438 return entries.map(function (entry) { 37439 return { 37440 range: toRange(entry.range), 37441 kind: toDocumentHighlightKind(entry.kind) 37442 }; 37443 }); 37444 }); 37445 }; 37446 return DocumentHighlightAdapter; 37447}()); 37448 37449// --- definition ------ 37450function toLocation(location) { 37451 return { 37452 uri: _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_1__["Uri"].parse(location.uri), 37453 range: toRange(location.range) 37454 }; 37455} 37456var DefinitionAdapter = /** @class */ (function () { 37457 function DefinitionAdapter(_worker) { 37458 this._worker = _worker; 37459 } 37460 DefinitionAdapter.prototype.provideDefinition = function (model, position, token) { 37461 var resource = model.uri; 37462 return this._worker(resource) 37463 .then(function (worker) { 37464 return worker.findDefinition(resource.toString(), fromPosition(position)); 37465 }) 37466 .then(function (definition) { 37467 if (!definition) { 37468 return; 37469 } 37470 return [toLocation(definition)]; 37471 }); 37472 }; 37473 return DefinitionAdapter; 37474}()); 37475 37476// --- references ------ 37477var ReferenceAdapter = /** @class */ (function () { 37478 function ReferenceAdapter(_worker) { 37479 this._worker = _worker; 37480 } 37481 ReferenceAdapter.prototype.provideReferences = function (model, position, context, token) { 37482 var resource = model.uri; 37483 return this._worker(resource) 37484 .then(function (worker) { 37485 return worker.findReferences(resource.toString(), fromPosition(position)); 37486 }) 37487 .then(function (entries) { 37488 if (!entries) { 37489 return; 37490 } 37491 return entries.map(toLocation); 37492 }); 37493 }; 37494 return ReferenceAdapter; 37495}()); 37496 37497// --- rename ------ 37498function toWorkspaceEdit(edit) { 37499 if (!edit || !edit.changes) { 37500 return void 0; 37501 } 37502 var resourceEdits = []; 37503 for (var uri in edit.changes) { 37504 var _uri = _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_1__["Uri"].parse(uri); 37505 // let edits: languages.TextEdit[] = []; 37506 for (var _i = 0, _a = edit.changes[uri]; _i < _a.length; _i++) { 37507 var e = _a[_i]; 37508 resourceEdits.push({ 37509 resource: _uri, 37510 edit: { 37511 range: toRange(e.range), 37512 text: e.newText 37513 } 37514 }); 37515 } 37516 } 37517 return { 37518 edits: resourceEdits 37519 }; 37520} 37521var RenameAdapter = /** @class */ (function () { 37522 function RenameAdapter(_worker) { 37523 this._worker = _worker; 37524 } 37525 RenameAdapter.prototype.provideRenameEdits = function (model, position, newName, token) { 37526 var resource = model.uri; 37527 return this._worker(resource) 37528 .then(function (worker) { 37529 return worker.doRename(resource.toString(), fromPosition(position), newName); 37530 }) 37531 .then(function (edit) { 37532 return toWorkspaceEdit(edit); 37533 }); 37534 }; 37535 return RenameAdapter; 37536}()); 37537 37538// --- document symbols ------ 37539function toSymbolKind(kind) { 37540 var mKind = _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_1__["languages"].SymbolKind; 37541 switch (kind) { 37542 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["SymbolKind"].File: 37543 return mKind.Array; 37544 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["SymbolKind"].Module: 37545 return mKind.Module; 37546 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["SymbolKind"].Namespace: 37547 return mKind.Namespace; 37548 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["SymbolKind"].Package: 37549 return mKind.Package; 37550 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["SymbolKind"].Class: 37551 return mKind.Class; 37552 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["SymbolKind"].Method: 37553 return mKind.Method; 37554 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["SymbolKind"].Property: 37555 return mKind.Property; 37556 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["SymbolKind"].Field: 37557 return mKind.Field; 37558 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["SymbolKind"].Constructor: 37559 return mKind.Constructor; 37560 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["SymbolKind"].Enum: 37561 return mKind.Enum; 37562 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["SymbolKind"].Interface: 37563 return mKind.Interface; 37564 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["SymbolKind"].Function: 37565 return mKind.Function; 37566 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["SymbolKind"].Variable: 37567 return mKind.Variable; 37568 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["SymbolKind"].Constant: 37569 return mKind.Constant; 37570 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["SymbolKind"].String: 37571 return mKind.String; 37572 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["SymbolKind"].Number: 37573 return mKind.Number; 37574 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["SymbolKind"].Boolean: 37575 return mKind.Boolean; 37576 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["SymbolKind"].Array: 37577 return mKind.Array; 37578 } 37579 return mKind.Function; 37580} 37581var DocumentSymbolAdapter = /** @class */ (function () { 37582 function DocumentSymbolAdapter(_worker) { 37583 this._worker = _worker; 37584 } 37585 DocumentSymbolAdapter.prototype.provideDocumentSymbols = function (model, token) { 37586 var resource = model.uri; 37587 return this._worker(resource) 37588 .then(function (worker) { return worker.findDocumentSymbols(resource.toString()); }) 37589 .then(function (items) { 37590 if (!items) { 37591 return; 37592 } 37593 return items.map(function (item) { return ({ 37594 name: item.name, 37595 detail: '', 37596 containerName: item.containerName, 37597 kind: toSymbolKind(item.kind), 37598 tags: [], 37599 range: toRange(item.location.range), 37600 selectionRange: toRange(item.location.range) 37601 }); }); 37602 }); 37603 }; 37604 return DocumentSymbolAdapter; 37605}()); 37606 37607var DocumentColorAdapter = /** @class */ (function () { 37608 function DocumentColorAdapter(_worker) { 37609 this._worker = _worker; 37610 } 37611 DocumentColorAdapter.prototype.provideDocumentColors = function (model, token) { 37612 var resource = model.uri; 37613 return this._worker(resource) 37614 .then(function (worker) { return worker.findDocumentColors(resource.toString()); }) 37615 .then(function (infos) { 37616 if (!infos) { 37617 return; 37618 } 37619 return infos.map(function (item) { return ({ 37620 color: item.color, 37621 range: toRange(item.range) 37622 }); }); 37623 }); 37624 }; 37625 DocumentColorAdapter.prototype.provideColorPresentations = function (model, info, token) { 37626 var resource = model.uri; 37627 return this._worker(resource) 37628 .then(function (worker) { 37629 return worker.getColorPresentations(resource.toString(), info.color, fromRange(info.range)); 37630 }) 37631 .then(function (presentations) { 37632 if (!presentations) { 37633 return; 37634 } 37635 return presentations.map(function (presentation) { 37636 var item = { 37637 label: presentation.label 37638 }; 37639 if (presentation.textEdit) { 37640 item.textEdit = toTextEdit(presentation.textEdit); 37641 } 37642 if (presentation.additionalTextEdits) { 37643 item.additionalTextEdits = presentation.additionalTextEdits.map(toTextEdit); 37644 } 37645 return item; 37646 }); 37647 }); 37648 }; 37649 return DocumentColorAdapter; 37650}()); 37651 37652var FoldingRangeAdapter = /** @class */ (function () { 37653 function FoldingRangeAdapter(_worker) { 37654 this._worker = _worker; 37655 } 37656 FoldingRangeAdapter.prototype.provideFoldingRanges = function (model, context, token) { 37657 var resource = model.uri; 37658 return this._worker(resource) 37659 .then(function (worker) { return worker.getFoldingRanges(resource.toString(), context); }) 37660 .then(function (ranges) { 37661 if (!ranges) { 37662 return; 37663 } 37664 return ranges.map(function (range) { 37665 var result = { 37666 start: range.startLine + 1, 37667 end: range.endLine + 1 37668 }; 37669 if (typeof range.kind !== 'undefined') { 37670 result.kind = toFoldingRangeKind(range.kind); 37671 } 37672 return result; 37673 }); 37674 }); 37675 }; 37676 return FoldingRangeAdapter; 37677}()); 37678 37679function toFoldingRangeKind(kind) { 37680 switch (kind) { 37681 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["FoldingRangeKind"].Comment: 37682 return _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_1__["languages"].FoldingRangeKind.Comment; 37683 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["FoldingRangeKind"].Imports: 37684 return _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_1__["languages"].FoldingRangeKind.Imports; 37685 case _deps_vscode_css_languageservice_cssLanguageService_js__WEBPACK_IMPORTED_MODULE_0__["FoldingRangeKind"].Region: 37686 return _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_1__["languages"].FoldingRangeKind.Region; 37687 } 37688} 37689var SelectionRangeAdapter = /** @class */ (function () { 37690 function SelectionRangeAdapter(_worker) { 37691 this._worker = _worker; 37692 } 37693 SelectionRangeAdapter.prototype.provideSelectionRanges = function (model, positions, token) { 37694 var resource = model.uri; 37695 return this._worker(resource) 37696 .then(function (worker) { return worker.getSelectionRanges(resource.toString(), positions.map(fromPosition)); }) 37697 .then(function (selectionRanges) { 37698 if (!selectionRanges) { 37699 return; 37700 } 37701 return selectionRanges.map(function (selectionRange) { 37702 var result = []; 37703 while (selectionRange) { 37704 result.push({ range: toRange(selectionRange.range) }); 37705 selectionRange = selectionRange.parent; 37706 } 37707 return result; 37708 }); 37709 }); 37710 }; 37711 return SelectionRangeAdapter; 37712}()); 37713 37714 37715 37716/***/ }), 37717 37718/***/ "./node_modules/monaco-editor/esm/vs/language/css/workerManager.js": 37719/*!*************************************************************************!*\ 37720 !*** ./node_modules/monaco-editor/esm/vs/language/css/workerManager.js ***! 37721 \*************************************************************************/ 37722/*! exports provided: WorkerManager */ 37723/***/ (function(module, __webpack_exports__, __webpack_require__) { 37724 37725"use strict"; 37726__webpack_require__.r(__webpack_exports__); 37727/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WorkerManager", function() { return WorkerManager; }); 37728/* harmony import */ var _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./fillers/monaco-editor-core.js */ "./node_modules/monaco-editor/esm/vs/language/css/fillers/monaco-editor-core.js"); 37729/*--------------------------------------------------------------------------------------------- 37730 * Copyright (c) Microsoft Corporation. All rights reserved. 37731 * Licensed under the MIT License. See License.txt in the project root for license information. 37732 *--------------------------------------------------------------------------------------------*/ 37733 37734var STOP_WHEN_IDLE_FOR = 2 * 60 * 1000; // 2min 37735var WorkerManager = /** @class */ (function () { 37736 function WorkerManager(defaults) { 37737 var _this = this; 37738 this._defaults = defaults; 37739 this._worker = null; 37740 this._idleCheckInterval = window.setInterval(function () { return _this._checkIfIdle(); }, 30 * 1000); 37741 this._lastUsedTime = 0; 37742 this._configChangeListener = this._defaults.onDidChange(function () { return _this._stopWorker(); }); 37743 } 37744 WorkerManager.prototype._stopWorker = function () { 37745 if (this._worker) { 37746 this._worker.dispose(); 37747 this._worker = null; 37748 } 37749 this._client = null; 37750 }; 37751 WorkerManager.prototype.dispose = function () { 37752 clearInterval(this._idleCheckInterval); 37753 this._configChangeListener.dispose(); 37754 this._stopWorker(); 37755 }; 37756 WorkerManager.prototype._checkIfIdle = function () { 37757 if (!this._worker) { 37758 return; 37759 } 37760 var timePassedSinceLastUsed = Date.now() - this._lastUsedTime; 37761 if (timePassedSinceLastUsed > STOP_WHEN_IDLE_FOR) { 37762 this._stopWorker(); 37763 } 37764 }; 37765 WorkerManager.prototype._getClient = function () { 37766 this._lastUsedTime = Date.now(); 37767 if (!this._client) { 37768 this._worker = _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_0__["editor"].createWebWorker({ 37769 // module that exports the create() method and returns a `CSSWorker` instance 37770 moduleId: 'vs/language/css/cssWorker', 37771 label: this._defaults.languageId, 37772 // passed in to the create() method 37773 createData: { 37774 languageSettings: this._defaults.diagnosticsOptions, 37775 languageId: this._defaults.languageId 37776 } 37777 }); 37778 this._client = this._worker.getProxy(); 37779 } 37780 return this._client; 37781 }; 37782 WorkerManager.prototype.getLanguageServiceWorker = function () { 37783 var _this = this; 37784 var resources = []; 37785 for (var _i = 0; _i < arguments.length; _i++) { 37786 resources[_i] = arguments[_i]; 37787 } 37788 var _client; 37789 return this._getClient() 37790 .then(function (client) { 37791 _client = client; 37792 }) 37793 .then(function (_) { 37794 return _this._worker.withSyncedResources(resources); 37795 }) 37796 .then(function (_) { return _client; }); 37797 }; 37798 return WorkerManager; 37799}()); 37800 37801 37802 37803/***/ }) 37804 37805}]); 37806//# sourceMappingURL=2.2.js.map