Re: [csswg-drafts] [css-text] Question re white space processing rules for U+000D

The Working Group just discussed `Lone CRs`, and agreed to the following resolutions:

* `RESOLVED: Treat lone CRs as 0 width spaces`

<details><summary>The full IRC log of that discussion</summary>
&lt;fantasai> Topic: Lone CRs<br>
&lt;fantasai> https://drafts.csswg.org/css-text-3/issues-lc-2013#issue-138<br>
&lt;fantasai> github: https://github.com/w3c/csswg-drafts/issues/855<br>
&lt;dael> fantasai: Jonathan Kew reports a long cr is just like a lone line feed and it's a segment break. Browsers discared the carraige returns. If you put them in your source they're transformed. However if you inject it via JS into the dom text content then it disappears.<br>
&lt;dael> fantasai: If they used dthml and not escape it would happen. We accepted the change and then I realized that making a character invisible is under defined.<br>
&lt;dael> myles: Can we pretend it never existed?<br>
&lt;fantasai> http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%D8%B4%D8%AA%0AVA%3Cbr%3E%0A%D8%B4%26%23x000c%3B%D8%AA%0AV%26%23x000c%3BA%3Cbr%3E%0A%D8%B4%26%23x000d%3B%D8%AA%0AV%26%23x000d%3BA%3Cbr%3E%0A%D8%B4%26%23x200b%3B%D8%AA%0AV%26%23x200b%3BA%0A%0A<br>
&lt;dael> fantasai: Or treat similar to 0 width<br>
&lt;dael> myles: For kerning you want it not to be similar to 0 width<br>
&lt;dael> fantasai: I think this is a weird edge case.<br>
&lt;dael> myles: You're saying because it's an edge case we should do the simple thing.<br>
&lt;dael> fantasai: For pages authored with crs they're taking care of by html parsing algo. This is just people who stick a character inside.<br>
&lt;dael> fantasai: gecko treats like 0 space and chrome drops. Someone help me decide between the 2 behaviors.<br>
&lt;dael> florian: Dropping seems simplier.<br>
&lt;dael> myles: Harder to impl because changes size of data structire<br>
&lt;dael> koji: Difference between drop and 0 width?<br>
&lt;dael> fantasai: There's a test case.<br>
&lt;dael> myles: In an impl where strings are never copied you'd have to removet he character and shift the future to pretend it doesn't happen.<br>
&lt;dael> astearns: We have 1 browser with 0 width and another inclined.<br>
&lt;dael> fantasai: fremy what does edge do?<br>
&lt;dael> fremy: I can't load page.<br>
&lt;dael> eae: We wouldn't object.<br>
&lt;dael> myles: There are other characters treated as 0 width.<br>
&lt;dael> astearns: fremy do you care?<br>
&lt;dael> fremy: I don't know what Edge does.<br>
&lt;dael> fantasai: There's an IRC test case.<br>
&lt;dael> fremy: It's so broken we need to fix it.<br>
&lt;dael> astearns: Prop: Treat lone CRs as 0 width spaces<br>
&lt;dael> RESOLVED: Treat lone CRs as 0 width spaces<br>
</details>


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

Received on Wednesday, 11 April 2018 12:36:08 UTC