commit | 109bf68cc0c62fdfde2c1ad50e3612da2b3a0217 | [log] [tgz] |
---|---|---|
author | Anders Hartvoll Ruud <andruud@chromium.org> | Tue Oct 30 11:03:45 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Oct 30 11:03:45 2018 |
tree | 79cdd1c915a2380bbd39771e2ec8f5443a42965b | |
parent | cfbf91180c29c6aeb58c6b752b4af8c65ad18269 [diff] |
[css-properties-values-api] Validate generate_property argument. This prevents silently dropping invalid arguments. For example, the following currently generates a non-inherited property: let name = generate_property(syntax: '<length>', inherited: true); This is because 'inherited' is not an option for CSS.registerProperty (the actual option is 'inherits'). With this change, an exception is thrown if unknown options are provided. R=futhark@chromium.org Bug: 641877 Change-Id: I7b639651c331aa705416db95a3de751353648031 Reviewed-on: https://chromium-review.googlesource.com/c/1304522 Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Anders Ruud <andruud@chromium.org> Cr-Commit-Position: refs/heads/master@{#603862}
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 .