Sök i support

Akta dig för supportbedrägerier: Vi kommer aldrig att be dig att ringa eller skicka ett sms till ett telefonnummer eller dela personlig information. Rapportera misstänkt aktivitet med alternativet "Rapportera missbruk".

Learn More

3.6.15 appears to have a problem with specificity. Selectors are being over-ridden by rules with much lower Specificity selectors. 3.6.14 was not doing this.

  • 4 svar
  • 14 har detta problem
  • 1 visning
  • Senaste svar av bgwebwriter

more options

I've just wasted at least a day's work chasing what appears to be a CSS bug that has cropped up in 3.6.15. Selectors with high Spec are being ignored in favour of selectors with much lower Spec.

I've just wasted at least a day's work chasing what appears to be a CSS bug that has cropped up in 3.6.15. Selectors with high Spec are being ignored in favour of selectors with much lower Spec.

Alla svar (4)

more options

Can you give some example code or a web page that has this behavior?

more options

Last night I had an opportunity to isoolate the problem to one install on one Win7 box. A clean install solved it. Suspect a combination of dev add-ons had a lot to do with it. :) Sorry to have troubled you.

more options

Here's an example. Here's my CSS for links in my menu div: .menu a:link,a:visited { color:white; display:block; width:120px; font-weight:bold; text-align:center; padding:2px; text-decoration:none; text-transform:uppercase; font-size:10px; margin:0 0 10px 0; }

.menu a:hover,a:active { background-color:white; color:black; }

And then for another div on the same page:

.copy a:link,a:visited { text-decoration:underline; color:#C91313; } .copy a:hover,a:active { text-decoration:underline; color:#7D0E0E; }

These divs do not overlap. It seems that links in each div have the styles that are unique to them, but the styles that are defined in both, but defined differently, are ignored. Example: Different colors are defined for links in each div, but Firefox 3.6.15 displays all links with the same color.

more options

This method worked fine in the previous version of Firefox.