Encountered an unusual CSS bug:
After using background-image
to style hr
, none of the subsequent rules or selectors are displaying on the page:
hr {
border: 0;
height: 1px;
background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
background-image: -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
background-image: -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0);
background-image: -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
}
In Firefox, only 1 active rule is shown in the dev tools, despite many rules being present afterwards. Moving this particular rule to the end resolved the issue.
Any explanation for this behavior that I may be overlooking? It seems like there might be a simple solution that I'm missing.