As already mentioned, CSS is not meant to define values but rather to define formatting, the visual aspect of the element.
You can, however, use JavaScript for this purpose.
Example with jQuery
$(document).ready(function() {
$("#delay").attr({
"min": 2,
"max": 10,
"step": 2
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script><inputid="delay" type="number" min="0" max="100" step="5" />
Example with JavaScript
document.addEventListener('DOMContentLoaded', function() {
var meuCampo = document.getElementById("delay");
meuCampo.min = 2;
meuCampo.max = 10;
meuCampo.step = 2;
}, false);
<input id="delay" type="number" min="0" max="100" step="5" />
Note: If the idea is to define certain CSS formatting based on the attribute value, you can see the solution in the @ Iago Correia Guimarães .