sass 3.2.0.alpha.96 → 3.2.0.alpha.99
Sign up to get free protection for your applications and to get access to all the features.
- data/REVISION +1 -1
- data/VERSION +1 -1
- data/lib/sass/engine.rb +2 -0
- data/lib/sass/scss/parser.rb +29 -16
- data/lib/sass/selector.rb +47 -0
- data/lib/sass/selector/abstract_sequence.rb +16 -0
- data/lib/sass/selector/comma_sequence.rb +9 -1
- data/lib/sass/selector/sequence.rb +24 -2
- data/lib/sass/selector/simple_sequence.rb +36 -5
- data/lib/sass/supports.rb +229 -0
- data/lib/sass/tree/media_node.rb +3 -0
- data/lib/sass/tree/node.rb +7 -0
- data/lib/sass/tree/supports_node.rb +51 -0
- data/lib/sass/tree/visitors/convert.rb +4 -0
- data/lib/sass/tree/visitors/cssize.rb +22 -13
- data/lib/sass/tree/visitors/deep_copy.rb +5 -0
- data/lib/sass/tree/visitors/perform.rb +6 -0
- data/lib/sass/tree/visitors/set_options.rb +5 -0
- data/lib/sass/tree/visitors/to_css.rb +4 -0
- data/test/sass/conversion_test.rb +22 -0
- data/test/sass/extend_test.rb +114 -569
- data/test/sass/scss/css_test.rb +9 -0
- data/test/sass/scss/scss_test.rb +35 -0
- metadata +6 -4
data/test/sass/scss/css_test.rb
CHANGED
@@ -609,12 +609,21 @@ SCSS
|
|
609
609
|
@supports (a: b) and (c: d) or (not (d: e)) and ((not (f: g)) or (not ((h: i) and (j: k)))) {
|
610
610
|
.foo {
|
611
611
|
a: b; } }
|
612
|
+
@supports (a: b) {
|
613
|
+
.foo {
|
614
|
+
a: b; } }
|
612
615
|
CSS
|
613
616
|
@supports (a: b) and (c: d) or (not (d: e)) and ((not (f: g)) or (not ((h: i) and (j: k)))) {
|
614
617
|
.foo {
|
615
618
|
a: b;
|
616
619
|
}
|
617
620
|
}
|
621
|
+
|
622
|
+
@supports (a: b) {
|
623
|
+
.foo {
|
624
|
+
a: b;
|
625
|
+
}
|
626
|
+
}
|
618
627
|
SCSS
|
619
628
|
|
620
629
|
assert_equal <<CSS, render(<<SCSS)
|
data/test/sass/scss/scss_test.rb
CHANGED
@@ -945,6 +945,41 @@ $domain: "sass-lang.com";
|
|
945
945
|
SCSS
|
946
946
|
end
|
947
947
|
|
948
|
+
def test_supports_with_expressions
|
949
|
+
assert_equal <<CSS, render(<<SCSS)
|
950
|
+
@supports (feature1: val) and (feature2: val) or (not (feature23: val4)) {
|
951
|
+
foo {
|
952
|
+
a: b; } }
|
953
|
+
CSS
|
954
|
+
$query: "(feature1: val)";
|
955
|
+
$feature: feature2;
|
956
|
+
$val: val;
|
957
|
+
@supports \#{$query} and ($feature: $val) or (not ($feature + 3: $val + 4)) {
|
958
|
+
foo {a: b}
|
959
|
+
}
|
960
|
+
SCSS
|
961
|
+
end
|
962
|
+
|
963
|
+
def test_supports_bubbling
|
964
|
+
assert_equal <<CSS, render(<<SCSS)
|
965
|
+
@supports (foo: bar) {
|
966
|
+
a {
|
967
|
+
b: c; }
|
968
|
+
@supports (baz: bang) {
|
969
|
+
a {
|
970
|
+
d: e; } } }
|
971
|
+
CSS
|
972
|
+
a {
|
973
|
+
@supports (foo: bar) {
|
974
|
+
b: c;
|
975
|
+
@supports (baz: bang) {
|
976
|
+
d: e;
|
977
|
+
}
|
978
|
+
}
|
979
|
+
}
|
980
|
+
SCSS
|
981
|
+
end
|
982
|
+
|
948
983
|
def test_random_directive_interpolation
|
949
984
|
assert_equal <<CSS, render(<<SCSS)
|
950
985
|
@foo url(http://sass-lang.com/),
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 592303067
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 2
|
9
9
|
- 0
|
10
10
|
- alpha
|
11
|
-
-
|
12
|
-
version: 3.2.0.alpha.
|
11
|
+
- 99
|
12
|
+
version: 3.2.0.alpha.99
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Nathan Weizenbaum
|
@@ -19,7 +19,7 @@ autorequire:
|
|
19
19
|
bindir: bin
|
20
20
|
cert_chain: []
|
21
21
|
|
22
|
-
date: 2012-03-
|
22
|
+
date: 2012-03-27 00:00:00 -04:00
|
23
23
|
default_executable:
|
24
24
|
dependencies:
|
25
25
|
- !ruby/object:Gem::Dependency
|
@@ -163,10 +163,12 @@ files:
|
|
163
163
|
- lib/sass/tree/visitors/to_css.rb
|
164
164
|
- lib/sass/tree/while_node.rb
|
165
165
|
- lib/sass/tree/trace_node.rb
|
166
|
+
- lib/sass/tree/supports_node.rb
|
166
167
|
- lib/sass/media.rb
|
167
168
|
- lib/sass/util/multibyte_string_scanner.rb
|
168
169
|
- lib/sass/util/subset_map.rb
|
169
170
|
- lib/sass/version.rb
|
171
|
+
- lib/sass/supports.rb
|
170
172
|
- vendor/fssm/Gemfile
|
171
173
|
- vendor/fssm/LICENSE
|
172
174
|
- vendor/fssm/README.markdown
|