Re: [csswg-drafts] [css-text] pre-wrap and tabs at the end of the line (#3869)

The CSS Working Group just discussed `Pre-wrap and tabs`.

<details><summary>The full IRC log of that discussion</summary>
&lt;fantasai> Topic: Pre-wrap and tabs<br>
&lt;fantasai> github: https://github.com/w3c/csswg-drafts/issues/3869<br>
&lt;fantasai> florian: Also came up writing tests ...<br>
&lt;fantasai> florian: We say what happens to spaces at the end of the line. We don't say what happens to tabs.<br>
&lt;fantasai> florian: I suppose the same thing happens, but spec doesn't say<br>
&lt;fantasai> florian: Spec describes tabs rendered as a shift, not a visible thing<br>
&lt;fantasai> fantasai: certainly if spaces after the tab, should be rendered as a shift<br>
&lt;fantasai> fantasai: but at the end of the line, wouldn't be surprised if they disappeared<br>
&lt;fantasai> ...<br>
&lt;fantasai> fantasai: definitely treat the same as spaces for break-spaces<br>
&lt;fantasai> fantasai: not so sure for others<br>
&lt;fantasai> myles: I agree with Florian, treat it like spaces.<br>
&lt;fantasai> myles: it's a Unicode character just like any other<br>
&lt;fantasai> fantasai: Its size changes depending on its position in the line<br>
&lt;fantasai> florian: Spec allows UA to compress their width to zero at the end of the line, could do that with tabs also<br>
&lt;fantasai> fantasai: That won't be allowed in L4 though<br>
&lt;fantasai> fantasai: ... wrt myles's point about font shaping, characters change shape depending on context<br>
&lt;fantasai> fantasai: But not depending on their position within the line, which is what tabs do<br>
&lt;fantasai> ...<br>
&lt;fantasai> fantasai: I'm not really sure what should happen, but I lean towards tabs not being allowed to hang<br>
&lt;fantasai> fantasai: partly for that, partly because they are quite large = 8 spaces by default<br>
&lt;fantasai> florian: But you want your caret to be visible if you put it after the tab<br>
&lt;fantasai> AmeliaBR: Tabs at the end of the line are rare. Also if you want to edit, you want to be able to see them.<br>
&lt;fantasai> myles: don't want too many special cases<br>
&lt;fantasai> plinss: Tabs are used for delimiting things. Shouldn't disappear.<br>
&lt;fantasai> fantasai: who's saying anyting about disappearing? I'm saying they shouldn't hang. Doesn't mean they disappear<br>
&lt;fantasai> fantasai: Treat it just like a visible character, it causes text to wrap to the next line.<br>
&lt;fantasai> fantasai: Hanging allows things to overflow even when there are sufficient wrapping opportunities in the line ot not overflow<br>
&lt;fantasai> myles: tabs are more like spaces than visible characters<br>
&lt;fantasai> florian: like spaces or nbsp?<br>
&lt;fantasai> AmeliaBR: Maybe continue this discussion in the issue, write out the options and add examples of how that would work for use cases e.g. editing text, viewing tab-delimited data, etc.<br>
&lt;fantasai> ACTION Florian write up options<br>
&lt;trackbot> Created ACTION-878 - Write up options [on Florian Rivoal - due 2019-05-15].<br>
</details>


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

Received on Wednesday, 8 May 2019 16:29:37 UTC