| <!DOCTYPE html> |
| <meta charset="utf-8"> |
| :<script src="../../../resources/testharness.js"></script> |
| <script src="../../../resources/testharnessreport.js"></script> |
| <style> |
| div::first-line { |
| text-transform: uppercase; |
| } |
| </style> |
| <!-- |
| Bidi reorder creates two text runs for this text. |
| The 2nd run starts at offset 4. |
| Then because the capitalized form of "ά"" is one character, |
| the whole string is shrunk to 3 characters, which is smaller than the |
| start offset of the 2nd run. |
| --> |
| <div lang=el>άάΧΆ</div> |
| <script> |
| test(function() { |
| }, "Should not crash"); |
| </script> |