Skip to content

Namespace imported less code does not get properly referenced, when there's a (reference) keyword. #1896

Closed

Description

@CMCDragonkai

As per the discussion in #1895

This code:

@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.

Activity

  1. lukeapage commented on Feb 23, 2014

    @lukeapage
    Member

    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.

  2. bassjobsen commented on Feb 23, 2014

    @bassjobsen
    Contributor

    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.

  3. lukeapage commented on Feb 23, 2014

    @lukeapage
    Member

    See the namespaces section of our website

    Different namespaces

  4. self-assigned this
    on Oct 11, 2015
  5. added a commit that references this issue on Nov 20, 2015
  6. SomMeri commented on Dec 7, 2015

    @SomMeri
    Member

    This should be fixed by #2729 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions