Skip to content

position: absolute and overflow: hidden don't respect fixed positioning #10526

Closed

Description

@pcwalton

In this document, "Home" should be fixed position, but isn't in Servo.

<!DOCTYPE html>
<body style="height: 2000px; background: linear-gradient(to bottom, white, black)">
<div style="position: fixed; top: 0; right: 0; left: 0;">
    <div style="position: absolute; left: 0; right: 0; height: 40px; overflow: hidden;">Home</div>
</div>

This breaks YouTube and the Washington Post, just to name two sites.

Activity

  1. pcwalton commented on Apr 11, 2016

    @pcwalton
    ContributorAuthor

    This only breaks in WebRender, oddly.

  2. pcwalton commented on Apr 11, 2016

    @pcwalton
    ContributorAuthor

    I have a fix for this.

  3. added a commit that references this issue on Apr 11, 2016
    8cc3e06
  4. added 2 commits that reference this issue on Apr 12, 2016
    fb4e0ae
    1503385
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions