We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
main
包含 opacity 样式的测试用例 CI 测试时渲染结果偶尔与浏览器不一致,先 disable 掉所有 opacity 用例。
重现代码 | Code example:
it('003', async () => { let inner; let inner_1; let inner_2; let inner_3; let inner_4; let outer; let outer_1; let outer_2; let outer_3; let outer_4; let wrapper; let wrapper_1; let wrapper_2; let wrapper_3; let wrapper_4; wrapper = createElement( 'div', { class: 'wrapper', style: { 'margin-left': '30px', 'margin-bottom': '20px', width: '50px', height: '50px', 'box-sizing': 'border-box', overflow: 'auto', }, }, [ (outer = createElement( 'div', { class: 'outer', style: { width: '50px', height: '50px', background: 'black', 'box-sizing': 'border-box', overflow: 'clip', outline: 'solid red', }, }, [ (inner = createElement('div', { class: 'inner', style: { position: 'relative', top: '-10px', left: '-10px', height: '100px', width: '100px', background: 'blue', opacity: '0.5', 'box-sizing': 'border-box', }, })), ] )), ] ); wrapper_1 = createElement( 'div', { class: 'wrapper', style: { 'margin-left': '30px', 'margin-bottom': '20px', width: '50px', height: '50px', 'box-sizing': 'border-box', outline: 'solid', }, }, [ (outer_1 = createElement( 'div', { class: 'outer', style: { width: '50px', height: '50px', background: 'black', 'box-sizing': 'border-box', 'overflow-x': 'clip', }, }, [ (inner_1 = createElement('div', { class: 'inner', style: { position: 'relative', top: '-10px', left: '-10px', height: '100px', width: '100px', background: 'blue', opacity: '0.5', 'box-sizing': 'border-box', }, })), ] )), ] ); wrapper_2 = createElement( 'div', { class: 'wrapper', style: { 'margin-left': '30px', 'margin-bottom': '20px', width: '50px', height: '50px', 'box-sizing': 'border-box', overflow: 'auto', 'margin-top': '50px', }, }, [ (outer_2 = createElement( 'div', { class: 'outer', style: { width: '50px', height: '50px', background: 'black', 'box-sizing': 'border-box', 'overflow-x': 'clip', }, }, [ (inner_2 = createElement('div', { class: 'inner', style: { position: 'relative', top: '-10px', left: '-10px', height: '100px', width: '1px', background: 'blue', opacity: '0.5', 'box-sizing': 'border-box', }, })), ] )), ] ); wrapper_3 = createElement( 'div', { class: 'wrapper', style: { 'margin-left': '30px', 'margin-bottom': '20px', width: '50px', height: '50px', 'box-sizing': 'border-box', outline: 'solid', }, }, [ (outer_3 = createElement( 'div', { class: 'outer', style: { width: '50px', height: '50px', background: 'black', 'box-sizing': 'border-box', 'overflow-y': 'clip', }, }, [ (inner_3 = createElement('div', { class: 'inner', style: { position: 'relative', top: '-10px', left: '-10px', height: '100px', width: '100px', background: 'blue', opacity: '0.5', 'box-sizing': 'border-box', }, })), ] )), ] ); wrapper_4 = createElement( 'div', { class: 'wrapper', style: { 'margin-left': '30px', 'margin-bottom': '20px', width: '50px', height: '50px', 'box-sizing': 'border-box', overflow: 'auto', }, }, [ (outer_4 = createElement( 'div', { class: 'outer', style: { width: '50px', height: '50px', background: 'black', 'box-sizing': 'border-box', 'overflow-y': 'clip', }, }, [ (inner_4 = createElement('div', { class: 'inner', style: { position: 'relative', top: '-10px', left: '-10px', height: '1px', width: '100px', background: 'blue', opacity: '0.5', 'box-sizing': 'border-box', }, })), ] )), ] ); BODY.appendChild(wrapper); BODY.appendChild(wrapper_1); BODY.appendChild(wrapper_2); BODY.appendChild(wrapper_3); BODY.appendChild(wrapper_4); await snapshot(0.1); });
预期结果 | Expected results:
实际结果 | Actual results:
The text was updated successfully, but these errors were encountered:
temper357
No branches or pull requests
使用的 Kraken 版本 | What version of kraken are you using
main
重现步骤 | Steps To Reproduce
包含 opacity 样式的测试用例 CI 测试时渲染结果偶尔与浏览器不一致,先 disable 掉所有 opacity 用例。
重现代码 | Code example:
预期结果 | Expected results:
![image](https://user-images.githubusercontent.com/5419233/124079251-7bee9d00-da7b-11eb-8069-9e3957fd86ed.png)
实际结果 | Actual results:
![image](https://user-images.githubusercontent.com/5419233/124079278-8315ab00-da7b-11eb-91f1-46a51a6ab35e.png)
The text was updated successfully, but these errors were encountered: