@CodaCoder I suspect :is() is the correct choice. Here is the use case so you can better comment.
I have been using these css custom style data-tags to define which edit fields appear in my edit template.
All my controls for these fields have a class that defines {display:none} and these data-tags in css explicitly change those to {display:block}
These controls appear in tiddler edit mode, providing a complete list of editable fields defined for a specific tag.
In the limited example I previously provided I showed a few fields that would appear if the tiddler being edited was tagged with “video”.
When used the syntax @saqimtiaz provided it appears to be functional/working.
Also, I suspect this approach would be processed more efficiently than the way I had it.
Thoughts?