CSS attribute selectors in some cases will pull the style from a previously applied rule when it doesn't make sense. Restyling the specific element will force it to the correct style. Attached is a simple repro case.
Created attachment 215016 [details] Repro
*** This bug has been marked as a duplicate of bug 139283 ***