sass 3.3.0.alpha.103 → 3.3.0.alpha.107

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/REVISION CHANGED
@@ -1 +1 @@
1
- bcde8752a704ceaa5ef9405d71b4f8fa3c6146bf
1
+ c95e7cf047d7f71abeaf03ec6f3b90d6a08e20c1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.3.0.alpha.103
1
+ 3.3.0.alpha.107
@@ -1 +1 @@
1
- 09 March 2013 01:32:25 GMT
1
+ 22 March 2013 19:46:38 GMT
@@ -444,8 +444,7 @@ module Sass
444
444
  # separate sequences should limit the quadratic behavior.
445
445
  seqses.map do |seqs1|
446
446
  seqs1.reject do |seq1|
447
- min_spec = 0
448
- _sources(seq1).map {|seq| min_spec += seq.specificity}
447
+ min_spec = _sources(seq1).map {|seq| seq.specificity}.min || 0
449
448
  seqses.any? do |seqs2|
450
449
  next if seqs1.equal?(seqs2)
451
450
  # Second Law of Extend: the specificity of a generated selector
@@ -1130,6 +1130,29 @@ SCSS
1130
1130
 
1131
1131
  # Regression Tests
1132
1132
 
1133
+ def test_nested_double_extend_optimization
1134
+ assert_equal <<CSS, render(<<SCSS)
1135
+ .parent1 .child {
1136
+ a: b; }
1137
+ CSS
1138
+ %foo %bar {
1139
+ a: b;
1140
+ }
1141
+
1142
+ .parent1 {
1143
+ @extend %foo;
1144
+
1145
+ .child {
1146
+ @extend %bar;
1147
+ }
1148
+ }
1149
+
1150
+ .parent2 {
1151
+ @extend %foo;
1152
+ }
1153
+ SCSS
1154
+ end
1155
+
1133
1156
  def test_extend_in_double_nested_media_query
1134
1157
  assert_equal <<CSS, render(<<SCSS)
1135
1158
  @media all and (orientation: landscape) {
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: 592303043
4
+ hash: 592303067
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 3
8
8
  - 3
9
9
  - 0
10
10
  - alpha
11
- - 103
12
- version: 3.3.0.alpha.103
11
+ - 107
12
+ version: 3.3.0.alpha.107
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: 2013-03-08 00:00:00 -05:00
22
+ date: 2013-03-22 00:00:00 -04:00
23
23
  default_executable:
24
24
  dependencies:
25
25
  - !ruby/object:Gem::Dependency