commit | 67e449b925663f3b91e0f588da99178bf696fbdf | [log] [tgz] |
---|---|---|
author | Anders Hartvoll Ruud <andruud@chromium.org> | Thu Nov 15 14:56:10 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Nov 15 14:56:10 2018 |
tree | e90ef8d29d4b7e2b73233099784631005fc19229 | |
parent | 911038cc9bd6438ab2406664c5f00c6a77c90437 [diff] |
[css-properties-values-api] Validate var() fallbacks. According to a recent spec edit, any fallback in a var()-reference must match the syntax of the referenced property, otherwise the var()-reference is invalid. This applies even if the fallback is not used. To implement this, ResolveFallback now returns kNone/kFail/kSuccess instead of a bool. This is necessary, because the kNone case may be both an error state and a success state, depending on whether the fallback is being used or not, hence a plain bool is not sufficient. R=futhark@chromium.org Bug: 641877 Change-Id: I951eef6335bf1cd4064d59959d73ec4fa39c9ee0 Reviewed-on: https://chromium-review.googlesource.com/c/1335576 Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Anders Ruud <andruud@chromium.org> Cr-Commit-Position: refs/heads/master@{#608365}
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 .