text-transform-upperlower-107.html (920B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Text Test: text-transform uppercase German sharp S and selection</title> 4 <link rel="author" title="Frédéric Wang" href="mailto:fwang@igalia.com"> 5 <link rel="help" href="https://drafts.csswg.org/css-text/#propdef-text-transform"> 6 <script src="/resources/testharness.js"></script> 7 <script src="/resources/testharnessreport.js"></script> 8 <meta name="assert" content="text-transform: uppercase will uppercase the German sharp S as SS, the whole 2 characters is selectable and should be returned when retriving the selected string."> 9 <style> 10 #target { 11 text-transform: uppercase; 12 } 13 </style> 14 15 <span id="target" lang="de">ß</span> 16 17 <script> 18 test(() => { 19 window.getSelection().setBaseAndExtent(target, 0, target, 1); 20 assert_equals(window.getSelection().toString(), "SS"); 21 }, "Selection.toString() for 'ß' with text-transform: uppercase"); 22 </script>