Skip to content

inline-block + position:relative: top value is 3 time bigger than expected #7067

Closed

Description

@paulrouget

In this example, the y coordinate of the div is always 3 times bigger than the top value.

<!DOCTYPE html>

<html>

  <style>
    div {
      display: inline-block;
      position: relative;
      top: 20px;
      width: 20px;
      height: 20px;
      background: red;
    }
  </style>

  <body>
    <div></div>
  </body>

</html>

screen shot 2015-08-07 at 12 07 30

Activity

  1. added
    I-wrong
    on Aug 7, 2015
  2. added 4 commits that reference this issue on Aug 11, 2015
    4953a2a
    9894291
    4312b49
    8640cf5
  3. added a commit that references this issue on Aug 12, 2015
    0bfde42
  4. added a commit that references this issue on Aug 14, 2015
    75ab139
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

    A-layout/blockI-wrong

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions