Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cssom-papandreou

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cssom-papandreou - npm Package Compare versions

Comparing version 0.2.1-patch1 to 0.2.2-patch1

docs/parse.css

10

lib/clone.js

@@ -53,16 +53,16 @@ //.CommonJS

if ("keyText" in rule) {
if (rule.hasOwnProperty('keyText')) {
ruleClone.keyText = rule.keyText;
}
if ("selectorText" in rule) {
if (rule.hasOwnProperty('selectorText')) {
ruleClone.selectorText = rule.selectorText;
}
if ("mediaText" in rule) {
if (rule.hasOwnProperty('mediaText')) {
ruleClone.mediaText = rule.mediaText;
}
if ("cssRules" in rule) {
rule.cssRules = clone(rule).cssRules;
if (rule.hasOwnProperty('cssRules')) {
ruleClone.cssRules = clone(rule).cssRules;
}

@@ -69,0 +69,0 @@ }

@@ -16,2 +16,3 @@ //.CommonJS

CSSOM.CSSImportRule = function CSSImportRule() {
CSSOM.CSSRule.call(this);
this.href = "";

@@ -53,3 +54,3 @@ this.media = new CSSOM.MediaList;

case '\f':
if (state == 'after-import') {
if (state === 'after-import') {
state = 'url';

@@ -62,3 +63,3 @@ } else {

case '@':
if (!state && cssText.indexOf('@import', i) == i) {
if (!state && cssText.indexOf('@import', i) === i) {
state = 'after-import';

@@ -71,5 +72,5 @@ i += 'import'.length;

case 'u':
if (state == 'url' && cssText.indexOf('url(', i) == i) {
if (state === 'url' && cssText.indexOf('url(', i) === i) {
index = cssText.indexOf(')', i + 1);
if (index == -1) {
if (index === -1) {
throw i + ': ")" not found';

@@ -80,3 +81,3 @@ }

if (url[0] === url[url.length - 1]) {
if (url[0] == '"' || url[0] == "'") {
if (url[0] === '"' || url[0] === "'") {
url = url.slice(1, -1);

@@ -92,3 +93,3 @@ }

case '"':
if (state == 'url') {
if (state === 'url') {
index = cssText.indexOf('"', i + 1);

@@ -105,3 +106,3 @@ if (!index) {

case "'":
if (state == 'url') {
if (state === 'url') {
index = cssText.indexOf("'", i + 1);

@@ -118,3 +119,3 @@ if (!index) {

case ';':
if (state == 'media') {
if (state === 'media') {
if (buffer) {

@@ -127,3 +128,3 @@ this.media.mediaText = buffer.trim();

default:
if (state == 'media') {
if (state === 'media') {
buffer += character;

@@ -130,0 +131,0 @@ }

@@ -14,4 +14,6 @@ //.CommonJS

CSSOM.CSSKeyframeRule = function CSSKeyframeRule() {
CSSOM.CSSRule.call(this);
this.keyText = '';
this.style = new CSSOM.CSSStyleDeclaration;
this.style.parentRule = this;
};

@@ -18,0 +20,0 @@

@@ -13,2 +13,3 @@ //.CommonJS

CSSOM.CSSKeyframesRule = function CSSKeyframesRule() {
CSSOM.CSSRule.call(this);
this.name = '';

@@ -31,3 +32,3 @@ this.cssRules = [];

}
return "@-webkit-keyframes " + this.name + " { \n" + cssTexts.join("\n") + "\n}"
return "@-webkit-keyframes " + this.name + " { \n" + cssTexts.join("\n") + "\n}";
});

@@ -34,0 +35,0 @@

@@ -15,2 +15,3 @@ //.CommonJS

CSSOM.CSSMediaRule = function CSSMediaRule() {
CSSOM.CSSRule.call(this);
this.media = new CSSOM.MediaList;

@@ -33,3 +34,3 @@ this.cssRules = [];

}
return "@media " + this.media.mediaText + " {" + cssTexts.join("") + "}"
return "@media " + this.media.mediaText + " {" + cssTexts.join("") + "}";
});

@@ -36,0 +37,0 @@

@@ -13,2 +13,3 @@ //.CommonJS

this.parentRule = null;
this.parentStyleSheet = null;
};

@@ -15,0 +16,0 @@

@@ -12,2 +12,3 @@ //.CommonJS

this.length = 0;
this.parentRule = null;

@@ -31,3 +32,3 @@ // NON-STANDARD

getPropertyValue: function(name) {
return this[name] || ""
return this[name] || "";
},

@@ -68,7 +69,7 @@

if (!(name in this)) {
return ""
return "";
}
var index = Array.prototype.indexOf.call(this, name);
if (index < 0) {
return ""
return "";
}

@@ -84,3 +85,3 @@ var prevValue = this[name];

return prevValue
return prevValue;
},

@@ -126,3 +127,3 @@

}
return properties.join(" ")
return properties.join(" ");
},

@@ -137,2 +138,3 @@

Array.prototype.splice.call(this, 0, this.length);
this._importants = {};

@@ -139,0 +141,0 @@ var dummyRule = CSSOM.parse('#bogus{' + cssText + '}').cssRules[0].style;

@@ -15,4 +15,6 @@ //.CommonJS

CSSOM.CSSStyleRule = function CSSStyleRule() {
CSSOM.CSSRule.call(this);
this.selectorText = "";
this.style = new CSSOM.CSSStyleDeclaration;
this.style.parentRule = this;
};

@@ -110,7 +112,7 @@

case "/":
if (ruleText.charAt(i + 1) == "*") {
if (ruleText.charAt(i + 1) === "*") {
i += 2;
index = ruleText.indexOf("*/", i);
if (index == -1) {
throw SyntaxError("Missing */");
if (index === -1) {
throw new SyntaxError("Missing */");
} else {

@@ -125,3 +127,3 @@ i = index + 1;

case "{":
if (state == "selector") {
if (state === "selector") {
styleRule.selectorText = buffer.trim();

@@ -134,3 +136,3 @@ buffer = "";

case ":":
if (state == "name") {
if (state === "name") {
name = buffer.trim();

@@ -145,3 +147,3 @@ buffer = "";

case "!":
if (state == "value" && ruleText.indexOf("!important", i) === i) {
if (state === "value" && ruleText.indexOf("!important", i) === i) {
priority = "important";

@@ -155,3 +157,3 @@ i += "important".length;

case ";":
if (state == "value") {
if (state === "value") {
styleRule.style.setProperty(name, buffer.trim(), priority);

@@ -167,7 +169,7 @@ priority = "";

case "}":
if (state == "value") {
if (state === "value") {
styleRule.style.setProperty(name, buffer.trim(), priority);
priority = "";
buffer = "";
} else if (state == "name") {
} else if (state === "name") {
break;

@@ -174,0 +176,0 @@ } else {

@@ -14,2 +14,3 @@ //.CommonJS

CSSOM.CSSStyleSheet = function CSSStyleSheet() {
CSSOM.StyleSheet.call(this);
this.cssRules = [];

@@ -41,6 +42,6 @@ };

if (index < 0 || index > this.cssRules.length) {
throw new RangeError("INDEX_SIZE_ERR")
throw new RangeError("INDEX_SIZE_ERR");
}
this.cssRules.splice(index, 0, CSSOM.CSSStyleRule.parse(rule));
return index
return index;
};

@@ -59,5 +60,4 @@

*
* @param {number} index
* @param {number} index within the style sheet's rule list of the rule to remove.
* @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleSheet-deleteRule
* @return {number} The index within the style sheet's rule list of the rule to remove.
*/

@@ -64,0 +64,0 @@ CSSOM.CSSStyleSheet.prototype.deleteRule = function(index) {

@@ -1,12 +0,14 @@

exports.CSSStyleDeclaration = require("./CSSStyleDeclaration").CSSStyleDeclaration;
exports.CSSRule = require("./CSSRule").CSSRule;
exports.CSSStyleRule = require("./CSSStyleRule").CSSStyleRule;
exports.CSSImportRule = require("./CSSImportRule").CSSImportRule;
exports.MediaList = require("./MediaList").MediaList;
exports.CSSMediaRule = require("./CSSMediaRule").CSSMediaRule;
exports.CSSKeyframesRule = require("./CSSKeyframesRule").CSSKeyframesRule;
exports.CSSKeyframeRule = require("./CSSKeyframeRule").CSSKeyframeRule;
exports.StyleSheet = require("./StyleSheet").StyleSheet;
exports.CSSStyleSheet = require("./CSSStyleSheet").CSSStyleSheet;
exports.parse = require("./parse").parse;
exports.clone = require("./clone").clone;
'use strict';
exports.CSSStyleDeclaration = require('./CSSStyleDeclaration').CSSStyleDeclaration;
exports.CSSRule = require('./CSSRule').CSSRule;
exports.CSSStyleRule = require('./CSSStyleRule').CSSStyleRule;
exports.MediaList = require('./MediaList').MediaList;
exports.CSSMediaRule = require('./CSSMediaRule').CSSMediaRule;
exports.CSSImportRule = require('./CSSImportRule').CSSImportRule;
exports.StyleSheet = require('./StyleSheet').StyleSheet;
exports.CSSStyleSheet = require('./CSSStyleSheet').CSSStyleSheet;
exports.CSSKeyframesRule = require('./CSSKeyframesRule').CSSKeyframesRule;
exports.CSSKeyframeRule = require('./CSSKeyframeRule').CSSKeyframeRule;
exports.parse = require('./parse').parse;
exports.clone = require('./clone').clone;

@@ -40,3 +40,3 @@ //.CommonJS

appendMedium: function(medium) {
if (Array.prototype.indexOf.call(this, medium) == -1) {
if (Array.prototype.indexOf.call(this, medium) === -1) {
this[this.length] = medium;

@@ -52,7 +52,7 @@ this.length++;

var index = Array.prototype.indexOf.call(this, medium);
if (index != -1) {
if (index !== -1) {
Array.prototype.splice.call(this, index, 1);
}
}
};

@@ -59,0 +59,0 @@

@@ -16,8 +16,6 @@ //.CommonJS

* @param {string} token
* @param {Object} [options]
*/
CSSOM.parse = function parse(token, options) {
CSSOM.parse = function parse(token) {
options = options || {};
var i = options.startIndex || 0;
var i = 0;

@@ -34,6 +32,5 @@ /**

*/
var state = options.state || "before-selector";
var state = "before-selector";
var index;
var j = i;
var buffer = "";

@@ -52,5 +49,8 @@

// @type CSSStyleSheet|CSSMediaRule
// @type CSSStyleSheet|CSSMediaRule|CSSKeyframesRule
var currentScope = styleSheet;
// @type CSSMediaRule|CSSKeyframesRule
var parentRule;
var selector, name, value, priority="", styleRule, mediaRule, importRule, keyframesRule, keyframeRule;

@@ -74,4 +74,3 @@

case '"':
j = i + 1;
index = token.indexOf('"', j) + 1;
index = token.indexOf('"', i + 1) + 1;
if (!index) {

@@ -93,4 +92,3 @@ throw '" is missing';

case "'":
j = i + 1;
index = token.indexOf("'", j) + 1;
index = token.indexOf("'", i + 1) + 1;
if (!index) {

@@ -113,7 +111,7 @@ throw "' is missing";

case "/":
if (token.charAt(i + 1) == "*") {
if (token.charAt(i + 1) === "*") {
i += 2;
index = token.indexOf("*/", i);
if (index == -1) {
throw SyntaxError("Missing */");
if (index === -1) {
throw new SyntaxError("Missing */");
} else {

@@ -125,3 +123,3 @@ i = index + 1;

}
if (state == "importRule-begin") {
if (state === "importRule-begin") {
buffer += " ";

@@ -134,3 +132,3 @@ state = "importRule";

case "@":
if (token.indexOf("@media", i) == i) {
if (token.indexOf("@media", i) === i) {
state = "atBlock";

@@ -142,3 +140,3 @@ mediaRule = new CSSOM.CSSMediaRule;

break;
} else if (token.indexOf("@import", i) == i) {
} else if (token.indexOf("@import", i) === i) {
state = "importRule-begin";

@@ -148,3 +146,3 @@ i += "import".length;

break;
} else if (token.indexOf("@-webkit-keyframes", i) == i) {
} else if (token.indexOf("@-webkit-keyframes", i) === i) {
state = "keyframesRule-begin";

@@ -156,3 +154,3 @@ keyframesRule = new CSSOM.CSSKeyframesRule;

break;
} else if (state == "selector") {
} else if (state === "selector") {
state = "atRule";

@@ -164,22 +162,25 @@ }

case "{":
if (state == "selector" || state == "atRule") {
styleRule.selectorText = buffer.trimRight();
if (state === "selector" || state === "atRule") {
styleRule.selectorText = buffer.trim();
styleRule.style.__starts = i;
buffer = "";
state = "before-name";
} else if (state == "atBlock") {
} else if (state === "atBlock") {
mediaRule.media.mediaText = buffer.trim();
mediaRule.parentRule = currentScope;
currentScope = mediaRule;
currentScope = parentRule = mediaRule;
mediaRule.parentStyleSheet = styleSheet;
buffer = "";
state = "before-selector";
} else if (state == "keyframesRule-begin") {
keyframesRule.name = buffer.trimRight();
keyframesRule.parentRule = currentScope;
currentScope = keyframesRule;
} else if (state === "keyframesRule-begin") {
keyframesRule.name = buffer.trim();
if (parentRule) {
keyframesRule.parentRule = parentRule;
}
keyframesRule.parentStyleSheet = styleSheet;
currentScope = parentRule = keyframesRule;
buffer = "";
state = "keyframeRule-begin";
} else if (state == "keyframeRule-begin") {
} else if (state === "keyframeRule-begin") {
styleRule = new CSSOM.CSSKeyframeRule;
styleRule.keyText = buffer.trimRight();
styleRule.keyText = buffer.trim();
styleRule.__starts = i;

@@ -192,3 +193,3 @@ buffer = "";

case ":":
if (state == "name") {
if (state === "name") {
name = buffer.trim();

@@ -203,5 +204,5 @@ buffer = "";

case '(':
if (state == 'value') {
if (state === 'value') {
index = token.indexOf(')', i + 1);
if (index == -1) {
if (index === -1) {
throw i + ': unclosed "("';

@@ -217,3 +218,3 @@ }

case "!":
if (state == "value" && token.indexOf("!important", i) === i) {
if (state === "value" && token.indexOf("!important", i) === i) {
priority = "important";

@@ -249,5 +250,5 @@ i += "important".length;

importRule = new CSSOM.CSSImportRule;
importRule.parentRule = currentScope;
importRule.parentStyleSheet = importRule.styleSheet.parentStyleSheet = styleSheet;
importRule.cssText = buffer + character;
currentScope.cssRules.push(importRule);
styleSheet.cssRules.push(importRule);
buffer = "";

@@ -279,6 +280,9 @@ state = "before-selector";

styleRule.__ends = i + 1;
styleRule.parentRule = currentScope;
if (parentRule) {
styleRule.parentRule = parentRule;
}
styleRule.parentStyleSheet = styleSheet;
currentScope.cssRules.push(styleRule);
buffer = "";
if (currentScope.constructor == CSSOM.CSSKeyframesRule) {
if (currentScope.constructor === CSSOM.CSSKeyframesRule) {
state = "keyframeRule-begin";

@@ -293,9 +297,10 @@ } else {

// End of media rule.
// Nesting rules aren't supported yet
if (!currentScope.parentRule) {
if (!parentRule) {
throw "unexpected }";
}
currentScope.__ends = i + 1;
currentScope.parentRule.cssRules.push(currentScope);
currentScope = currentScope.parentRule;
// Nesting rules aren’t supported yet
styleSheet.cssRules.push(currentScope);
currentScope = styleSheet;
parentRule = null;
buffer = "";

@@ -302,0 +307,0 @@ state = "before-selector";

@@ -10,3 +10,5 @@ //.CommonJS

*/
CSSOM.StyleSheet = function StyleSheet(){};
CSSOM.StyleSheet = function StyleSheet() {
this.parentStyleSheet = null;
};

@@ -13,0 +15,0 @@

@@ -5,5 +5,9 @@ {

"keywords": ["CSS", "CSSOM", "parser", "styleSheet"],
"version": "0.2.1-patch1",
"version": "0.2.2-patch1",
"homepage": "https://github.com/NV/CSSOM",
"author": "Nikita Vasilyev <me@elv1s.ru>",
"repository": {
"type": "git",
"url": "git://github.com/papandreou/CSSOM.git"
},
"directories": {

@@ -18,2 +22,5 @@ "doc": "./doc",

},
"devDependencies": {
"jake": "0.2.x"
},
"licenses": [

@@ -20,0 +27,0 @@ {

@@ -8,2 +8,3 @@ test("CSSStyleDeclaration", function(){

length: 1,
parentRule: null,
color: "purple"

@@ -17,2 +18,3 @@ });

length: 2,
parentRule: null,
color: "purple",

@@ -19,0 +21,0 @@ width: "128px"

@@ -25,6 +25,6 @@ /**

for (var key in object) {
if (key.charAt(0) == "_" || !object.hasOwnProperty(key)) {
if (key.charAt(0) === "_" || !object.hasOwnProperty(key)) {
continue;
}
if (typeof object[key] == "object") {
if (typeof object[key] === "object") {
var stackIndex = stack.indexOf(object[key]);

@@ -50,3 +50,3 @@ if (stackIndex > -1) {

function buildPath(level) {
if (level == 0) {
if (level === 0) {
return '.';

@@ -84,3 +84,3 @@ } else {

if (typeof base != "object" || typeof another != "object") {
if (typeof base !== "object" || typeof another !== "object") {
return another;

@@ -92,3 +92,3 @@ }

for (var key in another) {
if (key.charAt(0) == "_" || !another.hasOwnProperty(key)) {
if (key.charAt(0) === "_" || !another.hasOwnProperty(key)) {
continue;

@@ -95,0 +95,0 @@ }

@@ -7,3 +7,4 @@ module("parse");

result: {
cssRules: []
cssRules: [],
parentStyleSheet: null
}

@@ -14,3 +15,4 @@ },

result: {
cssRules: []
cssRules: [],
parentStyleSheet: null
}

@@ -21,3 +23,4 @@ },

result: {
cssRules: []
cssRules: [],
parentStyleSheet: null
}

@@ -38,8 +41,11 @@ },

},
parentRule: null,
__starts: 0,
__ends: 14
}
]
],
parentStyleSheet: null
};
result.cssRules[0].parentRule = result;
result.cssRules[0].parentStyleSheet = result;
result.cssRules[0].style.parentRule = result.cssRules[0];
return result;

@@ -61,8 +67,11 @@ })()

},
parentRule: null,
__starts: 0,
__ends: 20
}
]
],
parentStyleSheet: null
};
result.cssRules[0].parentRule = result;
result.cssRules[0].parentStyleSheet = result;
result.cssRules[0].style.parentRule = result.cssRules[0];
return result;

@@ -84,8 +93,11 @@ })()

},
parentRule: null,
__starts: 0,
__ends: 64
}
]
],
parentStyleSheet: null
};
result.cssRules[0].parentRule = result;
result.cssRules[0].parentStyleSheet = result;
result.cssRules[0].style.parentRule = result.cssRules[0];
return result;

@@ -107,8 +119,11 @@ })()

},
parentRule: null,
__starts: 0,
__ends: 50
}
]
],
parentStyleSheet: null
};
result.cssRules[0].parentRule = result;
result.cssRules[0].parentStyleSheet = result;
result.cssRules[0].style.parentRule = result.cssRules[0];
return result;

@@ -130,8 +145,11 @@ })()

},
parentRule: null,
__starts: 0,
__ends: 35
}
]
],
parentStyleSheet: null
};
result.cssRules[0].parentRule = result;
result.cssRules[0].parentStyleSheet = result;
result.cssRules[0].style.parentRule = result.cssRules[0];
return result;

@@ -153,8 +171,11 @@ })()

},
parentRule: null,
__starts: 0,
__ends: 60
}
]
],
parentStyleSheet: null
};
result.cssRules[0].parentRule = result;
result.cssRules[0].parentStyleSheet = result;
result.cssRules[0].style.parentRule = result.cssRules[0];
return result;

@@ -174,8 +195,11 @@ })()

},
parentRule: null,
__starts: 0,
__ends: 7
}
]
],
parentStyleSheet: null
};
result.cssRules[0].parentRule = result;
result.cssRules[0].parentStyleSheet = result;
result.cssRules[0].style.parentRule = result.cssRules[0];
return result;

@@ -195,8 +219,11 @@ })()

},
parentRule: null,
__starts: 4,
__ends: 7
}
]
],
parentStyleSheet: null
};
result.cssRules[0].parentRule = result;
result.cssRules[0].parentStyleSheet = result;
result.cssRules[0].style.parentRule = result.cssRules[0];
return result;

@@ -216,8 +243,11 @@ })()

},
parentRule: null,
__starts: 0,
__ends: 9
}
]
],
parentStyleSheet: null
};
result.cssRules[0].parentRule = result;
result.cssRules[0].parentStyleSheet = result;
result.cssRules[0].style.parentRule = result.cssRules[0];
return result;

@@ -237,8 +267,11 @@ })()

},
parentRule: null,
__starts: 0,
__ends: 10
}
]
],
parentStyleSheet: null
};
result.cssRules[0].parentRule = result;
result.cssRules[0].parentStyleSheet = result;
result.cssRules[0].style.parentRule = result.cssRules[0];
return result;

@@ -260,2 +293,3 @@ })()

},
parentRule: null,
__starts: 0,

@@ -271,9 +305,12 @@ __ends: 9

},
parentRule: null,
__starts: 10,
__ends: 18
}
]
],
parentStyleSheet: null
};
result.cssRules[0].parentRule = result;
result.cssRules[1].parentRule = result;
result.cssRules[0].parentStyleSheet = result.cssRules[1].parentStyleSheet = result;
result.cssRules[0].style.parentRule = result.cssRules[0];
result.cssRules[1].style.parentRule = result.cssRules[1];
return result;

@@ -295,2 +332,3 @@ })()

},
parentRule: null,
__starts: 0,

@@ -309,9 +347,12 @@ __ends: 18

},
parentRule: null,
__starts: 20,
__ends: 60
}
]
],
parentStyleSheet: null
};
result.cssRules[0].parentRule = result;
result.cssRules[1].parentRule = result;
result.cssRules[0].parentStyleSheet = result.cssRules[1].parentStyleSheet = result;
result.cssRules[0].style.parentRule = result.cssRules[0];
result.cssRules[1].style.parentRule = result.cssRules[1];
return result;

@@ -335,2 +376,3 @@ })()

},
parentRule: null,
__starts: 0,

@@ -347,9 +389,12 @@ __ends: 74

},
parentRule: null,
__starts: 75,
__ends: 103
}
]
],
parentStyleSheet: null
};
result.cssRules[0].parentRule = result;
result.cssRules[1].parentRule = result;
result.cssRules[0].parentStyleSheet = result.cssRules[1].parentStyleSheet = result;
result.cssRules[0].style.parentRule = result.cssRules[0];
result.cssRules[1].style.parentRule = result.cssRules[1];
return result;

@@ -365,2 +410,3 @@ })()

selectorText: 'img:not([src])',
parentRule: null,
style: {

@@ -372,5 +418,7 @@ 0: 'background',

}
]
],
parentStyleSheet: null
};
result.cssRules[0].parentRule = result;
result.cssRules[0].parentStyleSheet = result;
result.cssRules[0].style.parentRule = result.cssRules[0];
return result;

@@ -386,2 +434,3 @@ })()

selectorText: '.gradient',
parentRule: null,
style: {

@@ -393,5 +442,7 @@ 0: 'background',

}
]
],
parentStyleSheet: null
};
result.cssRules[0].parentRule = result;
result.cssRules[0].parentStyleSheet = result;
result.cssRules[0].style.parentRule = result.cssRules[0];
return result;

@@ -424,8 +475,11 @@ })()

],
parentRule: null,
__starts: 0,
__ends: 82
}
]
],
parentStyleSheet: null
};
result.cssRules[0].parentRule = result;
result.cssRules[0].parentStyleSheet = result.cssRules[0].cssRules[0].parentStyleSheet = result;
result.cssRules[0].cssRules[0].style.parentRule = result.cssRules[0].cssRules[0];
result.cssRules[0].cssRules[0].parentRule = result.cssRules[0];

@@ -448,8 +502,10 @@ return result;

cssRules: [],
parentRule: null,
__starts: 0,
__ends: 142
}
]
],
parentStyleSheet: null
};
result.cssRules[0].parentRule = result;
result.cssRules[0].parentStyleSheet = result;
return result;

@@ -481,9 +537,12 @@ })()

],
parentRule: null,
__starts: 0,
__ends: 36
}
]
],
parentStyleSheet: null
};
result.cssRules[0].parentRule = result;
result.cssRules[0].parentStyleSheet = result.cssRules[0].cssRules[0].parentStyleSheet = result;
result.cssRules[0].cssRules[0].parentRule = result.cssRules[0];
result.cssRules[0].cssRules[0].style.parentRule = result.cssRules[0].cssRules[0];
return result;

@@ -503,2 +562,3 @@ })()

},
parentRule: null,
__starts: 0,

@@ -525,10 +585,13 @@ __ends: 3

],
parentRule: null,
__starts: 3,
__ends: 28
}
]
],
parentStyleSheet: null
};
result.cssRules[0].parentRule = result;
result.cssRules[1].parentRule = result;
result.cssRules[0].parentStyleSheet = result.cssRules[1].parentStyleSheet = result.cssRules[1].cssRules[0].parentStyleSheet = result;
result.cssRules[0].style.parentRule = result.cssRules[0];
result.cssRules[1].cssRules[0].parentRule = result.cssRules[1];
result.cssRules[1].cssRules[0].style.parentRule = result.cssRules[1].cssRules[0];
return result;

@@ -540,3 +603,4 @@ })()

result: {
cssRules: []
cssRules: [],
parentStyleSheet: null
}

@@ -567,9 +631,12 @@ },

],
parentRule: null,
__starts: 18,
__ends: 60
}
]
],
parentStyleSheet: null
};
result.cssRules[0].parentRule = result;
result.cssRules[0].parentStyleSheet = result.cssRules[0].cssRules[0].parentStyleSheet = result;
result.cssRules[0].cssRules[0].parentRule = result.cssRules[0];
result.cssRules[0].cssRules[0].style.parentRule = result.cssRules[0].cssRules[0];
return result;

@@ -588,2 +655,3 @@ })()

},
parentRule: null,
styleSheet: {

@@ -595,2 +663,3 @@ cssRules: []

selectorText: "i",
parentRule: null,
style: {

@@ -602,6 +671,7 @@ 0: 'font-style',

}
]
],
parentStyleSheet: null
};
result.cssRules[0].parentRule = result;
result.cssRules[1].parentRule = result;
result.cssRules[0].parentStyleSheet = result.cssRules[0].styleSheet.parentStyleSheet = result.cssRules[1].parentStyleSheet = result;
result.cssRules[1].style.parentRule = result.cssRules[1];
return result;

@@ -620,2 +690,3 @@ })()

},
parentRule: null,
styleSheet: {

@@ -627,2 +698,3 @@ cssRules: []

selectorText: "i",
parentRule: null,
style: {

@@ -634,6 +706,8 @@ 0: 'font-style',

}
]
],
parentStyleSheet: null
};
result.cssRules[0].parentRule = result;
result.cssRules[1].parentRule = result;
result.cssRules[0].parentStyleSheet = result.cssRules[0].styleSheet.parentStyleSheet = result.cssRules[1].parentStyleSheet = result;
result.cssRules[1].style.parentRule = result.cssRules[1];
result.cssRules[0].styleSheet.parentStyleSheet = result;
return result;

@@ -652,2 +726,3 @@ })()

},
parentRule: null,
styleSheet: {

@@ -659,2 +734,3 @@ cssRules: []

selectorText: "i",
parentRule: null,
style: {

@@ -666,6 +742,7 @@ 0: 'font-style',

}
]
],
parentStyleSheet: null
};
result.cssRules[0].parentRule = result;
result.cssRules[1].parentRule = result;
result.cssRules[0].parentStyleSheet = result.cssRules[0].styleSheet.parentStyleSheet = result.cssRules[1].parentStyleSheet = result;
result.cssRules[1].style.parentRule = result.cssRules[1];
return result;

@@ -698,9 +775,12 @@ })()

}
]
],
parentRule: null
}
]
],
parentStyleSheet: null
};
result.cssRules[0].parentRule = result;
result.cssRules[0].cssRules[0].parentRule = result.cssRules[0];
result.cssRules[0].cssRules[1].parentRule = result.cssRules[0];
result.cssRules[0].parentStyleSheet = result.cssRules[0].cssRules[0].parentStyleSheet = result.cssRules[0].cssRules[1].parentStyleSheet = result;
result.cssRules[0].cssRules[0].parentRule = result.cssRules[0].cssRules[1].parentRule = result.cssRules[0];
result.cssRules[0].cssRules[0].style.parentRule = result.cssRules[0].cssRules[0];
result.cssRules[0].cssRules[1].style.parentRule = result.cssRules[0].cssRules[1];
return result;

@@ -741,10 +821,13 @@ })()

}
]
],
parentRule: null
}
]
],
parentStyleSheet: null
};
result.cssRules[0].parentRule = result;
result.cssRules[0].cssRules[0].parentRule = result.cssRules[0];
result.cssRules[0].cssRules[1].parentRule = result.cssRules[0];
result.cssRules[0].cssRules[2].parentRule = result.cssRules[0];
result.cssRules[0].parentStyleSheet = result.cssRules[0].cssRules[0].parentStyleSheet = result.cssRules[0].cssRules[1].parentStyleSheet = result.cssRules[0].cssRules[2].parentStyleSheet = result;
result.cssRules[0].cssRules[0].parentRule = result.cssRules[0].cssRules[1].parentRule = result.cssRules[0].cssRules[2].parentRule = result.cssRules[0];
result.cssRules[0].cssRules[0].style.parentRule = result.cssRules[0].cssRules[0];
result.cssRules[0].cssRules[1].style.parentRule = result.cssRules[0].cssRules[1];
result.cssRules[0].cssRules[2].style.parentRule = result.cssRules[0].cssRules[2];
return result;

@@ -751,0 +834,0 @@ })()

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc