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

[csswg-drafts] [css-sizing-4] Should aspect-ratio be used for abspos `top: 0; bottom: 0;`? (#5151)

From: Christian Biesinger via GitHub <sysbot+gh@w3.org>
Date: Tue, 02 Jun 2020 19:06:28 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-629443938-1591124787-sysbot+gh@w3.org>
cbiesinger has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-sizing-4] Should aspect-ratio be used for abspos `top: 0; bottom: 0;`? ==
https://drafts.csswg.org/css-sizing-3/#intrinsic-sizes
https://drafts.csswg.org/css-sizing-4/#aspect-ratio

In this code:
```html
<div style="width: 500px; height: 100px; position: relative;">
  <div style="background: green; aspect-ratio: 1/1; position: absolute; left: 0; top: 0; bottom: 0;"></div>
```

Should the width be computed using the aspect-ratio, since top and bottom establish a size that could be used?

Note that the first link says not to:

> For boxes with an intrinsic aspect ratio, but no intrinsic size:
>If the available space is definite in the inline axis, use the stretch fit into that size for the inline size and calculate the block size using the aspect ratio.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5151 using your GitHub account
Received on Tuesday, 2 June 2020 19:06:31 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:27:11 UTC