If the element is overflow:hidden , and we use the text search function in the browser to find the text inside this element, but it is not displayed, Chrome will move this element so that the search result is visible to the user.
You can see it here: http://codepen.io/anon/pen/qdayVz Open the link in Chrome and find the text that is not visible, for example, “CCC”, and you will see that Chrome will move the element to display the text found .
Here is an example of the real world: http://www.jssor.com/demos/full-width-slider.html - Search for text that is not on the visible slide.
This does not happen in Firefox.
html css google-chrome
b2238488
source share