Closed chbk closed 1 year ago
p[data-foo]::before { content: attr(data-foo); }
The argument passed to attr() should be attribute_name instead of plain_value.
attr()
attribute_name
plain_value
Mozilla documentation.
we can't determine nodes dynamically at parse time, you can use queries to capture certain patterns and highlight them like an attribute_name instead
The argument passed to
attr()
should beattribute_name
instead ofplain_value
.Mozilla documentation.