[csswg-drafts] [css-pseudo-4] Allow intervening space and no-break space in ::first-letter, preceding the letter (#9413)

johannesodland has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-pseudo-4] Allow intervening space and no-break space in ::first-letter, preceding the letter ==

### Summary

Can we revisit the decision from [5830](https://github.com/w3c/csswg-drafts/issues/5830#issuecomment-759611097) to exclude word break on either side of `::first-letter`?
Intervening space (U+0020) and no-break space (U+00A0) should be allowed directly before the letter.

### Background

Many languages use an intervening space between the quotation mark and the first letter. A notable example is the [quotation dash](https://en.m.wikipedia.org/wiki/Quotation_mark#Quotation_dash), which is used in several languages including Norwegian, Swedish, Danish, Bulgarian, French, Greek, and others, as well as in some modern English novels.

Example from Ulysses:
> ― O Miss Douce! Miss Kennedy protested. You horrid thing

In practice, many languages use regular spaces or _at-best_ no-break spaces between the first quotation mark and the first letter, despite arguments suggesting these aren't typographically ideal. This preference could arise from established guidelines or the difficulty in typing other spaces. 

(I have checked Norwegian, Swedish and Danish news outlets, and all use a regular U+0020 space)

### Previous discussions

Previous discussions on this topic include:

- A resolution to include space separators within the ::first-letter pseudo-element was agreed upon in https://github.com/w3c/csswg-drafts/issues/5154#issuecomment-667151573.
- This decision, however, was later partially reversed in [issue 5830](https://github.com/w3c/csswg-drafts/issues/5830#issuecomment-759611097), excluding word breaks on either side of the first-letter.
 
By excluding word breaks we exclude the use of (U+0020) and no-break space (U+00A0). Consequently, ::first-letter becomes impractical for languages that use a space between quotation marks and the first letter.

### Proposal

Given the widespread use of intervening spaces in various languages and the practical challenges in employing specific space characters, it is worth reconsidering the decision made in [issue 5830](https://github.com/w3c/csswg-drafts/issues/5830#issuecomment-759611097). 

The `::first-letter` pseudo-element should allow for the inclusion of regular space (U+0020) and no-break space (U+00A0) directly preceding the first letter.


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9413 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 26 September 2023 11:09:06 UTC