It seems to me that Chrome does not consider the "before" pseudo-element as part of the element. More precisely, I have a CSS definition
.myclass:before{content:"A";}
and HTML code
<a href="blah" class="myclass">B</a>
In Chrome, the result is an “AB” hyperlink, but only “B” is actually clickable. In Firefox and Opera, the whole “AB” is a link, and my reading of the CSS standard indicates that Chrome is wrong here.
Do I think this is a Chrome bug? Is there a simple and clear workaround?
source share