<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
Keyboard Shortcuts
Shortcut | Action |
---|---|
ctrl + [num] | Toggle nth panel |
ctrl + 0 | Close focused panel |
ctrl + enter | Re-render output. If console visible: run JS in console |
Ctrl + l | Clear the console |
ctrl + / | Toggle comment on selected lines |
ctrl + ] | Indents selected lines |
ctrl + [ | Unindents selected lines |
tab | Code complete & Emmet expand |
ctrl + shift + L | Beautify code in active panel |
ctrl + s | Save & lock current Bin from further changes |
ctrl + shift + s | Open the share options |
ctrl + y | Archive Bin |
Complete list of JS Bin shortcuts |
JS Bin URLs
URL | Action |
---|---|
/ | Show the full rendered output. This content will update in real time as it's updated from the /edit url. |
/edit | Edit the current bin |
/watch | Follow a Code Casting session |
/embed | Create an embeddable version of the bin |
/latest | Load the very latest bin (/latest goes in place of the revision) |
/[username]/last | View the last edited bin for this user |
/[username]/last/edit | Edit the last edited bin for this user |
/[username]/last/watch | Follow the Code Casting session for the latest bin for this user |
/quiet | Remove analytics and edit button from rendered output |
.js | Load only the JavaScript for a bin |
.css | Load only the CSS for a bin |
Except for username prefixed urls, the url may start with http://jsbin.com/abc and the url fragments can be added to the url to view it differently. |