Skip to content

Less throws an error with the ">>>" combinator #2623

Closed

Activity

  1. seven-phases-max commented on Jun 29, 2015

    @seven-phases-max
    Member

    Well, they change the draft every week (see #1801, #2023). So it's not surprise.
    Either way you can always use escaping:

    @whatever: ~">>>"; // or any other magic garbage
    a @{whatever} b {
        color: red;
    }
  2. mgolois commented on Oct 12, 2016

    @mgolois

    any update on this issue other than the answer above?

  3. seven-phases-max commented on Oct 12, 2016

    @seven-phases-max
    Member

    I don't think so. Or will you submit a PR (adding the new combinator syntax and removing an old one) every time they change the draft?

  4. tigerhawkvok commented on Oct 13, 2016

    @tigerhawkvok
    Author

    Well, this has been stable for over a year, so honestly saying "every time they change the draft' is a bit misleading

  5. seven-phases-max commented on Oct 13, 2016

    @seven-phases-max
    Member

    @tigerhawkvok A year is just a twink in the CSS realm. I usually like to recall of CSS vars that were hanging there for decades and yet changed the syntax at Draft->CR transition almost at the last moment...
    Either way, I don't see how this "over a year" changes anything - if none is willing to implement and then maintain any draft staff, it's not going to appear itself. And after #1801, #2023 boogie-woogie (leaving some garbage in the code-base) it's no wonder these things are treated sceptically.

  6. aminpaks commented on Jul 28, 2017

    @aminpaks

    Can we have >>> selector soon?

  7. Jack-Works commented on Aug 4, 2017

    @Jack-Works

    Maybe less should consider about support >>> now?

    vuejs/vue-loader#913

  8. matthew-dean commented on Aug 4, 2017

    @matthew-dean
    Member

    I'm with @seven-phases-max. There's still some debate on if shadow-piercing combinators are going to ever make it, since there are some that debate the philosophy of it (preferring locally-scoped styles). It's not tracked on caniuse.com, it doesn't have browser support, so that's why it's not supported (natively) in Less. But, as pointed out, it can be hacked in. I recommend closing this issue and re-opening only if this reaches CR status.

  9. IEvangelist commented on Aug 29, 2017

    @IEvangelist

    I'm working on an angular app and believe we should start switching over to using >>> instead of /deep/.

    Why not support >>>. It is valid .css, so why not? Perhaps I'm being naive but in looking at the /deep/ notation I found this SO issue that led me to believe that we should be using >>> instead, however less doesn't support it. What am I missing?

  10. aminpaks commented on Aug 29, 2017

    @aminpaks

    @IEvangelist Regarding Angular stuff according to this post apparently you don't need >>> if you use ::ng-deep instead. And bottom line is >>> or /deep/ will be deprecated from css as far as I understood.

  11. Jack-Works commented on Aug 30, 2017

    @Jack-Works
  12. aminpaks commented on Aug 30, 2017

    @aminpaks

    @Jack-Works it's already explained for now you can use escape string as:

    @deep: ~'>>>';
    // use @deep value in your selectors
    .base-class @{deep} .deep-selector-class { }
  13. seven-phases-max commented on Nov 7, 2017

    @seven-phases-max
    Member

    Closing until they make a final decision (according to latest rumors >>> is going to be kicked out too).
    The universal workaround (see the escaping trick above) is given and it fits any experimental/draft combinator/selector syntax just fine.

    TODO: Open a generic issue to make combinator parsing more "relaxed" to accomodate some anticipated syntax (e.g. https://drafts.csswg.org/selectors-4/#descendant-combinators etc., possibly including even not existing things like >>>>> and /*&^$*^&$/ with a low level warnings or so).

  14. matthew-dean commented on Nov 7, 2017

    @matthew-dean
    Member

    @seven-phases-max I agree it would be forward-thinking to think of a a regex that would just capture any experimental combinators. I'm not sure there's a lot of reason for Less to be terribly discriminating with selectors. But it's true that browsers are intent now on removing shadow-piercing of any kind as an unwanted complexity.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions