HTML and CSS Reference
In-Depth Information
Name
Partial Attribute Value Selector
Pattern:
element1[attr~="value"]
Description:
This allows authors to select any element based on a portion of the space-separated value of
an attribute. Note that
[class~="value"]
is equivalent to
.value
(see above).
Examples:
a[rel~="friend"] {text-transform: uppercase;}
p[class~="warning"] {background: yellow;}