[css-typed-om] Fix crash for css-wide keywords in custom properties.
When converting CSSCustomPropertyDeclaration to CSSUnparsedValues, we used to assume that CSSCustomPropertyDeclaration will always have a CSSVariableData, but it turns out that css-wide keywords are stored as a CSSValueID instead of a CSSVariableData. This patch handles css-wide keywords on CSSUnparsedValues correctly. We added a unit test and not a WPT since this is likely a blink-only implementation detail. Bug: 824740 Change-Id: Iefbdca4abc736562b81f5c6a3f0332975b842961 Reviewed-on: https://chromium-review.googlesource.com/977141 Commit-Queue: Darren Shen <shend@chromium.org> Reviewed-by:Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#545729}
Showing
Please register or sign in to comment