I am trying to restyle div's who reside inside p elements (such are automatically created when using content editable on text). But selector have no effect - div > p works whereas p > div doesn't.
div > p{
background-color: yellow;
}
p > div{
background-color: yellow;
}
<div>123<p>45</p></div>
<p>123<div>45</div></p>
123
123