Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for data-type-range-step=""
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>range polyfill...</title> | ||
</head> | ||
<body> | ||
<div> | ||
<select class="foo" id="first" title="1-5 please" data-type="range"> | ||
<option value="1">1</option> | ||
<option value="2">2</option> | ||
<option value="3">3</option> | ||
<option value="4">4</option> | ||
<option selected value="5">5</option> | ||
</select> | ||
</div> | ||
<br> | ||
<select> | ||
<option value="3">3</option> | ||
<option value="4">4</option> | ||
<option value="5">5</option> | ||
</select> | ||
<br> | ||
<select autofocus data-type="range"> | ||
<option value="1">3</option> | ||
<option selected value="4">4</option> | ||
<option value="50">5</option> | ||
</select> | ||
<br> | ||
<p>Last two examples are as the previous, but add <code>data-type-range-step="5"</code>:</p> | ||
<select data-type="range" data-type-range-step="5"> | ||
<option value="1">3</option> | ||
<option selected value="4">4</option> | ||
<option value="50">5</option> | ||
</select> | ||
<br> | ||
<p>This one has the last value set to 51, instead of 50:</p> | ||
<select data-type="range" data-type-range-step="5"> | ||
<option value="1">3</option> | ||
<option selected value="4">4</option> | ||
<option value="51">5</option> | ||
</select> | ||
<script src="../range.js"></script> | ||
</body> | ||
</html> |