Open MurakamiShinyu opened 2 years ago
Indeed, different software (Adobe InDesign, Microsoft Word, Core Text, etc.) and different authors/publishers may have different preferences, and the point is that there is extra spacing between ideographs and non-ideographic letters/numerals. I feel like we can move "1/4em" to a non-normative note as a guideline to implementers who don't know how much space to add, instead of making it a hard and fast normative rule.
See also: https://github.com/w3c/jlreq/issues/163
And since IIRC no browsers have implemented this property yet (except for IE, but IIRC the property names are different), I don't think we'll have any web compat issues.
Accepting this under editor's discretion. @MurakamiShinyu @xfq Let me know if the edits look appropriate! Thanks!
@fantasai Yes, looks good to me. Thanks!
It looks good to me. Thank you, @fantasai!
https://drafts.csswg.org/css-text-4/#text-spacing-property
This proposal was found in the following issue:
and this issue was resolved as:
I am ok with adding the
auto
value, but I think it's not sufficient. Changing "Creates 1/4em extra spacing between" to "Creates extra spacing between" is still necessary.The "1/4em extra spacing" is not the best choice in many cases, and narrower space such as 1/6em is preferred. Apple iOS seems to use 1/6em for ideographic-alpha/numeric spacing.
For the
auto
value, UA can choose such better spacing value for ideographic-alpha/numeric spacing, but stylesheet authors cannot use theauto
value when they need to choose specific text-spacing style, e.g., preference betweenallow-end
andtrim-end
, orspace-first
andtrim-start
. So the spacing value ofideographic-alpha
andideographic-numeric
should be same as the spacing value for ideographic-alpha/numeric spacing withauto
.FYI, Vivliostyle supports the
text-spacing
property, withauto
value which is equivalent totrim-start trim-end trim-adjacent ideograph-alpha ideograph-numeric
and theideograph-alpha
andideograph-numeric
create 1/6em space. See https://docs.vivliostyle.org/#/supported-css-features#css-text-4