So, if an inline style has a css specificity of 1000 and IDs have a specificity of 100, stacking 11 ID's with a class should override the inline style without using the !important declaration.
So, why doesn't this work? I thought CSS had a point system where the highest number wins.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>title</title>
<style>
#a > #b > #c > #d > #e > #f > #g > #h > #i > #j > #k > div.foo {
background-color: red;
}
</style>
</head>
<body>
<div id="a">
<div id="b">
<div id="c">
<div id="d">
<div id="e">
<div id="f">
<div id="g">
<div id="h">
<div id="i">
<div id="j">
<div id="k">
<div style="background-color: blue;" class="foo">FOOOO</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>