W3C home > Mailing lists > Public > www-style@w3.org > October 2014

[css-text][css-flexbox] Let's just alias "nowrap" with "no-wrap"

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 9 Oct 2014 19:05:18 -0700
Message-ID: <CAAWBYDCbiwOx12qkAnuMnp-qVSZ6co_x4K7qfaPp5SzhBEORtQ@mail.gmail.com>
To: www-style list <www-style@w3.org>
One of the people I follow recently posted the following on Twitter:
<https://twitter.com/SlexAxton/status/519953582183809024>

> white-space: nowrap;
> whitespace: no-wrap;
>
> Don't pretend like you know. And when you look it up, don't pretend like it makes any sense.

I've heard this complaint before, and railed against the dumb keyword
myself.  (Flexbox originally used no-wrap for flex-wrap, but we
switched to nowrap for consistency with white-space.)

This is one of the few keywords in the language that doesn't use a -
between words (the only others I know of being values we inherited
from SVG, like currentcolor).

Anyone have objections to us just aliasing the value as "no-wrap"?
That way, in a few years, people can just do the logical thing and use
the value they expect, rather than having to deal with this wart
forever.

~TJ
Received on Friday, 10 October 2014 02:06:04 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:47 UTC