Hacker News new | ask | show | jobs
by taylorlapeyre 4307 days ago
Very interesting approach. One small peeve: this method will not allow you to use Sass/LESS nesting.
1 comments

why wouldn't it? Attribute selectors are just selectors.

    [foo] {
      color: blue;
      background-color: pink;
      .bar .baz {
        [qux~="ok"] {
          color: red;
        }
      }
    }
compiles to

    [foo] {
      color: blue;
      background-color: pink;
    }
    [foo] .bar .baz [qux~="ok"] {
      color: red;
    }
as I'd expect.
Oh, lovely! I must have been mistaken then.