Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Gap Decorations]: Parse the
column-rule-style
property
This CL updates the parsing of the `column-rule-style` property to support the CSS Gap Decorations syntax[1]. To achieve this, a new type is added to the `CSSGapDecorationPropertyType` enum to represent the style property. Following this, `ConsumeIdent` is called when handling cases where the `column-rule-style` property is consumed in `ConsumeGapDecorationPropertyValue`. It's important to note that the 'column-rule-style' property was previously parsed exclusively using the fast parse path through `CSSParserFastPaths::handled_by_keyword_fast_paths_properties_` and `CSSParserFastPaths::IsValidKeywordPropertyAndValue`. However, this approach is no longer sufficient when parsing multiple values, as supported by the new grammar. To maintain some parts of the fast parse, the `CSSParserFastPaths::MaybeParseValue()` path is utilized. This allows for fast parsing when possible, and falls back to the property's `ParseSingleValue` path when necessary. The code is exercised through `gap-decorations-style-valid.html` and `gap-decorations-style-invalid.html`. Additionally, the `column-rule-style-invalid.txt` file has been re-baselined to accommodate the new grammar. [1]: https://kbabbitt.github.io/css-gap-decorations/original-proposal/index.html#column-row-rule-style Bug: 357648037 Change-Id: I74548f8dc8628b0c794bb07a3238e8843c934d8d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6065079 Reviewed-by: Kevin Babbitt <[email protected]> Commit-Queue: Sam Davis Omekara <[email protected]> Reviewed-by: Kurt Catti-Schmidt <[email protected]> Reviewed-by: Alison Maher <[email protected]> Cr-Commit-Position: refs/heads/main@{#1393647}
- Loading branch information