blob: 7505b8076190965f91c377a402633f533e7741b4 [file] [log] [blame]
<!DOCTYPE html>
Tests color of caret changes with the 'color' style. Passes if caret is always in the came color as the text.
<div id="div" contenteditable="true">
<span id="span" style="color: red; font-size: 50px">SAMPLE</span>
</div>
<script src="../../resources/run-after-layout-and-paint.js"></script>
<script>
div.focus();
runAfterLayoutAndPaint(function() {
span.style.color = 'green';
}, true);
</script>