Re: [csswg-drafts] [css-flexbox] [css-text] Alias "nowrap" as "no-wrap"

Seems like a good idea to go with option three from an authoring perspective.

If I understand option two correctly, it leads to bizarre situations like:

    element.style.setProperty("white-space", "no-wrap");
    element.style.getPropertyValue("white-space") === "no-wrap"; // false

That seems pretty undesirable. However, that strange behavior might be worth accepting as I've never had a reason to poll the value of the `white-space` property and if one needs to do so in a CSS Text, Level 4 world, one can use the following code, assuming the `no-wrap` keyword modification is integrated into that spec:

    element.style.setProperty("text-wrap", "no-wrap");
    element.style.getPropertyValue("text-wrap") === "no-wrap"; // true

-- 
GitHub Notification of comment by patrickdark
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1537#issuecomment-311285102 using your GitHub account

Received on Tuesday, 27 June 2017 08:08:12 UTC