From 90c77d1d771d2337a5e8a7dae79a34e89a05f8cf Mon Sep 17 00:00:00 2001 From: Tab Atkins-Bittner Date: Mon, 26 Mar 2018 11:10:45 -0700 Subject: [PATCH] [css-sizing] Specify that sizing properties containing %s are treated as property's initial value for intrinsic size contribution. Fixes #1132. --- css-sizing-3/Overview.bs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/css-sizing-3/Overview.bs b/css-sizing-3/Overview.bs index f7b900e24a37..5fc53918b6dc 100644 --- a/css-sizing-3/Overview.bs +++ b/css-sizing-3/Overview.bs @@ -839,6 +839,16 @@ Intrinsic Contributions that contains only that box, if that hypothetical float's containing block is zero-sized/infinitely-sized. + If the box is [=non-replaced=], + then the value of any [=sizing property=] specified on it + as an expression containing a percentage + (such as ''10%'' or ''calc(10px + 0%)'') + is treated for the purpose of calculating the box’s intrinsic size contribution only + as that property’s initial value. + For example, given a box with ''width: calc(20px + 50%)'', + its max-content contribution is calculated as if its 'width' were ''width/auto''. + The percentage is honored as usual, however, during the actual sizing of the box itself. + However, in the case of a [=replaced element|replaced=] box with a percentage-based 'width'/'max-width'/'height'/'max-height', the percentage is resolved to zero when calculating the min-content contribution in the corresponding axis.