Skip to content

Commit

Permalink
Added text-shadow failure - Text has minimum contrast [afw4f7] (#2184)
Browse files Browse the repository at this point in the history
* Added text-shadow failed example

* Update _rules/text-contrast-afw4f7.md

Co-authored-by: Wilco Fiers <[email protected]>

* Update text-contrast-afw4f7.md

* Update text-contrast-afw4f7.md

* Update spelling-ignore.yml

---------

Co-authored-by: Wilco Fiers <[email protected]>
Co-authored-by: Carlos Duarte <[email protected]>
Co-authored-by: Jean-Yves Moyen <[email protected]>
  • Loading branch information
4 people committed Aug 30, 2024
1 parent 7e71738 commit b4663d2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions __tests__/spelling-ignore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@
- unitless
- luminance
- disambiguated
- grey

# Parts of Unicode
- 000A
Expand Down
10 changes: 10 additions & 0 deletions _rules/text-contrast-afw4f7.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,16 @@ This text in a [semantic button][semantic role] has a contrast ratio of 3.85:1.
<div role="button" style="color: #777; background: #EEE;">My button!</div>
```

#### Failed Example 11

The grey text has a contrast between 2.7:1 and 2.9:1 against the grey text shadow.

```html
<p style="background: #fff; color: #666; text-shadow: #aaa 2px 2px 4px, #aaa -2px 2px 4px, #aaa 2px -2px 4px, #aaa -2px -2px 4px;">
Some text in a human language
</p>
```

### Inapplicable

#### Inapplicable Example 1
Expand Down

0 comments on commit b4663d2

Please sign in to comment.