Skip to content

Commit 0bc4277

Browse files
committed
[css-pseudo-4] Only allow word separators preceding first letter. #9413
1 parent cba50c5 commit 0bc4277

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

css-pseudo-4/Overview.bs

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -421,24 +421,27 @@ First Letters and Associated Punctuation
421421
  • 422422
    All punctuation--
    423423
    i.e, characters that belong to the Punctuation (P*) Unicode general category [[!UAX44]]--
    424-
    that precedes the [=first letter=].
    424+
    that precedes the [=first letter=],
    425+
    as well as any intervening typographic space--
    426+
    characters belonging to the Zs Unicode general category [[!UAX44]]
    427+
    other than
    428+
    U+3000 IDEOGRAPHIC SPACE.
    425429
  • 426430
    Any punctuation other than opening punctuation and dashes--
    427431
    i.e. characters that belong to the Punctuation (P*) Unicode general category,
    428432
    excluding Open Punctuation (Ps)
    429433
    and Dash Punctuation (Pd)--
    430-
    that follows the [=first letter=].
    431-
  • 432-
    Any intervening typographic space--
    433-
    i.e. characters that belong to the Zs Unicode general category [[!UAX44]]--
    434+
    that follows the [=first letter=],
    435+
    as well as any intervening typographic space--
    436+
    characters belonging to the Zs Unicode general category [[!UAX44]]
    434437
    other than
    435-
    U+3000 IDEOGRAPHIC SPACE.
    438+
    U+3000 IDEOGRAPHIC SPACE or a [=word separator=].
    436439
    437440

    438441
    439442
    Informally, the [=first-letter text=]’s pattern here
    440443
    can be roughly
    441-
    (ignoring the exclusion from Zs)
    444+
    (ignoring the exclusions from Zs)
    442445
    represented as a “regular expression”
    443446
    444447
    (P (Zs|P)*)? (L|N|S) ((Zs|P−(Ps|Pd))* (P−(Ps|Pd))?--
    @@ -1882,7 +1885,8 @@ Changes
    18821885
    and 10213)
    18831886
  • Added ''::details-content'' pseudo-element
  • 18841887
    1885-
  • Allow space and no-break space to be part of ''::first-letter''.
  • 1888+
  • Allow space and no-break space to be part of ''::first-letter''
  • 1889+
    when occuring before the [=first letter=].
    18861890
    18871891
  • Renamed ''::postfix'' to ''::suffix''.
  • 18881892
    (Issue Issue 11949)

    css-text-3/Overview.bs

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -6057,7 +6057,7 @@ Word Spacing: the 'word-spacing' property
    60576057
    word-spacing/word-spacing-negative-value-001.html
    60586058
    60596059

    6060-
    Word-separator characters
    6060+
    export id="word-separator" lt="word-separator character | word separator">Word-separator characters
    60616061
    are [=typographic character units=]
    60626062
    whose primary purpose and general usage is to separate words.
    60636063
    In Unicode this includes

    css-text-4/Overview.bs

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -9922,7 +9922,7 @@ Word Spacing: the 'word-spacing' property
    99229922
    word-spacing/word-spacing-negative-value-001.html
    99239923
    99249924

    9925-
    Word-separator characters
    9925+
    export id="word-separator" lt="word-separator character | word separator">Word-separator characters
    99269926
    are [=typographic character units=]
    99279927
    whose primary purpose and general usage is to separate words.
    99289928
    In Unicode this includes

    0 commit comments

    Comments
     (0)