no content meta viewport tag should be ignored
Categories
(Core :: DOM: Core & HTML, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox77 | --- | fixed |
People
(Reporter: hiro, Assigned: hiro)
References
()
Details
Attachments
(2 files)
In bug 1498729 we introduced a machinery that if there are multiple meta viewport tags, the content of the last modified meta viewport tag is used. But it looks like Chrome doesn't use the content if the meta viewport tag doesn't have content attribute, i.e. <meta name="viewport">.
Assignee | ||
Comment 1•5 years ago
|
||
To be more precise, Chrome handles <meta name="viewport" content=""> as a valid viewport tag.
Assignee | ||
Comment 2•5 years ago
|
||
Modified a test case by David Bokan. http://bokand.github.io/20701.html
Assignee | ||
Comment 3•5 years ago
|
||
That's what Chrome does basically and it does quite make sense. But in the test
case of test_meta_viewport_removing_content_attribute.html which removes a valid
content attribute, Chrome uses the removed content, which seems a bug in Chrome
I've reported before [1], and I believe we shouldn't mimic the bug.
[1] https://bugs.chromium.org/p/chromium/issues/detail?id=986674
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 4•5 years ago
|
||
Filed a spec issue. https://github.com/w3c/csswg-drafts/issues/4995
Updated•5 years ago
|
Comment 6•5 years ago
|
||
bugherder |
Description
•