css at least selector work around

by kuyabiye

HTML

<div>
    <p>1</p>
    <p>2</p>
</div>
------
<div>
    <p>1</p>
    
</div>

CSS

p:first-child:nth-last-child(2),
p:first-child:nth-last-child(2) ~ p {
    color: red;
}