w3c / csswg-drafts

CSS Working Group Editor Drafts
https://drafts.csswg.org/
Other
4.36k stars 641 forks source link

[css-text-decor] "grapheme cluster" versus "character" inconsistency in definition of text-emphasis #4236

Open emuller-amazon opened 4 years ago

emuller-amazon commented 4 years ago

https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property

The value "" for the text-emphasis-style property says:

Display the given string as marks. Authors should not specify more than one character in . The UA may truncate or ignore strings consisting of more than one grapheme cluster.

Shouldn't "grapheme cluster" be replaced by "character" to match the second sentence.

upsuper commented 4 years ago

I think the first sentence should be changed to use "grapheme cluster" since "character" is a vague concept.

emuller-amazon commented 4 years ago

Either way works for me.

fantasai commented 2 years ago

I actually somewhat intentionally used the word “character” here, because because “character” is a word that's immediately understandable to authors. There are a variety of possible interpretations, but the distinctions are not really relevant here, since most characters that would be appropriate for this usage are single-codepoint grapheme clusters. So if the statement is a bit vague, it doesn't actually matter. But if it's using weird unfamiliar terminology, it's hard to understand.

I was more precise for the UA requirement, because implementers need the precision.

@emuller-amazon Let me know if this works for you, or if you think that we should be making some different call here.