Merge pull request #1205 from herschel666/patch-1

Add "Begins with" attribute selector to CSS sheet
This commit is contained in:
Rico Sta. Cruz 2019-09-25 10:10:37 +10:00 committed by GitHub
commit 74ba88e2da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 7 deletions

15
css.md
View File

@ -43,13 +43,14 @@ keywords:
### Attribute selectors
| Selector | Description |
| ----------------- | ----------------------------------- |
| `[role="dialog"]` | `=` Exact |
| `[class~="box"]` | `~=` Has word |
| `[class|="box"]` | `|=` Exact or prefix (eg, `value-`) |
| `[href$=".doc"]` | `$=` Ends in |
| `[class*="-is-"]` | `*=` Contains |
| 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