<p id="apple">
  りんご
</p>
<p class="banana">
 バナナ
</p>
@scope (#apple,.banana) {
  & {
     background-color:pink;
   }
  :scope {
    background-color:red;
   }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.