blob: 851519ed7497c2ef0b199a198399711e7695d8db [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 background color should invert the color through -apple-color-filter');
window.getSelection().setPosition(test, 0);
window.getSelection().modify('extend', 'forward', 'word');
window.getSelection().modify('extend', 'forward', 'word');
if (window.testRunner)
testRunner.execCommand('backColor', false, '#224433');
else
document.write('This test requires WebKitTestRunner or DumpRenderTree');
Markup.dump('test', `"world" should be #ecfffd / rgb(${0xec}, ${0xff}, ${0xfd})`);
</script>
</body>
</html>