input[placeholder] {
/* matches any input with a placeholder */}
input[type=email] {
/* exact match */}
abbr[title~=unicorn] {
/* matches unicorn but not unicorns */}
abbr[title|=en] {
/* matches en-us and en-uk */}
a[href^=mailto] {
/* starts with */}
a[href$=pdf]{
/* ends in */}
abbr[title*=unicorn] {
/* matches unicorn and unicorns */}
E:[att]
/* have the attribute at all */
E:[att=val]
/* exact */
E:[att~=val]
/* val is a space separated word */
E:[att|=val]
/* with a dash */
E:[att^=val]
/* begins with val */
E:[att$=val]
/* ends with val */
E:[att*=val]
/* val is anywhere as a substring */
.
@media print{
abbr[title]:after {
content: "(" attr(title) ")";
}
a[href^=http]:after {
content: "(" attr(href) ")";
}
}