commit | 57c4e7d9c45df9419066cbd92cc75581be53669f | [log] [tgz] |
---|---|---|
author | Anders Hartvoll Ruud <andruud@chromium.org> | Thu Oct 18 10:20:31 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Oct 18 10:20:31 2018 |
tree | fdede7bb5572b299eaab81419751a0c4253c6fe8 | |
parent | 64cbe66322b277223ff15b529ae787f544e6013c [diff] |
[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}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .