You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Namespace imported less code does not get properly referenced, when there's a (reference) keyword. #1896
@import(less, reference)"any.css"; //this works as expected
#Namespace{@import(less, reference)"any.css";} //this does not as the reference does not do anything
Works in the sense that there's no syntax error.
However the reference keyword does not do anything. The entire CSS in "any.css" gets imported in the outputted CSS file.
Hrmm yes, by wrapping it you are essentially referencing it. Its a bit hard
to work out because we assume that if a selector to output is merged with a
referenced selector it should be output.
But I agree its a bug, just a difficult one to fix.
Activity
lukeapage commentedon Feb 23, 2014
Hrmm yes, by wrapping it you are essentially referencing it. Its a bit hard
to work out because we assume that if a selector to output is merged with a
referenced selector it should be output.
But I agree its a bug, just a difficult one to fix.
bassjobsen commentedon Feb 23, 2014
Well okay Good Luck. If i may ask: what's the reason in the first place namespaces are defined with a # prefix? as far as i understand now a namespace don't differs from a id selector. Also http://www.w3.org/TR/css3-namespace/ defines namepspaces with
@namespace.lukeapage commentedon Feb 23, 2014
See the namespaces section of our website
Different namespaces
Fixing import by reference
SomMeri commentedon Dec 7, 2015
This should be fixed by #2729 .