Skip to content

Commit

Permalink
Use HTML5 doctype for RealWinFixture
Browse files Browse the repository at this point in the history
Non-HTML5 doctype has different behaviour for html/body element heights
in Safari.
  • Loading branch information
Peter Josling committed Nov 30, 2017
1 parent a435863 commit 98276f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/describes.js
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ class RealWinFixture {
const iframe = document.createElement('iframe');
env.iframe = iframe;
iframe.name = 'test_' + iframeCount++;
iframe.srcdoc = '<!doctype><html><head>' +
iframe.srcdoc = '<!doctype html><html><head>' +
'<style>.i-amphtml-element {display: block;}</style>' +
'<body style="margin:0"><div id=parent></div>';
iframe.onload = function() {
Expand Down

0 comments on commit 98276f9

Please sign in to comment.