<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>233447</bug_id>
          
          <creation_ts>2021-11-23 08:01:56 -0800</creation_ts>
          <short_desc>Consonant clusters with a visible virama should only have the first consonant+virama highlighted</short_desc>
          <delta_ts>2021-12-01 12:21:00 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>Safari 15</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="r12a">ishida</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>ishida</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1817474</commentid>
    <comment_count>0</comment_count>
    <who name="r12a">ishida</who>
    <bug_when>2021-11-23 08:01:56 -0800</bug_when>
    <thetext>When the start of a line contains a 2-consonant cluster that uses a *visible* virama, ::first-letter should highlight only the first consonant+virama. This corresponds to a grapheme cluster, as defined by Unicode.

Tests &amp; results:
Interactive test, When ::first-letter is applied to Devanagari the browser will NOT select a 2-consonant cluster as a unit if the virama is visible
https://github.com/w3c/line_paragraph_tests/issues/68

Interactive test, When ::first-letter is applied to Bengali the browser will only select the first consonant+virama in a cluster if the virama is visible
https://github.com/w3c/line_paragraph_tests/issues/70

Interactive test: When ::first-letter is applied to Tamil the browser will only select the first consonant+virama in a cluster if the virama is visible	
https://github.com/w3c/line_paragraph_tests/issues/71


For Devanagari and Bengali, Gecko only highlights the initial character+virama, whereas Blink, and Webkit select all clusters as a single unit, whether or not they are conjuncts or are rendered with a visible virama.

For Tamil, all browsers select only the first grapheme cluster (as expected).

WebKit browsers should not select the full consonant cluster if the virama is showing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1817475</commentid>
    <comment_count>1</comment_count>
    <who name="r12a">ishida</who>
    <bug_when>2021-11-23 08:03:41 -0800</bug_when>
    <thetext>For additional background information, see https://www.w3.org/International/questions/qa-indic-graphemes.en</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1818733</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-11-30 08:02:20 -0800</bug_when>
    <thetext>&lt;rdar://problem/85865506&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1819235</commentid>
    <comment_count>3</comment_count>
    <who name="r12a">ishida</who>
    <bug_when>2021-12-01 07:54:16 -0800</bug_when>
    <thetext>There&apos;s a bug report for Firefox at https://bugzilla.mozilla.org/show_bug.cgi?id=1742626 which, though not exactly the same problem, contains a lot of useful discussion around the general problem of correctly segmenting clusters with viramas.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1819359</commentid>
    <comment_count>4</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2021-12-01 12:21:00 -0800</bug_when>
    <thetext>Cool, thanks for the link.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>