File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -424,6 +424,20 @@ Intrinsic Contributions</h3>
424
424
that contains only that box,
425
425
if that hypothetical float's containing block is zero-sized/infinitely-sized.
426
426
427
+ However, in the case of a [=replaced element|replaced=] box with a percentage-based 'width' /'max-width' /'height' /'max-height' ,
428
+ the percentage is resolved to zero
429
+ when calculating the <a>min-content contribution</a> in the corresponding axis.
430
+
431
+ <div class=example>
432
+ For example,
433
+ an <{input}> assigned ''width: calc(50% + 50px)''
434
+ has a <a>min-content contribution</a> of ''50px'' ,
435
+ plus any horizontal margin/border/padding.
436
+ </div>
437
+
438
+ Note: We are not 100% sure if zeroing out a percentage 'max-width' on form controls is web-compatible.
439
+ See <a href="https://github.com/w3c/csswg-drafts/issues/765">Issue 765</a> .
440
+
427
441
Note: This specification does not define how to determine these sizes.
428
442
Please refer to [[CSS2]] ,
429
443
the relevant CSS specification for that display type,
You can’t perform that action at this time.
0 commit comments