News for hackers. Stuff that matters.
Re:Minding the gaps: A new way to draw separators in CSS by nsonha on Thursday March 20, 2025 @06:15AM (#43421390)
what is "native splitter" why do I even want it?
Re:Minding the gaps: A new way to draw separators in CSS by IshKebab on Thursday March 20, 2025 @07:20AM (#43421745)
A splitter is the widget that shows two (or more) panes with a divider that you can drag. Commonly used for side bar navigation, see this example: https://codepen.io/Zodiase/pen/qmjyKL

A native splitter is one that is drawn by the browser itself, or even the OS. The only way to get that on the web is with iframes. Otherwise you have to resort to Javascript and manually handling mouse move events as in the example above.

Why do you want that? Same reasons we have `<input>` instead of having every website reimplement text boxes, sliders, checkboxes, etc. with canvas and mouse events.

Sorry I couldn't find an example of an actual iframes website because obviously nobody uses iframes any more.

Re:Minding the gaps: A new way to draw separators in CSS by breckenedge on Thursday March 20, 2025 @07:55AM (#43421941)
I believe you mean <frameset>/<frame> rather than <iframe>s, though you used to be able to do frames inside iframes. I’m surprised mobile Safari supports them. Example: https://www.quackit.com/html/templates/frames/frames_example...
Re:Minding the gaps: A new way to draw separators in CSS by IshKebab on Thursday March 20, 2025 @09:01AM (#43422561)
Ah yes you're right! Similar to iframes anyway.

Your example has `noresize` set, but I found one that doesn't: https://www.yourhtmlsource.com/examples/frameset1.html

Re:Minding the gaps: A new way to draw separators in CSS by istjohn on Thursday March 20, 2025 @09:29AM (#43423043)
It's not resizeable on mobile.
Re:Minding the gaps: A new way to draw separators in CSS by IshKebab on Thursday March 20, 2025 @09:48AM (#43423383)
Yeah I mean, it was obsolete before the first iPhone so that's not surprising.
Re:Minding the gaps: A new way to draw separators in CSS by yboris on Thursday March 20, 2025 @10:22PM (#43431224)
Wild! Every browser seems to support <frame> yet it's deprecated: https://caniuse.com/?search=frame
Re:Minding the gaps: A new way to draw separators in CSS by blooalien on Thursday March 20, 2025 @06:23AM (#43421445)
It places related content or features of a program alongside or above one another in the same program window so you get all of what you need all right there on the one window. The separate spaces are often resizable, too, so you can fit the content that's important to you however you as the end-user want it. Thus why as another commenter here (izzieto) notes, it's used in almost any application you can think of.
Re:Minding the gaps: A new way to draw separators in CSS by izietto on Thursday March 20, 2025 @06:19AM (#43421417)
Open any application and you'll see native splitters and their related use cases
Re:Minding the gaps: A new way to draw separators in CSS by recursive on Thursday March 20, 2025 @10:40AM (#43424148)
Oh this? This isn't a splitter, this is a dialog box.