Skip to content

relative inline-block div gets cut off if a position:fixed element is present #7372

Closed

Description

@paulrouget
<style>
  #d1 {
    width: 100px;
    height: 100px;
    position: absolute;
    background: green;
  }
  #d2 {
    display: inline-block;
    width: 100px;
    background: red;
    height: 100px;
    position: relative;
    top: 20px;
    left: 20px
  }
</style>

<div style="position:fixed"></div>
<div id="d1">
  <div id="d2"></div>
</div>

Removing the position:fixed element fixes the problem.

screen shot 2015-08-26 at 09 03 35

Activity

  1. paulrouget commented on Aug 26, 2015

    @paulrouget
    ContributorAuthor
  2. pcwalton commented on Aug 26, 2015

    @pcwalton
    Contributor

    Probably an overflow calculation problem for layers. Actually I just fixed one of those.

  3. notriddle commented on Sep 7, 2015

    @notriddle
    Contributor

    Shouldn't this be tagged I-wrong?

  4. added
    I-wrong
    on Sep 7, 2015
  5. added a commit that references this issue on Sep 8, 2015
    3fa5c91
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

    I-wrong

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions