Community
Participate
Working Groups
org.eclipse.swt.browser.Browser widget does not support High Contrast Mode. The HTML text rendered is invisible.
Daniel - can you specify which Eclipse use case you find the problem for? Was it the Welcome page? Please give us a list. The Browser widget should have the same behaviour as Internet Explorer. Maybe the HTML/CSS content needs to be made accessible.
I did not use Eclipse use case. I just outputted very basic HTML in the Browser and switched to contrast mode: the text was invisible. Also the code editor was showing similar bahaviour - the code was not visible either.
Does it render differently than from a regular Internet Explorer? Please attach the HTML to the PR. I've tried the BrowserExample plug-in on a few URLs (www.eclipse.org, www.cnn.com). The content appeared in a similar manner on Internet Explorer. I tried on Windows XP, with the following setting in the Control Panel: Accessibility > Display > Use High Contrast. Microsoft has an article 303154 "Text may be unreadable in Internet Explorer if High Contrast Mode Is Enabled". http://support.microsoft.com/default.aspx?scid=kb;EN-US;q303154 In particular: "This problem can occur because under certain conditions, Internet Explorer does not change explicitly-defined font colors. If the link=#000000 value is in the BODY tag of an HTML document, all links in the document appear black, regardless of color scheme."
The problem is not related to the Browser widget itself but rather to the HTML content. The same problem happens if the HTML content is shown in Internet Explorer. Tod - I'm not sure how to proceed with this. Do we have guidelines on how HTML is formatted in Eclipse? Different teams generate HTML content so it is not easy to just forward that PR to some other team. Assigning it to you for now as you wear the UI Accessibility hat.
There are IBM web accessilbity guidelines - we follow them. See http://www- 306.ibm.com/able/guidelines/web/accessweb.html Moving back to SWT to see if there is anything they need to do
These IBM guidelines don't mention the HTML content should be tested for the Internet Explorer High Contrast mode. Tod, maybe they should? Daniel - I am suggesting you open separate PR's for Eclipse features that you notice don't behave well under High Contrast mode. Marking PR as WONTFIX since the Browser widget behaves like Internet Explorer and I don't think we can do anything good at this level. HTML content must avoid setting colors that cause bad display under high contrast mode.
There are two sets of guidelines - the web and the application guidelines. Here are the web guidelines: http://www-3.ibm.com/able/guidelines/web/accessweb.html They do not mention high contrast in them. However http://www-3.ibm.com/able/guidelines/software/accesssoftware.html does and so there is a case for us supporting it. Only being able to support to the level the OS provides is a pretty common constraint however.