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 - Variable substitution not recognized in @media directive
Summary: Variable substitution not recognized in @media directive
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Preprocessors (SASS, LESS, ...) (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-17 12:05 UTC by niabot
Modified: 2015-11-25 02:32 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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