MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/github/comments/fcwt98/disabling_javascript_can_make_the_giant_octocat/fjdnub8/?context=3
r/github • u/progzos • Mar 03 '20
1 comment sorted by
View all comments
17
Looks like someone uses <svg> without setting height and width, even in CSS. Personally, I have a .icon class that sets both to 1em. Seems pretty dumb to use JavaScript for this.
<svg>
height
width
.icon
1em
17
u/shgysk8zer0 Mar 03 '20
Looks like someone uses
<svg>without settingheightandwidth, even in CSS. Personally, I have a.iconclass that sets both to1em. Seems pretty dumb to use JavaScript for this.