Skip to content

Cascading/compound selector #160

Description

@emilbayes

Is there anything preventing sheetify from parsing a selector like this: .validate :host:invalid? In my case this leaves the :host part alone instead of replacing the token with the right class name

Activity

  1. changed the title [-]Cascading selector[/-] [+]Cascading/compound selector[/+] on Oct 30, 2018
  2. goto-bus-stop commented on Oct 30, 2018

    @goto-bus-stop
    Member
  3. goto-bus-stop commented on Oct 30, 2018

    @goto-bus-stop
    Member

    This line:

    https://github.com/stackcss/postcss-prefix/blob/e8fc6d9e48348e7270881a63ce721f9ac06a9bad/index.js#L25-L26

    I think before :host was used, selectors were prefixed by default, maybe this is a leftover from that? I wasn't using sheetify back then

  4. emilbayes commented on Oct 30, 2018

    @emilbayes
    MemberAuthor

    I tried digging into the prefix code but wasn't quite ready to go down the postcss rabbit hole 😄 The line in question seems not to be processed for some reason, as I find the exact same selector in the output.

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