1
I have the Web Essentials installed in my Visual Studio, and he made me the following recommendation:
Logo, I removed the drive type. The style worked perfectly on Chrome, but while testing on Firefox and IE, it was found invalid.
Sample code:
.mydiv {
width: 100%;
height: 100px;
background: linear-gradient(0, red, yellow);
border: solid black 1px;
}
<div class="mydiv"></div>
It would be even good practice to remove the drive type from the CSS when the value is 0?
Is there any alternative but to insert the unit type?
"it was considered invalid" By that you mean you rolled some error in the console or that the gradient did not work?
– Jéf Bueno
that the gradient didn’t work... No message on the console, but the Firefox warns the reason
– Jedaias Rodrigues
No edge worked for me, testing the snippet.
– Jéf Bueno
@Edilson I read IE in the publication and interpreted as Edge, my fault.
– Jéf Bueno