<!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> |