W3C home > Mailing lists > Public > www-style@w3.org > September 2015

[css-text] Control Characters Roll Call on implementation

From: Greg Whitworth <gwhit@microsoft.com>
Date: Thu, 10 Sep 2015 20:21:05 +0000
To: David Baron <dbaron@dbaron.org>, Dean Jackson <dino@apple.com>, Tab Atkins <tabatkins@google.com>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <CY1PR03MB1439DA4959890116E7CA04BEA4510@CY1PR03MB1439.namprd03.prod.outlook.com>
Hello everyone,

As I brought up at recent F2F, and I plan to bring up again at TPAC, we all agreed[1] to implement behind a flag the breaking change stated in CSS Text L3 to render control characters.

    # Control characters (Unicode category Cc) other than tab (U+0009), line feed (U+000A), and carriage return (U+000D) must be rendered as a visible glyph and
    # otherwise treated as any other character of the Other Symbols (So) general category and Common script. The UA may use a glyph provided by a font specifically
    # for the control character, substitute the glyphs provided for the corresponding symbol in the Control Pictures block, generate a visual representation of its
    # codepoint value, or use some other method to provide an appropriate visible glyph. As required by [UNICODE], unsupported Default_ignorable characters
    # must be ignored for rendering.

We have implemented this in Microsoft Edge for all C0 and if it did not already have a hex box in the selected font we are using U+25AF (White Vertical Rectangle). One thing of note is that we noticed all browsers throw away the C1 control characters during HTML parsing so this replacement isn't possible. If the other UAs can confirm this we should adjust the language in the text to only change the C0 control characters and ensure that your HTML parser is disposing of the C1 block.

Here are bugs for the dev work in each browser:
Mozilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1099557
Webkit: Can't seem to find one (Dean, can you please get me one)
Blink: Can't find one (Tab, can you please get me one)
Microsoft: Implemented behind a flag, I'll provide an email once it's available in an insider preview

I want to **reiterate** that while this is not a monumental change, this is actually an important practice for all of us to work together on a breaking change and potentially increase this to clean up the web platform in the future.

Please let me know where you development status is and if you expect to have the development done by October (TPAC). Remember, it does not have to ship, just be completed.

>From there we can start the PR machines and tooling to let authors know of this breaking change.

Thanks,
Greg

[1] http://logs.csswg.org/irc.w3.org/css/2015-02-08/#e520447
Received on Thursday, 10 September 2015 20:21:35 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:52:24 UTC