I'm trying to get an effect of "padded" lines of variable length in a span using the following css. We do not know what the content of the lines will be.
You can see the effect here:
#container{
width:300px;
margin:0 auto;
background-color:#ccc;
height:100px;
padding:20px;
}
.text{
max-width:250px;
}
span{
max-width:250px;
background-color: #FF8E1B;
box-shadow: 10px 0 0 #FF8E1B,-10px 0 0 #FF8E1B;
-moz-box-shadow: 10px 0 0 #FF8E1B,-10px 0 0 #FF8E1B;
-webkit-box-shadow: 10px 0 0 #FF8E1B,-10px 0 0 #FF8E1B;
display: inline;
padding: 1px 0;
font-size: 14px;
line-height: 22px;
letter-spacing: .28px;
font-weight: 100;
color:#fff;
}
<div id="container">
<div class="text">
<span>
Hello World Hello World Hello World
Hello World Hello World Hello<br>
Hello World Hello World Hello World
</span>
</div>
</div>
In Firefox (only tested in 42), it only applies the box-shadow to the first and last line. In every other browser, it applies the box-shadow to every line.
1) Is this a bug in Firefox? Should I submit a bug report to Mozilla?
2) Is there a way to fix this or another way to get this effect with the given restraints?