I'm using a custom horizontal rule CSS style on my site. It looks like the following:

But since I have updated my Google Chrome to version 61 the line height of the symbol is ignored and it looks like this:

I'm using the following code:
hr {
background: #ccc;
border: 0;
height: 1px;
line-height: 1 !important;
margin: 20px 0;
text-align: center;
clear: both;
}
hr:after {
content: '\f0c4';
display: inline-block;
position: relative;
top: -10px;
padding: 0 10px;
background: #fff;
color: #ccc;
font-family: 'FontAwesome';
font-size: 20px;
}
The overflow property seems to have a new default value on the <hr> element.
It looks like the value changed from visible to hidden, so the icon is hidden. You can add overflow:visible to the <hr> element to show your icon again.
hr {
background:#ccc;
border:0;
clear:both;
height:1px;
line-height:1 !important;
margin:20px 0;
overflow:visible;
text-align:center;
}
hr:after {
background:#fff;
color:#ccc;
content:'\f0c4';
display:inline-block;
font-family:'FontAwesome';
font-size:20px;
padding:0 10px;
position:relative;
top:-10px;
}
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"/>
<hr/>
Hint: I recommend you to use normalize.css to avoid such an issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With