blob: 36b085860a111410b213ba267aaa0d6a425e927d [file] [log] [blame]
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<body>
<style>
::selection {
background: #447099;
color: #fff
}
</style>
<p>Test that selected unconfirmed text ignores ::selection rules.
To test manually, type anything using Kotoeri Hiragana, and press down arrow. The text should not become invisible.</p>
<input id="test" type="text">
<script>
var test = document.getElementById('test');
test.focus();
var markedText = textInputController.makeAttributedString("ひらがな");
markedText.addAttribute("NSUnderline", 2);
textInputController.setMarkedText(markedText, 0, 4);
</script>
</body>
</html>