Edit File by line
/home/barbar84/www/wp-inclu.../js/codemirr...
File: csslint.js
"-webkit-flex-direction" : "row | row-reverse | column | column-reverse",
[3500] Fix | Delete
"-webkit-flex-flow" : "<flex-direction> || <flex-wrap>",
[3501] Fix | Delete
"-webkit-flex-grow" : "<number>",
[3502] Fix | Delete
"-webkit-flex-shrink" : "<number>",
[3503] Fix | Delete
"-webkit-flex-wrap" : "nowrap | wrap | wrap-reverse",
[3504] Fix | Delete
"-ms-flex" : "<flex>",
[3505] Fix | Delete
"-ms-flex-align" : "start | end | center | stretch | baseline",
[3506] Fix | Delete
"-ms-flex-direction" : "row | row-reverse | column | column-reverse",
[3507] Fix | Delete
"-ms-flex-order" : "<number>",
[3508] Fix | Delete
"-ms-flex-pack" : "start | end | center | justify",
[3509] Fix | Delete
"-ms-flex-wrap" : "nowrap | wrap | wrap-reverse",
[3510] Fix | Delete
"float" : "left | right | none",
[3511] Fix | Delete
"float-offset" : 1,
[3512] Fix | Delete
"flood-color" : 1,
[3513] Fix | Delete
"flood-opacity" : "<opacity-value>",
[3514] Fix | Delete
"font" : "<font-shorthand> | caption | icon | menu | message-box | small-caption | status-bar",
[3515] Fix | Delete
"font-family" : "<font-family>",
[3516] Fix | Delete
"font-feature-settings" : "<feature-tag-value> | normal",
[3517] Fix | Delete
"font-kerning" : "auto | normal | none",
[3518] Fix | Delete
"font-size" : "<font-size>",
[3519] Fix | Delete
"font-size-adjust" : "<number> | none",
[3520] Fix | Delete
"font-stretch" : "<font-stretch>",
[3521] Fix | Delete
"font-style" : "<font-style>",
[3522] Fix | Delete
"font-variant" : "<font-variant> | normal | none",
[3523] Fix | Delete
"font-variant-alternates" : "<font-variant-alternates> | normal",
[3524] Fix | Delete
"font-variant-caps" : "<font-variant-caps> | normal",
[3525] Fix | Delete
"font-variant-east-asian" : "<font-variant-east-asian> | normal",
[3526] Fix | Delete
"font-variant-ligatures" : "<font-variant-ligatures> | normal | none",
[3527] Fix | Delete
"font-variant-numeric" : "<font-variant-numeric> | normal",
[3528] Fix | Delete
"font-variant-position" : "normal | sub | super",
[3529] Fix | Delete
"font-weight" : "<font-weight>",
[3530] Fix | Delete
[3531] Fix | Delete
//G
[3532] Fix | Delete
"glyph-orientation-horizontal" : "<glyph-angle>",
[3533] Fix | Delete
"glyph-orientation-vertical" : "auto | <glyph-angle>",
[3534] Fix | Delete
"grid" : 1,
[3535] Fix | Delete
"grid-area" : 1,
[3536] Fix | Delete
"grid-auto-columns" : 1,
[3537] Fix | Delete
"grid-auto-flow" : 1,
[3538] Fix | Delete
"grid-auto-position" : 1,
[3539] Fix | Delete
"grid-auto-rows" : 1,
[3540] Fix | Delete
"grid-cell-stacking" : "columns | rows | layer",
[3541] Fix | Delete
"grid-column" : 1,
[3542] Fix | Delete
"grid-columns" : 1,
[3543] Fix | Delete
"grid-column-align" : "start | end | center | stretch",
[3544] Fix | Delete
"grid-column-sizing" : 1,
[3545] Fix | Delete
"grid-column-start" : 1,
[3546] Fix | Delete
"grid-column-end" : 1,
[3547] Fix | Delete
"grid-column-span" : "<integer>",
[3548] Fix | Delete
"grid-flow" : "none | rows | columns",
[3549] Fix | Delete
"grid-layer" : "<integer>",
[3550] Fix | Delete
"grid-row" : 1,
[3551] Fix | Delete
"grid-rows" : 1,
[3552] Fix | Delete
"grid-row-align" : "start | end | center | stretch",
[3553] Fix | Delete
"grid-row-start" : 1,
[3554] Fix | Delete
"grid-row-end" : 1,
[3555] Fix | Delete
"grid-row-span" : "<integer>",
[3556] Fix | Delete
"grid-row-sizing" : 1,
[3557] Fix | Delete
"grid-template" : 1,
[3558] Fix | Delete
"grid-template-areas" : 1,
[3559] Fix | Delete
"grid-template-columns" : 1,
[3560] Fix | Delete
"grid-template-rows" : 1,
[3561] Fix | Delete
[3562] Fix | Delete
//H
[3563] Fix | Delete
"hanging-punctuation" : 1,
[3564] Fix | Delete
"height" : "<margin-width> | <content-sizing>",
[3565] Fix | Delete
"hyphenate-after" : "<integer> | auto",
[3566] Fix | Delete
"hyphenate-before" : "<integer> | auto",
[3567] Fix | Delete
"hyphenate-character" : "<string> | auto",
[3568] Fix | Delete
"hyphenate-lines" : "no-limit | <integer>",
[3569] Fix | Delete
"hyphenate-resource" : 1,
[3570] Fix | Delete
"hyphens" : "none | manual | auto",
[3571] Fix | Delete
[3572] Fix | Delete
//I
[3573] Fix | Delete
"icon" : 1,
[3574] Fix | Delete
"image-orientation" : "angle | auto",
[3575] Fix | Delete
"image-rendering" : "auto | optimizeSpeed | optimizeQuality",
[3576] Fix | Delete
"image-resolution" : 1,
[3577] Fix | Delete
"ime-mode" : "auto | normal | active | inactive | disabled",
[3578] Fix | Delete
"inline-box-align" : "last | <integer>",
[3579] Fix | Delete
[3580] Fix | Delete
//J
[3581] Fix | Delete
"justify-content" : "flex-start | flex-end | center | space-between | space-around",
[3582] Fix | Delete
"-webkit-justify-content" : "flex-start | flex-end | center | space-between | space-around",
[3583] Fix | Delete
[3584] Fix | Delete
//K
[3585] Fix | Delete
"kerning" : "auto | <length>",
[3586] Fix | Delete
[3587] Fix | Delete
//L
[3588] Fix | Delete
"left" : "<margin-width>",
[3589] Fix | Delete
"letter-spacing" : "<length> | normal",
[3590] Fix | Delete
"line-height" : "<line-height>",
[3591] Fix | Delete
"line-break" : "auto | loose | normal | strict",
[3592] Fix | Delete
"line-stacking" : 1,
[3593] Fix | Delete
"line-stacking-ruby" : "exclude-ruby | include-ruby",
[3594] Fix | Delete
"line-stacking-shift" : "consider-shifts | disregard-shifts",
[3595] Fix | Delete
"line-stacking-strategy" : "inline-line-height | block-line-height | max-height | grid-height",
[3596] Fix | Delete
"list-style" : 1,
[3597] Fix | Delete
"list-style-image" : "<uri> | none",
[3598] Fix | Delete
"list-style-position" : "inside | outside",
[3599] Fix | Delete
"list-style-type" : "disc | circle | square | decimal | decimal-leading-zero | lower-roman | upper-roman | lower-greek | lower-latin | upper-latin | armenian | georgian | lower-alpha | upper-alpha | none",
[3600] Fix | Delete
[3601] Fix | Delete
//M
[3602] Fix | Delete
"margin" : "<margin-width>{1,4}",
[3603] Fix | Delete
"margin-bottom" : "<margin-width>",
[3604] Fix | Delete
"margin-left" : "<margin-width>",
[3605] Fix | Delete
"margin-right" : "<margin-width>",
[3606] Fix | Delete
"margin-top" : "<margin-width>",
[3607] Fix | Delete
"mark" : 1,
[3608] Fix | Delete
"mark-after" : 1,
[3609] Fix | Delete
"mark-before" : 1,
[3610] Fix | Delete
"marker" : 1,
[3611] Fix | Delete
"marker-end" : 1,
[3612] Fix | Delete
"marker-mid" : 1,
[3613] Fix | Delete
"marker-start" : 1,
[3614] Fix | Delete
"marks" : 1,
[3615] Fix | Delete
"marquee-direction" : 1,
[3616] Fix | Delete
"marquee-play-count" : 1,
[3617] Fix | Delete
"marquee-speed" : 1,
[3618] Fix | Delete
"marquee-style" : 1,
[3619] Fix | Delete
"mask" : 1,
[3620] Fix | Delete
"max-height" : "<length> | <percentage> | <content-sizing> | none",
[3621] Fix | Delete
"max-width" : "<length> | <percentage> | <content-sizing> | none",
[3622] Fix | Delete
"min-height" : "<length> | <percentage> | <content-sizing> | contain-floats | -moz-contain-floats | -webkit-contain-floats",
[3623] Fix | Delete
"min-width" : "<length> | <percentage> | <content-sizing> | contain-floats | -moz-contain-floats | -webkit-contain-floats",
[3624] Fix | Delete
"move-to" : 1,
[3625] Fix | Delete
[3626] Fix | Delete
//N
[3627] Fix | Delete
"nav-down" : 1,
[3628] Fix | Delete
"nav-index" : 1,
[3629] Fix | Delete
"nav-left" : 1,
[3630] Fix | Delete
"nav-right" : 1,
[3631] Fix | Delete
"nav-up" : 1,
[3632] Fix | Delete
[3633] Fix | Delete
//O
[3634] Fix | Delete
"object-fit" : "fill | contain | cover | none | scale-down",
[3635] Fix | Delete
"object-position" : "<position>",
[3636] Fix | Delete
"opacity" : "<opacity-value>",
[3637] Fix | Delete
"order" : "<integer>",
[3638] Fix | Delete
"-webkit-order" : "<integer>",
[3639] Fix | Delete
"orphans" : "<integer>",
[3640] Fix | Delete
"outline" : 1,
[3641] Fix | Delete
"outline-color" : "<color> | invert",
[3642] Fix | Delete
"outline-offset" : 1,
[3643] Fix | Delete
"outline-style" : "<border-style>",
[3644] Fix | Delete
"outline-width" : "<border-width>",
[3645] Fix | Delete
"overflow" : "visible | hidden | scroll | auto",
[3646] Fix | Delete
"overflow-style" : 1,
[3647] Fix | Delete
"overflow-wrap" : "normal | break-word",
[3648] Fix | Delete
"overflow-x" : 1,
[3649] Fix | Delete
"overflow-y" : 1,
[3650] Fix | Delete
[3651] Fix | Delete
//P
[3652] Fix | Delete
"padding" : "<padding-width>{1,4}",
[3653] Fix | Delete
"padding-bottom" : "<padding-width>",
[3654] Fix | Delete
"padding-left" : "<padding-width>",
[3655] Fix | Delete
"padding-right" : "<padding-width>",
[3656] Fix | Delete
"padding-top" : "<padding-width>",
[3657] Fix | Delete
"page" : 1,
[3658] Fix | Delete
"page-break-after" : "auto | always | avoid | left | right",
[3659] Fix | Delete
"page-break-before" : "auto | always | avoid | left | right",
[3660] Fix | Delete
"page-break-inside" : "auto | avoid",
[3661] Fix | Delete
"page-policy" : 1,
[3662] Fix | Delete
"pause" : 1,
[3663] Fix | Delete
"pause-after" : 1,
[3664] Fix | Delete
"pause-before" : 1,
[3665] Fix | Delete
"perspective" : 1,
[3666] Fix | Delete
"perspective-origin" : 1,
[3667] Fix | Delete
"phonemes" : 1,
[3668] Fix | Delete
"pitch" : 1,
[3669] Fix | Delete
"pitch-range" : 1,
[3670] Fix | Delete
"play-during" : 1,
[3671] Fix | Delete
"pointer-events" : "auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all",
[3672] Fix | Delete
"position" : "static | relative | absolute | fixed",
[3673] Fix | Delete
"presentation-level" : 1,
[3674] Fix | Delete
"punctuation-trim" : 1,
[3675] Fix | Delete
[3676] Fix | Delete
//Q
[3677] Fix | Delete
"quotes" : 1,
[3678] Fix | Delete
[3679] Fix | Delete
//R
[3680] Fix | Delete
"rendering-intent" : 1,
[3681] Fix | Delete
"resize" : 1,
[3682] Fix | Delete
"rest" : 1,
[3683] Fix | Delete
"rest-after" : 1,
[3684] Fix | Delete
"rest-before" : 1,
[3685] Fix | Delete
"richness" : 1,
[3686] Fix | Delete
"right" : "<margin-width>",
[3687] Fix | Delete
"rotation" : 1,
[3688] Fix | Delete
"rotation-point" : 1,
[3689] Fix | Delete
"ruby-align" : 1,
[3690] Fix | Delete
"ruby-overhang" : 1,
[3691] Fix | Delete
"ruby-position" : 1,
[3692] Fix | Delete
"ruby-span" : 1,
[3693] Fix | Delete
[3694] Fix | Delete
//S
[3695] Fix | Delete
"shape-rendering" : "auto | optimizeSpeed | crispEdges | geometricPrecision",
[3696] Fix | Delete
"size" : 1,
[3697] Fix | Delete
"speak" : "normal | none | spell-out",
[3698] Fix | Delete
"speak-header" : "once | always",
[3699] Fix | Delete
"speak-numeral" : "digits | continuous",
[3700] Fix | Delete
"speak-punctuation" : "code | none",
[3701] Fix | Delete
"speech-rate" : 1,
[3702] Fix | Delete
"src" : 1,
[3703] Fix | Delete
"stop-color" : 1,
[3704] Fix | Delete
"stop-opacity" : "<opacity-value>",
[3705] Fix | Delete
"stress" : 1,
[3706] Fix | Delete
"string-set" : 1,
[3707] Fix | Delete
"stroke" : "<paint>",
[3708] Fix | Delete
"stroke-dasharray" : "none | <dasharray>",
[3709] Fix | Delete
"stroke-dashoffset" : "<percentage> | <length>",
[3710] Fix | Delete
"stroke-linecap" : "butt | round | square",
[3711] Fix | Delete
"stroke-linejoin" : "miter | round | bevel",
[3712] Fix | Delete
"stroke-miterlimit" : "<miterlimit>",
[3713] Fix | Delete
"stroke-opacity" : "<opacity-value>",
[3714] Fix | Delete
"stroke-width" : "<percentage> | <length>",
[3715] Fix | Delete
[3716] Fix | Delete
"table-layout" : "auto | fixed",
[3717] Fix | Delete
"tab-size" : "<integer> | <length>",
[3718] Fix | Delete
"target" : 1,
[3719] Fix | Delete
"target-name" : 1,
[3720] Fix | Delete
"target-new" : 1,
[3721] Fix | Delete
"target-position" : 1,
[3722] Fix | Delete
"text-align" : "left | right | center | justify | match-parent | start | end",
[3723] Fix | Delete
"text-align-last" : 1,
[3724] Fix | Delete
"text-anchor" : "start | middle | end",
[3725] Fix | Delete
"text-decoration" : "<text-decoration-line> || <text-decoration-style> || <text-decoration-color>",
[3726] Fix | Delete
"text-decoration-color" : "<text-decoration-color>",
[3727] Fix | Delete
"text-decoration-line" : "<text-decoration-line>",
[3728] Fix | Delete
"text-decoration-style" : "<text-decoration-style>",
[3729] Fix | Delete
"text-emphasis" : 1,
[3730] Fix | Delete
"text-height" : 1,
[3731] Fix | Delete
"text-indent" : "<length> | <percentage>",
[3732] Fix | Delete
"text-justify" : "auto | none | inter-word | inter-ideograph | inter-cluster | distribute | kashida",
[3733] Fix | Delete
"text-outline" : 1,
[3734] Fix | Delete
"text-overflow" : 1,
[3735] Fix | Delete
"text-rendering" : "auto | optimizeSpeed | optimizeLegibility | geometricPrecision",
[3736] Fix | Delete
"text-shadow" : 1,
[3737] Fix | Delete
"text-transform" : "capitalize | uppercase | lowercase | none",
[3738] Fix | Delete
"text-wrap" : "normal | none | avoid",
[3739] Fix | Delete
"top" : "<margin-width>",
[3740] Fix | Delete
"-ms-touch-action" : "auto | none | pan-x | pan-y | pan-left | pan-right | pan-up | pan-down | manipulation",
[3741] Fix | Delete
"touch-action" : "auto | none | pan-x | pan-y | pan-left | pan-right | pan-up | pan-down | manipulation",
[3742] Fix | Delete
"transform" : 1,
[3743] Fix | Delete
"transform-origin" : 1,
[3744] Fix | Delete
"transform-style" : 1,
[3745] Fix | Delete
"transition" : 1,
[3746] Fix | Delete
"transition-delay" : 1,
[3747] Fix | Delete
"transition-duration" : 1,
[3748] Fix | Delete
"transition-property" : 1,
[3749] Fix | Delete
"transition-timing-function" : 1,
[3750] Fix | Delete
[3751] Fix | Delete
//U
[3752] Fix | Delete
"unicode-bidi" : "normal | embed | isolate | bidi-override | isolate-override | plaintext",
[3753] Fix | Delete
"user-modify" : "read-only | read-write | write-only",
[3754] Fix | Delete
"user-select" : "none | text | toggle | element | elements | all",
[3755] Fix | Delete
[3756] Fix | Delete
//V
[3757] Fix | Delete
"vertical-align" : "auto | use-script | baseline | sub | super | top | text-top | central | middle | bottom | text-bottom | <percentage> | <length>",
[3758] Fix | Delete
"visibility" : "visible | hidden | collapse",
[3759] Fix | Delete
"voice-balance" : 1,
[3760] Fix | Delete
"voice-duration" : 1,
[3761] Fix | Delete
"voice-family" : 1,
[3762] Fix | Delete
"voice-pitch" : 1,
[3763] Fix | Delete
"voice-pitch-range" : 1,
[3764] Fix | Delete
"voice-rate" : 1,
[3765] Fix | Delete
"voice-stress" : 1,
[3766] Fix | Delete
"voice-volume" : 1,
[3767] Fix | Delete
"volume" : 1,
[3768] Fix | Delete
[3769] Fix | Delete
//W
[3770] Fix | Delete
"white-space" : "normal | pre | nowrap | pre-wrap | pre-line | -pre-wrap | -o-pre-wrap | -moz-pre-wrap | -hp-pre-wrap", // https://perishablepress.com/wrapping-content/
[3771] Fix | Delete
"white-space-collapse" : 1,
[3772] Fix | Delete
"widows" : "<integer>",
[3773] Fix | Delete
"width" : "<length> | <percentage> | <content-sizing> | auto",
[3774] Fix | Delete
"will-change" : "<will-change>",
[3775] Fix | Delete
"word-break" : "normal | keep-all | break-all",
[3776] Fix | Delete
"word-spacing" : "<length> | normal",
[3777] Fix | Delete
"word-wrap" : "normal | break-word",
[3778] Fix | Delete
"writing-mode" : "horizontal-tb | vertical-rl | vertical-lr | lr-tb | rl-tb | tb-rl | bt-rl | tb-lr | bt-lr | lr-bt | rl-bt | lr | rl | tb",
[3779] Fix | Delete
[3780] Fix | Delete
//Z
[3781] Fix | Delete
"z-index" : "<integer> | auto",
[3782] Fix | Delete
"zoom" : "<number> | <percentage> | normal"
[3783] Fix | Delete
};
[3784] Fix | Delete
[3785] Fix | Delete
},{}],8:[function(require,module,exports){
[3786] Fix | Delete
"use strict";
[3787] Fix | Delete
[3788] Fix | Delete
module.exports = PropertyName;
[3789] Fix | Delete
[3790] Fix | Delete
var SyntaxUnit = require("../util/SyntaxUnit");
[3791] Fix | Delete
[3792] Fix | Delete
var Parser = require("./Parser");
[3793] Fix | Delete
[3794] Fix | Delete
/**
[3795] Fix | Delete
* Represents a selector combinator (whitespace, +, >).
[3796] Fix | Delete
* @namespace parserlib.css
[3797] Fix | Delete
* @class PropertyName
[3798] Fix | Delete
* @extends parserlib.util.SyntaxUnit
[3799] Fix | Delete
* @constructor
[3800] Fix | Delete
* @param {String} text The text representation of the unit.
[3801] Fix | Delete
* @param {String} hack The type of IE hack applied ("*", "_", or null).
[3802] Fix | Delete
* @param {int} line The line of text on which the unit resides.
[3803] Fix | Delete
* @param {int} col The column of text on which the unit resides.
[3804] Fix | Delete
*/
[3805] Fix | Delete
function PropertyName(text, hack, line, col) {
[3806] Fix | Delete
[3807] Fix | Delete
SyntaxUnit.call(this, text, line, col, Parser.PROPERTY_NAME_TYPE);
[3808] Fix | Delete
[3809] Fix | Delete
/**
[3810] Fix | Delete
* The type of IE hack applied ("*", "_", or null).
[3811] Fix | Delete
* @type String
[3812] Fix | Delete
* @property hack
[3813] Fix | Delete
*/
[3814] Fix | Delete
this.hack = hack;
[3815] Fix | Delete
[3816] Fix | Delete
}
[3817] Fix | Delete
[3818] Fix | Delete
PropertyName.prototype = new SyntaxUnit();
[3819] Fix | Delete
PropertyName.prototype.constructor = PropertyName;
[3820] Fix | Delete
PropertyName.prototype.toString = function() {
[3821] Fix | Delete
return (this.hack ? this.hack : "") + this.text;
[3822] Fix | Delete
};
[3823] Fix | Delete
[3824] Fix | Delete
},{"../util/SyntaxUnit":26,"./Parser":6}],9:[function(require,module,exports){
[3825] Fix | Delete
"use strict";
[3826] Fix | Delete
[3827] Fix | Delete
module.exports = PropertyValue;
[3828] Fix | Delete
[3829] Fix | Delete
var SyntaxUnit = require("../util/SyntaxUnit");
[3830] Fix | Delete
[3831] Fix | Delete
var Parser = require("./Parser");
[3832] Fix | Delete
[3833] Fix | Delete
/**
[3834] Fix | Delete
* Represents a single part of a CSS property value, meaning that it represents
[3835] Fix | Delete
* just everything single part between ":" and ";". If there are multiple values
[3836] Fix | Delete
* separated by commas, this type represents just one of the values.
[3837] Fix | Delete
* @param {String[]} parts An array of value parts making up this value.
[3838] Fix | Delete
* @param {int} line The line of text on which the unit resides.
[3839] Fix | Delete
* @param {int} col The column of text on which the unit resides.
[3840] Fix | Delete
* @namespace parserlib.css
[3841] Fix | Delete
* @class PropertyValue
[3842] Fix | Delete
* @extends parserlib.util.SyntaxUnit
[3843] Fix | Delete
* @constructor
[3844] Fix | Delete
*/
[3845] Fix | Delete
function PropertyValue(parts, line, col) {
[3846] Fix | Delete
[3847] Fix | Delete
SyntaxUnit.call(this, parts.join(" "), line, col, Parser.PROPERTY_VALUE_TYPE);
[3848] Fix | Delete
[3849] Fix | Delete
/**
[3850] Fix | Delete
* The parts that make up the selector.
[3851] Fix | Delete
* @type Array
[3852] Fix | Delete
* @property parts
[3853] Fix | Delete
*/
[3854] Fix | Delete
this.parts = parts;
[3855] Fix | Delete
[3856] Fix | Delete
}
[3857] Fix | Delete
[3858] Fix | Delete
PropertyValue.prototype = new SyntaxUnit();
[3859] Fix | Delete
PropertyValue.prototype.constructor = PropertyValue;
[3860] Fix | Delete
[3861] Fix | Delete
[3862] Fix | Delete
},{"../util/SyntaxUnit":26,"./Parser":6}],10:[function(require,module,exports){
[3863] Fix | Delete
"use strict";
[3864] Fix | Delete
[3865] Fix | Delete
module.exports = PropertyValueIterator;
[3866] Fix | Delete
[3867] Fix | Delete
/**
[3868] Fix | Delete
* A utility class that allows for easy iteration over the various parts of a
[3869] Fix | Delete
* property value.
[3870] Fix | Delete
* @param {parserlib.css.PropertyValue} value The property value to iterate over.
[3871] Fix | Delete
* @namespace parserlib.css
[3872] Fix | Delete
* @class PropertyValueIterator
[3873] Fix | Delete
* @constructor
[3874] Fix | Delete
*/
[3875] Fix | Delete
function PropertyValueIterator(value) {
[3876] Fix | Delete
[3877] Fix | Delete
/**
[3878] Fix | Delete
* Iterator value
[3879] Fix | Delete
* @type int
[3880] Fix | Delete
* @property _i
[3881] Fix | Delete
* @private
[3882] Fix | Delete
*/
[3883] Fix | Delete
this._i = 0;
[3884] Fix | Delete
[3885] Fix | Delete
/**
[3886] Fix | Delete
* The parts that make up the value.
[3887] Fix | Delete
* @type Array
[3888] Fix | Delete
* @property _parts
[3889] Fix | Delete
* @private
[3890] Fix | Delete
*/
[3891] Fix | Delete
this._parts = value.parts;
[3892] Fix | Delete
[3893] Fix | Delete
/**
[3894] Fix | Delete
* Keeps track of bookmarks along the way.
[3895] Fix | Delete
* @type Array
[3896] Fix | Delete
* @property _marks
[3897] Fix | Delete
* @private
[3898] Fix | Delete
*/
[3899] Fix | Delete
this._marks = [];
[3900] Fix | Delete
[3901] Fix | Delete
/**
[3902] Fix | Delete
* Holds the original property value.
[3903] Fix | Delete
* @type parserlib.css.PropertyValue
[3904] Fix | Delete
* @property value
[3905] Fix | Delete
*/
[3906] Fix | Delete
this.value = value;
[3907] Fix | Delete
[3908] Fix | Delete
}
[3909] Fix | Delete
[3910] Fix | Delete
/**
[3911] Fix | Delete
* Returns the total number of parts in the value.
[3912] Fix | Delete
* @return {int} The total number of parts in the value.
[3913] Fix | Delete
* @method count
[3914] Fix | Delete
*/
[3915] Fix | Delete
PropertyValueIterator.prototype.count = function() {
[3916] Fix | Delete
return this._parts.length;
[3917] Fix | Delete
};
[3918] Fix | Delete
[3919] Fix | Delete
/**
[3920] Fix | Delete
* Indicates if the iterator is positioned at the first item.
[3921] Fix | Delete
* @return {Boolean} True if positioned at first item, false if not.
[3922] Fix | Delete
* @method isFirst
[3923] Fix | Delete
*/
[3924] Fix | Delete
PropertyValueIterator.prototype.isFirst = function() {
[3925] Fix | Delete
return this._i === 0;
[3926] Fix | Delete
};
[3927] Fix | Delete
[3928] Fix | Delete
/**
[3929] Fix | Delete
* Indicates if there are more parts of the property value.
[3930] Fix | Delete
* @return {Boolean} True if there are more parts, false if not.
[3931] Fix | Delete
* @method hasNext
[3932] Fix | Delete
*/
[3933] Fix | Delete
PropertyValueIterator.prototype.hasNext = function() {
[3934] Fix | Delete
return this._i < this._parts.length;
[3935] Fix | Delete
};
[3936] Fix | Delete
[3937] Fix | Delete
/**
[3938] Fix | Delete
* Marks the current spot in the iteration so it can be restored to
[3939] Fix | Delete
* later on.
[3940] Fix | Delete
* @return {void}
[3941] Fix | Delete
* @method mark
[3942] Fix | Delete
*/
[3943] Fix | Delete
PropertyValueIterator.prototype.mark = function() {
[3944] Fix | Delete
this._marks.push(this._i);
[3945] Fix | Delete
};
[3946] Fix | Delete
[3947] Fix | Delete
/**
[3948] Fix | Delete
* Returns the next part of the property value or null if there is no next
[3949] Fix | Delete
* part. Does not move the internal counter forward.
[3950] Fix | Delete
* @return {parserlib.css.PropertyValuePart} The next part of the property value or null if there is no next
[3951] Fix | Delete
* part.
[3952] Fix | Delete
* @method peek
[3953] Fix | Delete
*/
[3954] Fix | Delete
PropertyValueIterator.prototype.peek = function(count) {
[3955] Fix | Delete
return this.hasNext() ? this._parts[this._i + (count || 0)] : null;
[3956] Fix | Delete
};
[3957] Fix | Delete
[3958] Fix | Delete
/**
[3959] Fix | Delete
* Returns the next part of the property value or null if there is no next
[3960] Fix | Delete
* part.
[3961] Fix | Delete
* @return {parserlib.css.PropertyValuePart} The next part of the property value or null if there is no next
[3962] Fix | Delete
* part.
[3963] Fix | Delete
* @method next
[3964] Fix | Delete
*/
[3965] Fix | Delete
PropertyValueIterator.prototype.next = function() {
[3966] Fix | Delete
return this.hasNext() ? this._parts[this._i++] : null;
[3967] Fix | Delete
};
[3968] Fix | Delete
[3969] Fix | Delete
/**
[3970] Fix | Delete
* Returns the previous part of the property value or null if there is no
[3971] Fix | Delete
* previous part.
[3972] Fix | Delete
* @return {parserlib.css.PropertyValuePart} The previous part of the
[3973] Fix | Delete
* property value or null if there is no previous part.
[3974] Fix | Delete
* @method previous
[3975] Fix | Delete
*/
[3976] Fix | Delete
PropertyValueIterator.prototype.previous = function() {
[3977] Fix | Delete
return this._i > 0 ? this._parts[--this._i] : null;
[3978] Fix | Delete
};
[3979] Fix | Delete
[3980] Fix | Delete
/**
[3981] Fix | Delete
* Restores the last saved bookmark.
[3982] Fix | Delete
* @return {void}
[3983] Fix | Delete
* @method restore
[3984] Fix | Delete
*/
[3985] Fix | Delete
PropertyValueIterator.prototype.restore = function() {
[3986] Fix | Delete
if (this._marks.length) {
[3987] Fix | Delete
this._i = this._marks.pop();
[3988] Fix | Delete
}
[3989] Fix | Delete
};
[3990] Fix | Delete
[3991] Fix | Delete
/**
[3992] Fix | Delete
* Drops the last saved bookmark.
[3993] Fix | Delete
* @return {void}
[3994] Fix | Delete
* @method drop
[3995] Fix | Delete
*/
[3996] Fix | Delete
PropertyValueIterator.prototype.drop = function() {
[3997] Fix | Delete
this._marks.pop();
[3998] Fix | Delete
};
[3999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function