<div class="box">
  <div class="foo">CSS Nestting</div>
</div>
@use postcss-preset-env{
  stage: 0;
  browsers: last 2 versions
}

.box {
  color: red;
  
  & .foo {
    color: blue;
  }
}

@import url("https://fonts.googleapis.com/css2?family=Exo:wght@600&display=swap");

body {
  width: 100vw;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Exo", Arial, sans-serif;
  font-size: 10vw;
}



View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.