<?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>196203</bug_id>
          
          <creation_ts>2019-03-25 08:56:38 -0700</creation_ts>
          <short_desc>[CSS3 Values] ch unit with text-orientation and vertical writing modes</short_desc>
          <delta_ts>2024-01-28 23:07:02 -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>CSS</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>macOS 10.13</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>266937</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, W3CTest, WPTImpact</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gérard Talbot (no longer involved)">browserbugs2</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ntim</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>1520867</commentid>
    <comment_count>0</comment_count>
    <who name="Gérard Talbot (no longer involved)">browserbugs2</who>
    <bug_when>2019-03-25 08:56:38 -0700</bug_when>
    <thetext>{
ch unit
    Equal to the used advance measure of the &quot;0&quot; (ZERO, U+0030) glyph found in the font used to render it. (The advance measure of a glyph is its advance width or height, whichever is in the inline axis of the element.)

    Note: The advance measure of a glyph depends on writing-mode and text-orientation (...)
}
CSS3 Values and Units, section 5.1.1 Font-relative lengths: the em, ex, ch, rem units
https://www.w3.org/TR/css-values-3/#ch


Tests
-----

In &apos;vertical-rl&apos; writing mode with &apos;text-orientation: upright&apos;, the ch unit is equal to the used vertical advance measure of the 0 (ZERO, U+0030) glyph
http://w3c-test.org/css/css-values/ch-unit-002.html

In &apos;vertical-rl&apos; writing mode with &apos;text-orientation: mixed&apos;, the ch unit is equal to the used horizontal advance measure of the 0 (ZERO, U+0030) glyph
http://w3c-test.org/css/css-values/ch-unit-003.html

In &apos;vertical-rl&apos; writing mode with &apos;text-orientation: sideways&apos;, the ch unit is equal to the used horizontal advance measure of the 0 (ZERO, U+0030) glyph
http://w3c-test.org/css/css-values/ch-unit-004.html

In &apos;vertical-rl&apos; writing mode with &apos;text-orientation: mixed&apos;, the ch unit is the advance width measure of the 0 (ZERO, U+0030) glyph
http://w3c-test.org/css/css-values/ch-unit-010.html

In &apos;vertical-rl&apos; writing mode with &apos;text-orientation: upright&apos;, the ch unit is the advance height measure of the 0 (ZERO, U+0030) glyph
http://w3c-test.org/css/css-values/ch-unit-011.html

In &apos;vertical-rl&apos; writing mode with &apos;text-orientation: sideways&apos;, the ch unit is the advance width measure of the 0 (ZERO, U+0030) glyph
http://w3c-test.org/css/css-values/ch-unit-012.html

These 6 tests fail in latest stable Safari 12 and in latest Safari Technology Preview. 

Firefox 68 and Epiphany Technological Preview 3.31.90-8061c1929 (WebKitGTK 2.24.0) pass these 6 tests. 

I searched for duplicates and did not find any. This is not a duplicate of bug 85755.

Unfortunately, I do not have and do not use and do not have access to Mac OS X or to latest stable Safari 12 or to latest Safari Technological Preview; I was informed by Florian Rivoal about these test results.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1520929</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-03-25 11:43:32 -0700</bug_when>
    <thetext>&lt;rdar://problem/49222649&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1940936</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-03-13 10:17:37 -0700</bug_when>
    <thetext>It seems these are now on WPT, adding WPTImpact tag:

WPT Tests - https://wpt.fyi/results/css/css-values?label=master&amp;label=experimental&amp;aligned&amp;view=subtest&amp;q=css-values%2Fch-</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2008386</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2024-01-28 23:07:02 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 266937 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>