Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  <h1>Testing SVG blurry rendering in IE when rounding pixel measurements with infinte decimals</h1>
  <p>Base font size: 15px</p>
  <h2>First test</h2>
  <p>Width/height and background measurements in ems, e.g. 1.333334 ems = 20px.</p>
  <div class="icon icon-text"></div>
  <div class="icon icon-circle"></div>
  <hr>
  <h2>Second test</h2>
  <p>Width and height in pixels (20px), bg in ems.</p>
  <div class="icon2 icon-text"></div>
  <div class="icon2 icon-circle"></div>
  <hr>
  <h2>Third test</h2>
  <p>Both background image and width in px.</p>
  <div class="icon3 icon-text"></div>
  <div class="icon3 icon-circle"></div>
  <hr>
  <h2>Fourth test</h2>
  <p>Width/height in ems, background in pixels</p>
  <div class="icon4 icon-text"></div>
  <div class="icon4 icon-circle"></div>
  <hr>
  <h2>Fifth test</h2>
  <p>Width/height in ems, background in percent</p>
  <div class="icon5 icon-text"></div>
  <div class="icon5 icon-circle"></div>
  <hr>
  <h2>Sixth test</h2>
  <p>Width/height and background measurements in ems, e.g. 2.333334 ems = 35px. Increased icon size (35px square). (Mostly to check if there is a threshold for the blurring).</p>
  <div class="icon icon-big icon-text"></div>
  <div class="icon icon-big icon-circle"></div>
  
  <hr>
  <h2>Seventh test</h2>
  <p>Width/height and background measurements in ems, e.g. 8.333334 ems = 125px. Increased icon size (125px square). (Mostly to check if there is a threshold for the blurring).</p>
  <div class="icon icon-mega icon-text"></div>
  <div class="icon icon-mega icon-circle"></div>
  <h2>Eighth test</h2>
  <p>Width/height and background measurements in px. Increased icon size (125px square). (Mostly to compare with number seven).</p>
  <div class="icon icon-mega2 icon-text"></div>
  <div class="icon icon-mega2 icon-circle"></div>
  <hr>
  <h2>Ninth test</h2>
  <p>Width/height in pixels, background in ems, but a more rounding-friendly context</p>
  <div class="rounder">
  <div class="icon-rounder icon-text"></div>
  <div class="icon-rounder icon-circle"></div>
    </div>
  
  <h2>Tenth test</h2>
  <p>Width/height and background measurements in ems, e.g. 1.333334 ems = 20px. SVG has shapeRendering set to crispEdges</p>
  <div class="icon icon-text-crisp"></div>
  <div class="icon icon-circle-crisp"></div>
  <hr>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
thatemilpro
0viewers