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
Keeps coming back
Keeps coming back
Posts: 783
Joined: 2020-11-03, 06:47
Location: Philippines
Contact:

nodejs.dev GitHub logo too large

Unread 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
Image

merry mimas

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

Mima avatar by 絵虎. Pixiv post: https://www.pixiv.net/en/artworks/15431817

Image

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35596
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: nodejs.dev GitHub logo too large

Unread 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?
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"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
Pale Moon guru
Pale Moon guru
Posts: 35596
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: nodejs.dev GitHub logo too large

Unread post by Moonchild » 2021-03-20, 06:59

OK, so the various workgroups have been rewriting the rules again apparently.
Issue #1749 (UXP)
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Locked