www.barnesandnoble.com - layout is messed up
URL: http://www.barnesandnoble.com/blog/sci-fi-fantasy/ Browser / Version: Firefox Mobile 43.0 Operating System: Android 5.1 Problem type: Layout is messed up
Steps to Reproduce
- Navigate to: http://www.barnesandnoble.com/blog/sci-fi-fantasy/
Expected Behavior: Site renders properly Actual Behavior: Broken rendering in header, slow panning
Some graphics in the header (the "burger menu", the G Maps like location indicator) come from a tile of "sprites" - several symbols combined into one image for faster loading and caching. Such CSS typically uses background-position to show only one icon from the sprite. However, here the height of the styled element isn't applied as the author expects, the element stretches down and irrelevant parts of the background graphic gets shown below.
We have a DOM like this:
header#header-nav-container
div.header_nav // display:block; height: inherit
div.menu // display:inline-block;height:100%;position:fixed
and the menu element is the one extending so far down parts of the backgroun graphic causes confusion.
I don't understand why this should make any difference, but actually when we turn off the transform rule here in Chrome:
body > .container > * {
position: relative;
-webkit-transform: translate3d(0,0,0);
}
..it renders same as Firefox. Conversely, if we fix -webkit-transform to be just transform, Firefox renders it fine.
Contact Information:
https://help.barnesandnoble.com/app/ask
fixed.