23 lines
765 B
HTML
23 lines
765 B
HTML
<!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 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('foreColor', false, '#224433');
|
|
else
|
|
document.write('This test requires WebKitTestRunner or DumpRenderTree');
|
|
|
|
Markup.dump('test', '"world" should be #ecfffd');
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|