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

Re: [csswg-drafts] padding-x, padding-y, margin-x & margin-y (#3486)

From: Rachel Andrew via GitHub <sysbot+gh@w3.org>
Date: Sat, 19 Oct 2019 20:11:32 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-544193575-1571515891-sysbot+gh@w3.org>
@simonc CSS is moving to flow relative properties in general - you will notice that grid and flexbox don't refer to x and y, instead to block and inline, start and end.

Browsers are implementing these shorthands, which will do exactly what you want:

- https://developer.mozilla.org/en-US/docs/Web/CSS/margin-inline
- https://developer.mozilla.org/en-US/docs/Web/CSS/margin-block
- https://developer.mozilla.org/en-US/docs/Web/CSS/padding-inline
- https://developer.mozilla.org/en-US/docs/Web/CSS/padding-block

Have a look at the browser support table at the bottom of the pages for support info.

GitHub Notification of comment by rachelandrew
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3486#issuecomment-544193575 using your GitHub account
Received on Saturday, 19 October 2019 20:11:33 UTC

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