Created attachment 122242 [details] Reproduces the problem described. Use of the attribute selector fails to work right when mixed with :after content: CSS rules. It seems like it works then something is cached and then applied to another element that follows it incorrectly.
very similar or even a dupe of bug 71621 or bug 73103.
So it is.. While I didn't do no searching for this bug I guess I wasn't through enough. *** This bug has been marked as a duplicate of bug 71621 ***