blob: 60b6fa366b98e15266c13669424835dd452030a3 [file] [log] [blame]
Tests various selector combinations, containing unknown pseudo element selectors.
Basic selector tests:
::-webkit-slider-thumb should match: PASS
*::-webkit-slider-thumb should match: PASS
::-webkit-slider-thumb, where HTML is not default namespace should not match: PASS
*|::-webkit-slider-thumb, where HTML is not default namespace should match: PASS
*|*::-webkit-slider-thumb, where HTML is not default namespace should match: PASS
html|::-webkit-slider-thumb, where HTML is not default namespace should match: PASS
html|*::-webkit-slider-thumb, where HTML is not default namespace should match: PASS
#foo::-webkit-slider-thumb should match: PASS
.bar::-webkit-slider-thumb should match: PASS
#foo::-webkit-slider-thumb, where HTML is not default namespace should not match: PASS
.bar::-webkit-slider-thumb, where HTML is not default namespace should not match: PASS
html|#foo::-webkit-slider-thumb, where HTML is not default namespace should match: PASS
html|.bar::-webkit-slider-thumb, where HTML is not default namespace should match: PASS
*|#foo::-webkit-slider-thumb, where HTML is not default namespace should match: PASS
input::-webkit-slider-thumb should match: PASS
input#foo::-webkit-slider-thumb should match: PASS
input.bar::-webkit-slider-thumb should match: PASS
input::-webkit-slider-thumb, where HTML is not default namespace should not match: PASS
input#foo::-webkit-slider-thumb, where HTML is not default namespace should not match: PASS
input.bar::-webkit-slider-thumb, where HTML is not default namespace should not match: PASS
html|input::-webkit-slider-thumb, where HTML is not default namespace should match: PASS
html|input#foo::-webkit-slider-thumb, where HTML is not default namespace should match: PASS
html|input.bar::-webkit-slider-thumb, where HTML is not default namespace should match: PASS
*|input#foo::-webkit-slider-thumb, where HTML is not default namespace should match: PASS
input[type=range]::-webkit-slider-thumb should match: PASS
input#foo[type=range]::-webkit-slider-thumb should match: PASS
input.bar[type=range]::-webkit-slider-thumb should match: PASS
Shouldn't ignore selector after the unknown pseudo element:
::-webkit-slider-thumb:disabled should not match: PASS
*::-webkit-slider-thumb:disabled should not match: PASS
input::-webkit-slider-thumb:disabled should not match: PASS
#foo::-webkit-slider-thumb:disabled should not match: PASS
input#foo::-webkit-slider-thumb:disabled should not match: PASS
input.bar::-webkit-slider-thumb:disabled should not match: PASS
input[type=range]::-webkit-slider-thumb:disabled should not match: PASS
Should not match disabled input, because the disabled state is on the input, not the thumb:
::-webkit-slider-thumb:disabled should not match: PASS
*::-webkit-slider-thumb:disabled should not match: PASS
input::-webkit-slider-thumb:disabled should not match: PASS
#foo::-webkit-slider-thumb:disabled should not match: PASS
input#foo::-webkit-slider-thumb:disabled should not match: PASS
input.bar::-webkit-slider-thumb:disabled should not match: PASS
input[type=range]::-webkit-slider-thumb:disabled should not match: PASS
Should match :hover when the mouse is over the slider thumb:
::-webkit-slider-thumb:hover should match: PASS
*::-webkit-slider-thumb:hover should match: PASS
input::-webkit-slider-thumb:hover should match: PASS
#foo::-webkit-slider-thumb:hover should match: PASS
input#foo::-webkit-slider-thumb:hover should match: PASS
input.bar::-webkit-slider-thumb:hover should match: PASS
input[type=range]::-webkit-slider-thumb:hover should match: PASS
Should match when combined with descendant selectors:
#baz ::-webkit-slider-thumb should match: PASS
#baz *::-webkit-slider-thumb should match: PASS
#baz input::-webkit-slider-thumb should match: PASS
#baz #foo::-webkit-slider-thumb should match: PASS
#baz input#foo::-webkit-slider-thumb should match: PASS
#baz input.bar::-webkit-slider-thumb should match: PASS
#baz input[type=range]::-webkit-slider-thumb should match: PASS
.qux ::-webkit-slider-thumb should match: PASS
.qux *::-webkit-slider-thumb should match: PASS
.qux input::-webkit-slider-thumb should match: PASS
.qux #foo::-webkit-slider-thumb should match: PASS
.qux input#foo::-webkit-slider-thumb should match: PASS
.qux input.bar::-webkit-slider-thumb should match: PASS
.qux input[type=range]::-webkit-slider-thumb should match: PASS
Should match when combined with sibling selectors:
#sib + ::-webkit-slider-thumb should match: PASS
#sib + *::-webkit-slider-thumb should match: PASS
#sib + input::-webkit-slider-thumb should match: PASS
#sib + #foo::-webkit-slider-thumb should match: PASS
#sib + input#foo::-webkit-slider-thumb should match: PASS
#sib + input.bar::-webkit-slider-thumb should match: PASS
#sib + input[type=range]::-webkit-slider-thumb should match: PASS
#sib ~ ::-webkit-slider-thumb should match: PASS
#sib ~ *::-webkit-slider-thumb should match: PASS
#sib ~ input::-webkit-slider-thumb should match: PASS
#sib ~ #foo::-webkit-slider-thumb should match: PASS
#sib ~ input#foo::-webkit-slider-thumb should match: PASS
#sib ~ input.bar::-webkit-slider-thumb should match: PASS
#sib ~ input[type=range]::-webkit-slider-thumb should match: PASS
.ling + ::-webkit-slider-thumb should match: PASS
.ling + *::-webkit-slider-thumb should match: PASS
.ling + input::-webkit-slider-thumb should match: PASS
.ling + #foo::-webkit-slider-thumb should match: PASS
.ling + input#foo::-webkit-slider-thumb should match: PASS
.ling + input.bar::-webkit-slider-thumb should match: PASS
.ling + input[type=range]::-webkit-slider-thumb should match: PASS
.ling ~ ::-webkit-slider-thumb should match: PASS
.ling ~ *::-webkit-slider-thumb should match: PASS
.ling ~ input::-webkit-slider-thumb should match: PASS
.ling ~ #foo::-webkit-slider-thumb should match: PASS
.ling ~ input#foo::-webkit-slider-thumb should match: PASS
.ling ~ input.bar::-webkit-slider-thumb should match: PASS
.ling ~ input[type=range]::-webkit-slider-thumb should match: PASS