[Webkit-unassigned] [Bug 278852] CSS rounding functions can't take variables

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 4 16:17:25 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=278852

--- Comment #8 from Karl Dubost <karlcow at apple.com> ---
For reference The current specification 
https://drafts.csswg.org/css-values/#funcdef-round

The round(<rounding-strategy>?, A, B?) function contains an optional rounding strategy, and two calculations A and B, and returns the value of A, rounded according to the rounding strategy, to the nearest integer multiple of B either above or below A. The argument calculations can resolve to any <number>, <dimension>, or <percentage>, but must have a consistent type or else the function is invalid; the result’s type will be the consistent type.


one thing I want to rap around my head is what value do you expect from 

round(var(--offset) / 2))

Maybe we should reason with something different than 1 or 0.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240904/58210323/attachment.htm>


More information about the webkit-unassigned mailing list