Add "Begins with" attribute selector to CSS sheet

This commit is contained in:
Emanuel Kluge 2019-09-18 15:01:33 +02:00 committed by GitHub
parent c353827bc4
commit 27be18e66b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 7 deletions

3
css.md
View File

@ -44,11 +44,12 @@ keywords:
### Attribute selectors
| Selector | Description |
| ----------------- | ----------------------------------- |
| ------------------ | ----------------------------------- |
| `[role="dialog"]` | `=` Exact |
| `[class~="box"]` | `~=` Has word |
| `[class|="box"]` | `|=` Exact or prefix (eg, `value-`) |
| `[href$=".doc"]` | `$=` Ends in |
| `[href^="/index"]` | `^=` Begins with |
| `[class*="-is-"]` | `*=` Contains |
### Pseudo-classes