Re: [csswg-drafts] [css-nesting] Syntax suggestion (#4748)

I have been using postcss nesting for the past month and prefer the current implementation of &{}.

body {
    background: black;
    color: white;

    & main {
            background: orange;
            color: black;
    }

    &  p {
        font: serif;
    }
}

where CSS nesting doesn't work for me; is the modifier (BEM methodology ) using the double dashes like the example below:

card {
   &--large {
       //
    }
}

-- 
GitHub Notification of comment by nileshprajapati
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4748#issuecomment-1152464001 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 10 June 2022 15:09:28 UTC