<?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>179815</bug_id>
          
          <creation_ts>2017-11-17 02:51:24 -0800</creation_ts>
          <short_desc>::first-letter should include preceding punctuation and space separators</short_desc>
          <delta_ts>2025-03-14 14:10:51 -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 11</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=127519</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=233748</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar, WPTImpact</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Johannes Odland">johannes.odland</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>gsnedders</cc>
    
    <cc>karlcow</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1373012</commentid>
    <comment_count>0</comment_count>
    <who name="Johannes Odland">johannes.odland</who>
    <bug_when>2017-11-17 02:51:24 -0800</bug_when>
    <thetext>According to the specification the following should be included in ::first-letter:
&quot;Punctuation (i.e, characters defined in Unicode in the &quot;open&quot; (Ps), &quot;close&quot; (Pe), &quot;initial&quot; (Pi). &quot;final&quot; (Pf) and &quot;other&quot; (Po) punctuation classes), that precedes or follows the first letter should be included.&quot;
https://drafts.csswg.org/selectors-3/#first-letter


It also states:
&quot;In some cases the ::first-letter pseudo-element should include more than just the first non-punctuation character on a line.&quot;

In the Norwegian language quotes are started either with Left-pointing Double Angle Quotation Mark &apos;«&apos; or an En Dash &apos;–&apos;. The User agent should treat these equally and include them and the following letter in the ::first-letter pseudo element.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1373037</commentid>
    <comment_count>1</comment_count>
    <who name="Johannes Odland">johannes.odland</who>
    <bug_when>2017-11-17 05:59:31 -0800</bug_when>
    <thetext>In the following sentence the en dash, space and letter should be included in ::first-letter:

&quot;– Jeg vil bare være et helt vanlig menneske.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1373038</commentid>
    <comment_count>2</comment_count>
    <who name="Johannes Odland">johannes.odland</who>
    <bug_when>2017-11-17 06:02:50 -0800</bug_when>
    <thetext>Example on NRK P3&apos;s webpage (Norwegian Broadcasting Corporation):

http://p3.no/dokumentar/uhelbredelig/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1783452</commentid>
    <comment_count>3</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2021-08-11 04:39:04 -0700</bug_when>
    <thetext>*** Bug 216963 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1783453</commentid>
    <comment_count>4</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2021-08-11 04:39:48 -0700</bug_when>
    <thetext>there&apos;s nothing really specific about Norwegian (in either written form) here; it&apos;s just the general punctuation/space issue</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1879395</commentid>
    <comment_count>5</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-06-30 09:43:35 -0700</bug_when>
    <thetext>This appears to be tracked by this radar:
&lt;rdar://69870767&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1921025</commentid>
    <comment_count>6</comment_count>
    <who name="Johannes Odland">johannes.odland</who>
    <bug_when>2022-12-21 03:00:27 -0800</bug_when>
    <thetext>Adding a link to the failing WPT tests:

https://wpt.fyi/results/css/css-pseudo/first-letter-punctuation-and-space.html?label=experimental&amp;label=master&amp;aligned&amp;view=subtest</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1926246</commentid>
    <comment_count>7</comment_count>
    <who name="Johannes Odland">johannes.odland</who>
    <bug_when>2023-01-18 06:08:51 -0800</bug_when>
    <thetext>Forgot to update this issue, but the spec was updated a while ago to include all punctuation characters:

https://www.w3.org/TR/css-pseudo-4/#first-letter-pattern

```
Preceding and following punctuation must also be included as part of the first-letter text in the ::first-letter pseudo-element as follows:

All punctuation—i.e, characters that belong to the Punctuation (P*) Unicode general category [UAX44]—that precedes the first letter.
Any punctuation other than opening punctuation and dashes—i.e. characters that belong to the Punctuation (P*) Unicode general category, excluding Open Punctuation (Ps) and Dash Punctuation (Pd)—that follows the first letter.
Any intervening typographic space—i.e. characters that belong to the Zs Unicode general category [UAX44] other than U+3000 IDEOGRAPHIC SPACE or any word-separator characters
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1926445</commentid>
    <comment_count>8</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2023-01-18 15:52:09 -0800</bug_when>
    <thetext>Bugs elsewhere.

https://bugs.chromium.org/p/chromium/issues/detail?id=1163175
https://bugzilla.mozilla.org/show_bug.cgi?id=602459

See Also 
https://github.com/web-platform-tests/interop/issues/187#issuecomment-1387144773</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2103415</commentid>
    <comment_count>9</comment_count>
    <who name="Johannes Odland">johannes.odland</who>
    <bug_when>2025-03-14 14:10:51 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/42507</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>