W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2020

Re: [csswg-drafts] [css-sizing] Adding a 'size' shorthand for 'width'/'height' (#820)

From: zjopy via GitHub <sysbot+gh@w3.org>
Date: Fri, 29 May 2020 15:36:15 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-636039871-1590766574-sysbot+gh@w3.org>
I don't think it was mentioned yet, but the css-writing-mode module uses the word "size" in `block-size` and `inline-size` as a length in a single dimension. This was a really unfortunate choice as "size" refers to "a thing's overall dimensions or magnitude" [source](https://www.lexico.com/en/definition/size), which for 2-dimensional boxes, would mean 2 dimensions. It definitely should have been named "block/inline-length" or similar, but I guess it's too late now.

This however means that, while entirely reasonable on its own, using `size` as a shorthand for both `width` and `height` would conflict with the one-dimensional notion used in the css-writing-mode module.

I guess nobody cares though. There are already tons of conflicting naming choices in CSS, so yet another one won't be that bad.

GitHub Notification of comment by zjopy
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/820#issuecomment-636039871 using your GitHub account
Received on Friday, 29 May 2020 15:36:17 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:07 UTC