css - Why does this selector not work -


given following markup

<div class="fixed">     <div class="clmn2">     </div>     <div class="clmn2">     </div> </div> 

and information given on mdn

by interpretation selector should work.

*:not(.fixed) [class*="clmn"] 

unfortunately not, does.

div:not(.fixed) [class*="clmn"] 

any ideas why?

*update *

if check linked fiddle column in rows not marked class fixed should floated.

*:not(.fixed) foo matches

a foo element descendant of element not member of fixed class

this different to:

a foo element not descendant of element member of fixed class

if had:

<a class="fixed">   <b>     <foo></foo>   </b> </a> 

then foo element descendant of b element not member of fixed class. (it also descendant of a element is member of class, doesn't matter because *:not(.fixed) happily match b element instead.)


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -