New issue
Advanced search Search tips

Issue 901266 link

Starred by 5 users

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug



Sign in to add a comment

Background-size and background-repeat: no-repeat cause height calculation to be abnormal

Reported by yanjunqi...@gmail.com, Nov 2

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36

Steps to reproduce the problem:
1. set parent element style background-repeat: no-repeat,background-size: cover, background-image:url(https://img.alicdn.com/tfs/TB1q8RLmPDpK1RjSZFrXXa78VXa-192-192.png)
2.set parent element style background-color
3.set parent element width: 104.656px

What is the expected behavior?
the element background-color can not see, becase background-size cover

What went wrong?
Can see the element has a background color of about 1 pixel

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 69.0.3497.100  Channel: n/a
OS Version: OS X 10.13.6
Flash Version:
 
background.html
2.2 KB View Download
WX20181102-164839@2x.png
142 KB View Download
Labels: Needs-Milestone
Labels: -Pri-2 Pri-3
Status: Available (was: Unconfirmed)
Perhaps a zoom-for-dsf issue? Unable to reproduce on windows and linux.
Reproduce on iphone8plus, Just one pixel difference
Please use retina screen device to reproduce.

https://codepen.io/yisi/pen/dQbZWy

Sign in to add a comment