And the look and feel of the scrollbar is generally determined by the browser/OS. Unless someone does a custom scrollbar implementation, but that is exceedingly rare. So that thin rounded gray bar is a browser/OS design, again, without any JS.
And Microsoft Store. And the weather. And also in that edition that literally just launches a browser into a remote machine, they decided to make the Ctrl + Alt + Del menu also a browser. For some reason.
Oh, interesting, that’s pretty new. Technically it’s not an official part of the W3C spec yet, but it’s close enough that browsers support it now. Though, it only allows you to control the bar color, track color (which is generally invisible nowadays, so track color changes nothing), and width. So, yes, more customization than was there before, but still extremely minimal.
JS is a programming language that runs from the website on your computer. By “JS scrollbar” it was meant that the scrollbar is generated by the code, as if it was a program.
CSS is just a sheet of rules on how things should look like, it’s not meant to run programs. This person is pointing out you can just tell the browser to add a scrollbar to something using CSS, without programming.
It’s a few lines of css, no JS required.
.my-div:hover { overflow-x: scroll; }And the look and feel of the scrollbar is generally determined by the browser/OS. Unless someone does a custom scrollbar implementation, but that is exceedingly rare. So that thin rounded gray bar is a browser/OS design, again, without any JS.
I don’t know about scrollbars specifically, but apparently a lot of windows 11 is written in react
It’s the start menu that’s written in react.
Ew
And Microsoft Store. And the weather. And also in that edition that literally just launches a browser into a remote machine, they decided to make the Ctrl + Alt + Del menu also a browser. For some reason.
You can style the native scrollbars with css now
Oh, interesting, that’s pretty new. Technically it’s not an official part of the W3C spec yet, but it’s close enough that browsers support it now. Though, it only allows you to control the bar color, track color (which is generally invisible nowadays, so track color changes nothing), and width. So, yes, more customization than was there before, but still extremely minimal.
what
JS is a programming language that runs from the website on your computer. By “JS scrollbar” it was meant that the scrollbar is generated by the code, as if it was a program.
CSS is just a sheet of rules on how things should look like, it’s not meant to run programs. This person is pointing out you can just tell the browser to add a scrollbar to something using CSS, without programming.