Re: [csswg-drafts] [css-ruby-1] Should auto-hide match use NFKC and/or strip white space? (#5995)

The CSS Working Group just discussed `[css-ruby-1] Should auto-hide match use NFKC and/or strip white space?`, and agreed to the following:

* `RESOLVED: only perform whitespace stripping before comparing the base and annotation texts`

<details><summary>The full IRC log of that discussion</summary>
&lt;fremy> fantasai: we have a feature in ruby where if the annotated text and the base are identical if they are presented on top of each other<br>
&lt;fremy> fantasai: but if they are side by side, they are kept for example<br>
&lt;fremy> fantasai: the question is "what is identical"?<br>
&lt;fremy> fantasai: should we normalize before doing this?<br>
&lt;fremy> fantasai: should we deal with white space<br>
&lt;fremy> fantasai: should we collapse unicode characters that merge in rendering if possible? (NFKC)<br>
&lt;fremy> fantasai: but the internationalization group thought it might be too aggressive in some cases<br>
&lt;fremy> fantasai: they recommended NFC instead<br>
&lt;TabAtkins> q+<br>
&lt;fremy> fantasai: which only deal with things that are simpler (e.g. A + an accent vs A accent)<br>
&lt;florian> q+<br>
&lt;fremy> fantasai: so, do we want to perform NFC before comparing the texts?<br>
&lt;astearns> ack TabAtkins<br>
&lt;fremy> TabAtkins: I support whitespace stripping<br>
&lt;fremy> TabAtkins: because it can be due to source code formatting<br>
&lt;fremy> TabAtkins: but I don't think we should do NFC because we don't do this elsewhere<br>
&lt;fremy> TabAtkins: I expect that authors use the same typing convention in the same markup<br>
&lt;fremy> TabAtkins: we are not comparing html vs css<br>
&lt;astearns> ack florian<br>
&lt;fremy> florian: I agree about whitespace<br>
&lt;fremy> florian: for normalization, I'm less sure<br>
&lt;fremy> florian: if one persons types the text, and another the annotations<br>
&lt;fremy> florian: NFC is not very aggressive, I think it would make things more rational for users<br>
&lt;fremy> florian: however, it will be rare I think<br>
&lt;fremy> florian: but if it did occur, I think the correct behavior is to normalize<br>
&lt;fremy> florian: (so, preference for NFC, but not strong)<br>
&lt;jfkthame> +1 to nfc<br>
&lt;fremy> astearns: can we resolve on stripping whitespace, and leave off normalization?<br>
&lt;heycam> q+<br>
&lt;fremy> fantasai: I think yes, I agree with TabAtkins, we don't do it elsewhere<br>
&lt;fremy> fantasai: so it seems ok to drop this<br>
&lt;astearns> ack heycam<br>
&lt;fremy> heycam: this is just a content check, correct?<br>
&lt;fremy> heycam: we don't look at display:none etc... ?<br>
&lt;fremy> fantasai: we might be looking at display:none?<br>
&lt;fantasai> s/TabAtkins, we don't do it elsewhere/TabAtkins and Florian: it's definitely the right thing to do, but it's also not done elsewhere in the platform and is quite rare to mismatch/<br>
&lt;fremy> florian: but not generated content etc<br>
&lt;astearns> jfkthame: would you be OK not doing NFC, or would you prefer we resolve to use NFC?<br>
&lt;fremy> heycam: okay, hopefully the spec is very clear on that<br>
&lt;fremy> astearns: reading IRC comments<br>
&lt;fantasai> [note: those of us on the call are somewhat ambivalent about NFC, given pros and cons]<br>
&lt;jfkthame> astearns: I'd be ok with not, though I think it's less good (sorry, in another meeting)<br>
&lt;heycam> (I kind of don't quite understand the need for this automatic hiding, and why the author doesn't use visibility:hidden on ruby text that they know is the same as the base text)<br>
&lt;fremy> astearns: okay, since we have lots of doubts on NFC, let's just do whitespace and leave if at that<br>
&lt;fantasai> heycam, it's because whether it should be invisible or not depends on how it's styled<br>
&lt;fremy> florian: and also put an action on me to clarify the display:none behavior<br>
&lt;fantasai> heycam, and there's no selector for "this is the same text as the other thing" :)<br>
&lt;heycam> ok<br>
&lt;fantasai> heycam, plus it's what you want by default so we should do it by default<br>
&lt;fremy> astearns: so, the proposed resolution would be to only perform whitespace stripping before comparing the base and annotation texts<br>
&lt;fremy> astearns: any objection?<br>
&lt;fremy> RESOLVED: only perform whitespace stripping before comparing the base and annotation texts<br>
&lt;heycam> text-transform? :o<br>
&lt;fantasai> ”The content comparison for auto-hiding takes place prior to white space collapsing (white-space) and text transformation (text-transform) and ignores elements (considers only the textContent of the boxes).<br>
&lt;fremy> ACTION florian: make sure the way to determine what text we are talking about (display:none, etc...)<br>
&lt;fantasai> ”<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5995#issuecomment-1332483040 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 30 November 2022 17:10:27 UTC