chromium/third_party/blink/web_tests/fast/forms/color/color-update-view-by-default-value-update.html

<input type="color" value="#000000">
<script>
var input = document.querySelector('input');
input.offsetTop;
input.setAttribute('value', '#ff0000');
</script>