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

linear-gradient 不支持 rgba 类型 color #511

Closed
temper357 opened this issue Jul 19, 2021 · 0 comments · Fixed by #518
Closed

linear-gradient 不支持 rgba 类型 color #511

temper357 opened this issue Jul 19, 2021 · 0 comments · Fixed by #518
Assignees
Labels
bug Something isn't working
Milestone

Comments

@temper357
Copy link
Contributor

使用的 Kraken 版本 | What version of kraken are you using

main

重现步骤 | Steps To Reproduce

backgroundImage: 'linear-gradient(to right, rgba(35, 35, 35, 0.8), rgba(35, 35, 35, 0.1)) 不渲染
backgroundImage: 'linear-gradient(to right, #999, #333)' 可以正常渲染

重现代码 | Code example:

  it('linear-gradient', async () => {
    var div1 = document.createElement('div');
    Object.assign(div1.style, {
      width: '200px',
      height: '100px',
      backgroundImage: 'linear-gradient(to right, rgba(35, 35, 35, 0.8), rgba(35, 35, 35, 0.1))'
    });

    append(BODY, div1);
    await snapshot(div1);
  });

预期结果 | Expected results:

实际结果 | Actual results:

@temper357 temper357 added the bug Something isn't working label Jul 19, 2021
@temper357 temper357 added this to the 0.9 milestone Jul 19, 2021
@temper357 temper357 self-assigned this Jul 19, 2021
@temper357 temper357 added this to To Do in Browser Features via automation Jul 19, 2021
@tylorvan tylorvan self-assigned this Jul 19, 2021
Browser Features automation moved this from To Do to Done Jul 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging a pull request may close this issue.

2 participants