Testing CSSRule.selectorText and FindRule

Test Area

span #fooBar .fooBar #fooFoo .fooFoo #barFoo .barFoo .fooFoo.barBar #barBar.fooFoo

Your Browser

Given the following CSS rules...

span                { color:red }
#fooBar             { color:orange }
.fooBar             { color:yellow }
*#fooFoo            { color:chartreuse }
*.fooFoo            { color:green }
SPAN#barFoo         { color:blue }
SPAN.barFoo         { color:purple }
span.fooFoo.barBar  { color:violet }
span#barBar.fooFoo  { color:black }

...here's what your browser says the selectors are:


	

Other Browser Results

Original CSS Mozilla Flavors IEWin v6 IEMac v5.2.3 Safari v1.2
span #fooBar .fooBar *#fooFoo *.fooFoo SPAN#barFoo SPAN.barFoo span.fooFoo.barBar span#barBar.fooFoospan #fooBar .fooBar #fooFoo .fooFoo span#barFoo span.barFoo span.fooFoo.barBar span#barBar.fooFooSPAN #fooBar .fooBar #fooFoo .fooFoo SPAN#barFoo SPAN.barFoo SPAN.barBar SPAN.fooFoo#barBarSPAN *#fooBar *.fooBar *#fooFoo *.fooFoo SPAN#barFoo SPAN.barFoo SPAN.barBar SPAN.fooFoo#barBarSPAN *[ID"fooBar"] .fooBar *[ID"fooFoo"] .fooFoo SPAN[ID"barFoo"] SPAN.barFoo[CLASS~="barFoo"] SPAN.fooFoo[CLASS~="fooFoo"].barBar SPAN[ID"barBar"].fooFoo

Notes