artlantis / phamlp

Automatically exported from code.google.com/p/phamlp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sass // @media all and (... fails

GoogleCodeExporter opened this issue · comments

What steps will reproduce the problem?

1. Create this mixin

@mixin opera_test {
  background: green;

  @media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0) {           
    & {
      background: red;      
    }       
  }         
}

2. Use it

body {
  @include opera_test;
}   

3. View the css output

Actual output:

body {
  background: green;
  @media and {  body {  background: red;}}


}

Expected output:

body {
  background: green;
}

@media all and (-webkit-min-device-pixel-ratio:10000), not all and 
(-webkit-min-device-pixel-ratio:0) {            
  body {
    background: red;        
  }     
}

What version of the product are you using? On what operating system?

Version dated 2010-04-16
On Windows XP running WampDeveloper

Thanks,
Dan

P.S. This may need a patch of 
http://code.google.com/p/phamlp/issues/detail?id=55 ?

Original issue reported on code.google.com by panoram...@gmail.com on 6 Apr 2011 at 5:02