AARoads Forum

Meta => Suggestions and Questions => Topic started by: vdeane on June 20, 2022, 04:44:19 PM

Title: Why do some images have vertical scroll bars?
Post by: vdeane on June 20, 2022, 04:44:19 PM
When browsing the forum, I've noticed that some images in posts have vertical scroll bars in them.  I can understand why a horizontal scroll bar might appear, if the image is too wide for the browser width, but what causes the vertical scroll bar?

Example: https://www.aaroads.com/forum/index.php?topic=17783.msg2748298#msg2748298
Title: Re: Why do some images have vertical scroll bars?
Post by: hotdogPi on June 20, 2022, 04:48:34 PM
That image has no vertical scroll bar on my screen.
Title: Re: Why do some images have vertical scroll bars?
Post by: webny99 on June 20, 2022, 05:03:30 PM
It does have a vertical scroll bar for me, yet it's pointless because I can see the whole image without scrolling.
Title: Re: Why do some images have vertical scroll bars?
Post by: Scott5114 on June 20, 2022, 06:04:14 PM
Since I know you run your own webpage, I'll give the technical explanation. My guess is that your browser defaults to overflow: scroll (or overflow: auto) for content too big to fit inside a block element, when overflow: visible is the standard.

I am seeing no scroll bars on Firefox 100.0 on Fedora Linux.
Title: Re: Why do some images have vertical scroll bars?
Post by: vdeane on June 20, 2022, 08:37:31 PM
Quote from: Scott5114 on June 20, 2022, 06:04:14 PM
Since I know you run your own webpage, I'll give the technical explanation. My guess is that your browser defaults to overflow: scroll (or overflow: auto) for content too big to fit inside a block element, when overflow: visible is the standard.

I am seeing no scroll bars on Firefox 100.0 on Fedora Linux.
Interesting.  I see two main takeaways from this:
1. This is likely a difference in how Firefox and Chromium-based browsers* render this.
2. A lot of images on the forum are evidently posted by Time Lords, since they're bigger on the inside.

*In theory all Chromium-based browsers should behave similarly, but given how many glitches HBO Max had for me in Chrome that vanished when I switched to Vivaldi, there are clearly differences.
Title: Re: Why do some images have vertical scroll bars?
Post by: Scott5114 on June 20, 2022, 08:46:28 PM
Yeah, gotta love browser vendors who think they know better than the W3C standard...

I fear that Chromium is headed down the same road to becoming Internet Explorer 6 all over again. In those Bad Old Days you could follow the web standards to the letter and still have your page break for half of your users because they insisted on using a browser that didn't bother following standards (thus the need for things like Acid2 (https://en.wikipedia.org/wiki/Acid2)).
Title: Re: Why do some images have vertical scroll bars?
Post by: hotdogPi on June 21, 2022, 02:36:28 AM
Quote from: vdeane on June 20, 2022, 08:37:31 PM
2. A lot of images on the forum are evidently posted by Time Lords, since they're bigger on the inside.

This isn't a problem for me. If someone posts a 4000×3000 photo, it will be 800×600 until I click on it, which means it doesn't unnecessarily take up space until I click on it (or if it's tall but not wide, since the forum only checks overwidth photos). The one problem is that clicking for full size also opens a link if it is one (usually Flickr on this forum), with no way around it.
Title: Re: Why do some images have vertical scroll bars?
Post by: JayhawkCO on June 21, 2022, 08:26:34 AM
Just another data point: on both my phone and laptop, Chrome does not at vertical scrolling bars.
Title: Re: Why do some images have vertical scroll bars?
Post by: 1995hoo on June 21, 2022, 08:30:36 AM
FWIW, on my PC (running Firefox on dual 21-inch monitors) the image vdeane linked has no scroll bars when viewed in the thread. On my iPad, it has a horizontal scroll bar but no vertical scroll bar.
Title: Re: Why do some images have vertical scroll bars?
Post by: formulanone on June 21, 2022, 06:51:55 PM
my evil plan is working