Skip to content

Browser.html icons look pixelated #11960

Open

Activity

  1. Coder206 commented on Jun 30, 2016

    @Coder206
    Contributor

    This is also the case for Windows 10.

  2. paulrouget commented on Jun 30, 2016

    @paulrouget
    Contributor

    non-hidpi display?

  3. metajack commented on Jun 30, 2016

    @metajack
    Collaborator

    @Coder206 what do you mean? which icons? I definitely added high dpi support to Windows, and it hasn't regressed that I've seen.

  4. Coder206 commented on Jun 30, 2016

    @Coder206
    Contributor
  5. fabricedesre commented on Jun 30, 2016

    @fabricedesre
    ContributorAuthor

    non-hidpi display?

    Yep. Good old thinkpad 1366x768 pixels at 96dpi.

  6. Coder206 commented on Jun 30, 2016

    @Coder206
    Contributor

    @metajack How can I tell that I have hidipi on Windows?

  7. added
    A-content/images
    I-papercut
    C-needs-test
    on Jun 30, 2016
  8. cbrewster commented on Jun 30, 2016

    @cbrewster
    Contributor

    Is this on a debug or release build. I noticed the images looked blurry on debug, but fine on release.

  9. Coder206 commented on Jul 1, 2016

    @Coder206
    Contributor

    @ConnorGBrewster For me (^): release.

  10. fabricedesre commented on Jul 1, 2016

    @fabricedesre
    ContributorAuthor

    Is this on a debug or release build. I noticed the images looked blurry on debug, but fine on release.

    Same on release & debug for me.

  11. cbrewster commented on Jul 6, 2016

    @cbrewster
    Contributor

    I have noticed that non-wr causes these icons to look pixelated. WR is not enabled by default on Windows, correct?

  12. jdm commented on Jul 6, 2016

    @jdm
    Member

    WR is not default anywhere yet.

  13. cbrewster commented on Jul 6, 2016

    @cbrewster
    Contributor

    @jdm I mean -b implies -w except on Windows.

    Edit: now that I look, it looks like -w is also passed when using -b on Windows.

  14. atouchet commented on Jun 11, 2017

    @atouchet
    Contributor

    It looks like there may be some image scaling issues going on. I made a comparison picture of Servo vs. Firefox rendering the home screen (Firefox is the top result and Servo is the bottom):

    Image Comparison

    There are some pretty noticeable aliasing and legibility problems with the Servo example.

  15. metajack commented on Jun 13, 2017

    @metajack
    Collaborator
  16. sophiajt commented on Jun 13, 2017

    @sophiajt

    @atouchet - what hardware/OS are you running? I've noticed different things with different video cards

  17. atouchet commented on Jun 13, 2017

    @atouchet
    Contributor

    @jonathandturner Windows 10 with Nvidia GeForce GTX 580.

  18. sophiajt commented on Jul 4, 2017

    @sophiajt

    Now that I have my laptop back, I can repro this. Seems like it's particular to certain video cards/resolutions.

    screen shot 2017-07-05 at 11 41 33 am

  19. atouchet commented on Jul 8, 2017

    @atouchet
    Contributor

    I tried re-testing this with a Nvidia GeForce GTX 1050 Ti and I am still getting the same issue. For what it's worth I am also using a 1080p monitor.

  20. changed the title [-]b.html icons look pixelated[/-] [+]Browser.html icons look pixelated[/+] on Oct 17, 2017
  21. atouchet commented on Oct 17, 2017

    @atouchet
    Contributor

    Looking at this more I am fairly sure that it's an image scaling issue with Servo. I noticed that the Moiré demo tile appears noticeably different in Servo and Firefox when they both load the Browser.html homepage. So I tried independently scaling the original 800 x 500 tile using bicubic, bilinear, and nearest neighbour scaling to 160 x 100 to match the Browser.html homescreen.

    Results:

    Scaling

    And here is the Browser.html homescreen (Firefox top, Servo bottom):

    Firefox

    Servo

    Firefox looks to be using bicubic or bilinear scaling while Servo looks to be using nearest neighbour which explains why the tiles look more pixelated.

  22. mrobinson commented on Nov 6, 2025

    @mrobinson
    Member

    This is difficult to address as browser.html is no more.

  23. atouchet commented on Nov 6, 2025

    @atouchet
    Contributor

    I don't know if it's worth keeping the issue open for an obsolete example but I saved a local copy of the Browser.html files and tried testing this out again and the issue has still not been fixed.

  24. mrobinson commented on Nov 6, 2025

    @mrobinson
    Member

    @atouchet If we could make a minimized test case, perhaps a page with just one image that would be super useful!

  25. atouchet commented on Nov 7, 2025

    @atouchet
    Contributor

    I haven't had time to create a minimized test case but for reference this is the source for Browser.html's newtab.html file:

    <html>
    <head>
        <meta charset="utf-8">
        <title>Servo about:newtab</title>
        <style>
          * {
          font-family: "San Francisco Text", "Helvetica Neue", "Helvetica", sans-serif;
          -moz-appearance: none;
          margin: 0;
          padding: 0;
          border-width: 0;
          }
    
          /* Prevents scrollbars to show up with out-of-window elements */
          body {
          font-size: 12px;
          line-height: 1.5;
          overflow: hidden;
          }
    
    
          .tiles {
          width: 840px;
          height: 480px;
          overflow: hidden;
          position: absolute;
          left: calc(50% - 840px / 2);
          top: calc((100% + 60px) / 2 - 480px / 2);
          }
          .tile {
          cursor: pointer;
          float: left;
          margin: 10px 25px 20px;
          width: 160px;
          text-decoration: none;
          }
          .tile-image {
          background-color: rgb(255, 255, 255);
          background-position: center center;
          background-size: cover;
          border: 1px solid rgba(0, 0, 0, 0.15);
          border-radius: 12px;
          box-sizing: border-box;
          height: 100px;
          margin: 0px 0px 10px;
          width: 160px;
          }
          .tile-title {
          font-size: 14px;
          line-height: 20px;
          overflow: hidden;
          text-align: center;
          text-overflow: ellipsis;
          white-space: nowrap;
          width: 100%;
          color: rgba(0, 0, 0, 0.8);
          }
          .duckduckgo {
          background-image: url(./tiles/duckduckgo.com.png);
          }
          .github {
          background-image: url(./tiles/github.com.png);
          }
          .wikipedia {
          background-image: url(./tiles/wikipedia.org.png);
          }
          .arstechnica {
          background-image: url(./tiles/arstechnica.com.png);
          }
          .reddit {
          background-image: url(./tiles/reddit.com.png);
          }
          .hackernews {
          background-image: url(./tiles/news.ycombinator.com.png);
          }
          .servo {
          background-image: url(./tiles/servo.org.png);
          }
          .rust {
          background-image: url(./tiles/rust-lang.org.png);
          }
          .evilad {
          background-image: url(./tiles/demo-evil-ad.png);
          }
          .moire {
          background-image: url(./tiles/demo-moire.png);
          }
          .spheres {
          background-image: url(./tiles/demo-spheres.png);
          }
          .rects {
          background-image: url(./tiles/demo-transparent_rects.png);
          }
        </style>
    </head>
    <body>
      <div class="tiles">
        <a class="tile"
           href="https://duckduckgo.com/html/">
          <div class="tile-image duckduckgo"></div>
          <div class="tile-title">DuckDuckGo</div>
        </a>
        <a class="tile"
           href="https://github.com">
          <div class="tile-image github"></div>
          <div class="tile-title">GitHub</div>
        </a>
        <a class="tile"
           href="https://wikipedia.org">
          <div class="tile-image wikipedia"></div>
          <div class="tile-title">Wikipedia</div>
        </a>
        <a class="tile"
           href="http://arstechnica.com">
          <div class="tile-image arstechnica"></div>
          <div class="tile-title">arstechnica</div>
        </a>
        <a class="tile"
           href="https://reddit.com">
          <div class="tile-image reddit"></div>
          <div class="tile-title">Reddit</div>
        </a>
        <a class="tile"
           href="https://news.ycombinator.com">
          <div class="tile-image hackernews"></div>
          <div class="tile-title">Hacker News</div>
        </a>
        <a class="tile"
           href="https://servo.org">
          <div class="tile-image servo"></div>
          <div class="tile-title">Servo</div>
        </a>
        <a class="tile"
           href="https://www.rust-lang.org">
          <div class="tile-image rust"></div>
          <div class="tile-title">Rust</div>
        </a>
        <a class="tile"
           href="webrender-demos/evil_ad/physics/with-ad.html">
          <div class="tile-image evilad"></div>
          <div class="tile-title">Demo: Evil Ad</div>
        </a>
        <a class="tile"
           href="webrender-demos/moire.html">
          <div class="tile-image moire"></div>
          <div class="tile-title">Demo: Moire</div>
        </a>
        <a class="tile"
           href="webrender-demos/spheres.html">
          <div class="tile-image spheres"></div>
          <div class="tile-title">Demo: Spheres</div>
        </a>
        <a class="tile"
           href="webrender-demos/transparent_rects.html">
          <div class="tile-image rects"></div>
          <div class="tile-title">Demo: Transparent Rects</div>
        </a>
      </div>
    </body>

    And the tile images all appear to be 800 x 500 PNGs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-content/imagesC-needs-testI-papercut

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions