| <!DOCTYPE html><!-- webkit-test-runner [ enableColorFilter=true ] --> |
| <html> |
| <head> |
| <title>CSS Test: -apple-color-filter affects caret-color</title> |
| <link rel="author" title="Apple" href="http://www.apple.com/"> |
| <link rel="match" href="-apple-color-filter-caret-color-expected.html"> |
| |
| <meta name="assert" content="-apple-color-filter affects caret-color"> |
| <style> |
| #test-container { |
| height: 50px; |
| width: 50px; |
| overflow: hidden; |
| border: 1px solid black; |
| } |
| |
| #test { |
| -apple-color-filter: invert(); |
| background-color: white; |
| transform-origin: left top; |
| transform: scale(50, 50); |
| font-size: 10px; /* Needed for the caret to render in Firefox. */ |
| caret-color: rgb(255, 128, 255); |
| } |
| |
| </style> |
| </head> |
| <body> |
| <p>The caret should show as a green flashing square below.</p> |
| <div id="test-container"> |
| <div id="test" contenteditable="true"> |
| <span> <!-- Needed for the caret to render in Firefox. --></span> |
| </div> |
| </div> |
| <script> |
| document.getElementById("test").focus(); |
| window.getSelection().modify("move", "left", "character"); // Place the caret at the start of the <span>. |
| </script> |
| </body> |
| </html> |