Skip to content

regression: layout issue since b29719e #10237

Closed

Description

@paulrouget

Regression: b29719e

Affects browerhtml.

test case:

<style>
  .red {
    left: 50%;
    position: absolute;
    top: 40px;
    width: 480px;
    margin-left: -240px;
    background: red;
  }
  .green {
    display: block;
    width: 410px;
    height: 34px;
    line-height: 34px;
    background: green;
    border: none
  }
</style>

<div class="red">
  <input class="green">
</div>

Screenshot:

qofzqxo

Activity

  1. pcwalton commented on Mar 28, 2016

    @pcwalton
    Contributor

    Well, this is strange, because there are neither block formatting contexts nor floats here.

  2. pcwalton commented on Mar 28, 2016

    @pcwalton
    Contributor

    This is because the float speculation doesn't defend against negative inline margins. I have a fix.

  3. added 2 commits that reference this issue on Mar 28, 2016
    cbc6650
    6eb58e2
  4. added a commit that references this issue on Mar 29, 2016
    3f73321
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