Skip to content

implement overflow directions in layout/query.rs #20867

Closed

Description

@tigercosmos

Currently overflow_direction in the layout is just a hard code which is always to be OverflowDirection::RightAndDown

SPEC: https://drafts.csswg.org/cssom-view/#overflow-directions

impl UnioningFragmentScrollAreaIterator {
fn new(node_address: OpaqueNode) -> UnioningFragmentScrollAreaIterator {
UnioningFragmentScrollAreaIterator {
node_address: node_address,
union_rect: Rect::zero(),
origin_rect: Rect::zero(),
level: None,
is_child: false,
overflow_direction: OverflowDirection::RightAndDown
}
}
}

Activity

  1. changed the title [-]implement overflow directions in layout.rs[/-] [+]implement overflow directions in layout/query.rs[/+] on May 27, 2018
  2. added a commit that references this issue on May 28, 2018
  3. tigercosmos commented on May 29, 2018

    @tigercosmos
    ContributorAuthor

    Could someone help to add layout/query label? thanks

  4. mrobinson commented on Jan 18, 2023

    @mrobinson
    Member

    I'm fairly sure this bug is inaccurate. This value is set during the execution of the iterator:

    None => {
    self.level = Some(level);
    self.is_child = true;
    self.overflow_direction = overflow_direction(&fragment.style.writing_mode);
    self.origin_rect = Rect::new(Point2D::new(left_padding, top_padding),
    Size2D::new(right_padding, bottom_padding));
    },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions