/*
Issue:
Safari does not correctly calculate fractional em / rem values, resulting in severe visual errors in layout.
Example:
In the Result to the right, notice the ~2px blue gap to the right of the red div. This is a result of the fractional values used in the ".content" style. Changing them to "padding: 1em; width: 20em;" eliminates the gap, despite the same 22rem total width.
Also notice the 1px yellow gap below the blue div. This is similarly a result of the fractional rem values in ".top" and can be eliminated by using to whole values.
Notes:
Values of 1/8 em / rem (ex. 0.5em, 1.125em, 2.25rem) also seem to work correctly.
These errors are cumulative. For example, a column of 5 vertically stacked elements can accumulate a visible gap of 10px at the bottom of the column.
*/
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.