-
-
Notifications
You must be signed in to change notification settings - Fork 58
Closed
Description
Recently, the CSS text-spacing property (CSS Text Level 4) draft spec has made the following changes:
- Add ideograph-alpha and ideograph-numeric to normal (default)
- Do not apply ideograph-alpha/ideograph-numeric spacing to non-zero margin/border/padding
- Use 1/8 of full-width spacing for ideograph-alpha/ideograph-numeric
We should update our CSS text-spacing implementation to align to this latest spec.
The related csswg-drafts issue (already resolved) about ideograph-alpha/ideograph-numeric spacing:
Also, there have been the following issues, already resolved or about to be resolved.
- [css-text-4] text-spacing: trim-end is better than allow-end for the normal value w3c/csswg-drafts#7055
- [css-text-4] Propose 'text-spacing: space-first' (trim-start-except-first-line) as a normal behavior w3c/csswg-drafts#2462
Our CSS text-spacing implementation already incorporates these proposals, i.e., the trim-end and space-first are part of text-spacing: normal. So the normal behavior becomes equivalent to space-first trim-end trim-adjacent ideograph-alpha ideograph-numeric.
We should also incorporate the last suggestion in the comment by @frivoal:
- Modify
hanging-punctuation: firstto hang a paragraph-initial ideographic space as well.