Skip to content

Commit b4663d2

Browse files
giacomo-petriWilcoFierscarlosapaduarteJym77
authored
Added text-shadow failure - Text has minimum contrast [afw4f7] (#2184)
* 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]>
1 parent 7e71738 commit b4663d2

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

__tests__/spelling-ignore.yml

+1
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@
239239
- unitless
240240
- luminance
241241
- disambiguated
242+
- grey
242243

243244
# Parts of Unicode
244245
- 000A

_rules/text-contrast-afw4f7.md

+10
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,16 @@ This text in a [semantic button][semantic role] has a contrast ratio of 3.85:1.
296296
<div role="button" style="color: #777; background: #EEE;">My button!</div>
297297
```
298298

299+
#### Failed Example 11
300+
301+
The grey text has a contrast between 2.7:1 and 2.9:1 against the grey text shadow.
302+
303+
```html
304+
<p style="background: #fff; color: #666; text-shadow: #aaa 2px 2px 4px, #aaa -2px 2px 4px, #aaa 2px -2px 4px, #aaa -2px -2px 4px;">
305+
Some text in a human language
306+
</p>
307+
```
308+
299309
### Inapplicable
300310

301311
#### Inapplicable Example 1

0 commit comments

Comments
 (0)