Re: [csswg-drafts] [css-values] Let B default to 1 in `round(<strategy>?, A, B)` (#9668)

The CSS Working Group just discussed ``[css-values] Let B default to 1 in `round(<strategy>?, A, B)` ``.

<details><summary>The full IRC log of that discussion</summary>
&lt;Frances> Alan: Moving onto the next issue, we are limited by compat concerns.<br>
&lt;Frances> Tab: Round function takes a rounding strategy, we require the modulus to be rounded. We could omit the modulus.<br>
&lt;emilio> q+<br>
&lt;lea> q?<br>
&lt;astearns> ack emilio<br>
&lt;lea> q+<br>
&lt;Frances> Emilio: It feels weird to make lengths invalid and not make it optional, such as rounding a pixel value. Default for the length would be nice.<br>
&lt;astearns> ack lea<br>
&lt;Frances> Tab: Rounding to one pixel as a default is not obvious, people might not care about subpixels, but rather the unit they are using.<br>
&lt;bramus> +1 on what tab just said.<br>
&lt;emilio> q+<br>
&lt;astearns> ack emilio<br>
&lt;Frances> Lea: Should not have to specify 1, whereas dimensions such as length, would make more sense on what you are rounding by, pixels might not be used too much today. Would like default for lengths, possibly not pixels.<br>
&lt;lea> qq+ to reply to emilio<br>
&lt;Frances> Emilio: In length there is a single unit that other lengths end up computing to.<br>
&lt;astearns> ack lea<br>
&lt;Zakim> lea, you wanted to react to emilio to reply to emilio<br>
&lt;Frances> Lea: Sensible defaults are great when centered around user needs or could be confusing.<br>
&lt;oriol> q+<br>
&lt;Frances> Alan: It is reasonable to have numbers default to 1, but not reasonable for numbers to default to invalid for another type.<br>
&lt;Frances> Lea: Which invalid results?<br>
&lt;oriol> q-<br>
&lt;lea> q?<br>
&lt;Frances> Alan: Once taking the pattern of omitting the argument and applying it, it could create invalid creations.<br>
&lt;florian> q+<br>
&lt;bramus> q+<br>
&lt;emilio> q+<br>
&lt;Frances> Lea: When rounding numbers will be clear, when rounding lengths will not be clear.<br>
&lt;emilio> ack emilio<br>
&lt;lea> q+<br>
&lt;astearns> ack Frances<br>
&lt;astearns> ack florian<br>
&lt;Frances> Alan: There could be a reasonable default, omit the parameter in some implications but not others.<br>
&lt;oriol> +1 to Florian<br>
&lt;Frances> Florian: Figuring out more syntax is necessary, you need to express something. Figuring out which syntax is implied. For rounding things, separate digits after the comma. Does 10 mean 10 digits after the period or before the period? For lengths, have to think about this stuff in what you mean.<br>
&lt;astearns> ack bramus<br>
&lt;lea> +1 to florian, that's exactly what I was saying too (but always good to have multiple framings)<br>
&lt;lea> q?<br>
&lt;Frances> Bramus: If the default only cares for one of the cases, then it's not a good default?<br>
&lt;Frances> Alan: It could make it difficult for an author to reason whether to use the parameter or not.<br>
&lt;astearns> ack lea<br>
&lt;Frances> Lea: If it's the concern, round could possibly not have a default. It takes a parameter to round by.<br>
&lt;Frances> Alan: We can likely resolve on making the change.<br>
&lt;Frances> PROPOSAL: Allow the modulus parameter to be optional in the case of rounding numbers and default to 1<br>
&lt;Frances> Alan: Objections? No objections.<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9668#issuecomment-1969495056 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 28 February 2024 17:31:25 UTC