Q. How do I make hh.exe (Microsoft HTML Help viewer for .chm help files) & FAR HTML display CSS3. Like rounded corners?
A. Open Regedit and add the following (affects all users).
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION DWORD 'hh.exe' = 270f DWORD 'far.exe' = 270f
The Microsoft embedded browser runs in IE7 compatibility mode by default so no CSS3 support unless you add your exe file as above.
Alternatively try adding the following to each topic (HTML file) <head> section. Works in a .CHM help file as well.
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE11"/>
Programmers & users are seeing a common problem. The embedded WebBrowser control used in many Windows applications won't display CSS3 even though IE9 or greater is installed.
Example: By default this <H1> css won't show the nice rounded corners and background shadow in FAR.exe or hh.exe help viewer, even though IE9 (or greater) browser is installed.
box-shadow: 10px 10px 50px red;
Those 2x highlighted CSS3 lines should show round corners and drop shadow, but they won't show in an embedded browser unless you tweak the registry or add a special meta statement.This problem also affects Microsoft programs like hh.exe (HTML Help Viewer) for viewing .chm help files.
Isn't WebBrowser control suppose to be the same as IE9 browser?
Yes but by default the WebBrowser control is run in the safer "IE7 compatibility mode" which does not support CSS3.
To enable FAR.exe (or other exes) with embed WebBrowser controls to see CSS3 (all users)...
If you have a 32 bit application (like far.exe) running under a 64 bit OS then use the Wow6432Node area of the registry.
To enable CSS3 in far.exe (all users)...
Alternatively to enable just for the current user
And for 32 bit apps running on Windows 64 bit OS use this key
The Windows .chm help file viewer is hh.exe. So this is all you need to do to make HH.exe display CSS3 correctly (and you need a system with IE9 or greater).
Note: The Microsoft documentation also states that you need an appropriate <!DOCTYPE> tag at the top of your HTML file.
'far.exe' = 9999 (Dword 32 Decimal)
Here it is as an exported registry file (9999 value is in hex format)
Note that hh.exe is a 64 bit executable so on a 64 bit OS so this (above) is the correct key for both 32 bit or 64 bit Windows.
However our far.exe application is 32 bit application only, so on a 64 bit machine we need to use the Wow6432Node key...
MS Documentation: http://msdn.microsoft.com/en-us/library/ee330730%28v=vs.85%29.aspx#browser_emulation
Forum post: http://social.msdn.microsoft.com/Forums/windows/en-US/1b656af7-bda9-47d9-8f9a-1d886d3688ca/webbrowser-and-css3-
Alternatively you can simply add the following statement to the <head> section of all your HTML files.
This works even if the HTML topic files are encapsulated in a .chm help file.
More info or search the web.