<?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>239693</bug_id>
          
          <creation_ts>2022-04-23 11:35:57 -0700</creation_ts>
          <short_desc>locale:zh-*** causes text emphasis marks to draw too far from their base text</short_desc>
          <delta_ts>2025-11-10 23:01:10 -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>All</rep_platform>
          <op_sys>macOS 12</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="Bobby (Fu-Hsin) Tung">bobbytung</reporter>
          <assigned_to name="fantasai">fantasai.bugs</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>fantasai.bugs</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>1863907</commentid>
    <comment_count>0</comment_count>
      <attachid>458218</attachid>
    <who name="Bobby (Fu-Hsin) Tung">bobbytung</who>
    <bug_when>2022-04-23 11:35:57 -0700</bug_when>
    <thetext>Created attachment 458218
test case with multiple languages and fonts

Hello,

When I tested CSS property &apos;text-emphasis&apos; in Japanese and Chinese language. I found that layout will be adjust to let the dot above/aside close to base text with certain fonts: Hiragino Mincho and Hiragino Sans. When I changed the value to sesame and circle, some other Japanese fonts may work. But it didn&apos;t apply to Traditional Chinese and Simplified Chinese.

Without the layout adjustment, the dot may far away from base text, even make line-height expand with a proper value 1.7 / 1.8.

I&apos;m not sure this behavior related to font, or Webkit had a whitelist to adjust those fonts.

text-emphasis is not only used in Japanese, It&apos;s official punctuation in China[1] for Simplified Chinese. And it also occasionally used in Traditional Chinese books published in Taiwan, especially translated from Japanese.

I&apos;d like this layout adjustment able to apply for more language and fonts. 

Regards, 

Bobby

[1]: In China National Standard GB/T 15834—2011.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1865669</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-04-30 11:36:12 -0700</bug_when>
    <thetext>&lt;rdar://problem/92567329&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1867812</commentid>
    <comment_count>2</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2022-05-09 17:41:37 -0700</bug_when>
    <thetext>I&apos;m having trouble understanding this bug report. Is this bug report about the size of the circle in this:

&lt;p class=&quot;hiraginosans&quot;&gt;それは&lt;em class=&quot;circle&quot;&gt;傍点&lt;/em&gt;という記号。（hiragino sans）&lt;/p&gt;

compared to the size of the circle in this:

&lt;p class=&quot;yumincho&quot;&gt;それは&lt;em class=&quot;circle&quot;&gt;傍点&lt;/em&gt;という記号。（yu mincho）&lt;/p&gt;

?




Or is this bug report about the distance from the dot to the base text in this:

&lt;p class=&quot;source&quot;&gt;それは&lt;em&gt;傍点&lt;/em&gt;という記号。（source serif jp）&lt;/p&gt;

compared to the distance from the dot to the base text in this:

&lt;p lang=&quot;zh-Hant-TW&quot;&gt;這是&lt;em&gt;著重號&lt;/em&gt;。（songti tc）&lt;/p&gt;

?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1867813</commentid>
    <comment_count>3</comment_count>
    <who name="Bobby (Fu-Hsin) Tung">bobbytung</who>
    <bug_when>2022-05-09 17:50:37 -0700</bug_when>
    <thetext>Hello Myles, 

Size and Distance are different between font. But distance from the dot to base text is more important because in real case of Tradition Chinese ebook. It will expand line-height with a normal value 1.7.

Size of the dots (dot / circle / sesame...) varies with fonts. Some are to small to be noticed by reader. I&apos;d like to figure out what made the difference. But apparently, It may not layout engine&apos;s issue.

Regards,

Bobby</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1867825</commentid>
    <comment_count>4</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2022-05-09 20:17:32 -0700</bug_when>
    <thetext>&gt; distance from the dot to base text is more important

Okay, thanks for the clarification. I&apos;ll retitle this bug to make this a bit more clear.

&gt; I&apos;d like to figure out what made the difference.

The shape you see is a glyph from the font. It&apos;s the font file&apos;s responsibility to size the glyph.

In https://drafts.csswg.org/css-text-decor/#propdef-text-emphasis-style the spec indicates:
&gt; circle
&gt; Display large circles as marks. The filled circle is U+25CF &apos;●&apos;, and the open circle is U+25CB &apos;○&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2157851</commentid>
    <comment_count>5</comment_count>
    <who name="fantasai">fantasai.bugs</who>
    <bug_when>2025-11-10 23:01:10 -0800</bug_when>
    <thetext>Firefox seems to have fixed this recently (between 144 and 146).</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>458218</attachid>
            <date>2022-04-23 11:35:57 -0700</date>
            <delta_ts>2022-04-23 11:35:57 -0700</delta_ts>
            <desc>test case with multiple languages and fonts</desc>
            <filename>bouten.html</filename>
            <type>text/html</type>
            <size>4049</size>
            <attacher name="Bobby (Fu-Hsin) Tung">bobbytung</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KCTxtZXRhIGNoYXJzZXQ9InV0Zi04IiAvPiAK
CTx0aXRsZT5UZXN0aW5nIHRleHQgZW1waGFzaXM8L3RpdGxlPgoJPHN0eWxlPgoJC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