| <csstest def="Substring matching attribute selector (contains)" module="W3C Selectors" modulename="css3-modsel" number="11" rev="1.1" date="12-november-2001" xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns="http://www.example.org/css3tests"> |
| |
| <author>Daniel Glazman</author> |
| <author>Ian Hickson</author> |
| |
| <cssrules>p { background-color : red } |
| p[title*="bar"] { background-color : lime }</cssrules> |
| |
| <code> |
| <p title="foobarufoo" xmlns="http://www.w3.org/1999/xhtml">This paragraph should have a green background because |
| its title attribute contains "bar"</p> |
| </code> |
| |
| </csstest> |