less 2.4.0 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.md +4 -0
- data/Gemfile +1 -1
- data/less.gemspec +1 -1
- data/lib/less/defaults.rb +3 -3
- data/lib/less/java_script/v8_context.rb +1 -1
- data/lib/less/js/.gitattributes +3 -2
- data/lib/less/js/.gitignore +18 -2
- data/lib/less/js/.jshintrc +11 -0
- data/lib/less/js/CHANGELOG.md +87 -2
- data/lib/less/js/CONTRIBUTING.md +4 -3
- data/lib/less/js/Gruntfile.js +290 -0
- data/lib/less/js/README.md +342 -12
- data/lib/less/js/benchmark/benchmark.less +194 -194
- data/lib/less/js/benchmark/less-benchmark.js +9 -10
- data/lib/less/js/bin/lessc +154 -12
- data/lib/less/js/bower.json +18 -0
- data/lib/less/js/build.gradle +347 -0
- data/lib/less/js/build/README.md +350 -0
- data/lib/less/js/build/browser-header.js +4 -0
- data/lib/less/js/build/build.yml +160 -0
- data/lib/less/js/build/require-rhino.js +7 -2
- data/lib/less/js/build/rhino-header.js +4 -0
- data/lib/less/js/build/rhino-modules.js +131 -0
- data/lib/less/js/build/tasks/.gitkeep +1 -0
- data/lib/less/js/dist/less-1.5.0.js +6914 -0
- data/lib/less/js/dist/less-1.5.0.min.js +13 -0
- data/lib/less/js/dist/less-1.5.1.js +6941 -0
- data/lib/less/js/dist/less-1.5.1.min.js +13 -0
- data/lib/less/js/dist/less-1.6.0.js +7485 -0
- data/lib/less/js/dist/less-1.6.0.min.js +16 -0
- data/lib/less/js/dist/less-1.6.1.js +7513 -0
- data/lib/less/js/dist/less-1.6.1.min.js +16 -0
- data/lib/less/js/dist/less-1.6.2.js +7624 -0
- data/lib/less/js/dist/less-1.6.2.min.js +16 -0
- data/lib/less/js/dist/less-rhino-1.5.1.js +6831 -0
- data/lib/less/js/dist/less-rhino-1.6.2.js +9017 -0
- data/lib/less/js/dist/lessc-rhino-1.6.2.js +449 -0
- data/lib/less/js/gradle/wrapper/gradle-wrapper.jar +0 -0
- data/lib/less/js/gradle/wrapper/gradle-wrapper.properties +6 -0
- data/lib/less/js/gradlew +164 -0
- data/lib/less/js/gradlew.bat +90 -0
- data/lib/less/js/lib/less/browser.js +482 -367
- data/lib/less/js/lib/less/colors.js +0 -1
- data/lib/less/js/lib/less/encoder.js +4 -0
- data/lib/less/js/lib/less/env.js +50 -19
- data/lib/less/js/lib/less/extend-visitor.js +66 -41
- data/lib/less/js/lib/less/functions.js +309 -104
- data/lib/less/js/lib/less/import-visitor.js +21 -10
- data/lib/less/js/lib/less/index.js +90 -68
- data/lib/less/js/lib/less/join-selector-visitor.js +11 -4
- data/lib/less/js/lib/less/lessc_helper.js +56 -45
- data/lib/less/js/lib/less/parser.js +830 -460
- data/lib/less/js/lib/less/rhino.js +380 -58
- data/lib/less/js/lib/less/source-map-output.js +141 -0
- data/lib/less/js/lib/less/to-css-visitor.js +215 -0
- data/lib/less/js/lib/less/tree.js +57 -5
- data/lib/less/js/lib/less/tree/alpha.js +13 -5
- data/lib/less/js/lib/less/tree/anonymous.js +11 -5
- data/lib/less/js/lib/less/tree/assignment.js +11 -5
- data/lib/less/js/lib/less/tree/call.js +19 -8
- data/lib/less/js/lib/less/tree/color.js +59 -36
- data/lib/less/js/lib/less/tree/comment.js +17 -4
- data/lib/less/js/lib/less/tree/condition.js +3 -3
- data/lib/less/js/lib/less/tree/dimension.js +161 -153
- data/lib/less/js/lib/less/tree/directive.js +39 -18
- data/lib/less/js/lib/less/tree/element.js +41 -18
- data/lib/less/js/lib/less/tree/expression.js +11 -5
- data/lib/less/js/lib/less/tree/extend.js +11 -1
- data/lib/less/js/lib/less/tree/import.js +34 -20
- data/lib/less/js/lib/less/tree/javascript.js +16 -10
- data/lib/less/js/lib/less/tree/keyword.js +5 -2
- data/lib/less/js/lib/less/tree/media.js +39 -22
- data/lib/less/js/lib/less/tree/mixin.js +135 -56
- data/lib/less/js/lib/less/tree/negative.js +4 -2
- data/lib/less/js/lib/less/tree/operation.js +17 -12
- data/lib/less/js/lib/less/tree/paren.js +5 -2
- data/lib/less/js/lib/less/tree/quoted.js +9 -6
- data/lib/less/js/lib/less/tree/rule.js +39 -21
- data/lib/less/js/lib/less/tree/ruleset.js +229 -145
- data/lib/less/js/lib/less/tree/selector.js +101 -34
- data/lib/less/js/lib/less/tree/unicode-descriptor.js +4 -3
- data/lib/less/js/lib/less/tree/url.js +33 -11
- data/lib/less/js/lib/less/tree/value.js +13 -6
- data/lib/less/js/lib/less/tree/variable.js +13 -8
- data/lib/less/js/lib/less/visitor.js +117 -25
- data/lib/less/js/lib/source-map/source-map-0.1.31.js +1933 -0
- data/lib/less/js/lib/source-map/source-map-footer.js +4 -0
- data/lib/less/js/lib/source-map/source-map-header.js +3 -0
- data/lib/less/js/package.json +30 -15
- data/lib/less/js/test/browser/common.js +131 -56
- data/lib/less/js/test/browser/css/global-vars/simple.css +3 -0
- data/lib/less/js/test/browser/css/modify-vars/simple.css +8 -0
- data/lib/less/js/test/browser/css/relative-urls/urls.css +8 -9
- data/lib/less/js/test/browser/css/rootpath-relative/urls.css +0 -1
- data/lib/less/js/test/browser/css/rootpath/urls.css +0 -1
- data/lib/less/js/test/browser/css/urls.css +18 -14
- data/lib/less/js/test/browser/es5.js +27 -0
- data/lib/less/js/test/{less/errors/color-operation-error.less → browser/less/console-errors/test-error.less} +0 -0
- data/lib/less/js/test/browser/less/console-errors/test-error.txt +2 -0
- data/lib/less/js/test/browser/less/global-vars/simple.less +3 -0
- data/lib/less/js/test/browser/less/modify-vars/imports/simple2.less +4 -0
- data/lib/less/js/test/browser/less/modify-vars/simple.less +8 -0
- data/lib/less/js/test/browser/less/relative-urls/urls.less +1 -1
- data/lib/less/js/test/browser/less/rootpath-relative/urls.less +1 -1
- data/lib/less/js/test/browser/less/rootpath/urls.less +1 -1
- data/lib/less/js/test/browser/less/urls.less +9 -1
- data/lib/less/js/test/browser/phantom-runner.js +112 -103
- data/lib/less/js/test/browser/runner-browser-options.js +42 -0
- data/lib/less/js/test/browser/{runner-browser.js → runner-browser-spec.js} +7 -2
- data/lib/less/js/test/browser/runner-console-errors.js +5 -0
- data/lib/less/js/test/browser/runner-errors-options.js +5 -0
- data/lib/less/js/test/browser/runner-errors-spec.js +4 -0
- data/lib/less/js/test/browser/runner-global-vars-options.js +4 -0
- data/lib/less/js/test/browser/runner-global-vars-spec.js +3 -0
- data/lib/less/js/test/browser/runner-legacy-options.js +4 -0
- data/lib/less/js/test/browser/{runner-legacy.js → runner-legacy-spec.js} +1 -4
- data/lib/less/js/test/browser/runner-main-options.js +15 -0
- data/lib/less/js/test/browser/runner-main-spec.js +3 -0
- data/lib/less/js/test/browser/runner-modify-vars-options.js +2 -0
- data/lib/less/js/test/browser/runner-modify-vars-spec.js +43 -0
- data/lib/less/js/test/browser/runner-no-js-errors-options.js +4 -0
- data/lib/less/js/test/browser/runner-no-js-errors-spec.js +4 -0
- data/lib/less/js/test/browser/runner-production-options.js +3 -0
- data/lib/less/js/test/browser/{runner-production.js → runner-production-spec.js} +1 -3
- data/lib/less/js/test/browser/runner-relative-urls-options.js +3 -0
- data/lib/less/js/test/browser/{runner-relative-urls.js → runner-relative-urls-spec.js} +1 -2
- data/lib/less/js/test/browser/runner-rootpath-options.js +3 -0
- data/lib/less/js/test/browser/runner-rootpath-relative-options.js +4 -0
- data/lib/less/js/test/browser/{runner-rootpath-relative.js → runner-rootpath-relative-spec.js} +1 -3
- data/lib/less/js/test/browser/{runner-rootpath.js → runner-rootpath-spec.js} +1 -2
- data/lib/less/js/test/browser/test-runner-template.tmpl +47 -0
- data/lib/less/js/test/css/colors.css +7 -0
- data/lib/less/js/test/css/comments.css +9 -4
- data/lib/less/js/test/css/compression/compression.css +3 -2
- data/lib/less/js/test/css/css-3.css +17 -5
- data/lib/less/js/test/css/css-guards.css +37 -0
- data/lib/less/js/test/css/debug/linenumbers-all.css +6 -0
- data/lib/less/js/test/css/debug/linenumbers-comments.css +5 -0
- data/lib/less/js/test/css/debug/linenumbers-mediaquery.css +5 -0
- data/lib/less/js/test/css/empty.css +0 -0
- data/lib/less/js/test/css/extend-chaining.css +9 -0
- data/lib/less/js/test/css/extend-selector.css +10 -2
- data/lib/less/js/test/css/extract-and-length.css +133 -0
- data/lib/less/js/test/css/functions.css +23 -10
- data/lib/less/js/test/css/globalVars/extended.css +12 -0
- data/lib/less/js/test/css/globalVars/simple.css +6 -0
- data/lib/less/js/test/css/import-inline.css +5 -0
- data/lib/less/js/test/css/import-once.css +12 -0
- data/lib/less/js/test/css/import-reference.css +49 -0
- data/lib/less/js/test/css/import.css +0 -2
- data/lib/less/js/test/css/media.css +21 -5
- data/lib/less/js/test/css/merge.css +26 -0
- data/lib/less/js/test/css/mixins-guards-default-func.css +129 -0
- data/lib/less/js/test/css/mixins-guards.css +6 -0
- data/lib/less/js/test/css/mixins-important.css +7 -0
- data/lib/less/js/test/css/mixins-interpolated.css +39 -0
- data/lib/less/js/test/css/mixins.css +20 -0
- data/lib/less/js/test/css/modifyVars/extended.css +9 -0
- data/lib/less/js/test/css/no-output.css +0 -0
- data/lib/less/js/test/css/parens.css +3 -0
- data/lib/less/js/test/css/property-name-interp.css +20 -0
- data/lib/less/js/test/css/selectors.css +12 -0
- data/lib/less/js/test/css/static-urls/urls.css +7 -4
- data/lib/less/js/test/css/strings.css +3 -0
- data/lib/less/js/test/css/url-args/urls.css +56 -0
- data/lib/less/js/test/css/urls.css +21 -9
- data/lib/less/js/test/index.js +45 -0
- data/lib/less/js/test/less-test.js +234 -191
- data/lib/less/js/test/less/colors.less +6 -0
- data/lib/less/js/test/less/comments.less +7 -1
- data/lib/less/js/test/less/compression/compression.less +21 -1
- data/lib/less/js/test/less/css-3.less +12 -0
- data/lib/less/js/test/less/css-guards.less +99 -0
- data/lib/less/js/test/less/debug/linenumbers.less +11 -1
- data/lib/less/js/test/less/empty.less +0 -0
- data/lib/less/js/test/less/errors/add-mixed-units.txt +4 -2
- data/lib/less/js/test/less/errors/add-mixed-units2.txt +4 -2
- data/lib/less/js/test/less/errors/color-func-invalid-color.less +3 -0
- data/lib/less/js/test/less/errors/color-func-invalid-color.txt +4 -0
- data/lib/less/js/test/less/errors/css-guard-default-func.less +4 -0
- data/lib/less/js/test/less/errors/css-guard-default-func.txt +4 -0
- data/lib/less/js/test/less/errors/import-subfolder2.txt +4 -2
- data/lib/less/js/test/less/errors/javascript-undefined-var.less +3 -0
- data/lib/less/js/test/less/errors/javascript-undefined-var.txt +4 -0
- data/lib/less/js/test/less/errors/mixins-guards-default-func-1.less +9 -0
- data/lib/less/js/test/less/errors/mixins-guards-default-func-1.txt +4 -0
- data/lib/less/js/test/less/errors/mixins-guards-default-func-2.less +9 -0
- data/lib/less/js/test/less/errors/mixins-guards-default-func-2.txt +4 -0
- data/lib/less/js/test/less/errors/mixins-guards-default-func-3.less +9 -0
- data/lib/less/js/test/less/errors/mixins-guards-default-func-3.txt +4 -0
- data/lib/less/js/test/less/errors/multiple-guards-on-css-selectors.less +4 -0
- data/lib/less/js/test/less/errors/multiple-guards-on-css-selectors.txt +4 -0
- data/lib/less/js/test/less/errors/multiple-guards-on-css-selectors2.less +4 -0
- data/lib/less/js/test/less/errors/multiple-guards-on-css-selectors2.txt +4 -0
- data/lib/less/js/test/less/errors/parse-error-curly-bracket.less +4 -1
- data/lib/less/js/test/less/errors/parse-error-curly-bracket.txt +4 -2
- data/lib/less/js/test/less/errors/parse-error-extra-parens.less +5 -0
- data/lib/less/js/test/less/errors/parse-error-extra-parens.txt +3 -0
- data/lib/less/js/test/less/errors/parse-error-missing-bracket.txt +2 -2
- data/lib/less/js/test/less/errors/parse-error-missing-parens.less +5 -0
- data/lib/less/js/test/less/errors/parse-error-missing-parens.txt +3 -0
- data/lib/less/js/test/less/errors/property-asterisk-only-name.less +3 -0
- data/lib/less/js/test/less/errors/property-asterisk-only-name.txt +4 -0
- data/lib/less/js/test/less/errors/property-interp-not-defined.less +1 -0
- data/lib/less/js/test/less/errors/property-interp-not-defined.txt +2 -0
- data/lib/less/js/test/less/errors/svg-gradient1.less +3 -0
- data/lib/less/js/test/less/errors/svg-gradient1.txt +4 -0
- data/lib/less/js/test/less/errors/svg-gradient2.less +3 -0
- data/lib/less/js/test/less/errors/svg-gradient2.txt +4 -0
- data/lib/less/js/test/less/errors/svg-gradient3.less +3 -0
- data/lib/less/js/test/less/errors/svg-gradient3.txt +4 -0
- data/lib/less/js/test/less/errors/unit-function.less +3 -0
- data/lib/less/js/test/less/errors/unit-function.txt +4 -0
- data/lib/less/js/test/less/extend-chaining.less +12 -0
- data/lib/less/js/test/less/extend-selector.less +15 -0
- data/lib/less/js/test/less/extract-and-length.less +133 -0
- data/lib/less/js/test/less/functions.less +15 -2
- data/lib/less/js/test/less/globalVars/extended.json +5 -0
- data/lib/less/js/test/less/globalVars/extended.less +10 -0
- data/lib/less/js/test/less/globalVars/simple.json +3 -0
- data/lib/less/js/test/less/globalVars/simple.less +3 -0
- data/lib/less/js/test/less/import-inline.less +2 -0
- data/lib/less/js/test/less/import-once.less +2 -0
- data/lib/less/js/test/less/import-reference.less +18 -0
- data/lib/less/js/test/less/import/import-and-relative-paths-test.less +11 -0
- data/lib/less/js/test/less/import/import-reference.less +43 -0
- data/lib/less/js/test/less/import/import-test-f.less +5 -0
- data/lib/less/js/test/less/import/invalid-css.less +1 -0
- data/lib/less/js/test/less/media.less +25 -1
- data/lib/less/js/test/less/merge.less +59 -0
- data/lib/less/js/test/less/mixins-args.less +10 -0
- data/lib/less/js/test/less/mixins-guards-default-func.less +195 -0
- data/lib/less/js/test/less/mixins-guards.less +16 -0
- data/lib/less/js/test/less/mixins-important.less +4 -1
- data/lib/less/js/test/less/mixins-interpolated.less +69 -0
- data/lib/less/js/test/less/mixins.less +27 -0
- data/lib/less/js/test/less/modifyVars/extended.json +5 -0
- data/lib/less/js/test/less/modifyVars/extended.less +11 -0
- data/lib/less/js/test/less/no-js-errors/no-js-errors.less +3 -0
- data/lib/less/js/test/less/no-js-errors/no-js-errors.txt +4 -0
- data/lib/less/js/test/less/no-output.less +2 -0
- data/lib/less/js/test/less/parens.less +4 -0
- data/lib/less/js/test/less/property-name-interp.less +53 -0
- data/lib/less/js/test/less/selectors.less +13 -0
- data/lib/less/js/test/less/sourcemaps/basic.json +3 -0
- data/lib/less/js/test/less/sourcemaps/basic.less +27 -0
- data/lib/less/js/test/less/sourcemaps/imported.css +7 -0
- data/lib/less/js/test/less/strings.less +6 -0
- data/lib/less/js/test/less/url-args/urls.less +63 -0
- data/lib/less/js/test/less/urls.less +15 -0
- data/lib/less/js/test/rhino/test-header.js +15 -0
- data/lib/less/js/test/sourcemaps/basic.json +1 -0
- data/lib/less/js/test/sourcemaps/index.html +17 -0
- data/lib/less/loader.rb +48 -40
- data/lib/less/version.rb +1 -1
- data/spec/less/parser_spec.rb +15 -15
- metadata +146 -40
- data/lib/less/js/Makefile +0 -102
- data/lib/less/js/build/header.js +0 -9
- data/lib/less/js/test/browser-test-prepare.js +0 -46
- data/lib/less/js/test/browser/runner-errors.js +0 -5
- data/lib/less/js/test/browser/runner-main.js +0 -15
- data/lib/less/js/test/browser/template.htm +0 -10
- data/lib/less/js/test/less/errors/color-operation-error.txt +0 -2
@@ -0,0 +1,43 @@
|
|
1
|
+
var alreadyRun = false;
|
2
|
+
|
3
|
+
describe("less.js modify vars", function() {
|
4
|
+
beforeEach(function() {
|
5
|
+
// simulating "setUp" or "beforeAll" method
|
6
|
+
var lessOutputObj;
|
7
|
+
if (alreadyRun)
|
8
|
+
return;
|
9
|
+
|
10
|
+
alreadyRun = true;
|
11
|
+
|
12
|
+
// wait until the sheet is compiled first time
|
13
|
+
waitsFor(function() {
|
14
|
+
lessOutputObj = document.getElementById("less:test-less-simple");
|
15
|
+
return lessOutputObj !== null;
|
16
|
+
}, "first generation of less:test-less-simple", 7000);
|
17
|
+
|
18
|
+
// modify variables
|
19
|
+
runs(function() {
|
20
|
+
lessOutputObj.type = "not compiled yet";
|
21
|
+
less.modifyVars({
|
22
|
+
var1: "green",
|
23
|
+
var2: "purple",
|
24
|
+
scale: 20
|
25
|
+
});
|
26
|
+
});
|
27
|
+
|
28
|
+
// wait until variables are modified
|
29
|
+
waitsFor(function() {
|
30
|
+
lessOutputObj = document.getElementById("less:test-less-simple");
|
31
|
+
return lessOutputObj !== null && lessOutputObj.type === "text/css";
|
32
|
+
}, "second generation of less:test-less-simple", 7000);
|
33
|
+
|
34
|
+
});
|
35
|
+
|
36
|
+
testLessEqualsInDocument();
|
37
|
+
it("Should log only 2 XHR requests", function() {
|
38
|
+
var xhrLogMessages = logMessages.filter(function(item) {
|
39
|
+
return (/XHR: Getting '/).test(item);
|
40
|
+
});
|
41
|
+
expect(xhrLogMessages.length).toEqual(2);
|
42
|
+
});
|
43
|
+
});
|
@@ -0,0 +1,47 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<title>Jasmine Spec Runner</title>
|
6
|
+
|
7
|
+
<!-- generate script tags for tests -->
|
8
|
+
<% var generateScriptTags = function(allScripts) { allScripts.forEach(function(script){ %>
|
9
|
+
<script src="<%= script %>"></script>
|
10
|
+
<% }); }; %>
|
11
|
+
|
12
|
+
<!-- for each test, generate CSS/LESS link tags -->
|
13
|
+
<% scripts.src.forEach(function(fullLessName) {
|
14
|
+
var pathParts = fullLessName.split('/');
|
15
|
+
var fullCssName = fullLessName.replace(/less/g, 'css');
|
16
|
+
var lessName = pathParts[pathParts.length - 1];
|
17
|
+
var name = lessName.split('.')[0]; %>
|
18
|
+
<!-- the tags to be generated -->
|
19
|
+
<link id="original-less:test-less-<%= name %>" title="test-less-<%= name %>" rel="stylesheet/less" type="text/css" href="<%= fullLessName %>">
|
20
|
+
<link id="expected-less:test-less-<%= name %>" rel="stylesheet" type="text/css" href="<%= fullCssName %>">
|
21
|
+
<% }); %>
|
22
|
+
|
23
|
+
<!-- generate grunt-contrib-jasmine link tags -->
|
24
|
+
<% css.forEach(function(style){ %>
|
25
|
+
<link rel="stylesheet" type="text/css" href="<%= style %>">
|
26
|
+
<% }) %>
|
27
|
+
|
28
|
+
<!-- inital grunt-contrib-jasmine scripts -->
|
29
|
+
<% generateScriptTags([].concat(scripts.polyfills, scripts.jasmine)); %>
|
30
|
+
|
31
|
+
<!-- Helpers - The less options -->
|
32
|
+
<% generateScriptTags(scripts.helpers); %>
|
33
|
+
|
34
|
+
<!-- Vendor - less.js and common code -->
|
35
|
+
<% generateScriptTags(scripts.vendor); %>
|
36
|
+
|
37
|
+
<!-- Spec -->
|
38
|
+
<% generateScriptTags(scripts.specs); %>
|
39
|
+
|
40
|
+
<!-- final grunt-contrib-jasmine scripts -->
|
41
|
+
<% generateScriptTags([].concat(scripts.reporters, scripts.start)); %>
|
42
|
+
</head>
|
43
|
+
|
44
|
+
<body>
|
45
|
+
<!-- content -->
|
46
|
+
</body>
|
47
|
+
</html>
|
@@ -37,6 +37,9 @@
|
|
37
37
|
#overflow .d {
|
38
38
|
color: #00ff00;
|
39
39
|
}
|
40
|
+
#overflow .e {
|
41
|
+
color: rgba(0, 31, 255, 0.42);
|
42
|
+
}
|
40
43
|
#grey {
|
41
44
|
color: #c8c8c8;
|
42
45
|
}
|
@@ -78,3 +81,7 @@
|
|
78
81
|
#alpha #hsl {
|
79
82
|
opacity: 1;
|
80
83
|
}
|
84
|
+
#percentage {
|
85
|
+
color: 255;
|
86
|
+
border-color: rgba(255, 0, 0, 0.5);
|
87
|
+
}
|
@@ -26,12 +26,12 @@
|
|
26
26
|
*/
|
27
27
|
/* @group Variables
|
28
28
|
------------------- */
|
29
|
-
#comments
|
29
|
+
#comments,
|
30
|
+
.comments {
|
30
31
|
/**/
|
31
32
|
color: red;
|
32
33
|
/* A C-style comment */
|
33
34
|
/* A C-style comment */
|
34
|
-
|
35
35
|
background-color: orange;
|
36
36
|
font-size: 12px;
|
37
37
|
/* lost comment */
|
@@ -53,12 +53,17 @@
|
|
53
53
|
-moz-border-radius: 8px /* moz only with operation */;
|
54
54
|
}
|
55
55
|
.test {
|
56
|
-
color: 1px
|
56
|
+
color: 1px;
|
57
57
|
}
|
58
58
|
#last {
|
59
59
|
color: #0000ff;
|
60
60
|
}
|
61
|
-
/*
|
61
|
+
/* */
|
62
|
+
/* { */
|
63
|
+
/* */
|
64
|
+
/* */
|
65
|
+
/* */
|
66
|
+
#div {
|
62
67
|
color: #A33;
|
63
68
|
}
|
64
69
|
/* } */
|
@@ -1,2 +1,3 @@
|
|
1
|
-
#colours{color1:#fea;color2:#fea;color3:rgba(255,238,170,0.1);string:"#ffeeaa"
|
2
|
-
|
1
|
+
#colours{color1:#fea;color2:#fea;color3:rgba(255,238,170,0.1);string:"#ffeeaa";/*! but not this type
|
2
|
+
Note preserved whitespace
|
3
|
+
*/}dimensions{val:.1px;val:0;val:4cm;val:.2;val:5;angles-must-have-unit:0deg;durations-must-have-unit:0s;length-doesnt-have-unit:0;width:auto\9}@page{marks:none;@top-left-corner{vertical-align:top}@top-left{vertical-align:top}}.shadow^.dom,body^^.shadow{display:done}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.comma-delimited {
|
2
2
|
text-shadow: -1px -1px 1px #ff0000, 6px 5px 5px #ffff00;
|
3
3
|
-moz-box-shadow: 0pt 0pt 2px rgba(255, 255, 255, 0.4) inset, 0pt 4px 6px rgba(255, 255, 255, 0.4) inset;
|
4
|
-
-webkit-transform: rotate(
|
4
|
+
-webkit-transform: rotate(0deg);
|
5
5
|
}
|
6
6
|
@font-face {
|
7
7
|
font-family: Headline;
|
@@ -97,16 +97,16 @@ p::before {
|
|
97
97
|
font-size: 10px;
|
98
98
|
}
|
99
99
|
@namespace foo url(http://www.example.com);
|
100
|
-
foo
|
100
|
+
foo|h1 {
|
101
101
|
color: blue;
|
102
102
|
}
|
103
|
-
foo
|
103
|
+
foo|* {
|
104
104
|
color: yellow;
|
105
105
|
}
|
106
|
-
|
|
106
|
+
|h1 {
|
107
107
|
color: red;
|
108
108
|
}
|
109
|
-
|
109
|
+
*|h1 {
|
110
110
|
color: green;
|
111
111
|
}
|
112
112
|
h1 {
|
@@ -115,3 +115,15 @@ h1 {
|
|
115
115
|
.upper-test {
|
116
116
|
UpperCaseProperties: allowed;
|
117
117
|
}
|
118
|
+
@host {
|
119
|
+
div {
|
120
|
+
display: block;
|
121
|
+
}
|
122
|
+
}
|
123
|
+
::distributed(input::placeholder) {
|
124
|
+
color: #b3b3b3;
|
125
|
+
}
|
126
|
+
.shadow ^ .dom,
|
127
|
+
body ^^ .shadow {
|
128
|
+
display: done;
|
129
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
.light {
|
2
|
+
color: green;
|
3
|
+
}
|
4
|
+
.see-the {
|
5
|
+
color: green;
|
6
|
+
}
|
7
|
+
.hide-the {
|
8
|
+
color: green;
|
9
|
+
}
|
10
|
+
.multiple-conditions-1 {
|
11
|
+
color: red;
|
12
|
+
}
|
13
|
+
.inheritance .test {
|
14
|
+
color: black;
|
15
|
+
}
|
16
|
+
.inheritance:hover {
|
17
|
+
color: pink;
|
18
|
+
}
|
19
|
+
.clsWithGuard {
|
20
|
+
dispaly: none;
|
21
|
+
}
|
22
|
+
.dont-split-me-up {
|
23
|
+
width: 1px;
|
24
|
+
color: red;
|
25
|
+
height: 1px;
|
26
|
+
}
|
27
|
+
+ .dont-split-me-up {
|
28
|
+
sibling: true;
|
29
|
+
}
|
30
|
+
.scope-check {
|
31
|
+
sub-prop: 2px;
|
32
|
+
prop: 1px;
|
33
|
+
}
|
34
|
+
.scope-check-2 {
|
35
|
+
sub-prop: 2px;
|
36
|
+
prop: 1px;
|
37
|
+
}
|
File without changes
|
@@ -52,9 +52,9 @@ div.ext7,
|
|
52
52
|
.c.replace + .replace .replace,
|
53
53
|
.replace.replace .c,
|
54
54
|
.c.replace + .replace .c,
|
55
|
-
.rep_ace
|
55
|
+
.rep_ace.rep_ace .rep_ace,
|
56
56
|
.c.rep_ace + .rep_ace .rep_ace,
|
57
|
-
.rep_ace
|
57
|
+
.rep_ace.rep_ace .c,
|
58
58
|
.c.rep_ace + .rep_ace .c {
|
59
59
|
prop: copy-paste-replace;
|
60
60
|
}
|
@@ -70,3 +70,11 @@ div.ext7,
|
|
70
70
|
.attributes .attributes .attribute-test {
|
71
71
|
extend: attributes2;
|
72
72
|
}
|
73
|
+
.header .header-nav,
|
74
|
+
.footer .footer-nav {
|
75
|
+
background: red;
|
76
|
+
}
|
77
|
+
.header .header-nav:before,
|
78
|
+
.footer .footer-nav:before {
|
79
|
+
background: blue;
|
80
|
+
}
|
@@ -0,0 +1,133 @@
|
|
1
|
+
.multiunit {
|
2
|
+
length: 6;
|
3
|
+
extract: abc "abc" 1 1px 1% #112233;
|
4
|
+
}
|
5
|
+
.incorrect-index {
|
6
|
+
v1: extract(a b c, 5);
|
7
|
+
v2: extract(a, b, c, -2);
|
8
|
+
}
|
9
|
+
.scalar {
|
10
|
+
var-value: variable;
|
11
|
+
var-length: 1;
|
12
|
+
ill-index: extract(variable, 2);
|
13
|
+
name-value: name;
|
14
|
+
string-value: "string";
|
15
|
+
number-value: 12345678;
|
16
|
+
color-value: #0000ff;
|
17
|
+
rgba-value: rgba(80, 160, 240, 0.67);
|
18
|
+
empty-value: ;
|
19
|
+
name-length: 1;
|
20
|
+
string-length: 1;
|
21
|
+
number-length: 1;
|
22
|
+
color-length: 1;
|
23
|
+
rgba-length: 1;
|
24
|
+
empty-length: 1;
|
25
|
+
}
|
26
|
+
.mixin-arguments-1 {
|
27
|
+
length: 4;
|
28
|
+
extract: c | b | a;
|
29
|
+
}
|
30
|
+
.mixin-arguments-2 {
|
31
|
+
length: 4;
|
32
|
+
extract: c | b | a;
|
33
|
+
}
|
34
|
+
.mixin-arguments-3 {
|
35
|
+
length: 4;
|
36
|
+
extract: c | b | a;
|
37
|
+
}
|
38
|
+
.mixin-arguments-4 {
|
39
|
+
length: 0;
|
40
|
+
extract: extract(, 2) | extract(, 1);
|
41
|
+
}
|
42
|
+
.mixin-arguments-2 {
|
43
|
+
length: 4;
|
44
|
+
extract: c | b | a;
|
45
|
+
}
|
46
|
+
.mixin-arguments-3 {
|
47
|
+
length: 4;
|
48
|
+
extract: c | b | a;
|
49
|
+
}
|
50
|
+
.mixin-arguments-4 {
|
51
|
+
length: 3;
|
52
|
+
extract: c | b;
|
53
|
+
}
|
54
|
+
.mixin-arguments-2 {
|
55
|
+
length: 4;
|
56
|
+
extract: 3 | 2 | 1;
|
57
|
+
}
|
58
|
+
.mixin-arguments-3 {
|
59
|
+
length: 4;
|
60
|
+
extract: 3 | 2 | 1;
|
61
|
+
}
|
62
|
+
.mixin-arguments-4 {
|
63
|
+
length: 3;
|
64
|
+
extract: 3 | 2;
|
65
|
+
}
|
66
|
+
.md-space-comma {
|
67
|
+
length-1: 3;
|
68
|
+
extract-1: 1 2 3;
|
69
|
+
length-2: 3;
|
70
|
+
extract-2: 2;
|
71
|
+
}
|
72
|
+
.md-space-comma-as-args-2 {
|
73
|
+
length: 3;
|
74
|
+
extract: "x" "y" "z" | 1 2 3 | a b c;
|
75
|
+
}
|
76
|
+
.md-space-comma-as-args-3 {
|
77
|
+
length: 3;
|
78
|
+
extract: "x" "y" "z" | 1 2 3 | a b c;
|
79
|
+
}
|
80
|
+
.md-space-comma-as-args-4 {
|
81
|
+
length: 2;
|
82
|
+
extract: "x" "y" "z" | 1 2 3;
|
83
|
+
}
|
84
|
+
.md-cat-space-comma {
|
85
|
+
length-1: 3;
|
86
|
+
extract-1: 1 2 3;
|
87
|
+
length-2: 3;
|
88
|
+
extract-2: 2;
|
89
|
+
}
|
90
|
+
.md-cat-space-comma-as-args-2 {
|
91
|
+
length: 3;
|
92
|
+
extract: "x" "y" "z" | 1 2 3 | a b c;
|
93
|
+
}
|
94
|
+
.md-cat-space-comma-as-args-3 {
|
95
|
+
length: 3;
|
96
|
+
extract: "x" "y" "z" | 1 2 3 | a b c;
|
97
|
+
}
|
98
|
+
.md-cat-space-comma-as-args-4 {
|
99
|
+
length: 2;
|
100
|
+
extract: "x" "y" "z" | 1 2 3;
|
101
|
+
}
|
102
|
+
.md-cat-comma-space {
|
103
|
+
length-1: 3;
|
104
|
+
extract-1: 1, 2, 3;
|
105
|
+
length-2: 3;
|
106
|
+
extract-2: 2;
|
107
|
+
}
|
108
|
+
.md-cat-comma-space-as-args-1 {
|
109
|
+
length: 3;
|
110
|
+
extract: "x", "y", "z" | 1, 2, 3 | a, b, c;
|
111
|
+
}
|
112
|
+
.md-cat-comma-space-as-args-2 {
|
113
|
+
length: 3;
|
114
|
+
extract: "x", "y", "z" | 1, 2, 3 | a, b, c;
|
115
|
+
}
|
116
|
+
.md-cat-comma-space-as-args-3 {
|
117
|
+
length: 3;
|
118
|
+
extract: "x", "y", "z" | 1, 2, 3 | a, b, c;
|
119
|
+
}
|
120
|
+
.md-cat-comma-space-as-args-4 {
|
121
|
+
length: 0;
|
122
|
+
extract: extract(, 2) | extract(, 1);
|
123
|
+
}
|
124
|
+
.md-3D {
|
125
|
+
length-1: 2;
|
126
|
+
extract-1: a b c d, 1 2 3 4;
|
127
|
+
length-2: 2;
|
128
|
+
extract-2: 5 6 7 8;
|
129
|
+
length-3: 4;
|
130
|
+
extract-3: 7;
|
131
|
+
length-4: 1;
|
132
|
+
extract-4: 8;
|
133
|
+
}
|