10 lines
152 B

<div>
<p data-foo='barbaz'>this is styled</p>
<p data-foo='bazbar'>this is unstyled</p>
</div>
<style>
[data-foo^='bar'] {
color: red;
}
</style>