Open Bug 602459 Opened 14 years ago Updated 2 years ago

Ignore embedded whitespace between first-letter and punctuation

Categories

(Core :: Layout: Text and Fonts, defect)

defect

Tracking

()

People

(Reporter: smontagu, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: testcase)

Attachments

(1 file)

In bug 399941, I chose to take whitespace into account when determining whether there was punctuation preceding or following a first-letter.

This was probably the wrong decision: as pointed out in http://lists.w3.org/Archives/Public/www-style/2010Oct/0030.html, French typographical practice always puts a space between text and double angle quotation marks (guillemets).
Attached file Testcase
The testcase uses ASCII space, non-breaking space, and thin space (U+2009) between the text and the guillemets.
Would this mean allowing line breaks inside the ::first-letter?  That seems dangerous.  (I'd also like to move first-letter handling to frame construction.)
I agree about line breaks, and the same goes for tab characters.

In Norwegian there is also whitespace between the punctuation and the first letter:

Example:
– Pettersen, ropte hun, – kom inn og få kaffe.

The spec should be updated to support non English languages.

https://github.com/w3c/csswg-drafts/issues/5154

The CSS Working Group have discussed the issue and concluded:
https://github.com/w3c/csswg-drafts/issues/5154#issuecomment-667151573

Waiting for the editor's draft to be updated.

The editors draft has now been updated:

Punctuation (i.e, characters that belong to the Punctuation (P*) Unicode general category [UAX44]) that precedes or follows the first typographic letter unit and any intervening space separators (characters that belong to the Zs Unicode general category [UAX44]) must also be included in the ::first-letter pseudo-element.

https://drafts.csswg.org/css-pseudo-4/#first-letter-pseudo

The bug assignee didn't login in Bugzilla in the last 7 months.
:jfkthame, could you have a look please?
For more information, please visit auto_nag documentation.

Assignee: smontagu → nobody
Flags: needinfo?(jfkthame)
Blocks: css-pseudo-4
Severity: normal → S3
Flags: needinfo?(jfkthame)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: