[css-properties-values-api] Support calc() values for <integer>.
For custom properties registered with <integer>, it should according to CSS Values and Units Level 4 be possible to apply non-integral values, and then have the value round to the nearest integer computed value time. To do this, this CL ...: * Changes the parsing of <integer> values such that non-integral calc() expressions are allowed. * Recognizes such calc()-expressions computed-value time, resolves them, and rounds them to the nearest integer. * Wraps values such as CSS.number(1.5) in calc() if necessary, when setting such values using Typed OM. R=futhark@chromium.org Bug: 641877 Change-Id: I2d4d7c4d72c9b2069f2fe10b1be1b4b94d5900e2 Reviewed-on: https://chromium-review.googlesource.com/c/1280663 Commit-Queue: Anders Ruud <andruud@chromium.org> Reviewed-by:Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#600716}
Showing
Please register or sign in to comment