Sha256: 69a0aadfc81b270449e34f163e659666f7998d890464d61a249fca2bee130fe7

Contents?: true

Size: 345 Bytes

Versions: 25

Compression:

Stored size: 345 Bytes

Contents

test("CSSStyleRule", function(){
	var r = new CSSOM.CSSStyleRule;
	r.cssText = "h1:first-of-type {\n\tfont-size: 3em\n}";

	equal(r.cssText, "h1:first-of-type {font-size: 3em;}");
	equal(r.selectorText, "h1:first-of-type");

	r.selectorText = "h1.title";
	equal(r.selectorText, "h1.title");
	equal(r.cssText, "h1.title {font-size: 3em;}");

});

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
stylus-source-0.23.0 vendor/node_modules/cssom/test/CSSStyleRule.test.js
stylus-source-0.22.6 vendor/node_modules/cssom/test/CSSStyleRule.test.js
stylus-source-0.22.5 vendor/node_modules/cssom/test/CSSStyleRule.test.js
stylus-source-0.22.4 vendor/node_modules/cssom/test/CSSStyleRule.test.js
stylus-source-0.22.3 vendor/node_modules/cssom/test/CSSStyleRule.test.js
stylus-source-0.22.2 vendor/node_modules/cssom/test/CSSStyleRule.test.js
stylus-source-0.22.1 vendor/node_modules/cssom/test/CSSStyleRule.test.js
stylus-source-0.22.0 vendor/node_modules/cssom/test/CSSStyleRule.test.js
stylus-source-0.21.2 vendor/node_modules/cssom/test/CSSStyleRule.test.js
stylus-source-0.21.1 vendor/node_modules/cssom/test/CSSStyleRule.test.js
stylus-source-0.21.0 vendor/node_modules/cssom/test/CSSStyleRule.test.js
stylus-source-0.20.1 vendor/node_modules/cssom/test/CSSStyleRule.test.js
stylus-source-0.20.0 vendor/node_modules/cssom/test/CSSStyleRule.test.js
stylus-source-0.19.8 vendor/node_modules/cssom/test/CSSStyleRule.test.js
stylus-source-0.19.7 vendor/node_modules/cssom/test/CSSStyleRule.test.js
stylus-source-0.19.6 vendor/node_modules/cssom/test/CSSStyleRule.test.js
stylus-source-0.19.5 vendor/node_modules/cssom/test/CSSStyleRule.test.js
stylus-source-0.19.4 vendor/node_modules/cssom/test/CSSStyleRule.test.js
stylus-source-0.19.3 vendor/node_modules/cssom/test/CSSStyleRule.test.js
stylus-source-0.19.2 vendor/node_modules/cssom/test/CSSStyleRule.test.js