blob: 02561c3a526a0c064bd36200f7632e9a09afe2af [file] [log] [blame]
<!DOCTYPE html><!-- webkit-test-runner [ ColorFilterEnabled=true ] -->
<html>
<body>
<div id="test" style="-apple-color-filter: apple-invert-lightness()" contenteditable>hello world</div>
<script src="../../resources/dump-as-markup.js"></script>
<script>
Markup.description('Setting the foreground color should not invert the color through -apple-color-filter');
window.getSelection().setPosition(test, 0);
window.getSelection().modify('extend', 'forward', 'word');
window.getSelection().modify('extend', 'forward', 'word');
document.execCommand('foreColor', false, '#224433');
Markup.dump('test', '"world" should be #224433');
</script>
</body>
</html>