mirror of
https://github.com/servo/servo.git
synced 2025-09-04 20:18:21 +01:00
Bug 951793 - Style support for overscroll-behavior in Stylo. r=emilio
This commit is contained in:
parent
3907953d80
commit
5e2622f259
7 changed files with 61 additions and 4 deletions
|
@ -3099,6 +3099,8 @@ fn static_assert() {
|
|||
scroll-snap-points-x scroll-snap-points-y
|
||||
scroll-snap-type-x scroll-snap-type-y scroll-snap-coordinate
|
||||
perspective-origin -moz-binding will-change
|
||||
overscroll-behavior-x overscroll-behavior-y
|
||||
perspective-origin -moz-binding will-change
|
||||
shape-outside contain touch-action""" %>
|
||||
<%self:impl_trait style_struct_name="Box" skip_longhands="${skip_box_longhands}">
|
||||
|
||||
|
@ -3486,6 +3488,11 @@ fn static_assert() {
|
|||
${impl_keyword('scroll_snap_type_y', 'mScrollSnapTypeY', scroll_snap_type_keyword)}
|
||||
${impl_keyword('scroll_snap_type_x', 'mScrollSnapTypeX', scroll_snap_type_keyword)}
|
||||
|
||||
<% overscroll_behavior_keyword = Keyword("overscroll-behavior", "Auto Contain None",
|
||||
gecko_enum_prefix="StyleOverscrollBehavior") %>
|
||||
${impl_keyword('overscroll_behavior_x', 'mOverscrollBehaviorX', overscroll_behavior_keyword)}
|
||||
${impl_keyword('overscroll_behavior_y', 'mOverscrollBehaviorY', overscroll_behavior_keyword)}
|
||||
|
||||
pub fn set_perspective_origin(&mut self, v: longhands::perspective_origin::computed_value::T) {
|
||||
self.gecko.mPerspectiveOrigin[0].set(v.horizontal);
|
||||
self.gecko.mPerspectiveOrigin[1].set(v.vertical);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue