CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 12 of 153 of the static tests category | |
Testing | Date | Revision |
Substring matching attribute selector (contains) (ID #11) | 2001-11-12 | 1.1 |
This paragraph should have a green background because its title attribute contains "bar"
p { background-color : red } p[title*="bar"] { background-color : lime }
<p title="foobarufoo">This paragraph should have a green background because its title attribute contains "bar"</p>