mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
Auto merge of #14410 - canaltinova:stylo-things, r=Manishearth
Implement 3 more properties for stylo <!-- Please describe your changes on the following line: --> Implemented these new properties: 1. Implemented parsing/serialization and stylo glue for `background-blend-mode`. 2. Made `align-items` work for stylo. 3. Implemented parsing/serialization for `-moz-column-rule`. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors <!-- Either: --> - [X] These changes do not require tests because it's stylo changes. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14410) <!-- Reviewable:end -->
This commit is contained in:
commit
b3cdcfaa39
6 changed files with 118 additions and 7 deletions
|
@ -86,13 +86,13 @@ ${helpers.single_keyword("justify-content", "flex-start flex-end center space-be
|
|||
products="servo",
|
||||
animatable=False)}
|
||||
|
||||
// FIXME(heycam): Disable align-items in geckolib since we don't support the Gecko initial value
|
||||
// 'normal' yet.
|
||||
${helpers.single_keyword("align-items", "stretch flex-start flex-end center baseline",
|
||||
// https://drafts.csswg.org/css-flexbox/#propdef-align-items
|
||||
// FIXME: This is a workaround for 'normal' value. We don't support the Gecko initial value 'normal' yet.
|
||||
${helpers.single_keyword("align-items", "stretch flex-start flex-end center baseline" if product == "servo"
|
||||
else "normal stretch flex-start flex-end center baseline",
|
||||
need_clone=True,
|
||||
gecko_constant_prefix="NS_STYLE_ALIGN",
|
||||
animatable=False,
|
||||
products="servo")}
|
||||
animatable=False)}
|
||||
|
||||
${helpers.single_keyword("align-content", "stretch flex-start flex-end center space-between space-around",
|
||||
gecko_constant_prefix="NS_STYLE_ALIGN",
|
||||
|
@ -110,8 +110,11 @@ ${helpers.predefined_type("flex-shrink", "Number",
|
|||
needs_context=False,
|
||||
animatable=True)}
|
||||
|
||||
// https://drafts.csswg.org/css-align/#align-self-property
|
||||
// FIXME: We don't support the Gecko value 'normal' yet.
|
||||
${helpers.single_keyword("align-self", "auto stretch flex-start flex-end center baseline",
|
||||
need_clone=True,
|
||||
extra_gecko_values="normal",
|
||||
gecko_constant_prefix="NS_STYLE_ALIGN",
|
||||
animatable=False)}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue