- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Tue, 10 Apr 2018 13:07:13 +0000
- To: public-css-archive@w3.org
The Working Group just discussed `calc() with percentages in margins/padding`, and agreed to the following resolutions: * `RESOLVED: zero out percentages on non-sizing use of calc` <details><summary>The full IRC log of that discussion</summary> <fantasai> Topic: calc() with percentages in margins/padding<br> <dael> github: https://github.com/w3c/csswg-drafts/issues/2297#issuecomment-376263348<br> <fantasai> github: https://github.com/w3c/csswg-drafts/issues/2297#issuecomment-376263348<br> <fantasai> rego: no<br> <rego> fantasai: :)<br> <dael> fantasai: it was to discuss 0ing out a % vs the entire expression. Example calc (10% + 10px) 0ing the entire expression is what's impl. 0ing the % is more meaningful. This is for purpose of calc intrinsic size calc of element.<br> <dael> dbaron: It's also continuous in terms of what happens when you have a calc that approaches 0 and you remove the calc.<br> <fantasai> Comment summarizing issue: https://github.com/w3c/csswg-drafts/issues/2297#issuecomment-376263348<br> <dael> TabAtkins: Are we okay with some properties having a different indefinite percent with calcs.<br> <dael> fantasai: I prefer 0 out the %<br> <dael> florian: Justification to 0 everything other then it's what we have<br> <dael> fantasai: Id din't hear anything.<br> <dael> Rossen: I agree with fantasai. 0ing the % makes more sense. Having a box model with tabbing and you'll 0 out %<br> <dael> fantasai: For size we ignore entire calc. We closed that in #1132. SOrry,w e throw out the calc and treat as auto. Fallback to initial value<br> <dael> fantasai: That makes snese for sizing in a way it doesn't here is if you fallback to the original that has some kind of meaning. In this case there's no meaningful value for margins and padding.<br> <dael> astearns: In only 0 out % for calc that's not sizing it's a slight descrepency.<br> <dael> fantasai: correct.<br> <dael> florian: We can do calc of 10%+10px is the same as 10px but we cant do auto+10px because that's not defined.<br> <Rossen> s/Having a box model with tabbing and you'll 0 out %/Having a box model with some % and non-% values results in the same logic, where we would zero out the % values and add the rest of the defined sizes/<br> <dael> astearns: Arguments against only 0ing out % on non-sizing use of calc<br> <dael> astearns: Obj?<br> <fantasai> (Florian was responding to Alan's question of why we throw out the expression for sizing props)<br> <dael> RESOLVED: zero out percentages on non-sizing use of calc<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2297#issuecomment-380091423 using your GitHub account
Received on Tuesday, 10 April 2018 13:07:17 UTC