This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 256641

Summary: Variable substitution not recognized in @media directive
Product: web Reporter: niabot
Component: CSS Preprocessors (SASS, LESS, ...)Assignee: Milutin Kristofic <mkristofic>
Status: RESOLVED FIXED    
Severity: normal CC: tmysik
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description niabot 2015-11-17 12:05:07 UTC
A simple example:

@small: ~"only screen and (min-width:  320px) and (max-width:  479px)";
@medium: ~"only screen and (min-width:  480px) and (max-width:  767px)";

.build-rules(@mediasize) {
  @media @@mediasize {
    display: block;
  }
}

.build-rules(small);
.build-rules(medium);


The directive @@mediasize will not be recognized and marked as an error, but the less compiler has no problem with this subsitution. See: http://lesscss.org/features/#variables-feature-variable-names
Comment 1 Milutin Kristofic 2015-11-24 15:13:31 UTC
Fixed in dev build. Thank you for your report.

http://hg.netbeans.org/web-main/rev/6cf093065be4
Comment 2 Quality Engineering 2015-11-25 02:32:22 UTC
Integrated into 'main-silver', will be available in build *201511250002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/6cf093065be4
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #256641 - Variable substitution not recognized in @media directive