Code Monkey home page Code Monkey logo

Comments (13)

Trott avatar Trott commented on September 16, 2024

/cc @nodejs/website

from help.

therebelrobot avatar therebelrobot commented on September 16, 2024

I'm pretty sure this is being maintained over at nodejs/docs by the @nodejs/documentation team, as opposed to the website WG. I could be wrong though.

from help.

silverwind avatar silverwind commented on September 16, 2024

The stylesheet in question is at https://github.com/nodejs/node/blob/master/doc/api_assets/style.css

As for this issue, I cannot reproduce in Firefox 42 and 44 on Windows, but it looks like a miscalculation between em and px units. Does this CSS work, @jmarca?

#column1.interior {
    border-left: 234px solid #f2f5f0;
}

from help.

jmarca avatar jmarca commented on September 16, 2024

@silverwind yes indeed that works.

And the response times here are astonishing. Great work.

from help.

silverwind avatar silverwind commented on September 16, 2024

Thanks, filed nodejs/node#3948 to fix this!

from help.

jmarca avatar jmarca commented on September 16, 2024

One thing I noticed playing around is that if I change the body font-size style from 62.5% to 100%, then the formatting of the column 1 is fine at 13em.

(But I only know enough about CSS to annoy designers)

from help.

silverwind avatar silverwind commented on September 16, 2024

@jmarca did you set a custom default font size in Firefox? (Options - Content - Fonts & Colors - Advanced)? Also, I'd be interested if the bug shows when running in Safe Mode.

from help.

jmarca avatar jmarca commented on September 16, 2024

@silverwind I only have a minimum font size of 10 set, otherwise I allow pages to set their own fonts and sizes. Unchecking the minimum font size made no difference.

What is safe mode? Is that a firefox setting?

from help.

silverwind avatar silverwind commented on September 16, 2024

@jmarca yes, go to Menu - Help - Restart with Add-ons Disabled. This will start Firefox in Safe Mode, so we can make sure no Extensions/Settings are interfering.

from help.

jmarca avatar jmarca commented on September 16, 2024

Thanks. Restarted in safe mode and the same broken layout (main content under left hand menu)

from help.

jmarca avatar jmarca commented on September 16, 2024

Yeah it seems on my machine firefox computes the 13em border width to 134px, while chromium translates 13em to 234px. But with the body font size style changed to 100%, then firefox computes 13em as 234px.

I've no idea which browser is doing the right thing here, but chromium thinks the font size of the word "index" at the top of the page is 14.4px, while firefox with the 62.5% body font size style set thinks the word "index" is 9px, but when bfs is set to 100%, it also thinks index is 14.4px font size.

from help.

silverwind avatar silverwind commented on September 16, 2024

@jmarca I still don't see this bug in any of my Firefox installations. Could you give it a try using a fresh Firefox profile (backing up your old one of course)?

from help.

jmarca avatar jmarca commented on September 16, 2024

As I noted in the other thread. Not a bug, my bad. A fresh firefox profile makes the layout issue go away. Accumulated cruft somewhere along the line I guess.

from help.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.