nodejs.dev GitHub logo too large

For support with specific websites

Moderator: trava90

Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
User avatar
jobbautista9
Board Warrior
Board Warrior
Posts: 1193
Joined: 2020-11-03, 06:47
Location: Philippines

nodejs.dev GitHub logo too large

Post by jobbautista9 » 2021-03-17, 13:04

Example URL: https://nodejs.dev/learn/the-v8-javascript-engine

Looking at the browser console, it seems that the browser doesn't support rem as a unit for both width and height for <svg> elements. This makes the svg default to the size of a 438.549 square, which makes reading the content below difficult.
Screenshot_2021-03-17_21-03-13.png
You do not have the required permissions to view the files attached to this post.
Image

Tired of creating stuff!

Avatar artwork by Shinki669: https://www.pixiv.net/artworks/113645617

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

User avatar
Moonchild
Project founder
Project founder
Posts: 39289
Joined: 2011-08-28, 17:27
Location: Sweden

Re: nodejs.dev GitHub logo too large

Post by Moonchild » 2021-03-17, 13:54

As far as I know the SVG spec we follow doesn't allow rem units in those attribute values (only a subset is supported). Why aren't they using CSS styling for everything?
"Praise from a narcissistic person is always a poison dart. They don't share the stage, so discernment matters." - Dr. Ramani
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
Moonchild
Project founder
Project founder
Posts: 39289
Joined: 2011-08-28, 17:27
Location: Sweden

Re: nodejs.dev GitHub logo too large

Post by Moonchild » 2021-03-20, 06:59

OK, so the various workgroups have been rewriting the rules again apparently.
Issue #1749 (UXP)
"Praise from a narcissistic person is always a poison dart. They don't share the stage, so discernment matters." - Dr. Ramani
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite