Skip to content

Update CSS text-spacing property spec to align to the latest draft #1080

@MurakamiShinyu

Description

@MurakamiShinyu

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.

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: first to hang a paragraph-initial ideographic space as well.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions