Skip to content

Commit 2e3ba43

Browse files
committed
[css-sizing-3] #6341 Per WG resolution, fixed lengths transfer across the aspect ratio when dealing with cyclic %s on replaced elements.
1 parent df6e80a commit 2e3ba43

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

css-sizing-3/Overview.bs

+15-1
Original file line numberDiff line numberDiff line change
@@ -1085,9 +1085,23 @@ Intrinsic Contributions of Percentage-Sized Boxes</h4>
10851085
is resolved against zero
10861086
when calculating the <a>min-content contribution</a> in the corresponding axis.
10871087
(See [[#min-content-zero]] for a list of which elements in HTML this applies to.)
1088-
The UA may additionally floor this size based on UI considerations,
1088+
If the box also has a [=preferred aspect ratio=],
1089+
then this [=min-content contribution=] is floored
1090+
by any <<length-percentage>> [=minimum size=] from the opposite axis--
1091+
resolving any such percentage against zero--
1092+
transferred through the [=preferred aspect ratio=].
1093+
<!-- https://github.com/w3c/csswg-drafts/issues/6341 -->
1094+
1095+
ISSUE: Should we resolve transferred percentages against their containing block instead of zero before transferring them? See <a href="https://github.com/w3c/csswg-drafts/issues/6341">discussion</a>.
1096+
1097+
The UA may additionally floor the [=min-content contribution=]
1098+
based on UI considerations,
10891099
such as ensuring certain UI elements remain visible
10901100
(for example, the dropdown arrow on a <{select}>).
1101+
1102+
Note: The [=min-content contribution=] is, as always,
1103+
also floored by the [=minimum size=] in its own axis.
1104+
10911105
This rule also applies when calculating
10921106
a content-based <a>automatic minimum size</a>
10931107
or its corresponding size contribution,

0 commit comments

Comments
 (0)