<?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>196353</bug_id>
          
          <creation_ts>2019-03-28 07:58:34 -0700</creation_ts>
          <short_desc>width values using &apos;ch&apos; units are not computed correctly for monospace font</short_desc>
          <delta_ts>2023-04-30 08:46:23 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Text</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=196169</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Javier Fernandez">jfernandez</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mmaxfield</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1522067</commentid>
    <comment_count>0</comment_count>
      <attachid>366175</attachid>
    <who name="Javier Fernandez">jfernandez</who>
    <bug_when>2019-03-28 07:58:34 -0700</bug_when>
    <thetext>Created attachment 366175
Test case to reproduce the issue

Steps to reproduce the problem:

1- Load the attached test case

ACTUAL RESULT

The text is broken in two lines, using the white-space in between, even though there should be enough space for the whole text.

EXPECTED RESULT 

The whole text fits in 1 line.

Both Chrome and Firefox render the attached case as described in the expected result.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1522072</commentid>
    <comment_count>1</comment_count>
      <attachid>366176</attachid>
    <who name="Javier Fernandez">jfernandez</who>
    <bug_when>2019-03-28 08:22:43 -0700</bug_when>
    <thetext>Created attachment 366176
Test case to reproduce the issue</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1952091</commentid>
    <comment_count>2</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2023-04-30 08:46:23 -0700</bug_when>
    <thetext>looks fine on trunk.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>366175</attachid>
            <date>2019-03-28 07:58:34 -0700</date>
            <delta_ts>2019-03-28 08:22:43 -0700</delta_ts>
            <desc>Test case to reproduce the issue</desc>
            <filename>monospace-bug.html</filename>
            <type>text/html</type>
            <size>183</size>
            <attacher name="Javier Fernandez">jfernandez</attacher>
            
              <data encoding="base64">PCFkb2N0eXBlIGh0bWw+CjxzdHlsZT4KZGl2IHsKICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgZm9u
dC1zaXplOiAyMHB4OwogIGxpbmUtaGVpZ2h0OiAxZW07CiAgZm9udC1mYW1pbHk6IG1vbm9zcGFj
ZTsKICBib3JkZXI6IDFweCBzb2xpZDsKICB3aWR0aDogOGNoOwp9Cjwvc3R5bGU+CjxkaXY+b25l
IGxpbmU8L2Rpdj4K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>366176</attachid>
            <date>2019-03-28 08:22:43 -0700</date>
            <delta_ts>2019-03-28 08:22:43 -0700</delta_ts>
            <desc>Test case to reproduce the issue</desc>
            <filename>monospace-bug.html</filename>
            <type>text/html</type>
            <size>182</size>
            <attacher name="Javier Fernandez">jfernandez</attacher>
            
              <data encoding="base64">PCFkb2N0eXBlIGh0bWw+CjxzdHlsZT4KZGl2IHsKICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgZm9u
dC1zaXplOiAyMHB4OwogIGxpbmUtaGVpZ2h0OiAxZW07CiAgZm9udC1mYW1pbHk6IG1vbm9zcGFj
ZTsKICBib3JkZXI6IDFweCBzb2xpZDsKICB3aWR0aDogN2NoOwp9Cjwvc3R5bGU+CjxkaXY+WFhY
IFhYWDwvZGl2Pgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>