Skip to content
New issue

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

pages.nist.gov - layout is messed up #3916

Closed
webcompat-bot opened this issue Dec 9, 2016 · 5 comments
Closed

pages.nist.gov - layout is messed up #3916

webcompat-bot opened this issue Dec 9, 2016 · 5 comments

Comments

@webcompat-bot
Copy link

URL: https://pages.nist.gov/800-63-3/sp800-63-3.html
Browser / Version: Firefox Mobile 50.0
Operating System: Android 6.0.1
Problem type: Layout is messed up

Steps to Reproduce

  1. Navigate to: https://pages.nist.gov/800-63-3/sp800-63-3.html

Expected Behavior:

Actual Behavior:
Layout borked

From webcompat.com with ❤️

@wisniewskit
Copy link
Member

wisniewskit commented Dec 9, 2016

It seems they don't have a good mobile experience across the board; Chrome just zooms way out, while Firefox zooms in. That itself wouldn't make this a web compatibility issue, but for some reason their sidebar "sticks" in Firefox (but not Chrome mobile), making it painful to see their content by panning around. On that basis, I'm marking this as needsdiagnosis.

Edit: Firefox gets a position:fixed sidebar; so does Chrome desktop. I think some remote debugging may be needed to see why Chrome doesn't get a position:fixed sidebar.

@Sailesh27
Copy link

It is working correctly in Firefox Beta.

@wisniewskit
Copy link
Member

If Firefox Beta is "correct", then all current versions are, because they're rendering the same way. There are really two problems here; the page doesn't provide a good mobile experience, and there is a probable compat issue with which zoom level Chrome and Firefox choose by default for the given meta viewport tag:

<meta name="viewport" content="width=device-width">

@karlcow, is this another case for your pile of meta-viewport quirks?

@karlcow
Copy link
Member

karlcow commented Jan 13, 2017

So the different ways of managing the page for Firefox and Chrome is a known issue.
Basically Chrome is trying to take the larger element in the page and to make it fit in.

In this case this is happening because of an image a bit down in the page

<div class="text-center">
  <p><img src="sp800-63-3/media/AAL_CYOA.png" alt="AAL Choose Your Own" style="width:1000px;height:1195px;;min-width: 1000px;min-height: 1195px;"></p>

  <p><strong>Figure 5-1 - Selecting AAL</strong></p>
</div>

As you can see the CSS for this image is defined in the HTML as:

element {
	width: 1000px;
	height: 1195px;
	min-width: 1000px;
	min-height: 1195px;
}

in fact if they would remove these style elements on a couple of images and just define:

img {max-width: 100%;}

That would work a lot better in all browsers.
There is still a table which is around 622px wide, but that would be a better story for the user on all browsers.

This site has a fluid design but not so much really responsive.

@karlcow
Copy link
Member

karlcow commented Jan 13, 2017

I would close it as worksforme
The meta viewport and level of zoom is indeed on my pile.
whatwg/compat#62

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants