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

The <body> element box is not growing with the page content #20007

Open
fabricedesre opened this issue Feb 9, 2018 · 0 comments
Open

The <body> element box is not growing with the page content #20007

fabricedesre opened this issue Feb 9, 2018 · 0 comments

Comments

@fabricedesre
Copy link
Contributor

@fabricedesre fabricedesre commented Feb 9, 2018

Steps to reproduce:

  • create index.html with this content:
<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>Servo</title>
    <style>
        body {
            border: 2px solid orange;
            height: 100%;
        }

        h1 {
            padding: 1em;
            border: 3px solid green;
            font-family: sans-serif;
        }
    </style>
    <script>
        console.log(`Window size is ${window.innerWidth}x${window.innerHeight}`);
        document.addEventListener("DOMContentLoaded", () => {
            console.log("Document loaded.");
        });
    </script>
</head>

<body>
    <h1>Servo!</h1>
    <img src="./resources/servo.png" width="128px" height="128px">
    <ul>
        <li>Un</li>
        <li>Deux</li>
        <li>Trois</li>
        <li>Quatre</li>
        <li>Cinq</li>
        <li>Six</li>
        <li>Spet</li>
        <li>Huit</li>
        <li>Neuf</li>
        <li>Dix</li>
    </ul>
</body>

</html>
  • Load it in Servo with ./mach run --release -- --resolution=240x320 ./index.html

Expected:

  • The whole content, including the list is enclosed in the body orange border.

Observed:

  • The body bounding box is smaller than expected.
    servo-bug-body-border
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.