title: Svelte using input type=range with bind:value and max: slider shown wrong when value and max change
body: <p>Using Svelte, for input range (slider) changing bind:value AND max both from  10 to 20, slider shows wrong position while values are correct ? 
  I assume I'm making a mistake somewhere ( or is it a bug ?) Who can tell...</p>
  
  <p>As it seems the value is not rerendered after max changed, I could solve this by using a timeout of 10ms on the value re-assignment. I think this alows the slider to adjust to max first and then to value.
  The actual value and max are correct.
  Example is in svelte REPL</p>
  
  <pre><code>&lt;script&gt;
      let value=10;
      let max=10;
  
      function change() {
          value=20;
          max=20;
      }
  &lt;/script&gt;
  
  &lt;h1 on:click={change}&gt;Click to Change&lt;/h1&gt;
  &lt;input type=range min=0 max={max} bind:value={value}&gt;
  &lt;br&gt;
  Value {value} of {max} max.
  </code></pre>