Oooh `margin-bottom: 20%w` and `margin-bottom: 20%h` sounds like an awesome idea. It lets us have more fine tuned control over how we want the percentages calculated. Making `%w` and `%h` actual generic unit types would also solve the aspect ratio issue. You could do something like `height: 50%w` to create a `2/1` ratio container :) As for what `%` would equal in flex and grid, I'm not really sure :/ >From a logical sense, I like the idea of basing it off the same axis. From a practical sense though, if I say `padding: 10%;` I would expect equal padding around all sides of the container :/ -- GitHub Notification of comment by Dan503 Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2085#issuecomment-353078612 using your GitHub accountReceived on Wednesday, 20 December 2017 14:34:24 UTC
This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:26:45 UTC