Skip to content

<meta name=viewport> is applied when it shouldn't #39002

@simonwuelker

Description

@simonwuelker

Repro:

<!DOCTYPE html>
<html>
    <head>
        <meta name="viewport" content="initial-scale=0.5" />
    </head>
    <body style="background-color: blue"></body>
</html>

Servo renders a quarter of the background blue, in firefox everything is blue.

<meta name="viewport"> is unfortunately unspecified (https://drafts.csswg.org/css-viewport/#viewport-meta), so it is not clear what the correct behaviour is.

This issue can be seen in the real world on https://hackthissite.org/, which is rendered at 0.5 scale.

cc @shubhamg13

Metadata

Metadata

Assignees

Labels

C-assignedThere is someone working on resolving the issueC-has-manual-testcaseC-triggered-by-web-pageReport issue casued by visiting web pagesI-spec-unclearA specification related to the issue in question is unclear.I-wrongAn incorrect behaviour is observed.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions