Skip to content

Stacking context issue with CSS transforms #7779

Closed

Description

@paulrouget

This code:

<style>
  body {
    margin: 0;
  }

  div {
    position: absolute;
    width: 100px;
    height: 100px;
  }

  #a {
    top: 40px;
    background: red;
    transform: translateX(1px);
  }

  #b {
    top: 50px;
    left: 10px;
    background: blue;
  }
</style>

<body>
  <div id='a'></div>
  <div id='b'></div>
</body>

Servo vs. Firefox:

screen shot 2015-09-29 at 09 56 57

Activity

  1. self-assigned this
    on Oct 5, 2015
  2. paulrouget commented on Oct 15, 2015

    @paulrouget
    ContributorAuthor

    @mrobinson have you made any progress? If you can point me to the right direction, maybe I could take a look.

  3. mrobinson commented on Oct 15, 2015

    @mrobinson
    Member

    @paulrouget Yes, actually. This issue is the same as #7983. I have a patch that fixes it, but the PR is waiting on #7950 to land. Hopefully today or tomorrow I'll have the PR ready.

  4. metajack commented on Nov 2, 2015

    @metajack
    Collaborator

    #7950 has landed. What's the status of #7983 @mrobinson ?

  5. metajack commented on Nov 2, 2015

    @metajack
    Collaborator

    Note: this is now blocking @paulrouget on browser.html work.

  6. added a commit that references this issue on Nov 2, 2015
    5c63287
  7. mrobinson commented on Nov 2, 2015

    @mrobinson
    Member

    The fix for this one is at #8266. I just double-checked that it fixes the issue @paulrouget filed.

  8. added 4 commits that reference this issue on Nov 2, 2015
    90a16a4
    a2acb2a
    5b3e953
    c1a38e2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions