I'm trying to set the value of a string-set with the following CSS:
This works without any problems but for some reasons I have multiple meta elements with name="mykey" in the head and I'd like to use only the first one. So I used
But unfortunately I had no success with :first-of-type. What am I doing wrong?
Thanks,
Michael
meta[name="mykey"] {
string-set: mystringset attr(content);
}
This works without any problems but for some reasons I have multiple meta elements with name="mykey" in the head and I'd like to use only the first one. So I used
meta[name="mykey"]:first-of-type {
string-set: mystringset attr(content);
}
But unfortunately I had no success with :first-of-type. What am I doing wrong?
Thanks,
Michael