Skip to content

Commit

Permalink
Tests: css tweaks to make IE8 not distort images
Browse files Browse the repository at this point in the history
  • Loading branch information
lilith committed Jan 16, 2015
1 parent 4ff5057 commit 310eea4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/feature-defaults.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
//IE 8 and below need help with max-width
window.slimmage.enforceCss = true;
</script>
<style type="text/css">
img{height: auto !important;}/*IE8 likes to randomly stretch images as a hobby */
</style>
<![endif]-->
</head>
<body>
Expand Down
3 changes: 3 additions & 0 deletions test/feature-webp.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
//IE 8 and below need help with max-width
window.slimmage.enforceCss = true;
</script>
<style type="text/css">
img{height: auto !important;}/*IE8 likes to randomly stretch images as a hobby */
</style>
<![endif]-->

<script type="text/javascript" src="../slimmage.min.js"></script>
Expand Down

0 comments on commit 310eea4

Please sign in to comment.