1/22/14

style attribute caring about order


This is how Chrome is rendering the following:

<div style="width:100px;height:100px;border:20px solid rgba(0,0,0,0.5);
background:red;background-clip:content-box;float:left"></div>

<div style="width:100px;height:100px;border:20px solid rgba(0,0,0,0.5);
background-clip:content-box;background:red;float:left"></div>

The only difference between these is the ordering of "background:red" and "background-clip:content-box". Is this ordering supposed to matter?

No comments:

Post a Comment