2 ms·
That's generally impossible as native UI widgets are windows. Consider this: <div style="overflow:hidden"> <input type="text" /> </div> In order to
by c-smile 4y ago
That's generally impossible as native UI widgets are windows. Consider this:
<div style="overflow:hidden">
<input type="text" />
</div>
In order to clip out that input in case overflow the container must be a window too.
This leads to situation when all DOM elements must be windows. That's too much.
- adastra22 4y agoXUL wasn’t used for the DOM. It was used for the UI interfaces of the browser itself—the url bar, the history pane, the menu bar, etc.
- rafram 4y agoIt still is. The entire Firefox UI exists in the DOM -- the URL bar is an HTML input, the toolbar buttons are XUL <toolbarbutton>s. The box model can even be used from normal web pages! Just add this CSS to an element: display: -moz-box; and then you can -moz-box-flex it to your heart's content. The box model will no longer function once the patches that this blog post describes make it into a release, but XUL elements themselves are still around.