Recently, I am studying CSS priority level of selector according to the page: https://www.w3.org/wiki/CSS/Training/Priority_level_of_selector, I have one problem:
* {
margin: 0;
padding: 0;
}
.see-me,
ul li {
width: 300px;
height: 300px;
border: 1px solid red;
}
/* [0,0,0,2] */
ul li {
background: yellow; color: red;
}
/* [0,0,10,0] */
.see-me {
background: gray; color: blue;
}
<div class="see-me">
<ul>
<li>.see-me has higher priority level [0,0,10,0], so why is font color not blue, but red ?</li>
</ul>
</div>
font color should be blue, but it is red ! here is DEMO