CodePen - Only a problem on Safari
HTML
<div id="background"></div>
<div class="text">
This is some sample text that doesn't look great.
</div>
<div class="text text-background">
This is some sample text that looks stellar!
</div>
CSS
#background {
background-image: url("https://s3-us-west-2.amazonaws.com/ks.test/beaver_creek.jpg");
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
width: 100%;
background-position: center center;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
.text {
color: white;
font-family: "Lato";
font-size: 20px;
font-weight: 300;
position: relative;
}
.text-background {
background-color: #464646;
height: 50px;
line-height: 50px;
margin-top: 10px;
}
I've found lots of related posts (here for example), but none that directly address the issue when a background image appears to be the culprit.
Only in Safari, I'm running into an issue where font renders poorly against a background image, but when I remove the background image and set it to gray the font looks fine.