Skip to content

Instantly share code, notes, and snippets.

@adapterik
Created May 31, 2013 18:18
Show Gist options
  • Save adapterik/a7eace0083987d004682 to your computer and use it in GitHub Desktop.
Save adapterik/a7eace0083987d004682 to your computer and use it in GitHub Desktop.
This should reproduce a bug present in Yahoo! Pure 0.1.0 (and also present in YUI3 Grid since 2.9.0 or so...). The first two columns (red column one, green column two) will be on separate lines for certain browsers, and the same line for others. For me ATM I'm seeing breakage on Firefox 21 /Linux but not on Crome 27.0.1453.93 (200836) / Linux. A…
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.1.0/pure-min.css">
<style type="text/css">
.green {
background-color: green;
}
.red {
background-color: red;
}
.pure-g-r.fix {
font-family: Arial;
}
</style>
</head>
<body>
<div class="pure-g-r">
<div class="pure-u-1-2">
<div class="content">
<div class="green">left</div>
</div>
</div>
<div class="pure-u-1-2">
<div class="content">
<div class="red">right</div>
</div>
</div>
</div>
<hr>
<div class="pure-g-r fix">
<div class="pure-u-1-2">
<div class="content">
<div class="green">left</div>
</div>
</div>
<div class="pure-u-1-2">
<div class="content">
<div class="red">right</div>
</div>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment