<?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>246676</bug_id>
          
          <creation_ts>2022-10-17 22:14:28 -0700</creation_ts>
          <short_desc>Add support for the values raise | drop on initial-letter property</short_desc>
          <delta_ts>2025-08-03 18:54:22 -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>CSS</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=164150</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=229090</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Karl Dubost">karlcow</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mmaxfield</cc>
    
    <cc>sebastianzartner</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>yosin</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1906382</commentid>
    <comment_count>0</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2022-10-17 22:14:28 -0700</bug_when>
    <thetext>See for tests https://wpt.fyi/results/css/css-initial-letter?label=master&amp;label=experimental&amp;aligned&amp;view=subtest&amp;q=initial-letter

Spec
https://www.w3.org/TR/css-inline/#sizing-drop-initials

Applies to:
certain inline-level boxes and ::first-letter and inside ::marker boxes (see prose)

raise
Computes to an initial letter sink of 1.
drop
Computes to an initial letter sink equal to the initial letter size floored to the nearest positive whole number.
If the initial letter sink value is omitted, drop is assumed.


Blink
https://groups.google.com/a/chromium.org/g/blink-reviews-style/c/jHLdqhphZ3M
https://chromium-review.googlesource.com/c/chromium/src/+/3874383 (the current patch doesn&apos;t include raise and drop)

Gecko doesn&apos;t implement yet raise and drop
https://bugzilla.mozilla.org/show_bug.cgi?id=1223880

CSSWG discussion
https://github.com/w3c/csswg-drafts/issues/2955</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907978</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-10-24 22:15:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/101529501&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1914016</commentid>
    <comment_count>2</comment_count>
    <who name="">yosin</who>
    <bug_when>2022-11-22 00:50:29 -0800</bug_when>
    <thetext>Blink attempts to ship CSS `initial-letter` applies only `::first-letter`.

The patch[1] implements:
  * `initial-letter: number integer`
  * `initial-letter: number drop`
  * `initial-letter: number raise`
  * `initial-letter: drop number`
  * `initial-letter: raise number`
  * `initial-letter: number`

[1] https://chromium-review.googlesource.com/c/chromium/src/+/3981353</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2134113</commentid>
    <comment_count>3</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2025-08-03 18:54:22 -0700</bug_when>
    <thetext>The tests are now at 
https://wpt.fyi/results/css/css-inline/initial-letter?label=experimental&amp;label=master&amp;aligned</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>