es-spec-html
es-spec-html copied to clipboard
Make it nicer when the viewport is narrow (mobile)
It's not terrible on iPhone, but I see three problems:
- It's big and there's no realistic way to search it. This is hard to solve.
- The margins are rather luxurious. 6.8em is a lot of screen real estate to throw away. Probably we want different CSS for small displays, under
@media (max-width:)rules; and a<meta name="viewport">. - Something on the page is really wide. I don't know what. This makes the text end up not being centered in the viewport if you zoom out.
s/iPhone/small viewports/
I’m working on this.
One small bug that blocks this is the following. In es6-draft.html#sec-regexp.prototype.split there are two <p> elements that should be <pre> (or <code>). The first one is /<(\/)?([^<>]+)>/.split("A<B>bold</B>and<CODE>coded</CODE>"), the other one is close to it.
Some more things that should be changed in the output to make this work: https://github.com/jorendorff/es-spec-html/pull/70/files#diff-1
It looks worse on FirefoxOS 1.3, which I guess doesn't do silly viewport tricks by default.