5 ms·
What does “native” even mean? Put a <button/> in an HTML page and you get a platform-provided UI widget.
by madeofpalk 6y ago
What does “native” even mean?
Put a <button/> in an HTML page and you get a platform-provided UI widget.
- PaulDavisThe1st 6y agoIt's not platform-provided in my experience, but browser provided. The result of <button/> when viewed in a browser on macOS has no relation to the Cocoa API in any meaningful sense.
- deleted 6y ago[deleted]
- madeofpalk 6y agoI'm pretty sure that when you render just a <button> in at least Safari, the browser will render a native Cocoa button control. If you set a CSS property like background colour or change the border, then it will "fall back" to a custom rendered control that isn't from the OS UI. I did a small bit of research into this, and found plenty of "anecdotal" evidence, but nothing confirming for sure. I'm looking and interacting with the controls and they seem pretty native - if they're a recreation than that's pretty impressive :)
- saagarjha 6y agoThe drawing is native and the interaction is handled by the browser.
- slightwinder 6y agoA GUI is a collection of elements with specific look and behaviour. A Desktop Environment is a collection of GUI(s), tools and services. Native means you have something which follows this look and behaviour 100% and can utilize all the tools and services. Implementing the look is simple, adding behaviour quite harder and utilizing the service the endgame. WebUI usually does nothing from those or some parts, it all depends on the constellation. But usually there is a obvious difference at some point where you realize whether something is native or just made an attempt.