We use the WPF WebBrowser control to display an embedded page. On Windows 8 we observe a strange jumping behavior of elements with css position:fixed while scrolling.
If there are discrepancies in behavior of the same web page loaded into WebBrowser
control and standalone IE browser, the problem can often be fixed by implementing WebBrowser Feature Control.
Once the feature control has been implemented, it makes sense to verify that <!DOCTYPE html>
is observed by WebBrowser
and the page is actually rendered in HTML5 standard mode, here's how.
[UPDATE] The OP's sample page actually renders correctly when FEATURE_BROWSER_EMULATION is set to 9000
and the META
tag is fixed to be <meta http-equiv="X-UA-Compatible" content="IE=9" />
(content="IE9" is not a valid value).
We checked again on a new Machine also running Windows 8 and the error was gone, after some checks we determined that the new Machine had some new Updates for Windows 8 installed. We went to check for Updates on the Surface and after applying all Updates the Error seems to be gone.
Without any recompilation or further settings just by applying the latest Win 8 Updates the error is fixed.
Scrolling is smooth now. Same executable no changes, so i guess it was some bug in the runtime libs after all.