Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gradient not painted at the right coordinate #178

Closed
paulrouget opened this issue Feb 5, 2016 · 0 comments
Closed

gradient not painted at the right coordinate #178

paulrouget opened this issue Feb 5, 2016 · 0 comments

Comments

@paulrouget
Copy link
Collaborator

@paulrouget paulrouget commented Feb 5, 2016

Without the transform, it's properly rendered.

<style>

  .green {
    background: green;
    width: 100px;
    height: 100px;
    position: absolute;
    transform: translateX(4px);
  }

  .red {
    position: absolute;
    left: 25px;
    width: 50px;
    height: 26px;
    background: red;
    background-image: linear-gradient(to bottom, red, yellow);
}

</style>

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

screen shot 2016-02-05 at 14 52 39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.