[css-typed-om] Normalize CSS variables in property values.
When we specify CSS variables in a property value (e.g. color: var(--A)) we need to return a CSSUnparsedValue. This patch implements this by first trying to parse the property value according to the property's grammar. If it fails, we then check if it has var references and parse it as a variable reference. The code for converting a variable reference to a CSSUnparsedValue was already in the codebase so we just hook into that. Bug: 788570 Change-Id: I65b32d29e80918c61e1731e7a0424b72e7d9b1d7 Reviewed-on: https://chromium-review.googlesource.com/804980 Commit-Queue: Darren Shen <shend@chromium.org> Reviewed-by:nainar <nainar@chromium.org> Cr-Commit-Position: refs/heads/master@{#521955}
Showing
Please register or sign in to comment