W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2019

Re: [csswg-drafts] [css-values] Define value syntax that limits <integer>, <number>, <length>, etc. to ranges (#355)

From: Christoph Päper via GitHub <sysbot+gh@w3.org>
Date: Mon, 25 Feb 2019 17:32:27 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-467102835-1551115946-sysbot+gh@w3.org>
Brackets and dots notation
----------------

An ellipsis made of three dots `...` (not U+2026 `…`) could stand in for an infinity sign.

* font-size:  `<absolute-size> | <relative-size> | <length-percentage [0, ...]>`
* font-weight: `[ normal | bold | <number [1, 1000]> ] | bolder | lighter`
* font-stretch: `normal | <percentage [0%, ...]> | <font-stretch-keyword>`
* font-style: `normal | italic | oblique <angle [-90deg, 90deg]>?`

Dots notation
----------------

This could be coupled with two dots to indicate a closed range, which in turn is just a variation of the _human-readable range notation_ with `..` substituting `to` and `...` for `+`.

* font-size:  `<absolute-size> | <relative-size> | <length-percentage: 0 ...>`
* font-weight: `[ normal | bold | <number: 1 .. 1000> ] | bolder | lighter`
* font-stretch: `normal | <percentage: 0% ...> | <font-stretch-keyword>`
* font-style: `normal | italic | oblique <angle: -90deg .. 90deg>?`



-- 
GitHub Notification of comment by Crissov
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/355#issuecomment-467102835 using your GitHub account
Received on Monday, 25 February 2019 17:32:29 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:44 UTC