I can confirm this issue, have a pretty good idea of why it’s occurring and have an interim workaround.
Scenario:
Issue:
When the main page in IE8 is shown, icons (reply, retweet, favorite, etc) do not render correctly and appear to be positioned wrongly.
Screenshot:
http://dump.mckitrick.io/twitter/embed_iframe_ie8.png
IE9 and IE10 work correctly. All other standard desktop browsers work correctly.
Causes and caveats:
-
IE8 is referring to the “timeline.2x.css” stylesheet on platform.twitter.com, which is presumably the Retina stylesheet
Screenshot:
http://dump.mckitrick.io/twitter/embed_iframe_ie8_css.png
-
IE8 uses the default stylesheet and renders the buttons correctly when the widget is not inside an iframe
-
Am assuming that Javascript or media queries to detect screen resolution and define the stylesheet to use are failing or defaulting to 2x - only when within the iframe context.
Workaround / fix:
In “widget.js”, use Javascript detection for IE8 and force the default stylesheet.
For IE8, change:
twttr.widgets.config.assetUrl() + “/” + t
to:
twttr.widgets.config.assetUrl() + “/embed/timeline.css”