Applying CSS to an element with a specific attribute

div[role="main"]
{
background-color: lightyellow;
}