Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added text-shadow failure - Text has minimum contrast [afw4f7] #2184

Merged
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
Loading