Skip to content

www.bagas31.com - design is broken #11748

Closed

Description

@dafinoer

URL: https://www.bagas31.com/

Browser / Version: Firefox 57.0
Operating System: Linux
Tested Another Browser: No

Problem type: Design is broken
Description: tab bar design broken
Steps to Reproduce:

Screenshot Description

From webcompat.com with ❤️

Activity

  1. adamopenweb commented on Oct 6, 2017

    @adamopenweb
    Collaborator

    Thanks for the report @dafinoer. I can reproduce this in Firefox 58 for OSX. Seems like a minor visual difference, but a bug nonetheless.

    Chrome:
    screen shot 2017-10-06 at 2 26 56 pm

    Setting as needs diagnosis.

  2. added this to the needsdiagnosis milestone on Oct 30, 2017
  3. kelimuttu commented on Nov 3, 2017

    @kelimuttu

    Hey @dafinoer may I know your email address? We would like to send you a t-shirt for appreciation. (:

  4. softvision-sergiulogigan commented on Apr 20, 2018

    @softvision-sergiulogigan

    Looks like the issue is still around.
    This is the rendering on Windows 10 with Nightly 61 and Chrome 66.

    image

  5. added
    Re-triaged
    on Apr 20, 2018
  6. softvision-sergiulogigan commented on Apr 20, 2018

    @softvision-sergiulogigan

    Could this be related to how FF handles Roboto, @karlcow ?

  7. karlcow commented on Apr 23, 2018

    @karlcow
    Member

    For the same window width. Let's just take the first item of the list.

    • Firefox: 135.383 pixels
    • Chrome: 131.531 pixels

    Second li element

    • Firefox: 116.4 pixels
    • Chrome: 113.109 pixels

    so always a couple of pixels less in Chrome.

    The chosen font is both Roboto in both cases.

    The width is set as auto.

    #catnav ul li {
    	float: left;
    	border-right: 1px solid #ddd;
    	position: relative;
    	width: auto;
    }

    and the anchor:

    #catnav.secondary ul a {
    	font-family: Roboto;
    	font-size: 12px;
    	font-weight: 700; 
    	color: #3a3a3a;
    }
    #catnav ul a {
    	position: relative;
    	display: block;
    	padding: 0 17px 1px;
    	height: 35px;
    	line-height: 38px;
    	color: #000;
    	text-transform: uppercase;
    	font-family: roboto,Arial,sans-serif;
    	font-size: 13px;
    }
    <li id="menu-item-22214" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-22214"><a href="https://www.tipspintar.com/tag/mobile-legends/">Mobile Legends</a></li>

    Ah found!

    This is what happened when I remove the font-weight only in Firefox.

    Basically Chrome doesn't modify the width of the text with the changing font-weight while Firefox does.

    I'm not sure which browsers do the correct thing here or if we are in unspecified territory.

    @jfkthame is certainly more knowledgeable about this.

  8. karlcow commented on Apr 23, 2018

    @karlcow
    Member

    forgotten to add the screenshot.
    Firefox top, Chrome bottom.

    Screenshot Description

  9. karlcow commented on Apr 23, 2018

    @karlcow
    Member

    OK. another details. There's no interop here at all.
    Safari widens also the font but a bit less than Firefox.
    I wonder what Edge does? @patrickkettner

    I wonder if we should close this as non-compat. And just see what the CSS working group says about that.

    @jfkthame opinion?

  10. jfkthame commented on Apr 23, 2018

    @jfkthame

    The site defines a "Roboto" font-family using @font-face (so it'll use this definition of the family, even if a full Roboto family is installed locally), and provides only a Regular face (weight=400). But the element is styled with font-weight:bold. So then the browser may apply a synthetic-bold effect to the used font. Exactly how this works is not specified in detail, but it's likely to affect glyph spacing.

    For better and more consistent rendering, the site should either provide a real bold face for its Roboto family, or avoid applying bold font-weight to it. Synthetic fake-bold is always a second-best fallback.

  11. karlcow commented on May 15, 2018

    @karlcow
    Member

    Thanks @jfkthame.
    I'll close it as worksforme on the spirit of http://dowebsitesneedtolookexactlythesameineverybrowser.com/

    but if @dafinoer feels to contact the website, feel free to do so with the recommendations in the previous comment.

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

    Re-triagedbrowser-firefoxpriority-normal

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions