Skip to content

Percentage rootMargin resolution is unclear #391

Closed

Description

@flackr

Section 2.2 says that percentages in rootMargin are resolved relative to the width of the undilated rectangle - however it seems that percentages on the top and bottom rootMargin values are indeed resolved relative to the height as in this demo where the intersection rectangle ends at 10% of the height of the scroller.

I couldn't find any other section about how percentages are resolved so I initially was expecting even the top/bottom percentages to resolve against the width.

Activity

  1. szager-chromium commented on Oct 14, 2020

    @szager-chromium
    Collaborator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions