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

I am not opposed to changing the definition of @page/width and @page/height. However, we still need a way to specify the width and height of the page-area. For example, what about the following new syntax?  (`@page-area` for the page area definition):

```css
@page {
  size: A5;
  margin: auto;
  @page-area {
    width: 32rem;
    height: 29rlh;
  }
}
```

BTW, our implementation, [Vivliostyle](https://vivliostyle.org/), has supported @page/width and @page/height in the same way as Antenna House Formatter since 2015.

See our sample stylesheet using width and height on `@page` : 
https://github.com/vivliostyle/vivliostyle_doc/blob/gh-pages/samples/gon/scss/base/_format.scss#L23-L32
(View the sample with Vivliostyle Viewer: https://vivliostyle.org/viewer/#src=https://vivliostyle.github.io/vivliostyle_doc/samples/gon/index.html )


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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 22 March 2021 05:03:31 UTC