Skip to content

Instantly share code, notes, and snippets.

@kroepke
Created January 19, 2015 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kroepke/f4c3d8ff7b5f9f9e9a4f to your computer and use it in GitHub Desktop.
Save kroepke/f4c3d8ff7b5f9f9e9a4f to your computer and use it in GitHub Desktop.
Jagged Beak in Firefox // source http://jsbin.com/bepesuhiju
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery.min.js"></script>
<link href="http://getbootstrap.com/dist/css/bootstrap.css" rel="stylesheet" type="text/css" />
<script src="http://getbootstrap.com/dist/js/bootstrap.js"></script>
<meta name="description" content="Jagged Beak in Firefox" />
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
.progress-bar[aria-valuenow="1"],
.progress-bar[aria-valuenow="2"] {
min-width: 4%;
}
.progress-bar[aria-valuenow="0"] {
color: gray;
min-width: 3%;
background: transparent;
box-shadow: none;
}
.progress-bar[aria-valuenow^="9"]:not([aria-valuenow="9"]) {
background: red;
}
</style>
</head>
<body>
<h1>Progress bar test cases</h1>
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%;">
0%
</div>
</div>
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="2" aria-valuemin="0" aria-valuemax="100" style="width: 2%;">
2%
</div>
</div>
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="9" aria-valuemin="0" aria-valuemax="100" style="width: 9%;">
9%
</div>
</div>
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100" style="width: 50%;">
50%
</div>
</div>
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="90" aria-valuemin="0" aria-valuemax="100" style="width: 90%;">
90%
</div>
</div>
<script id="jsbin-source-css" type="text/css">.progress-bar[aria-valuenow="1"],
.progress-bar[aria-valuenow="2"] {
min-width: 4%;
}
.progress-bar[aria-valuenow="0"] {
color: gray;
min-width: 3%;
background: transparent;
box-shadow: none;
}
.progress-bar[aria-valuenow^="9"]:not([aria-valuenow="9"]) {
background: red;
}</script>
</body>
</html>
.progress-bar[aria-valuenow="1"],
.progress-bar[aria-valuenow="2"] {
min-width: 4%;
}
.progress-bar[aria-valuenow="0"] {
color: gray;
min-width: 3%;
background: transparent;
box-shadow: none;
}
.progress-bar[aria-valuenow^="9"]:not([aria-valuenow="9"]) {
background: red;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment