stylus-source 0.23.0 → 0.24.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +5 -5
- data/VERSION +1 -1
- data/vendor/lib/functions/index.js +11 -12
- data/vendor/lib/functions/index.styl +45 -0
- data/vendor/lib/parser.js +13 -0
- data/vendor/lib/stylus.js +1 -1
- data/vendor/lib/visitor/evaluator.js +8 -0
- data/vendor/node_modules/cssom/Jakefile.js +35 -0
- data/vendor/node_modules/cssom/lib/CSSImportRule.js +10 -9
- data/vendor/node_modules/cssom/lib/CSSKeyframeRule.js +2 -0
- data/vendor/node_modules/cssom/lib/CSSKeyframesRule.js +2 -1
- data/vendor/node_modules/cssom/lib/CSSMediaRule.js +2 -1
- data/vendor/node_modules/cssom/lib/CSSRule.js +1 -0
- data/vendor/node_modules/cssom/lib/CSSStyleDeclaration.js +7 -5
- data/vendor/node_modules/cssom/lib/CSSStyleRule.js +11 -9
- data/vendor/node_modules/cssom/lib/CSSStyleSheet.js +4 -4
- data/vendor/node_modules/cssom/lib/MediaList.js +3 -3
- data/vendor/node_modules/cssom/lib/StyleSheet.js +3 -1
- data/vendor/node_modules/cssom/lib/clone.js +5 -5
- data/vendor/node_modules/cssom/lib/index.js +14 -12
- data/vendor/node_modules/cssom/lib/parse.js +48 -43
- data/vendor/node_modules/cssom/package.json +5 -4
- data/vendor/node_modules/debug/History.md +35 -0
- data/vendor/node_modules/debug/Makefile +5 -0
- data/vendor/node_modules/debug/Readme.md +128 -0
- data/vendor/node_modules/debug/debug.js +111 -0
- data/vendor/node_modules/debug/example/app.js +19 -0
- data/vendor/node_modules/debug/example/browser.html +24 -0
- data/vendor/node_modules/debug/example/wildcards.js +10 -0
- data/vendor/node_modules/debug/example/worker.js +22 -0
- data/vendor/node_modules/debug/index.js +2 -0
- data/vendor/node_modules/debug/lib/debug.js +129 -0
- data/vendor/node_modules/debug/package.json +11 -0
- data/vendor/node_modules/growl/History.md +21 -0
- data/vendor/node_modules/growl/Readme.md +29 -20
- data/vendor/node_modules/growl/lib/growl.js +113 -36
- data/vendor/node_modules/growl/package.json +1 -1
- data/vendor/node_modules/growl/test.js +12 -13
- data/vendor/node_modules/mkdirp/README.markdown +35 -2
- data/vendor/node_modules/mkdirp/examples/pow.js +1 -1
- data/vendor/node_modules/mkdirp/index.js +72 -13
- data/vendor/node_modules/mkdirp/package.json +2 -2
- data/vendor/node_modules/mkdirp/test/chmod.js +38 -0
- data/vendor/node_modules/mkdirp/test/clobber.js +37 -0
- data/vendor/node_modules/mkdirp/test/perm.js +32 -0
- data/vendor/node_modules/mkdirp/test/perm_sync.js +39 -0
- data/vendor/node_modules/mkdirp/test/sync.js +27 -0
- data/vendor/node_modules/mkdirp/test/umask.js +28 -0
- data/vendor/node_modules/mkdirp/test/umask_sync.js +27 -0
- data/vendor/package.json +6 -5
- data/vendor/testing/test.css +39 -0
- data/vendor/testing/test.html +21 -0
- data/vendor/testing/test.js +5 -3
- data/vendor/testing/test.styl +42 -2
- metadata +23 -542
- data/vendor/History.md +0 -672
- data/vendor/Makefile +0 -20
- data/vendor/Readme.md +0 -155
- data/vendor/docs/bifs.md +0 -598
- data/vendor/docs/comments.md +0 -35
- data/vendor/docs/compare.md +0 -81
- data/vendor/docs/conditionals.md +0 -107
- data/vendor/docs/css-style.md +0 -77
- data/vendor/docs/error-reporting.md +0 -50
- data/vendor/docs/escape.md +0 -28
- data/vendor/docs/executable.md +0 -163
- data/vendor/docs/extend.md +0 -123
- data/vendor/docs/firebug.md +0 -59
- data/vendor/docs/font-face.md +0 -26
- data/vendor/docs/functions.md +0 -197
- data/vendor/docs/functions.url.md +0 -32
- data/vendor/docs/gedit.md +0 -24
- data/vendor/docs/import.md +0 -75
- data/vendor/docs/interpolation.md +0 -55
- data/vendor/docs/introspection.md +0 -38
- data/vendor/docs/iteration.md +0 -102
- data/vendor/docs/js.md +0 -157
- data/vendor/docs/keyframes.md +0 -122
- data/vendor/docs/kwargs.md +0 -34
- data/vendor/docs/literal.md +0 -16
- data/vendor/docs/media.md +0 -18
- data/vendor/docs/middleware.md +0 -72
- data/vendor/docs/mixins.md +0 -138
- data/vendor/docs/operators.md +0 -470
- data/vendor/docs/selectors.md +0 -133
- data/vendor/docs/textmate.md +0 -4
- data/vendor/docs/vargs.md +0 -84
- data/vendor/docs/variables.md +0 -85
- data/vendor/editors/Stylus.tmbundle/Commands/Compile and Display CSS.tmCommand +0 -33
- data/vendor/editors/Stylus.tmbundle/Preferences/Comments.tmPreferences +0 -36
- data/vendor/editors/Stylus.tmbundle/Syntaxes/Stylus.tmLanguage +0 -228
- data/vendor/editors/Stylus.tmbundle/info.plist +0 -10
- data/vendor/editors/gedit/styl.lang +0 -475
- data/vendor/examples/arithmetic.js +0 -12
- data/vendor/examples/arithmetic.styl +0 -29
- data/vendor/examples/basic.js +0 -12
- data/vendor/examples/basic.styl +0 -8
- data/vendor/examples/builtins.js +0 -12
- data/vendor/examples/builtins.styl +0 -56
- data/vendor/examples/comments.js +0 -11
- data/vendor/examples/comments.styl +0 -15
- data/vendor/examples/compress.js +0 -12
- data/vendor/examples/conversions.js +0 -12
- data/vendor/examples/conversions.styl +0 -34
- data/vendor/examples/functions.js +0 -12
- data/vendor/examples/functions.styl +0 -30
- data/vendor/examples/gradients.js +0 -13
- data/vendor/examples/gradients.styl +0 -8
- data/vendor/examples/images/gopher.jpg +0 -0
- data/vendor/examples/images/gradient.svg +0 -9
- data/vendor/examples/images/jesus.gif +0 -0
- data/vendor/examples/images/sprite.gif +0 -0
- data/vendor/examples/images.js +0 -20
- data/vendor/examples/images.styl +0 -15
- data/vendor/examples/implicit-functions.js +0 -12
- data/vendor/examples/implicit-functions.styl +0 -23
- data/vendor/examples/import.js +0 -12
- data/vendor/examples/import.styl +0 -11
- data/vendor/examples/js-functions.js +0 -55
- data/vendor/examples/js-functions.styl +0 -23
- data/vendor/examples/literal.js +0 -12
- data/vendor/examples/literal.styl +0 -8
- data/vendor/examples/middleware.js +0 -23
- data/vendor/examples/mixins/box.styl +0 -14
- data/vendor/examples/mixins/gradients.styl +0 -92
- data/vendor/examples/nesting.js +0 -12
- data/vendor/examples/nesting.styl +0 -14
- data/vendor/examples/variables.js +0 -12
- data/vendor/examples/variables.styl +0 -24
- data/vendor/node_modules/cssom/Jakefile +0 -37
- data/vendor/node_modules/cssom/MIT-LICENSE.txt +0 -20
- data/vendor/node_modules/cssom/README.mdown +0 -34
- data/vendor/node_modules/cssom/Rakefile +0 -23
- data/vendor/node_modules/cssom/animation.html +0 -27
- data/vendor/node_modules/cssom/bench.html +0 -47
- data/vendor/node_modules/cssom/comments.js +0 -63
- data/vendor/node_modules/cssom/docs/bar.css +0 -3
- data/vendor/node_modules/cssom/docs/col_table.html +0 -15
- data/vendor/node_modules/cssom/docs/cols.html +0 -14
- data/vendor/node_modules/cssom/docs/cols_inline-blocks.html +0 -33
- data/vendor/node_modules/cssom/docs/demo.css +0 -0
- data/vendor/node_modules/cssom/docs/diff.html +0 -132
- data/vendor/node_modules/cssom/docs/foo.css +0 -4
- data/vendor/node_modules/cssom/docs/parse.html +0 -282
- data/vendor/node_modules/cssom/docs/parse.html_ +0 -268
- data/vendor/node_modules/cssom/docs/parse2.html +0 -518
- data/vendor/node_modules/cssom/docs/parser.html +0 -31
- data/vendor/node_modules/cssom/index.html +0 -100
- data/vendor/node_modules/cssom/lib/CSSOM.js +0 -3
- data/vendor/node_modules/cssom/lib/Parser.js +0 -362
- data/vendor/node_modules/cssom/media.html +0 -17
- data/vendor/node_modules/cssom/plugins/toHTML.js +0 -32
- data/vendor/node_modules/cssom/server/index.html +0 -22
- data/vendor/node_modules/cssom/server/index.js +0 -21
- data/vendor/node_modules/cssom/shorthands.html +0 -21
- data/vendor/node_modules/cssom/strings.html +0 -10
- data/vendor/node_modules/cssom/test/CSSImportRule.test.js +0 -52
- data/vendor/node_modules/cssom/test/CSSStyleDeclaration.test.js +0 -42
- data/vendor/node_modules/cssom/test/CSSStyleRule.test.js +0 -12
- data/vendor/node_modules/cssom/test/CSSStyleSheet.test.js +0 -16
- data/vendor/node_modules/cssom/test/MediaList.test.js +0 -21
- data/vendor/node_modules/cssom/test/_helper.js +0 -122
- data/vendor/node_modules/cssom/test/clone.test.js +0 -38
- data/vendor/node_modules/cssom/test/fixtures/dummy.css +0 -3
- data/vendor/node_modules/cssom/test/helper.js +0 -122
- data/vendor/node_modules/cssom/test/index.html +0 -45
- data/vendor/node_modules/cssom/test/parse.test.js +0 -718
- data/vendor/node_modules/cssom/test/vendor/qunit.css +0 -189
- data/vendor/node_modules/cssom/test/vendor/qunit.js +0 -1415
- data/vendor/test/cases/arithmetic.color.css +0 -44
- data/vendor/test/cases/arithmetic.color.styl +0 -48
- data/vendor/test/cases/arithmetic.css +0 -23
- data/vendor/test/cases/arithmetic.styl +0 -30
- data/vendor/test/cases/arithmetic.unary.css +0 -16
- data/vendor/test/cases/arithmetic.unary.styl +0 -16
- data/vendor/test/cases/atscope.css +0 -21
- data/vendor/test/cases/atscope.styl +0 -23
- data/vendor/test/cases/bifs.add-property.css +0 -21
- data/vendor/test/cases/bifs.add-property.styl +0 -48
- data/vendor/test/cases/bifs.components.css +0 -9
- data/vendor/test/cases/bifs.components.styl +0 -9
- data/vendor/test/cases/bifs.dark.css +0 -5
- data/vendor/test/cases/bifs.dark.styl +0 -4
- data/vendor/test/cases/bifs.darken.css +0 -8
- data/vendor/test/cases/bifs.darken.styl +0 -9
- data/vendor/test/cases/bifs.fade.css +0 -6
- data/vendor/test/cases/bifs.fade.styl +0 -6
- data/vendor/test/cases/bifs.image-size.css +0 -9
- data/vendor/test/cases/bifs.image-size.styl +0 -16
- data/vendor/test/cases/bifs.join.css +0 -18
- data/vendor/test/cases/bifs.join.styl +0 -21
- data/vendor/test/cases/bifs.keys.css +0 -4
- data/vendor/test/cases/bifs.keys.styl +0 -6
- data/vendor/test/cases/bifs.last.css +0 -5
- data/vendor/test/cases/bifs.last.styl +0 -6
- data/vendor/test/cases/bifs.length.css +0 -10
- data/vendor/test/cases/bifs.length.styl +0 -18
- data/vendor/test/cases/bifs.light.css +0 -5
- data/vendor/test/cases/bifs.light.styl +0 -4
- data/vendor/test/cases/bifs.lighten.css +0 -14
- data/vendor/test/cases/bifs.lighten.styl +0 -14
- data/vendor/test/cases/bifs.lookup.css +0 -3
- data/vendor/test/cases/bifs.lookup.styl +0 -8
- data/vendor/test/cases/bifs.match.css +0 -4
- data/vendor/test/cases/bifs.match.styl +0 -9
- data/vendor/test/cases/bifs.opposite-position.css +0 -8
- data/vendor/test/cases/bifs.opposite-position.styl +0 -9
- data/vendor/test/cases/bifs.push.css +0 -25
- data/vendor/test/cases/bifs.push.styl +0 -48
- data/vendor/test/cases/bifs.rgba.css +0 -5
- data/vendor/test/cases/bifs.rgba.styl +0 -4
- data/vendor/test/cases/bifs.s.css +0 -11
- data/vendor/test/cases/bifs.s.styl +0 -12
- data/vendor/test/cases/bifs.type.css +0 -11
- data/vendor/test/cases/bifs.type.styl +0 -12
- data/vendor/test/cases/bifs.unit.css +0 -6
- data/vendor/test/cases/bifs.unit.styl +0 -5
- data/vendor/test/cases/bifs.unquote.css +0 -5
- data/vendor/test/cases/bifs.unquote.styl +0 -8
- data/vendor/test/cases/bifs.url.css +0 -11
- data/vendor/test/cases/bifs.url.styl +0 -15
- data/vendor/test/cases/bifs.values.css +0 -5
- data/vendor/test/cases/bifs.values.styl +0 -6
- data/vendor/test/cases/casting.css +0 -12
- data/vendor/test/cases/casting.styl +0 -14
- data/vendor/test/cases/coercion.css +0 -6
- data/vendor/test/cases/coercion.styl +0 -5
- data/vendor/test/cases/comments.css +0 -18
- data/vendor/test/cases/comments.styl +0 -28
- data/vendor/test/cases/compress.comments.css +0 -2
- data/vendor/test/cases/compress.comments.styl +0 -5
- data/vendor/test/cases/compress.units.css +0 -2
- data/vendor/test/cases/compress.units.styl +0 -18
- data/vendor/test/cases/conditional-assignment.css +0 -4
- data/vendor/test/cases/conditional-assignment.styl +0 -9
- data/vendor/test/cases/control.blueprint.ie.css +0 -126
- data/vendor/test/cases/control.blueprint.ie.styl +0 -36
- data/vendor/test/cases/control.blueprint.screen.css +0 -1103
- data/vendor/test/cases/control.blueprint.screen.styl +0 -265
- data/vendor/test/cases/control.boilerplate.css +0 -473
- data/vendor/test/cases/control.boilerplate.styl +0 -265
- data/vendor/test/cases/css.extend.css +0 -13
- data/vendor/test/cases/css.extend.styl +0 -15
- data/vendor/test/cases/css.functions.single-line.css +0 -9
- data/vendor/test/cases/css.functions.single-line.styl +0 -13
- data/vendor/test/cases/css.if.css +0 -8
- data/vendor/test/cases/css.if.styl +0 -21
- data/vendor/test/cases/css.keyframes.css +0 -57
- data/vendor/test/cases/css.keyframes.styl +0 -48
- data/vendor/test/cases/css.large.css +0 -172
- data/vendor/test/cases/css.large.styl +0 -172
- data/vendor/test/cases/css.media.css +0 -15
- data/vendor/test/cases/css.media.styl +0 -17
- data/vendor/test/cases/css.mixins.braces.css +0 -38
- data/vendor/test/cases/css.mixins.braces.styl +0 -53
- data/vendor/test/cases/css.mixins.css +0 -38
- data/vendor/test/cases/css.mixins.root.css +0 -26
- data/vendor/test/cases/css.mixins.root.styl +0 -25
- data/vendor/test/cases/css.mixins.root.wonky.css +0 -26
- data/vendor/test/cases/css.mixins.root.wonky.styl +0 -17
- data/vendor/test/cases/css.mixins.styl +0 -47
- data/vendor/test/cases/css.selector.interpolation.css +0 -91
- data/vendor/test/cases/css.selector.interpolation.styl +0 -90
- data/vendor/test/cases/css.selectors.css +0 -38
- data/vendor/test/cases/css.selectors.styl +0 -53
- data/vendor/test/cases/css.whitespace.css +0 -37
- data/vendor/test/cases/css.whitespace.styl +0 -38
- data/vendor/test/cases/dumb.css +0 -10
- data/vendor/test/cases/dumb.styl +0 -11
- data/vendor/test/cases/eol-escape.css +0 -11
- data/vendor/test/cases/eol-escape.styl +0 -27
- data/vendor/test/cases/escape.css +0 -4
- data/vendor/test/cases/escape.styl +0 -4
- data/vendor/test/cases/extend.complex.css +0 -16
- data/vendor/test/cases/extend.complex.styl +0 -15
- data/vendor/test/cases/extend.css +0 -22
- data/vendor/test/cases/extend.multiple-definitions.css +0 -11
- data/vendor/test/cases/extend.multiple-definitions.styl +0 -9
- data/vendor/test/cases/extend.styl +0 -22
- data/vendor/test/cases/fontface.css +0 -4
- data/vendor/test/cases/fontface.styl +0 -5
- data/vendor/test/cases/for.complex.css +0 -44
- data/vendor/test/cases/for.complex.styl +0 -28
- data/vendor/test/cases/for.css +0 -52
- data/vendor/test/cases/for.function.css +0 -20
- data/vendor/test/cases/for.function.styl +0 -51
- data/vendor/test/cases/for.styl +0 -44
- data/vendor/test/cases/function.arguments.css +0 -4
- data/vendor/test/cases/function.arguments.styl +0 -14
- data/vendor/test/cases/function.literals.css +0 -6
- data/vendor/test/cases/function.literals.styl +0 -12
- data/vendor/test/cases/functions.arg-calls.css +0 -3
- data/vendor/test/cases/functions.arg-calls.styl +0 -9
- data/vendor/test/cases/functions.call.css +0 -4
- data/vendor/test/cases/functions.call.styl +0 -7
- data/vendor/test/cases/functions.css +0 -11
- data/vendor/test/cases/functions.defaults.css +0 -15
- data/vendor/test/cases/functions.defaults.styl +0 -30
- data/vendor/test/cases/functions.multi-line.css +0 -9
- data/vendor/test/cases/functions.multi-line.styl +0 -25
- data/vendor/test/cases/functions.multiple-calls.css +0 -13
- data/vendor/test/cases/functions.multiple-calls.styl +0 -26
- data/vendor/test/cases/functions.nested-calls.css +0 -3
- data/vendor/test/cases/functions.nested-calls.styl +0 -9
- data/vendor/test/cases/functions.nested.css +0 -10
- data/vendor/test/cases/functions.nested.styl +0 -37
- data/vendor/test/cases/functions.property.css +0 -10
- data/vendor/test/cases/functions.property.styl +0 -11
- data/vendor/test/cases/functions.return.css +0 -15
- data/vendor/test/cases/functions.return.each.css +0 -10
- data/vendor/test/cases/functions.return.each.styl +0 -23
- data/vendor/test/cases/functions.return.styl +0 -86
- data/vendor/test/cases/functions.styl +0 -34
- data/vendor/test/cases/functions.variable.css +0 -9
- data/vendor/test/cases/functions.variable.ident.css +0 -3
- data/vendor/test/cases/functions.variable.ident.styl +0 -11
- data/vendor/test/cases/functions.variable.styl +0 -27
- data/vendor/test/cases/hack.star.css +0 -27
- data/vendor/test/cases/hack.star.styl +0 -37
- data/vendor/test/cases/if.css +0 -43
- data/vendor/test/cases/if.else.css +0 -6
- data/vendor/test/cases/if.else.styl +0 -16
- data/vendor/test/cases/if.mixin.css +0 -7
- data/vendor/test/cases/if.mixin.styl +0 -24
- data/vendor/test/cases/if.postfix.css +0 -61
- data/vendor/test/cases/if.postfix.styl +0 -110
- data/vendor/test/cases/if.selectors.css +0 -16
- data/vendor/test/cases/if.selectors.styl +0 -22
- data/vendor/test/cases/if.styl +0 -99
- data/vendor/test/cases/import.basic/a.styl +0 -5
- data/vendor/test/cases/import.basic/b.styl +0 -5
- data/vendor/test/cases/import.basic/c.styl +0 -3
- data/vendor/test/cases/import.basic.css +0 -11
- data/vendor/test/cases/import.basic.styl +0 -4
- data/vendor/test/cases/import.complex/a.styl +0 -4
- data/vendor/test/cases/import.complex/c.styl +0 -2
- data/vendor/test/cases/import.complex/nested/b.styl +0 -4
- data/vendor/test/cases/import.complex.css +0 -9
- data/vendor/test/cases/import.complex.styl +0 -1
- data/vendor/test/cases/import.index/vendor/a.styl +0 -2
- data/vendor/test/cases/import.index/vendor/b.styl +0 -2
- data/vendor/test/cases/import.index/vendor/c.styl +0 -2
- data/vendor/test/cases/import.index/vendor/index.styl +0 -4
- data/vendor/test/cases/import.index.css +0 -9
- data/vendor/test/cases/import.index.styl +0 -2
- data/vendor/test/cases/import.literal.css +0 -2
- data/vendor/test/cases/import.literal.styl +0 -3
- data/vendor/test/cases/import.mixins.css +0 -7
- data/vendor/test/cases/import.mixins.styl +0 -9
- data/vendor/test/cases/import.ordering/five.styl +0 -2
- data/vendor/test/cases/import.ordering/four.styl +0 -4
- data/vendor/test/cases/import.ordering/two.styl +0 -2
- data/vendor/test/cases/import.ordering.css +0 -15
- data/vendor/test/cases/import.ordering.styl +0 -12
- data/vendor/test/cases/important.css +0 -6
- data/vendor/test/cases/important.styl +0 -6
- data/vendor/test/cases/interpolation.properties.css +0 -40
- data/vendor/test/cases/interpolation.properties.styl +0 -56
- data/vendor/test/cases/introspection.css +0 -7
- data/vendor/test/cases/introspection.styl +0 -14
- data/vendor/test/cases/jquery.css +0 -3
- data/vendor/test/cases/jquery.styl +0 -5
- data/vendor/test/cases/keyframes.css +0 -9
- data/vendor/test/cases/keyframes.fabrication.css +0 -18
- data/vendor/test/cases/keyframes.fabrication.defaults.css +0 -45
- data/vendor/test/cases/keyframes.fabrication.defaults.styl +0 -9
- data/vendor/test/cases/keyframes.fabrication.styl +0 -11
- data/vendor/test/cases/keyframes.newlines.css +0 -45
- data/vendor/test/cases/keyframes.newlines.styl +0 -7
- data/vendor/test/cases/keyframes.styl +0 -6
- data/vendor/test/cases/kwargs.css +0 -63
- data/vendor/test/cases/kwargs.styl +0 -74
- data/vendor/test/cases/list.css +0 -3
- data/vendor/test/cases/list.styl +0 -3
- data/vendor/test/cases/literal.color.css +0 -10
- data/vendor/test/cases/literal.color.styl +0 -9
- data/vendor/test/cases/literal.css +0 -10
- data/vendor/test/cases/literal.styl +0 -18
- data/vendor/test/cases/media.css +0 -14
- data/vendor/test/cases/media.styl +0 -11
- data/vendor/test/cases/mixin.conditional.css +0 -19
- data/vendor/test/cases/mixin.conditional.styl +0 -36
- data/vendor/test/cases/mixin.order.conditional.css +0 -11
- data/vendor/test/cases/mixin.order.conditional.styl +0 -20
- data/vendor/test/cases/mixin.order.css +0 -9
- data/vendor/test/cases/mixin.order.nested.css +0 -9
- data/vendor/test/cases/mixin.order.nested.styl +0 -21
- data/vendor/test/cases/mixin.order.styl +0 -20
- data/vendor/test/cases/mixins/box.styl +0 -11
- data/vendor/test/cases/mixins.complex.css +0 -30
- data/vendor/test/cases/mixins.complex.fix-to.css +0 -15
- data/vendor/test/cases/mixins.complex.fix-to.styl +0 -28
- data/vendor/test/cases/mixins.complex.styl +0 -41
- data/vendor/test/cases/mixins.conditional.css +0 -3
- data/vendor/test/cases/mixins.conditional.styl +0 -8
- data/vendor/test/cases/mixins.nested.css +0 -7
- data/vendor/test/cases/mixins.nested.selectors.css +0 -21
- data/vendor/test/cases/mixins.nested.selectors.styl +0 -31
- data/vendor/test/cases/mixins.nested.styl +0 -14
- data/vendor/test/cases/mixins.order.2.css +0 -11
- data/vendor/test/cases/mixins.order.2.styl +0 -16
- data/vendor/test/cases/mixins.reset.css +0 -75
- data/vendor/test/cases/mixins.reset.styl +0 -27
- data/vendor/test/cases/mixins.return.css +0 -4
- data/vendor/test/cases/mixins.return.styl +0 -8
- data/vendor/test/cases/mixins.root.css +0 -3
- data/vendor/test/cases/mixins.root.styl +0 -5
- data/vendor/test/cases/operator.range.css +0 -15
- data/vendor/test/cases/operator.range.styl +0 -23
- data/vendor/test/cases/operators.assignment.function.css +0 -15
- data/vendor/test/cases/operators.assignment.function.styl +0 -34
- data/vendor/test/cases/operators.assignment.mixin.css +0 -15
- data/vendor/test/cases/operators.assignment.mixin.styl +0 -39
- data/vendor/test/cases/operators.assignment.root.css +0 -25
- data/vendor/test/cases/operators.assignment.root.styl +0 -55
- data/vendor/test/cases/operators.complex.css +0 -9
- data/vendor/test/cases/operators.complex.styl +0 -32
- data/vendor/test/cases/operators.css +0 -40
- data/vendor/test/cases/operators.equality.css +0 -55
- data/vendor/test/cases/operators.equality.styl +0 -55
- data/vendor/test/cases/operators.in.css +0 -37
- data/vendor/test/cases/operators.in.styl +0 -51
- data/vendor/test/cases/operators.mixins.css +0 -10
- data/vendor/test/cases/operators.mixins.styl +0 -25
- data/vendor/test/cases/operators.precedence.css +0 -51
- data/vendor/test/cases/operators.precedence.styl +0 -82
- data/vendor/test/cases/operators.styl +0 -96
- data/vendor/test/cases/operators.subscript.assign.css +0 -21
- data/vendor/test/cases/operators.subscript.assign.styl +0 -45
- data/vendor/test/cases/operators.subscript.css +0 -59
- data/vendor/test/cases/operators.subscript.range.css +0 -14
- data/vendor/test/cases/operators.subscript.range.styl +0 -15
- data/vendor/test/cases/operators.subscript.styl +0 -81
- data/vendor/test/cases/page.css +0 -16
- data/vendor/test/cases/page.styl +0 -17
- data/vendor/test/cases/parent.css +0 -32
- data/vendor/test/cases/parent.styl +0 -33
- data/vendor/test/cases/properties.colons.css +0 -8
- data/vendor/test/cases/properties.colons.styl +0 -10
- data/vendor/test/cases/properties.css +0 -4
- data/vendor/test/cases/properties.one-line.css +0 -10
- data/vendor/test/cases/properties.one-line.styl +0 -11
- data/vendor/test/cases/properties.styl +0 -4
- data/vendor/test/cases/property-access.bubble.css +0 -38
- data/vendor/test/cases/property-access.bubble.styl +0 -46
- data/vendor/test/cases/property-access.css +0 -48
- data/vendor/test/cases/property-access.siblings.css +0 -19
- data/vendor/test/cases/property-access.siblings.styl +0 -20
- data/vendor/test/cases/property-access.styl +0 -62
- data/vendor/test/cases/regression.107.lookup-failure.css +0 -12
- data/vendor/test/cases/regression.107.lookup-failure.styl +0 -13
- data/vendor/test/cases/regression.127.css +0 -3
- data/vendor/test/cases/regression.127.styl +0 -2
- data/vendor/test/cases/regression.130.css +0 -16
- data/vendor/test/cases/regression.130.styl +0 -6
- data/vendor/test/cases/regression.131.css +0 -7
- data/vendor/test/cases/regression.131.styl +0 -2
- data/vendor/test/cases/regression.137.css +0 -7
- data/vendor/test/cases/regression.137.styl +0 -7
- data/vendor/test/cases/regression.139.css +0 -5
- data/vendor/test/cases/regression.139.styl +0 -21
- data/vendor/test/cases/regression.142.css +0 -39
- data/vendor/test/cases/regression.142.styl +0 -54
- data/vendor/test/cases/regression.146.css +0 -30
- data/vendor/test/cases/regression.146.styl +0 -31
- data/vendor/test/cases/regression.153.css +0 -8
- data/vendor/test/cases/regression.153.styl +0 -9
- data/vendor/test/cases/regression.154.css +0 -8
- data/vendor/test/cases/regression.154.styl +0 -14
- data/vendor/test/cases/regression.156.css +0 -4
- data/vendor/test/cases/regression.156.styl +0 -6
- data/vendor/test/cases/regression.212.css +0 -15
- data/vendor/test/cases/regression.212.styl +0 -14
- data/vendor/test/cases/regression.216.css +0 -10
- data/vendor/test/cases/regression.216.styl +0 -8
- data/vendor/test/cases/regression.220.css +0 -5
- data/vendor/test/cases/regression.220.styl +0 -5
- data/vendor/test/cases/regression.229.css +0 -12
- data/vendor/test/cases/regression.229.styl +0 -9
- data/vendor/test/cases/regression.233.css +0 -6
- data/vendor/test/cases/regression.233.styl +0 -7
- data/vendor/test/cases/regression.235.css +0 -11
- data/vendor/test/cases/regression.235.styl +0 -13
- data/vendor/test/cases/regression.243.css +0 -3
- data/vendor/test/cases/regression.243.styl +0 -4
- data/vendor/test/cases/regression.244.css +0 -3
- data/vendor/test/cases/regression.244.styl +0 -3
- data/vendor/test/cases/regression.247.css +0 -6
- data/vendor/test/cases/regression.247.styl +0 -6
- data/vendor/test/cases/regression.248.compressed.css +0 -4
- data/vendor/test/cases/regression.248.compressed.styl +0 -10
- data/vendor/test/cases/regression.252.css +0 -13
- data/vendor/test/cases/regression.252.styl +0 -13
- data/vendor/test/cases/regression.260.css +0 -6
- data/vendor/test/cases/regression.260.styl +0 -6
- data/vendor/test/cases/regression.267.css +0 -3
- data/vendor/test/cases/regression.267.styl +0 -3
- data/vendor/test/cases/regression.270.css +0 -5
- data/vendor/test/cases/regression.270.styl +0 -7
- data/vendor/test/cases/regression.272.css +0 -11
- data/vendor/test/cases/regression.272.styl +0 -17
- data/vendor/test/cases/regression.274.css +0 -14
- data/vendor/test/cases/regression.274.styl +0 -16
- data/vendor/test/cases/regression.292.css +0 -3
- data/vendor/test/cases/regression.292.styl +0 -3
- data/vendor/test/cases/regression.360.css +0 -19
- data/vendor/test/cases/regression.360.styl +0 -1
- data/vendor/test/cases/regression.368.css +0 -4
- data/vendor/test/cases/regression.368.styl +0 -3
- data/vendor/test/cases/regression.379.css +0 -6
- data/vendor/test/cases/regression.379.styl +0 -10
- data/vendor/test/cases/regression.380.css +0 -8
- data/vendor/test/cases/regression.380.styl +0 -14
- data/vendor/test/cases/regression.388.css +0 -2
- data/vendor/test/cases/regression.388.styl +0 -6
- data/vendor/test/cases/regression.415.css +0 -5
- data/vendor/test/cases/regression.415.styl +0 -3
- data/vendor/test/cases/regression.420.css +0 -21
- data/vendor/test/cases/regression.420.styl +0 -29
- data/vendor/test/cases/regression.432.css +0 -5
- data/vendor/test/cases/regression.432.styl +0 -4
- data/vendor/test/cases/regression.440.css +0 -5
- data/vendor/test/cases/regression.440.styl +0 -7
- data/vendor/test/cases/regression.449.css +0 -9
- data/vendor/test/cases/regression.449.styl +0 -10
- data/vendor/test/cases/regression.458.css +0 -3
- data/vendor/test/cases/regression.458.styl +0 -3
- data/vendor/test/cases/regression.460.css +0 -13
- data/vendor/test/cases/regression.460.styl +0 -18
- data/vendor/test/cases/regression.469.css +0 -4
- data/vendor/test/cases/regression.469.styl +0 -6
- data/vendor/test/cases/regression.472.css +0 -10
- data/vendor/test/cases/regression.472.styl +0 -23
- data/vendor/test/cases/regression.475.css +0 -6
- data/vendor/test/cases/regression.475.styl +0 -7
- data/vendor/test/cases/regression.480.css +0 -9
- data/vendor/test/cases/regression.480.styl +0 -12
- data/vendor/test/cases/regression.484.css +0 -9
- data/vendor/test/cases/regression.484.styl +0 -8
- data/vendor/test/cases/regression.498.css +0 -8
- data/vendor/test/cases/regression.498.styl +0 -11
- data/vendor/test/cases/regression.499.css +0 -14
- data/vendor/test/cases/regression.499.styl +0 -20
- data/vendor/test/cases/regression.503.css +0 -65
- data/vendor/test/cases/regression.503.styl +0 -7
- data/vendor/test/cases/regression.504.css +0 -65
- data/vendor/test/cases/regression.504.styl +0 -12
- data/vendor/test/cases/regression.524.css +0 -4
- data/vendor/test/cases/regression.524.styl +0 -7
- data/vendor/test/cases/regression.535.css +0 -3
- data/vendor/test/cases/regression.535.styl +0 -9
- data/vendor/test/cases/regression.536.css +0 -3
- data/vendor/test/cases/regression.536.styl +0 -5
- data/vendor/test/cases/reset.css +0 -70
- data/vendor/test/cases/reset.styl +0 -16
- data/vendor/test/cases/rule.charset.css +0 -1
- data/vendor/test/cases/rule.charset.styl +0 -2
- data/vendor/test/cases/rulset.css +0 -4
- data/vendor/test/cases/rulset.newline.css +0 -5
- data/vendor/test/cases/rulset.newline.styl +0 -5
- data/vendor/test/cases/rulset.styl +0 -3
- data/vendor/test/cases/scope.complex.css +0 -10
- data/vendor/test/cases/scope.complex.styl +0 -16
- data/vendor/test/cases/scope.css +0 -5
- data/vendor/test/cases/scope.nested.css +0 -9
- data/vendor/test/cases/scope.nested.styl +0 -10
- data/vendor/test/cases/scope.styl +0 -12
- data/vendor/test/cases/selector.interpolation.css +0 -57
- data/vendor/test/cases/selector.interpolation.styl +0 -45
- data/vendor/test/cases/selectors.complex.css +0 -28
- data/vendor/test/cases/selectors.complex.styl +0 -27
- data/vendor/test/cases/selectors.css +0 -50
- data/vendor/test/cases/selectors.nested.comma.css +0 -9
- data/vendor/test/cases/selectors.nested.comma.styl +0 -8
- data/vendor/test/cases/selectors.nested.css +0 -34
- data/vendor/test/cases/selectors.nested.styl +0 -33
- data/vendor/test/cases/selectors.pseudo.css +0 -27
- data/vendor/test/cases/selectors.pseudo.elements.css +0 -26
- data/vendor/test/cases/selectors.pseudo.elements.styl +0 -29
- data/vendor/test/cases/selectors.pseudo.styl +0 -24
- data/vendor/test/cases/selectors.styl +0 -46
- data/vendor/test/cases/self-assignment.css +0 -3
- data/vendor/test/cases/self-assignment.styl +0 -4
- data/vendor/test/cases/vargs.call.css +0 -24
- data/vendor/test/cases/vargs.call.styl +0 -40
- data/vendor/test/cases/vargs.css +0 -30
- data/vendor/test/cases/vargs.styl +0 -49
- data/vendor/test/cases/variable.css +0 -3
- data/vendor/test/cases/variable.styl +0 -4
- data/vendor/test/cases/variables.css +0 -12
- data/vendor/test/cases/variables.styl +0 -17
- data/vendor/test/images/gif +0 -0
- data/vendor/test/images/squirrel.jpeg +0 -0
- data/vendor/test/images/tux.png +0 -0
- data/vendor/test/run.js +0 -169
@@ -1,718 +0,0 @@
|
|
1
|
-
module("parse");
|
2
|
-
|
3
|
-
var TESTS = [
|
4
|
-
{
|
5
|
-
input: "/* fuuuu */",
|
6
|
-
result: {
|
7
|
-
cssRules: []
|
8
|
-
}
|
9
|
-
},
|
10
|
-
{
|
11
|
-
input: "/**/",
|
12
|
-
result: {
|
13
|
-
cssRules: []
|
14
|
-
}
|
15
|
-
},
|
16
|
-
{
|
17
|
-
input: "/*a {content: '* {color:#000}'}*/",
|
18
|
-
result: {
|
19
|
-
cssRules: []
|
20
|
-
}
|
21
|
-
},
|
22
|
-
{
|
23
|
-
input: "a {color: red}",
|
24
|
-
result: (function() {
|
25
|
-
var result = {
|
26
|
-
cssRules: [
|
27
|
-
{
|
28
|
-
selectorText: "a",
|
29
|
-
style: {
|
30
|
-
0: "color",
|
31
|
-
color: "red",
|
32
|
-
__starts: 2,
|
33
|
-
length: 1
|
34
|
-
},
|
35
|
-
__starts: 0,
|
36
|
-
__ends: 14
|
37
|
-
}
|
38
|
-
]
|
39
|
-
};
|
40
|
-
result.cssRules[0].parentRule = result;
|
41
|
-
return result;
|
42
|
-
})()
|
43
|
-
},
|
44
|
-
{
|
45
|
-
input: ".left {float: left;}",
|
46
|
-
result: (function() {
|
47
|
-
var result = {
|
48
|
-
cssRules: [
|
49
|
-
{
|
50
|
-
selectorText: ".left",
|
51
|
-
style: {
|
52
|
-
0: "float",
|
53
|
-
'float': "left",
|
54
|
-
__starts: 6,
|
55
|
-
length: 1
|
56
|
-
},
|
57
|
-
__starts: 0,
|
58
|
-
__ends: 20
|
59
|
-
}
|
60
|
-
]
|
61
|
-
};
|
62
|
-
result.cssRules[0].parentRule = result;
|
63
|
-
return result;
|
64
|
-
})()
|
65
|
-
},
|
66
|
-
{
|
67
|
-
input: "h1 {font-family: 'Times New Roman', Helvetica Neue, sans-serif }",
|
68
|
-
result: (function() {
|
69
|
-
var result = {
|
70
|
-
cssRules: [
|
71
|
-
{
|
72
|
-
selectorText: "h1",
|
73
|
-
style: {
|
74
|
-
0: "font-family",
|
75
|
-
"font-family": "'Times New Roman', Helvetica Neue, sans-serif",
|
76
|
-
__starts: 3,
|
77
|
-
length: 1
|
78
|
-
},
|
79
|
-
__starts: 0,
|
80
|
-
__ends: 64
|
81
|
-
}
|
82
|
-
]
|
83
|
-
};
|
84
|
-
result.cssRules[0].parentRule = result;
|
85
|
-
return result;
|
86
|
-
})()
|
87
|
-
},
|
88
|
-
{
|
89
|
-
input: "h2 {font: normal\n1.6em\r\nTimes New Roman,\tserif ;}",
|
90
|
-
result: (function() {
|
91
|
-
var result = {
|
92
|
-
cssRules: [
|
93
|
-
{
|
94
|
-
selectorText: "h2",
|
95
|
-
style: {
|
96
|
-
0: "font",
|
97
|
-
font: "normal\n1.6em\r\nTimes New Roman,\tserif",
|
98
|
-
__starts: 3,
|
99
|
-
length: 1
|
100
|
-
},
|
101
|
-
__starts: 0,
|
102
|
-
__ends: 50
|
103
|
-
}
|
104
|
-
]
|
105
|
-
};
|
106
|
-
result.cssRules[0].parentRule = result;
|
107
|
-
return result;
|
108
|
-
})()
|
109
|
-
},
|
110
|
-
{
|
111
|
-
input: "h3 {font-family: 'times new roman'} ",
|
112
|
-
result: (function() {
|
113
|
-
var result = {
|
114
|
-
cssRules: [
|
115
|
-
{
|
116
|
-
selectorText: "h3",
|
117
|
-
style: {
|
118
|
-
0: "font-family",
|
119
|
-
'font-family': "'times new roman'",
|
120
|
-
__starts: 3,
|
121
|
-
length: 1
|
122
|
-
},
|
123
|
-
__starts: 0,
|
124
|
-
__ends: 35
|
125
|
-
}
|
126
|
-
]
|
127
|
-
};
|
128
|
-
result.cssRules[0].parentRule = result;
|
129
|
-
return result;
|
130
|
-
})()
|
131
|
-
},
|
132
|
-
{
|
133
|
-
input: ".icon>*{background-image: url(../images/ramona_strong.gif);}",
|
134
|
-
result: (function() {
|
135
|
-
var result = {
|
136
|
-
cssRules: [
|
137
|
-
{
|
138
|
-
selectorText: ".icon>*",
|
139
|
-
style: {
|
140
|
-
0: "background-image",
|
141
|
-
"background-image": "url(../images/ramona_strong.gif)",
|
142
|
-
__starts: 7,
|
143
|
-
length: 1
|
144
|
-
},
|
145
|
-
__starts: 0,
|
146
|
-
__ends: 60
|
147
|
-
}
|
148
|
-
]
|
149
|
-
};
|
150
|
-
result.cssRules[0].parentRule = result;
|
151
|
-
return result;
|
152
|
-
})()
|
153
|
-
},
|
154
|
-
{
|
155
|
-
input: "*/**/{}",
|
156
|
-
result: (function() {
|
157
|
-
var result = {
|
158
|
-
cssRules: [
|
159
|
-
{
|
160
|
-
selectorText: "*",
|
161
|
-
style: {
|
162
|
-
__starts: 5,
|
163
|
-
length: 0
|
164
|
-
},
|
165
|
-
__starts: 0,
|
166
|
-
__ends: 7
|
167
|
-
}
|
168
|
-
]
|
169
|
-
};
|
170
|
-
result.cssRules[0].parentRule = result;
|
171
|
-
return result;
|
172
|
-
})()
|
173
|
-
},
|
174
|
-
{
|
175
|
-
input: "/**/*{}",
|
176
|
-
result: (function() {
|
177
|
-
var result = {
|
178
|
-
cssRules: [
|
179
|
-
{
|
180
|
-
selectorText: "*",
|
181
|
-
style: {
|
182
|
-
__starts: 5,
|
183
|
-
length: 0
|
184
|
-
},
|
185
|
-
__starts: 4,
|
186
|
-
__ends: 7
|
187
|
-
}
|
188
|
-
]
|
189
|
-
};
|
190
|
-
result.cssRules[0].parentRule = result;
|
191
|
-
return result;
|
192
|
-
})()
|
193
|
-
},
|
194
|
-
{
|
195
|
-
input: "* /**/*{}",
|
196
|
-
result: (function() {
|
197
|
-
var result = {
|
198
|
-
cssRules: [
|
199
|
-
{
|
200
|
-
selectorText: "* *",
|
201
|
-
style: {
|
202
|
-
__starts: 7,
|
203
|
-
length: 0
|
204
|
-
},
|
205
|
-
__starts: 0,
|
206
|
-
__ends: 9
|
207
|
-
}
|
208
|
-
]
|
209
|
-
};
|
210
|
-
result.cssRules[0].parentRule = result;
|
211
|
-
return result;
|
212
|
-
})()
|
213
|
-
},
|
214
|
-
{
|
215
|
-
input: "*/*/*/ *{}",
|
216
|
-
result: (function() {
|
217
|
-
var result = {
|
218
|
-
cssRules: [
|
219
|
-
{
|
220
|
-
selectorText: "* *",
|
221
|
-
style: {
|
222
|
-
__starts: 8,
|
223
|
-
length: 0
|
224
|
-
},
|
225
|
-
__starts: 0,
|
226
|
-
__ends: 10
|
227
|
-
}
|
228
|
-
]
|
229
|
-
};
|
230
|
-
result.cssRules[0].parentRule = result;
|
231
|
-
return result;
|
232
|
-
})()
|
233
|
-
},
|
234
|
-
{
|
235
|
-
input: "#a {b:c;}\n#d {e:f}",
|
236
|
-
result: (function() {
|
237
|
-
var result = {
|
238
|
-
cssRules: [
|
239
|
-
{
|
240
|
-
selectorText: "#a",
|
241
|
-
style: {
|
242
|
-
0: "b",
|
243
|
-
b: "c",
|
244
|
-
__starts: 3,
|
245
|
-
length: 1
|
246
|
-
},
|
247
|
-
__starts: 0,
|
248
|
-
__ends: 9
|
249
|
-
}, {
|
250
|
-
selectorText: "#d",
|
251
|
-
style: {
|
252
|
-
0: "e",
|
253
|
-
e: "f",
|
254
|
-
__starts: 13,
|
255
|
-
length: 1
|
256
|
-
},
|
257
|
-
__starts: 10,
|
258
|
-
__ends: 18
|
259
|
-
}
|
260
|
-
]
|
261
|
-
};
|
262
|
-
result.cssRules[0].parentRule = result;
|
263
|
-
result.cssRules[1].parentRule = result;
|
264
|
-
return result;
|
265
|
-
})()
|
266
|
-
},
|
267
|
-
{
|
268
|
-
input: "* { border: none } \n#foo {font-size: 12px; background:#fff;}",
|
269
|
-
result: (function() {
|
270
|
-
var result = {
|
271
|
-
cssRules: [
|
272
|
-
{
|
273
|
-
selectorText: "*",
|
274
|
-
style: {
|
275
|
-
0: "border",
|
276
|
-
border: "none",
|
277
|
-
__starts: 2,
|
278
|
-
length: 1
|
279
|
-
},
|
280
|
-
__starts: 0,
|
281
|
-
__ends: 18
|
282
|
-
},
|
283
|
-
{
|
284
|
-
selectorText: "#foo",
|
285
|
-
style: {
|
286
|
-
0: "font-size",
|
287
|
-
"font-size": "12px",
|
288
|
-
1: "background",
|
289
|
-
background: "#fff",
|
290
|
-
__starts: 25,
|
291
|
-
length: 2
|
292
|
-
},
|
293
|
-
__starts: 20,
|
294
|
-
__ends: 60
|
295
|
-
}
|
296
|
-
]
|
297
|
-
};
|
298
|
-
result.cssRules[0].parentRule = result;
|
299
|
-
result.cssRules[1].parentRule = result;
|
300
|
-
return result;
|
301
|
-
})()
|
302
|
-
},
|
303
|
-
{
|
304
|
-
input: "span {display: inline-block !important; vertical-align: middle !important} .error{color:red!important;}",
|
305
|
-
result: (function() {
|
306
|
-
var result = {
|
307
|
-
cssRules: [
|
308
|
-
{
|
309
|
-
selectorText: "span",
|
310
|
-
style: {
|
311
|
-
0: "display",
|
312
|
-
1: "vertical-align",
|
313
|
-
display: "inline-block",
|
314
|
-
"vertical-align": "middle",
|
315
|
-
__starts: 5,
|
316
|
-
length: 2
|
317
|
-
},
|
318
|
-
__starts: 0,
|
319
|
-
__ends: 74
|
320
|
-
},
|
321
|
-
{
|
322
|
-
selectorText: ".error",
|
323
|
-
style: {
|
324
|
-
0: "color",
|
325
|
-
color: "red",
|
326
|
-
__starts: 81,
|
327
|
-
length: 1
|
328
|
-
},
|
329
|
-
__starts: 75,
|
330
|
-
__ends: 103
|
331
|
-
}
|
332
|
-
]
|
333
|
-
};
|
334
|
-
result.cssRules[0].parentRule = result;
|
335
|
-
result.cssRules[1].parentRule = result;
|
336
|
-
return result;
|
337
|
-
})()
|
338
|
-
},
|
339
|
-
{
|
340
|
-
input: 'img:not(/*)*/[src]){background:url(data:image/png;base64,FooBar)}',
|
341
|
-
result: (function() {
|
342
|
-
var result = {
|
343
|
-
cssRules: [
|
344
|
-
{
|
345
|
-
selectorText: 'img:not([src])',
|
346
|
-
style: {
|
347
|
-
0: 'background',
|
348
|
-
background: 'url(data:image/png;base64,FooBar)',
|
349
|
-
length: 1
|
350
|
-
}
|
351
|
-
}
|
352
|
-
]
|
353
|
-
};
|
354
|
-
result.cssRules[0].parentRule = result;
|
355
|
-
return result;
|
356
|
-
})()
|
357
|
-
},
|
358
|
-
{
|
359
|
-
input: ".gradient{background: -moz-linear-gradient(/*);*/top, #1E5799 0%, #7db9e8 100%)}",
|
360
|
-
result: (function() {
|
361
|
-
var result = {
|
362
|
-
cssRules: [
|
363
|
-
{
|
364
|
-
selectorText: '.gradient',
|
365
|
-
style: {
|
366
|
-
0: 'background',
|
367
|
-
background: '-moz-linear-gradient(top, #1E5799 0%, #7db9e8 100%)',
|
368
|
-
length: 1
|
369
|
-
}
|
370
|
-
}
|
371
|
-
]
|
372
|
-
};
|
373
|
-
result.cssRules[0].parentRule = result;
|
374
|
-
return result;
|
375
|
-
})()
|
376
|
-
},
|
377
|
-
{
|
378
|
-
input: "@media handheld, only screen and (max-device-width: 480px) {body{max-width:480px}}",
|
379
|
-
result: (function() {
|
380
|
-
var result = {
|
381
|
-
cssRules: [
|
382
|
-
{
|
383
|
-
media: {
|
384
|
-
0: "handheld",
|
385
|
-
1: "only screen and (max-device-width: 480px)",
|
386
|
-
length: 2
|
387
|
-
},
|
388
|
-
cssRules: [
|
389
|
-
{
|
390
|
-
selectorText: "body",
|
391
|
-
style: {
|
392
|
-
0: "max-width",
|
393
|
-
"max-width": "480px",
|
394
|
-
__starts: 64,
|
395
|
-
length: 1
|
396
|
-
},
|
397
|
-
__starts: 60,
|
398
|
-
__ends: 81
|
399
|
-
}
|
400
|
-
],
|
401
|
-
__starts: 0,
|
402
|
-
__ends: 82
|
403
|
-
}
|
404
|
-
]
|
405
|
-
};
|
406
|
-
result.cssRules[0].parentRule = result;
|
407
|
-
result.cssRules[0].cssRules[0].parentRule = result.cssRules[0];
|
408
|
-
return result;
|
409
|
-
})()
|
410
|
-
},
|
411
|
-
{
|
412
|
-
input: "@media screen, screen, screen {/* Match Firefox and Opera behavior here rather than WebKit. \nSane person shouldn't write like this anyway. */}",
|
413
|
-
result: (function() {
|
414
|
-
var result = {
|
415
|
-
cssRules: [
|
416
|
-
{
|
417
|
-
media: {
|
418
|
-
0: "screen",
|
419
|
-
1: "screen",
|
420
|
-
2: "screen",
|
421
|
-
length: 3
|
422
|
-
},
|
423
|
-
cssRules: [],
|
424
|
-
__starts: 0,
|
425
|
-
__ends: 142
|
426
|
-
}
|
427
|
-
]
|
428
|
-
};
|
429
|
-
result.cssRules[0].parentRule = result;
|
430
|
-
return result;
|
431
|
-
})()
|
432
|
-
},
|
433
|
-
{
|
434
|
-
input: "@media/**/print {*{background:#fff}}",
|
435
|
-
result: (function() {
|
436
|
-
var result = {
|
437
|
-
cssRules: [
|
438
|
-
{
|
439
|
-
media: {
|
440
|
-
0: "print",
|
441
|
-
length: 1
|
442
|
-
},
|
443
|
-
cssRules: [
|
444
|
-
{
|
445
|
-
selectorText: "*",
|
446
|
-
style: {
|
447
|
-
0: "background",
|
448
|
-
background: "#fff",
|
449
|
-
__starts: 18,
|
450
|
-
length: 1
|
451
|
-
},
|
452
|
-
__starts: 17,
|
453
|
-
__ends: 35
|
454
|
-
}
|
455
|
-
],
|
456
|
-
__starts: 0,
|
457
|
-
__ends: 36
|
458
|
-
}
|
459
|
-
]
|
460
|
-
};
|
461
|
-
result.cssRules[0].parentRule = result;
|
462
|
-
result.cssRules[0].cssRules[0].parentRule = result.cssRules[0];
|
463
|
-
return result;
|
464
|
-
})()
|
465
|
-
},
|
466
|
-
{
|
467
|
-
input: "a{}@media all{b{color:#000}}",
|
468
|
-
result: (function() {
|
469
|
-
var result = {
|
470
|
-
cssRules: [
|
471
|
-
{
|
472
|
-
selectorText: "a",
|
473
|
-
style: {
|
474
|
-
__starts: 1,
|
475
|
-
length: 0
|
476
|
-
},
|
477
|
-
__starts: 0,
|
478
|
-
__ends: 3
|
479
|
-
},
|
480
|
-
{
|
481
|
-
media: {
|
482
|
-
0: "all",
|
483
|
-
length: 1
|
484
|
-
},
|
485
|
-
cssRules: [
|
486
|
-
{
|
487
|
-
selectorText: "b",
|
488
|
-
style: {
|
489
|
-
0: "color",
|
490
|
-
color: "#000",
|
491
|
-
__starts: 15,
|
492
|
-
length: 1
|
493
|
-
},
|
494
|
-
__starts: 14,
|
495
|
-
__ends: 27
|
496
|
-
}
|
497
|
-
],
|
498
|
-
__starts: 3,
|
499
|
-
__ends: 28
|
500
|
-
}
|
501
|
-
]
|
502
|
-
};
|
503
|
-
result.cssRules[0].parentRule = result;
|
504
|
-
result.cssRules[1].parentRule = result;
|
505
|
-
result.cssRules[1].cssRules[0].parentRule = result.cssRules[1];
|
506
|
-
return result;
|
507
|
-
})()
|
508
|
-
},
|
509
|
-
{
|
510
|
-
input: "@mediaall {}",
|
511
|
-
result: {
|
512
|
-
cssRules: []
|
513
|
-
}
|
514
|
-
},
|
515
|
-
{
|
516
|
-
input: "some invalid junk @media projection {body{background:black}}",
|
517
|
-
result: (function() {
|
518
|
-
var result = {
|
519
|
-
cssRules: [
|
520
|
-
{
|
521
|
-
media: {
|
522
|
-
0: "projection",
|
523
|
-
length: 1
|
524
|
-
},
|
525
|
-
cssRules: [
|
526
|
-
{
|
527
|
-
selectorText: "body",
|
528
|
-
style: {
|
529
|
-
0: "background",
|
530
|
-
background: "black",
|
531
|
-
__starts: 41,
|
532
|
-
length: 1
|
533
|
-
},
|
534
|
-
__starts: 37,
|
535
|
-
__ends: 59
|
536
|
-
}
|
537
|
-
],
|
538
|
-
__starts: 18,
|
539
|
-
__ends: 60
|
540
|
-
}
|
541
|
-
]
|
542
|
-
};
|
543
|
-
result.cssRules[0].parentRule = result;
|
544
|
-
result.cssRules[0].cssRules[0].parentRule = result.cssRules[0];
|
545
|
-
return result;
|
546
|
-
})()
|
547
|
-
},
|
548
|
-
{
|
549
|
-
input: '@import url(partial.css);\ni {font-style: italic}',
|
550
|
-
result: (function() {
|
551
|
-
var result = {
|
552
|
-
cssRules: [
|
553
|
-
{
|
554
|
-
href: 'partial.css',
|
555
|
-
media: {
|
556
|
-
length: 0
|
557
|
-
},
|
558
|
-
styleSheet: {
|
559
|
-
cssRules: []
|
560
|
-
}
|
561
|
-
},
|
562
|
-
{
|
563
|
-
selectorText: "i",
|
564
|
-
style: {
|
565
|
-
0: 'font-style',
|
566
|
-
'font-style': 'italic',
|
567
|
-
length: 1
|
568
|
-
}
|
569
|
-
}
|
570
|
-
]
|
571
|
-
};
|
572
|
-
result.cssRules[0].parentRule = result;
|
573
|
-
result.cssRules[1].parentRule = result;
|
574
|
-
return result;
|
575
|
-
})()
|
576
|
-
},
|
577
|
-
{
|
578
|
-
input: '@import "partial.css";\ni {font-style: italic}',
|
579
|
-
result: (function() {
|
580
|
-
var result = {
|
581
|
-
cssRules: [
|
582
|
-
{
|
583
|
-
href: 'partial.css',
|
584
|
-
media: {
|
585
|
-
length: 0
|
586
|
-
},
|
587
|
-
styleSheet: {
|
588
|
-
cssRules: []
|
589
|
-
}
|
590
|
-
},
|
591
|
-
{
|
592
|
-
selectorText: "i",
|
593
|
-
style: {
|
594
|
-
0: 'font-style',
|
595
|
-
'font-style': 'italic',
|
596
|
-
length: 1
|
597
|
-
}
|
598
|
-
}
|
599
|
-
]
|
600
|
-
};
|
601
|
-
result.cssRules[0].parentRule = result;
|
602
|
-
result.cssRules[1].parentRule = result;
|
603
|
-
return result;
|
604
|
-
})()
|
605
|
-
},
|
606
|
-
{
|
607
|
-
input: "@import 'partial.css';\ni {font-style: italic}",
|
608
|
-
result: (function() {
|
609
|
-
var result = {
|
610
|
-
cssRules: [
|
611
|
-
{
|
612
|
-
href: 'partial.css',
|
613
|
-
media: {
|
614
|
-
length: 0
|
615
|
-
},
|
616
|
-
styleSheet: {
|
617
|
-
cssRules: []
|
618
|
-
}
|
619
|
-
},
|
620
|
-
{
|
621
|
-
selectorText: "i",
|
622
|
-
style: {
|
623
|
-
0: 'font-style',
|
624
|
-
'font-style': 'italic',
|
625
|
-
length: 1
|
626
|
-
}
|
627
|
-
}
|
628
|
-
]
|
629
|
-
};
|
630
|
-
result.cssRules[0].parentRule = result;
|
631
|
-
result.cssRules[1].parentRule = result;
|
632
|
-
return result;
|
633
|
-
})()
|
634
|
-
},
|
635
|
-
{
|
636
|
-
input: "@-webkit-keyframes mymove {\nfrom {top:0px}\nto {top:200px}\n}",
|
637
|
-
result: (function() {
|
638
|
-
var result = {
|
639
|
-
cssRules: [
|
640
|
-
{
|
641
|
-
name: "mymove",
|
642
|
-
cssRules: [
|
643
|
-
{
|
644
|
-
keyText: "from",
|
645
|
-
style: {
|
646
|
-
0: "top",
|
647
|
-
top: "0px",
|
648
|
-
length: 1
|
649
|
-
}
|
650
|
-
},
|
651
|
-
{
|
652
|
-
keyText: "to",
|
653
|
-
style: {
|
654
|
-
0: "top",
|
655
|
-
top: "200px",
|
656
|
-
length: 1
|
657
|
-
}
|
658
|
-
}
|
659
|
-
]
|
660
|
-
}
|
661
|
-
]
|
662
|
-
};
|
663
|
-
result.cssRules[0].parentRule = result;
|
664
|
-
result.cssRules[0].cssRules[0].parentRule = result.cssRules[0];
|
665
|
-
result.cssRules[0].cssRules[1].parentRule = result.cssRules[0];
|
666
|
-
return result;
|
667
|
-
})()
|
668
|
-
},
|
669
|
-
{
|
670
|
-
input: "@-webkit-keyframes mymovepercent {\n0% {top:0px;}\n50% {top:200px;}\n100% {top:300px;}}",
|
671
|
-
result: (function() {
|
672
|
-
var result = {
|
673
|
-
cssRules: [
|
674
|
-
{
|
675
|
-
name: "mymovepercent",
|
676
|
-
cssRules: [
|
677
|
-
{
|
678
|
-
keyText: "0%",
|
679
|
-
style: {
|
680
|
-
0: "top",
|
681
|
-
top: "0px",
|
682
|
-
length: 1
|
683
|
-
}
|
684
|
-
},
|
685
|
-
{
|
686
|
-
keyText: "50%",
|
687
|
-
style: {
|
688
|
-
0: "top",
|
689
|
-
top: "200px",
|
690
|
-
length: 1
|
691
|
-
}
|
692
|
-
},
|
693
|
-
{
|
694
|
-
keyText: "100%",
|
695
|
-
style: {
|
696
|
-
0: "top",
|
697
|
-
top: "300px",
|
698
|
-
length: 1
|
699
|
-
}
|
700
|
-
}
|
701
|
-
]
|
702
|
-
}
|
703
|
-
]
|
704
|
-
};
|
705
|
-
result.cssRules[0].parentRule = result;
|
706
|
-
result.cssRules[0].cssRules[0].parentRule = result.cssRules[0];
|
707
|
-
result.cssRules[0].cssRules[1].parentRule = result.cssRules[0];
|
708
|
-
result.cssRules[0].cssRules[2].parentRule = result.cssRules[0];
|
709
|
-
return result;
|
710
|
-
})()
|
711
|
-
}
|
712
|
-
];
|
713
|
-
|
714
|
-
|
715
|
-
// Run tests.
|
716
|
-
for (var i=0; i<TESTS.length; i++) {
|
717
|
-
compare(TESTS[i].input, TESTS[i].result, TESTS[i].name);
|
718
|
-
}
|