Skip to content

ParseError with ShadowDOM selectors ^^, ^  #1801

Closed

Description

@zoechi

I tried to modify Bootstrap so that it works with Polymer elements.
Polymer elements introduce a ShadowDOM boundary which breaks descendant/child-selectors. To make such selectors work the ^ (hat - one boundery) ^^ (cat all boundaries) are needed in between.

body ^^ .panel-group selects all .panel-group-elements no matter how many shadowDOM levels it encapsulated with.

After adding a hat or cat selector in one of the Bootsrap less source files I get this error:

Running "less:compileCore" (less) task
>> ParseError: Unrecognised input in less/panels.less on line 152, column 6:
>> 151 
>> 152 body ^ .panel-group {
>> 153   margin-bottom: @line-height-computed;

Do you have any plans to support these selectors?
I'm new to less.
Maybe there is an easy solution/workaround that I am not aware of.

Below a few links about this topic:

Activity

  1. lukeapage commented on Jan 11, 2014

    @lukeapage
    Member

    It should be easy to add.. I'll have a go and if it goes well it will be in our bugfix release 1.6.1 very soon.

  2. lukeapage commented on Jan 11, 2014

    @lukeapage
    Member

    If you could have a look at the tests I've written and let me know if there are any other weird cases for these combinators, that would be great. since its just adding a new type of selector combinator, I don't see that it needs any more advanced tests combining it with other features, it should just work.

  3. zoechi commented on Jan 11, 2014

    @zoechi
    Author

    That's great, thanks a lot!

  4. zoechi commented on Jan 29, 2014

    @zoechi
    Author

    Sorry, I missed your post about the test cases.
    LGTM!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions