Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wp-file-.../lib/codemirr.../mode/css
File: css.js
// CodeMirror, copyright (c) by Marijn Haverbeke and others
[0] Fix | Delete
// Distributed under an MIT license: http://codemirror.net/LICENSE
[1] Fix | Delete
[2] Fix | Delete
(function(mod) {
[3] Fix | Delete
if (typeof exports == "object" && typeof module == "object") // CommonJS
[4] Fix | Delete
mod(require("../../lib/codemirror"));
[5] Fix | Delete
else if (typeof define == "function" && define.amd) // AMD
[6] Fix | Delete
define(["../../lib/codemirror"], mod);
[7] Fix | Delete
else // Plain browser env
[8] Fix | Delete
mod(CodeMirror);
[9] Fix | Delete
})(function(CodeMirror) {
[10] Fix | Delete
"use strict";
[11] Fix | Delete
[12] Fix | Delete
CodeMirror.defineMode("css", function(config, parserConfig) {
[13] Fix | Delete
var inline = parserConfig.inline
[14] Fix | Delete
if (!parserConfig.propertyKeywords) parserConfig = CodeMirror.resolveMode("text/css");
[15] Fix | Delete
[16] Fix | Delete
var indentUnit = config.indentUnit,
[17] Fix | Delete
tokenHooks = parserConfig.tokenHooks,
[18] Fix | Delete
documentTypes = parserConfig.documentTypes || {},
[19] Fix | Delete
mediaTypes = parserConfig.mediaTypes || {},
[20] Fix | Delete
mediaFeatures = parserConfig.mediaFeatures || {},
[21] Fix | Delete
mediaValueKeywords = parserConfig.mediaValueKeywords || {},
[22] Fix | Delete
propertyKeywords = parserConfig.propertyKeywords || {},
[23] Fix | Delete
nonStandardPropertyKeywords = parserConfig.nonStandardPropertyKeywords || {},
[24] Fix | Delete
fontProperties = parserConfig.fontProperties || {},
[25] Fix | Delete
counterDescriptors = parserConfig.counterDescriptors || {},
[26] Fix | Delete
colorKeywords = parserConfig.colorKeywords || {},
[27] Fix | Delete
valueKeywords = parserConfig.valueKeywords || {},
[28] Fix | Delete
allowNested = parserConfig.allowNested,
[29] Fix | Delete
supportsAtComponent = parserConfig.supportsAtComponent === true;
[30] Fix | Delete
[31] Fix | Delete
var type, override;
[32] Fix | Delete
function ret(style, tp) { type = tp; return style; }
[33] Fix | Delete
[34] Fix | Delete
// Tokenizers
[35] Fix | Delete
[36] Fix | Delete
function tokenBase(stream, state) {
[37] Fix | Delete
var ch = stream.next();
[38] Fix | Delete
if (tokenHooks[ch]) {
[39] Fix | Delete
var result = tokenHooks[ch](stream, state);
[40] Fix | Delete
if (result !== false) return result;
[41] Fix | Delete
}
[42] Fix | Delete
if (ch == "@") {
[43] Fix | Delete
stream.eatWhile(/[\w\\\-]/);
[44] Fix | Delete
return ret("def", stream.current());
[45] Fix | Delete
} else if (ch == "=" || (ch == "~" || ch == "|") && stream.eat("=")) {
[46] Fix | Delete
return ret(null, "compare");
[47] Fix | Delete
} else if (ch == "\"" || ch == "'") {
[48] Fix | Delete
state.tokenize = tokenString(ch);
[49] Fix | Delete
return state.tokenize(stream, state);
[50] Fix | Delete
} else if (ch == "#") {
[51] Fix | Delete
stream.eatWhile(/[\w\\\-]/);
[52] Fix | Delete
return ret("atom", "hash");
[53] Fix | Delete
} else if (ch == "!") {
[54] Fix | Delete
stream.match(/^\s*\w*/);
[55] Fix | Delete
return ret("keyword", "important");
[56] Fix | Delete
} else if (/\d/.test(ch) || ch == "." && stream.eat(/\d/)) {
[57] Fix | Delete
stream.eatWhile(/[\w.%]/);
[58] Fix | Delete
return ret("number", "unit");
[59] Fix | Delete
} else if (ch === "-") {
[60] Fix | Delete
if (/[\d.]/.test(stream.peek())) {
[61] Fix | Delete
stream.eatWhile(/[\w.%]/);
[62] Fix | Delete
return ret("number", "unit");
[63] Fix | Delete
} else if (stream.match(/^-[\w\\\-]+/)) {
[64] Fix | Delete
stream.eatWhile(/[\w\\\-]/);
[65] Fix | Delete
if (stream.match(/^\s*:/, false))
[66] Fix | Delete
return ret("variable-2", "variable-definition");
[67] Fix | Delete
return ret("variable-2", "variable");
[68] Fix | Delete
} else if (stream.match(/^\w+-/)) {
[69] Fix | Delete
return ret("meta", "meta");
[70] Fix | Delete
}
[71] Fix | Delete
} else if (/[,+>*\/]/.test(ch)) {
[72] Fix | Delete
return ret(null, "select-op");
[73] Fix | Delete
} else if (ch == "." && stream.match(/^-?[_a-z][_a-z0-9-]*/i)) {
[74] Fix | Delete
return ret("qualifier", "qualifier");
[75] Fix | Delete
} else if (/[:;{}\[\]\(\)]/.test(ch)) {
[76] Fix | Delete
return ret(null, ch);
[77] Fix | Delete
} else if ((ch == "u" && stream.match(/rl(-prefix)?\(/)) ||
[78] Fix | Delete
(ch == "d" && stream.match("omain(")) ||
[79] Fix | Delete
(ch == "r" && stream.match("egexp("))) {
[80] Fix | Delete
stream.backUp(1);
[81] Fix | Delete
state.tokenize = tokenParenthesized;
[82] Fix | Delete
return ret("property", "word");
[83] Fix | Delete
} else if (/[\w\\\-]/.test(ch)) {
[84] Fix | Delete
stream.eatWhile(/[\w\\\-]/);
[85] Fix | Delete
return ret("property", "word");
[86] Fix | Delete
} else {
[87] Fix | Delete
return ret(null, null);
[88] Fix | Delete
}
[89] Fix | Delete
}
[90] Fix | Delete
[91] Fix | Delete
function tokenString(quote) {
[92] Fix | Delete
return function(stream, state) {
[93] Fix | Delete
var escaped = false, ch;
[94] Fix | Delete
while ((ch = stream.next()) != null) {
[95] Fix | Delete
if (ch == quote && !escaped) {
[96] Fix | Delete
if (quote == ")") stream.backUp(1);
[97] Fix | Delete
break;
[98] Fix | Delete
}
[99] Fix | Delete
escaped = !escaped && ch == "\\";
[100] Fix | Delete
}
[101] Fix | Delete
if (ch == quote || !escaped && quote != ")") state.tokenize = null;
[102] Fix | Delete
return ret("string", "string");
[103] Fix | Delete
};
[104] Fix | Delete
}
[105] Fix | Delete
[106] Fix | Delete
function tokenParenthesized(stream, state) {
[107] Fix | Delete
stream.next(); // Must be '('
[108] Fix | Delete
if (!stream.match(/\s*[\"\')]/, false))
[109] Fix | Delete
state.tokenize = tokenString(")");
[110] Fix | Delete
else
[111] Fix | Delete
state.tokenize = null;
[112] Fix | Delete
return ret(null, "(");
[113] Fix | Delete
}
[114] Fix | Delete
[115] Fix | Delete
// Context management
[116] Fix | Delete
[117] Fix | Delete
function Context(type, indent, prev) {
[118] Fix | Delete
this.type = type;
[119] Fix | Delete
this.indent = indent;
[120] Fix | Delete
this.prev = prev;
[121] Fix | Delete
}
[122] Fix | Delete
[123] Fix | Delete
function pushContext(state, stream, type, indent) {
[124] Fix | Delete
state.context = new Context(type, stream.indentation() + (indent === false ? 0 : indentUnit), state.context);
[125] Fix | Delete
return type;
[126] Fix | Delete
}
[127] Fix | Delete
[128] Fix | Delete
function popContext(state) {
[129] Fix | Delete
if (state.context.prev)
[130] Fix | Delete
state.context = state.context.prev;
[131] Fix | Delete
return state.context.type;
[132] Fix | Delete
}
[133] Fix | Delete
[134] Fix | Delete
function pass(type, stream, state) {
[135] Fix | Delete
return states[state.context.type](type, stream, state);
[136] Fix | Delete
}
[137] Fix | Delete
function popAndPass(type, stream, state, n) {
[138] Fix | Delete
for (var i = n || 1; i > 0; i--)
[139] Fix | Delete
state.context = state.context.prev;
[140] Fix | Delete
return pass(type, stream, state);
[141] Fix | Delete
}
[142] Fix | Delete
[143] Fix | Delete
// Parser
[144] Fix | Delete
[145] Fix | Delete
function wordAsValue(stream) {
[146] Fix | Delete
var word = stream.current().toLowerCase();
[147] Fix | Delete
if (valueKeywords.hasOwnProperty(word))
[148] Fix | Delete
override = "atom";
[149] Fix | Delete
else if (colorKeywords.hasOwnProperty(word))
[150] Fix | Delete
override = "keyword";
[151] Fix | Delete
else
[152] Fix | Delete
override = "variable";
[153] Fix | Delete
}
[154] Fix | Delete
[155] Fix | Delete
var states = {};
[156] Fix | Delete
[157] Fix | Delete
states.top = function(type, stream, state) {
[158] Fix | Delete
if (type == "{") {
[159] Fix | Delete
return pushContext(state, stream, "block");
[160] Fix | Delete
} else if (type == "}" && state.context.prev) {
[161] Fix | Delete
return popContext(state);
[162] Fix | Delete
} else if (supportsAtComponent && /@component/.test(type)) {
[163] Fix | Delete
return pushContext(state, stream, "atComponentBlock");
[164] Fix | Delete
} else if (/^@(-moz-)?document$/.test(type)) {
[165] Fix | Delete
return pushContext(state, stream, "documentTypes");
[166] Fix | Delete
} else if (/^@(media|supports|(-moz-)?document|import)$/.test(type)) {
[167] Fix | Delete
return pushContext(state, stream, "atBlock");
[168] Fix | Delete
} else if (/^@(font-face|counter-style)/.test(type)) {
[169] Fix | Delete
state.stateArg = type;
[170] Fix | Delete
return "restricted_atBlock_before";
[171] Fix | Delete
} else if (/^@(-(moz|ms|o|webkit)-)?keyframes$/.test(type)) {
[172] Fix | Delete
return "keyframes";
[173] Fix | Delete
} else if (type && type.charAt(0) == "@") {
[174] Fix | Delete
return pushContext(state, stream, "at");
[175] Fix | Delete
} else if (type == "hash") {
[176] Fix | Delete
override = "builtin";
[177] Fix | Delete
} else if (type == "word") {
[178] Fix | Delete
override = "tag";
[179] Fix | Delete
} else if (type == "variable-definition") {
[180] Fix | Delete
return "maybeprop";
[181] Fix | Delete
} else if (type == "interpolation") {
[182] Fix | Delete
return pushContext(state, stream, "interpolation");
[183] Fix | Delete
} else if (type == ":") {
[184] Fix | Delete
return "pseudo";
[185] Fix | Delete
} else if (allowNested && type == "(") {
[186] Fix | Delete
return pushContext(state, stream, "parens");
[187] Fix | Delete
}
[188] Fix | Delete
return state.context.type;
[189] Fix | Delete
};
[190] Fix | Delete
[191] Fix | Delete
states.block = function(type, stream, state) {
[192] Fix | Delete
if (type == "word") {
[193] Fix | Delete
var word = stream.current().toLowerCase();
[194] Fix | Delete
if (propertyKeywords.hasOwnProperty(word)) {
[195] Fix | Delete
override = "property";
[196] Fix | Delete
return "maybeprop";
[197] Fix | Delete
} else if (nonStandardPropertyKeywords.hasOwnProperty(word)) {
[198] Fix | Delete
override = "string-2";
[199] Fix | Delete
return "maybeprop";
[200] Fix | Delete
} else if (allowNested) {
[201] Fix | Delete
override = stream.match(/^\s*:(?:\s|$)/, false) ? "property" : "tag";
[202] Fix | Delete
return "block";
[203] Fix | Delete
} else {
[204] Fix | Delete
override += " error";
[205] Fix | Delete
return "maybeprop";
[206] Fix | Delete
}
[207] Fix | Delete
} else if (type == "meta") {
[208] Fix | Delete
return "block";
[209] Fix | Delete
} else if (!allowNested && (type == "hash" || type == "qualifier")) {
[210] Fix | Delete
override = "error";
[211] Fix | Delete
return "block";
[212] Fix | Delete
} else {
[213] Fix | Delete
return states.top(type, stream, state);
[214] Fix | Delete
}
[215] Fix | Delete
};
[216] Fix | Delete
[217] Fix | Delete
states.maybeprop = function(type, stream, state) {
[218] Fix | Delete
if (type == ":") return pushContext(state, stream, "prop");
[219] Fix | Delete
return pass(type, stream, state);
[220] Fix | Delete
};
[221] Fix | Delete
[222] Fix | Delete
states.prop = function(type, stream, state) {
[223] Fix | Delete
if (type == ";") return popContext(state);
[224] Fix | Delete
if (type == "{" && allowNested) return pushContext(state, stream, "propBlock");
[225] Fix | Delete
if (type == "}" || type == "{") return popAndPass(type, stream, state);
[226] Fix | Delete
if (type == "(") return pushContext(state, stream, "parens");
[227] Fix | Delete
[228] Fix | Delete
if (type == "hash" && !/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(stream.current())) {
[229] Fix | Delete
override += " error";
[230] Fix | Delete
} else if (type == "word") {
[231] Fix | Delete
wordAsValue(stream);
[232] Fix | Delete
} else if (type == "interpolation") {
[233] Fix | Delete
return pushContext(state, stream, "interpolation");
[234] Fix | Delete
}
[235] Fix | Delete
return "prop";
[236] Fix | Delete
};
[237] Fix | Delete
[238] Fix | Delete
states.propBlock = function(type, _stream, state) {
[239] Fix | Delete
if (type == "}") return popContext(state);
[240] Fix | Delete
if (type == "word") { override = "property"; return "maybeprop"; }
[241] Fix | Delete
return state.context.type;
[242] Fix | Delete
};
[243] Fix | Delete
[244] Fix | Delete
states.parens = function(type, stream, state) {
[245] Fix | Delete
if (type == "{" || type == "}") return popAndPass(type, stream, state);
[246] Fix | Delete
if (type == ")") return popContext(state);
[247] Fix | Delete
if (type == "(") return pushContext(state, stream, "parens");
[248] Fix | Delete
if (type == "interpolation") return pushContext(state, stream, "interpolation");
[249] Fix | Delete
if (type == "word") wordAsValue(stream);
[250] Fix | Delete
return "parens";
[251] Fix | Delete
};
[252] Fix | Delete
[253] Fix | Delete
states.pseudo = function(type, stream, state) {
[254] Fix | Delete
if (type == "word") {
[255] Fix | Delete
override = "variable-3";
[256] Fix | Delete
return state.context.type;
[257] Fix | Delete
}
[258] Fix | Delete
return pass(type, stream, state);
[259] Fix | Delete
};
[260] Fix | Delete
[261] Fix | Delete
states.documentTypes = function(type, stream, state) {
[262] Fix | Delete
if (type == "word" && documentTypes.hasOwnProperty(stream.current())) {
[263] Fix | Delete
override = "tag";
[264] Fix | Delete
return state.context.type;
[265] Fix | Delete
} else {
[266] Fix | Delete
return states.atBlock(type, stream, state);
[267] Fix | Delete
}
[268] Fix | Delete
};
[269] Fix | Delete
[270] Fix | Delete
states.atBlock = function(type, stream, state) {
[271] Fix | Delete
if (type == "(") return pushContext(state, stream, "atBlock_parens");
[272] Fix | Delete
if (type == "}" || type == ";") return popAndPass(type, stream, state);
[273] Fix | Delete
if (type == "{") return popContext(state) && pushContext(state, stream, allowNested ? "block" : "top");
[274] Fix | Delete
[275] Fix | Delete
if (type == "interpolation") return pushContext(state, stream, "interpolation");
[276] Fix | Delete
[277] Fix | Delete
if (type == "word") {
[278] Fix | Delete
var word = stream.current().toLowerCase();
[279] Fix | Delete
if (word == "only" || word == "not" || word == "and" || word == "or")
[280] Fix | Delete
override = "keyword";
[281] Fix | Delete
else if (mediaTypes.hasOwnProperty(word))
[282] Fix | Delete
override = "attribute";
[283] Fix | Delete
else if (mediaFeatures.hasOwnProperty(word))
[284] Fix | Delete
override = "property";
[285] Fix | Delete
else if (mediaValueKeywords.hasOwnProperty(word))
[286] Fix | Delete
override = "keyword";
[287] Fix | Delete
else if (propertyKeywords.hasOwnProperty(word))
[288] Fix | Delete
override = "property";
[289] Fix | Delete
else if (nonStandardPropertyKeywords.hasOwnProperty(word))
[290] Fix | Delete
override = "string-2";
[291] Fix | Delete
else if (valueKeywords.hasOwnProperty(word))
[292] Fix | Delete
override = "atom";
[293] Fix | Delete
else if (colorKeywords.hasOwnProperty(word))
[294] Fix | Delete
override = "keyword";
[295] Fix | Delete
else
[296] Fix | Delete
override = "error";
[297] Fix | Delete
}
[298] Fix | Delete
return state.context.type;
[299] Fix | Delete
};
[300] Fix | Delete
[301] Fix | Delete
states.atComponentBlock = function(type, stream, state) {
[302] Fix | Delete
if (type == "}")
[303] Fix | Delete
return popAndPass(type, stream, state);
[304] Fix | Delete
if (type == "{")
[305] Fix | Delete
return popContext(state) && pushContext(state, stream, allowNested ? "block" : "top", false);
[306] Fix | Delete
if (type == "word")
[307] Fix | Delete
override = "error";
[308] Fix | Delete
return state.context.type;
[309] Fix | Delete
};
[310] Fix | Delete
[311] Fix | Delete
states.atBlock_parens = function(type, stream, state) {
[312] Fix | Delete
if (type == ")") return popContext(state);
[313] Fix | Delete
if (type == "{" || type == "}") return popAndPass(type, stream, state, 2);
[314] Fix | Delete
return states.atBlock(type, stream, state);
[315] Fix | Delete
};
[316] Fix | Delete
[317] Fix | Delete
states.restricted_atBlock_before = function(type, stream, state) {
[318] Fix | Delete
if (type == "{")
[319] Fix | Delete
return pushContext(state, stream, "restricted_atBlock");
[320] Fix | Delete
if (type == "word" && state.stateArg == "@counter-style") {
[321] Fix | Delete
override = "variable";
[322] Fix | Delete
return "restricted_atBlock_before";
[323] Fix | Delete
}
[324] Fix | Delete
return pass(type, stream, state);
[325] Fix | Delete
};
[326] Fix | Delete
[327] Fix | Delete
states.restricted_atBlock = function(type, stream, state) {
[328] Fix | Delete
if (type == "}") {
[329] Fix | Delete
state.stateArg = null;
[330] Fix | Delete
return popContext(state);
[331] Fix | Delete
}
[332] Fix | Delete
if (type == "word") {
[333] Fix | Delete
if ((state.stateArg == "@font-face" && !fontProperties.hasOwnProperty(stream.current().toLowerCase())) ||
[334] Fix | Delete
(state.stateArg == "@counter-style" && !counterDescriptors.hasOwnProperty(stream.current().toLowerCase())))
[335] Fix | Delete
override = "error";
[336] Fix | Delete
else
[337] Fix | Delete
override = "property";
[338] Fix | Delete
return "maybeprop";
[339] Fix | Delete
}
[340] Fix | Delete
return "restricted_atBlock";
[341] Fix | Delete
};
[342] Fix | Delete
[343] Fix | Delete
states.keyframes = function(type, stream, state) {
[344] Fix | Delete
if (type == "word") { override = "variable"; return "keyframes"; }
[345] Fix | Delete
if (type == "{") return pushContext(state, stream, "top");
[346] Fix | Delete
return pass(type, stream, state);
[347] Fix | Delete
};
[348] Fix | Delete
[349] Fix | Delete
states.at = function(type, stream, state) {
[350] Fix | Delete
if (type == ";") return popContext(state);
[351] Fix | Delete
if (type == "{" || type == "}") return popAndPass(type, stream, state);
[352] Fix | Delete
if (type == "word") override = "tag";
[353] Fix | Delete
else if (type == "hash") override = "builtin";
[354] Fix | Delete
return "at";
[355] Fix | Delete
};
[356] Fix | Delete
[357] Fix | Delete
states.interpolation = function(type, stream, state) {
[358] Fix | Delete
if (type == "}") return popContext(state);
[359] Fix | Delete
if (type == "{" || type == ";") return popAndPass(type, stream, state);
[360] Fix | Delete
if (type == "word") override = "variable";
[361] Fix | Delete
else if (type != "variable" && type != "(" && type != ")") override = "error";
[362] Fix | Delete
return "interpolation";
[363] Fix | Delete
};
[364] Fix | Delete
[365] Fix | Delete
return {
[366] Fix | Delete
startState: function(base) {
[367] Fix | Delete
return {tokenize: null,
[368] Fix | Delete
state: inline ? "block" : "top",
[369] Fix | Delete
stateArg: null,
[370] Fix | Delete
context: new Context(inline ? "block" : "top", base || 0, null)};
[371] Fix | Delete
},
[372] Fix | Delete
[373] Fix | Delete
token: function(stream, state) {
[374] Fix | Delete
if (!state.tokenize && stream.eatSpace()) return null;
[375] Fix | Delete
var style = (state.tokenize || tokenBase)(stream, state);
[376] Fix | Delete
if (style && typeof style == "object") {
[377] Fix | Delete
type = style[1];
[378] Fix | Delete
style = style[0];
[379] Fix | Delete
}
[380] Fix | Delete
override = style;
[381] Fix | Delete
state.state = states[state.state](type, stream, state);
[382] Fix | Delete
return override;
[383] Fix | Delete
},
[384] Fix | Delete
[385] Fix | Delete
indent: function(state, textAfter) {
[386] Fix | Delete
var cx = state.context, ch = textAfter && textAfter.charAt(0);
[387] Fix | Delete
var indent = cx.indent;
[388] Fix | Delete
if (cx.type == "prop" && (ch == "}" || ch == ")")) cx = cx.prev;
[389] Fix | Delete
if (cx.prev) {
[390] Fix | Delete
if (ch == "}" && (cx.type == "block" || cx.type == "top" ||
[391] Fix | Delete
cx.type == "interpolation" || cx.type == "restricted_atBlock")) {
[392] Fix | Delete
// Resume indentation from parent context.
[393] Fix | Delete
cx = cx.prev;
[394] Fix | Delete
indent = cx.indent;
[395] Fix | Delete
} else if (ch == ")" && (cx.type == "parens" || cx.type == "atBlock_parens") ||
[396] Fix | Delete
ch == "{" && (cx.type == "at" || cx.type == "atBlock")) {
[397] Fix | Delete
// Dedent relative to current context.
[398] Fix | Delete
indent = Math.max(0, cx.indent - indentUnit);
[399] Fix | Delete
cx = cx.prev;
[400] Fix | Delete
}
[401] Fix | Delete
}
[402] Fix | Delete
return indent;
[403] Fix | Delete
},
[404] Fix | Delete
[405] Fix | Delete
electricChars: "}",
[406] Fix | Delete
blockCommentStart: "/*",
[407] Fix | Delete
blockCommentEnd: "*/",
[408] Fix | Delete
fold: "brace"
[409] Fix | Delete
};
[410] Fix | Delete
});
[411] Fix | Delete
[412] Fix | Delete
function keySet(array) {
[413] Fix | Delete
var keys = {};
[414] Fix | Delete
for (var i = 0; i < array.length; ++i) {
[415] Fix | Delete
keys[array[i]] = true;
[416] Fix | Delete
}
[417] Fix | Delete
return keys;
[418] Fix | Delete
}
[419] Fix | Delete
[420] Fix | Delete
var documentTypes_ = [
[421] Fix | Delete
"domain", "regexp", "url", "url-prefix"
[422] Fix | Delete
], documentTypes = keySet(documentTypes_);
[423] Fix | Delete
[424] Fix | Delete
var mediaTypes_ = [
[425] Fix | Delete
"all", "aural", "braille", "handheld", "print", "projection", "screen",
[426] Fix | Delete
"tty", "tv", "embossed"
[427] Fix | Delete
], mediaTypes = keySet(mediaTypes_);
[428] Fix | Delete
[429] Fix | Delete
var mediaFeatures_ = [
[430] Fix | Delete
"width", "min-width", "max-width", "height", "min-height", "max-height",
[431] Fix | Delete
"device-width", "min-device-width", "max-device-width", "device-height",
[432] Fix | Delete
"min-device-height", "max-device-height", "aspect-ratio",
[433] Fix | Delete
"min-aspect-ratio", "max-aspect-ratio", "device-aspect-ratio",
[434] Fix | Delete
"min-device-aspect-ratio", "max-device-aspect-ratio", "color", "min-color",
[435] Fix | Delete
"max-color", "color-index", "min-color-index", "max-color-index",
[436] Fix | Delete
"monochrome", "min-monochrome", "max-monochrome", "resolution",
[437] Fix | Delete
"min-resolution", "max-resolution", "scan", "grid", "orientation",
[438] Fix | Delete
"device-pixel-ratio", "min-device-pixel-ratio", "max-device-pixel-ratio",
[439] Fix | Delete
"pointer", "any-pointer", "hover", "any-hover"
[440] Fix | Delete
], mediaFeatures = keySet(mediaFeatures_);
[441] Fix | Delete
[442] Fix | Delete
var mediaValueKeywords_ = [
[443] Fix | Delete
"landscape", "portrait", "none", "coarse", "fine", "on-demand", "hover",
[444] Fix | Delete
"interlace", "progressive"
[445] Fix | Delete
], mediaValueKeywords = keySet(mediaValueKeywords_);
[446] Fix | Delete
[447] Fix | Delete
var propertyKeywords_ = [
[448] Fix | Delete
"align-content", "align-items", "align-self", "alignment-adjust",
[449] Fix | Delete
"alignment-baseline", "anchor-point", "animation", "animation-delay",
[450] Fix | Delete
"animation-direction", "animation-duration", "animation-fill-mode",
[451] Fix | Delete
"animation-iteration-count", "animation-name", "animation-play-state",
[452] Fix | Delete
"animation-timing-function", "appearance", "azimuth", "backface-visibility",
[453] Fix | Delete
"background", "background-attachment", "background-blend-mode", "background-clip",
[454] Fix | Delete
"background-color", "background-image", "background-origin", "background-position",
[455] Fix | Delete
"background-repeat", "background-size", "baseline-shift", "binding",
[456] Fix | Delete
"bleed", "bookmark-label", "bookmark-level", "bookmark-state",
[457] Fix | Delete
"bookmark-target", "border", "border-bottom", "border-bottom-color",
[458] Fix | Delete
"border-bottom-left-radius", "border-bottom-right-radius",
[459] Fix | Delete
"border-bottom-style", "border-bottom-width", "border-collapse",
[460] Fix | Delete
"border-color", "border-image", "border-image-outset",
[461] Fix | Delete
"border-image-repeat", "border-image-slice", "border-image-source",
[462] Fix | Delete
"border-image-width", "border-left", "border-left-color",
[463] Fix | Delete
"border-left-style", "border-left-width", "border-radius", "border-right",
[464] Fix | Delete
"border-right-color", "border-right-style", "border-right-width",
[465] Fix | Delete
"border-spacing", "border-style", "border-top", "border-top-color",
[466] Fix | Delete
"border-top-left-radius", "border-top-right-radius", "border-top-style",
[467] Fix | Delete
"border-top-width", "border-width", "bottom", "box-decoration-break",
[468] Fix | Delete
"box-shadow", "box-sizing", "break-after", "break-before", "break-inside",
[469] Fix | Delete
"caption-side", "clear", "clip", "color", "color-profile", "column-count",
[470] Fix | Delete
"column-fill", "column-gap", "column-rule", "column-rule-color",
[471] Fix | Delete
"column-rule-style", "column-rule-width", "column-span", "column-width",
[472] Fix | Delete
"columns", "content", "counter-increment", "counter-reset", "crop", "cue",
[473] Fix | Delete
"cue-after", "cue-before", "cursor", "direction", "display",
[474] Fix | Delete
"dominant-baseline", "drop-initial-after-adjust",
[475] Fix | Delete
"drop-initial-after-align", "drop-initial-before-adjust",
[476] Fix | Delete
"drop-initial-before-align", "drop-initial-size", "drop-initial-value",
[477] Fix | Delete
"elevation", "empty-cells", "fit", "fit-position", "flex", "flex-basis",
[478] Fix | Delete
"flex-direction", "flex-flow", "flex-grow", "flex-shrink", "flex-wrap",
[479] Fix | Delete
"float", "float-offset", "flow-from", "flow-into", "font", "font-feature-settings",
[480] Fix | Delete
"font-family", "font-kerning", "font-language-override", "font-size", "font-size-adjust",
[481] Fix | Delete
"font-stretch", "font-style", "font-synthesis", "font-variant",
[482] Fix | Delete
"font-variant-alternates", "font-variant-caps", "font-variant-east-asian",
[483] Fix | Delete
"font-variant-ligatures", "font-variant-numeric", "font-variant-position",
[484] Fix | Delete
"font-weight", "grid", "grid-area", "grid-auto-columns", "grid-auto-flow",
[485] Fix | Delete
"grid-auto-rows", "grid-column", "grid-column-end", "grid-column-gap",
[486] Fix | Delete
"grid-column-start", "grid-gap", "grid-row", "grid-row-end", "grid-row-gap",
[487] Fix | Delete
"grid-row-start", "grid-template", "grid-template-areas", "grid-template-columns",
[488] Fix | Delete
"grid-template-rows", "hanging-punctuation", "height", "hyphens",
[489] Fix | Delete
"icon", "image-orientation", "image-rendering", "image-resolution",
[490] Fix | Delete
"inline-box-align", "justify-content", "left", "letter-spacing",
[491] Fix | Delete
"line-break", "line-height", "line-stacking", "line-stacking-ruby",
[492] Fix | Delete
"line-stacking-shift", "line-stacking-strategy", "list-style",
[493] Fix | Delete
"list-style-image", "list-style-position", "list-style-type", "margin",
[494] Fix | Delete
"margin-bottom", "margin-left", "margin-right", "margin-top",
[495] Fix | Delete
"marker-offset", "marks", "marquee-direction", "marquee-loop",
[496] Fix | Delete
"marquee-play-count", "marquee-speed", "marquee-style", "max-height",
[497] Fix | Delete
"max-width", "min-height", "min-width", "move-to", "nav-down", "nav-index",
[498] Fix | Delete
"nav-left", "nav-right", "nav-up", "object-fit", "object-position",
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function