I'd like to write a css rule that would use different quotation marks for quotes in different languages. I know that lang is an HTML attribute, so why I can't use the css attribute selector below? Shouldn't the code below target all q and blockqutote elements that are inside an element with lang attribute that has sk value?
[lang=sk] q,
[lang=sk] blockquote {
quotes: "-" "-";
}
I know the following code works, but I don't quite understand why the code above doesn't. This example uses pseudo class instead, which is not very intuitive for me. The reason probably is that lang is an html attribute at the same time, which is sort of confusing for me.
:lang(sk) q,
:lang(sk) blockquote {
quotes: "-" "-";
}
Thanks in advance for clearing this up for me.