homepage Welcome to WebmasterWorld Guest from 54.161.192.61
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / WebmasterWorld / Accessibility and Usability
Forum Library, Charter, Moderators: ergophobe

Accessibility and Usability Forum

    
Detecting High Contrast Themes: Possible?
ken_b

WebmasterWorld Senior Member ken_b us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4529021 posted 5:35 pm on Dec 17, 2012 (gmt 0)

I'm not sure how to describe this question/situation.

Some operating systems (win 7, etc) let a user select a high contrast them for the system.

Is there anyway for a website to dect that and serve content designed for a high contrast environment?

Does a browser send this kind of info, or can it be made to send it?

 

ergophobe

WebmasterWorld Administrator ergophobe us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4529021 posted 11:09 pm on Dec 17, 2012 (gmt 0)

Basically, accessibility mode doesn't allow background images to show, so you can test for that.

Essentially, you inject a background image with a known name into a div with a known ID, and then you test for whether or not it's there.

Trying to find a good resource....

ken_b

WebmasterWorld Senior Member ken_b us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4529021 posted 11:40 pm on Dec 17, 2012 (gmt 0)

Thanks

Man, my proofreading sucks!

> high contrast them + high contrast theme
> to dect that = to detect that

ergophobe

WebmasterWorld Administrator ergophobe us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4529021 posted 3:05 am on Dec 18, 2012 (gmt 0)

Here we go -

This is built into the Dojo library
- https://dojotoolkit.org/reference-guide/1.8/dojo/hccss.html
- https://dojotoolkit.org/reference-guide/1.8/dijit/a11y/resources.html
- [dojotoolkit.org...]

There's been some work on it in JQuery UI but I don't think it's part of any stable release.
- [bugs.jqueryui.com...] and https://github.com/jquery/jquery-ui/pull/217

ken_b

WebmasterWorld Senior Member ken_b us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4529021 posted 2:37 pm on Dec 18, 2012 (gmt 0)

Thanks Ergophobe.

I've been reading through those links and think I get the basic idea. Might have more questions later.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Accessibility and Usability
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved