web-bugs icon indicating copy to clipboard operation
web-bugs copied to clipboard

www.barnesandnoble.com - layout is messed up

Open webcompat-bot opened this issue 11 years ago • 4 comments

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

  1. Navigate to: http://www.barnesandnoble.com/blog/sci-fi-fantasy/

Expected Behavior: Site renders properly Actual Behavior: Broken rendering in header, slow panning

webcompat-bot avatar Nov 16 '15 12:11 webcompat-bot

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.

hallvors avatar Nov 16 '15 15:11 hallvors

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.

hallvors avatar Nov 16 '15 15:11 hallvors

Contact Information:

https://help.barnesandnoble.com/app/ask

Scantleous avatar Jan 01 '16 20:01 Scantleous

fixed.

karlcow avatar Feb 19 '16 05:02 karlcow