Re: [csswg-drafts] [css-sizing] Percentage sizing section is kind of vague

OK, submitted WPT tests in https://github.com/w3c/web-platform-tests/pull/9418 for this issue. We still need a WG resolution to add prose for this, and also, I'd really like someone to look this all over because I'm not 100% confident I'm triggering the right cases / understanding the results correctly. :(

Proposed edits would be, append to the first paragraph of https://drafts.csswg.org/css-sizing-3/#intrinsic-contribution

> If the box is non-replaced, then the value of any sizing property specified on it as an expression containing a percentage is treated <em>for the purpose of calculating the box’s intrinsic size contribution only</em> as that property’s initial value. For example, given a box with ''width: calc(20px + 50%)'', its <a>max-content contribution</a> is calculated as if its 'width' were ''width/auto''. The percentage is honored as usual, however, during the actual sizing of the box itself.

Suggestions on wording improvement welcome...

-- 
GitHub Notification of comment by fantasai
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1132#issuecomment-363623845 using your GitHub account

Received on Wednesday, 7 February 2018 01:24:08 UTC