sass 3.1.0.alpha.26 → 3.1.0.alpha.27

Sign up to get free protection for your applications and to get access to all the features.
data/EDGE_GEM_VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.0.alpha.26
1
+ 3.1.0.alpha.27
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.0.alpha.26
1
+ 3.1.0.alpha.27
@@ -2373,6 +2373,54 @@ CSS
2373
2373
  SASS
2374
2374
  end
2375
2375
 
2376
+ def test_nested_media_around_properties
2377
+ sass_str = <<SASS
2378
+ .outside
2379
+ color: red
2380
+ @media print
2381
+ color: black
2382
+ .inside
2383
+ @media nested
2384
+ border: 1px solid black
2385
+ background: blue
2386
+ .middle
2387
+ display: block
2388
+ SASS
2389
+ css_str = <<CSS
2390
+ .outside {
2391
+ color: red; }
2392
+
2393
+ @media print {
2394
+ .outside {
2395
+ color: black; } }
2396
+
2397
+ @media (print) and (nested) {
2398
+ .outside .inside {
2399
+ border: 1px solid black; } }
2400
+
2401
+ .outside {
2402
+ background: blue; }
2403
+ .outside .middle {
2404
+ display: block; }
2405
+ CSS
2406
+ assert_equal css_str, render(sass_str)
2407
+ end
2408
+
2409
+ def test_media_with_parent_references
2410
+ sass_str = <<SASS
2411
+ .outside
2412
+ @media print
2413
+ &.inside
2414
+ border: 1px solid black
2415
+ SASS
2416
+ css_str = <<CSS
2417
+ @media print {
2418
+ .outside.inside {
2419
+ border: 1px solid black; } }
2420
+ CSS
2421
+ assert_equal css_str, render(sass_str)
2422
+ end
2423
+
2376
2424
  # Encodings
2377
2425
 
2378
2426
  unless Sass::Util.ruby1_8?
@@ -1175,4 +1175,60 @@ b {
1175
1175
  SCSS
1176
1176
 
1177
1177
  end
1178
+ def test_nested_media_around_properties
1179
+ scss_str = <<SCSS
1180
+ .outside {
1181
+ color: red;
1182
+ @media print {
1183
+ color: black;
1184
+ .inside {
1185
+ @media nested {
1186
+ border: 1px solid black;
1187
+ }
1188
+ }
1189
+ }
1190
+ background: blue;
1191
+ .middle {
1192
+ display: block;
1193
+ }
1194
+ }
1195
+ SCSS
1196
+ css_str = <<CSS
1197
+ .outside {
1198
+ color: red; }
1199
+
1200
+ @media print {
1201
+ .outside {
1202
+ color: black; } }
1203
+
1204
+ @media (print) and (nested) {
1205
+ .outside .inside {
1206
+ border: 1px solid black; } }
1207
+
1208
+ .outside {
1209
+ background: blue; }
1210
+ .outside .middle {
1211
+ display: block; }
1212
+ CSS
1213
+ assert_equal css_str, render(scss_str)
1214
+ end
1215
+
1216
+ def test_media_with_parent_references
1217
+ scss_str = <<SCSS
1218
+ .outside {
1219
+ @media print {
1220
+ &.inside {
1221
+ border: 1px solid black;
1222
+ }
1223
+ }
1224
+ }
1225
+ SCSS
1226
+ css_str = <<CSS
1227
+ @media print {
1228
+ .outside.inside {
1229
+ border: 1px solid black; } }
1230
+ CSS
1231
+ assert_equal css_str, render(scss_str)
1232
+ end
1233
+
1178
1234
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sass
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.alpha.26
4
+ version: 3.1.0.alpha.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Weizenbaum
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2010-11-10 00:00:00 -05:00
14
+ date: 2010-11-11 00:00:00 -05:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency