Comments (5)
There is no feasible way to check for the gradient programmatically, but the color error should still be valid because it falls under the same category as having an image there.
The way I see it is - if the background image didn't load (or if the gradient wasn't supported in that browser), the user would see the button's background-color. In this case, white, which fails a contrast check. In short, there should be an explicit background color on this button (even if the gradient overrides it) that has viable contrast. Scratch this, we're not reading the background-color if there's a gradient there.
Would be nice to communicate this to the user, though. Perhaps check for background-image and modify the error message to include the info I just wrote above?
from tota11y.
Oh. I forgot to mention. If you look at the css it does have an explicit
fallback background color that is valid. (it's strikes out because chrome
is is using background-image insted). So I guess that might be a bug?
But yeah if you can't check for the gradient colors, at least a check for
background-image with an explanation would be good. The explenations are
one of the great strengths of this project.
On 9 Jun 2015 17:04, "Jordan Scales" [email protected] wrote:
There is no feasible way to check for the gradient programmatically, but
the color error should still be valid because it falls under the same
category as having an image there.The way I see it is - if the background image didn't load (or if the
gradient wasn't supported in that browser), the user would see the button's
background-color. In this case, white, which fails a contrast check. In
short, there should be an explicit background color on this button (even if
the gradient overrides it) that has viable contrast.Would be nice to communicate this to the user, though. Perhaps check for
background-image and modify the error message to include the info I just
wrote above?—
Reply to this email directly or view it on GitHub
#5 (comment).
from tota11y.
Oh, my mistake, you're absolutely right. Checking either end of the gradient is probably the best we can do.
from tota11y.
I went ahead and filed the first bit - descriptive error messages for background images - as its own issue in #6.
from tota11y.
GoogleChrome/accessibility-developer-tools#79
May need to leave it up to them.
from tota11y.
Related Issues (20)
- bookmarklet doesn't work on local files because of its use of a protocol-relative URL HOT 2
- Elements with aria-hidden="true" still included in output of Screen Reader Wand HOT 5
- Don't include build artifacts in repo HOT 1
- Add .editorconfig
- Merging in additional plugins
- Suggested Contrast Colors Appear to Have Rounding Errors HOT 2
- Headers order does not respect role heading
- Bad distribution system. HOT 6
- Link Text is Unclear HOT 1
- False Positive: Video element triggers label warning
- "First heading is not an <h1>" should not be an error
- False negative? Link with <code> inside
- (new user) tota11y doesn't work on all webpages HOT 1
- Which level is Tota11y checking against? HOT 1
- Stopped Working Entirely HOT 4
- Provide the ability to ignore/exclude custom elements
- 11y HOT 3
- Abandoned? HOT 5
- Injected style sheet CSS causing strange behavior
- differentiate green and red highlight
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tota11y.