I would like to apply some style to elements with the data attribute product but also to specific products.
product
Is there a way to d
input[data-product] { color: #000; } input[data-product=red] { color: #f00; }
You do not need to nest, the second style will override the first.