Ribbon: Implement CustomProperty::ParseSingleValue.
This CL makes it possible to parse custom properties though the CSSProperty API (like other properties). We need different parsing behavior, depending on the situation: * kTyped: Parsed according to registered syntax. This is needed by e.g. CSS Typed OM. * kUntyped: Parsed as if unregistered. This is needed by the CSS parser, where registrations should just be ignored. * kUntypedValidated: Parsed as if unregistered, but tokens must also match the registered syntax. This is needed by CSS OM, where values should be validated against the registered syntax when arriving through setProperty, yet still behave as unregistered once the value has been accepted. Change-Id: I656cbd63b14b2516ad6bf014e433c34b5c6a72a8 Reviewed-on: https://chromium-review.googlesource.com/c/1343103 Commit-Queue: Anders Ruud <andruud@chromium.org> Reviewed-by:Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#610008}
Showing
Please register or sign in to comment