The problem with this is that block-level elements are always the size of the window unless you specify otherwise. Once you specify a more specific width, you don't need a width inverval.
The two cases this would be different are;
If the block level element is shrink wrapped (in the case of floats and inline-blocks)
If the element has a relative width, ie a percentage.
But if you are setting it to be relative, you wouldn't need intervals, because it's supposed to be relative to other things on the page, so that would get complicated when other things had to be adjusted to compensate. For instance, if I had two divs:
<div id="one"></div>
<div id="two"></div>
and a rule:
#one {
width: 50%;
width-interval: 25px;
}
#two {
width: 50%;
width-interval: 27px;
}
Which one wins? If it's important for lining up pictures or text, you probably don't want either to trump the other, but it can't ignore both.
I think the idea is good, but would probably be better handled by javascript, since you are requiring it to be both dynamic and based on the "nearest" interval. This could work:
$(function () {
$(div).each(function() {
var cur_width = $(this).width();
var inverval_diff = cur_width % 10;
$(this).width(cur_width + inverval_diff);
});
});
The above is in jquery, in case you don't use that as your js framework.