Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upIgnore `<meta name=viewport>` if `@viewport` is ignored #8538
Conversation
|
r? @mbrubeck |
|
We should add an entry to prefs.json, too. |
|
There already is an entry in prefs.json. On Sun, Nov 15, 2015, 20:43 Josh Matthews notifications@github.com wrote:
|
|
Reviewed 6 of 6 files at r1. Comments from the review on Reviewable.io |
|
@bors-servo r+ |
|
|
Ignore `<meta name=viewport>` if `@viewport` is ignored Fixes #8373 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8538) <!-- Reviewable:end -->
|
|
|
|
@bors-servo: retry |
Ignore `<meta name=viewport>` if `@viewport` is ignored Fixes #8373 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8538) <!-- Reviewable:end -->
|
|
frivoal
commented
Dec 1, 2015
|
There's a preference which controls whether |
frivoal
commented
Dec 2, 2015
|
Hmm, that's actually problematic. metia viewport needs to work this way, but @Viewport is explicitely designed so that it would apply to both desktop and mobile and things in between. There's two points that matter here:
What authors should be doing to make their sites responsive is I strongly encourage you to follow microsoft here, and to activate @Viewport on all platform. On my side, I'll make sure there's a big warning in the spec talking about this. I though there was one already, but I can't find it now, so apparently misremembered. In the meanwhile, here's a quick and dirty test case that should pass in desktop and mobile browsers alike. (I'll convert that to a clean TC whenever I get some time, unless you want to do so first). http://output.jsbin.com/gusahiguyu This passes in Edge. |
frivoal
commented
Dec 2, 2015
|
Specification updated with the relevant warning: |
|
FWIW, I think this was one of the features that was behind the catch-all "experimental" flag; it's not clear to me whether the implementation is good enough to enable be default, independent of mobile/desktop. Having a serious test suite for us to run would help, though. |
frivoal
commented
Dec 2, 2015
|
Having a flag for it is good at this stage, but that doesn't change the fact that it should work both on desktop and mobile or neither, not being turned on independently. As for the test suite, I hear you. I just don't have the resources to focus on it now. If you write some, I will make sure they get reviewed in a timely manner. |
notriddle commentedNov 16, 2015
Fixes #8373