-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use <dialog> element for the document properties modal #14698
Comments
Looking at https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog#browser_compatibility, we probably need to wait a little while longer since we try and keep the GENERIC PDF.js library/viewer compatible with at least the current Firefox ESR version; please note https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#faq-support Also, we really should be updating all of the overlays then (e.g. the |
Based on some quick tests, replacing our custom-overlays with |
@Snuffleupagus, would you mind to push what you did in order to try to figure out what's wrong with the positioning ? |
I was, perhaps naively, assuming that by default the
Sure, please see https://github.com/mozilla/pdf.js/compare/master...Snuffleupagus:overlays-dialog?w=1 for a very basic patch (ignore the ugly hacks in the JS code). |
It works in commenting: Line 175 in feea2b7
In chrome devtools: I noticed that the dialog has margin set to auto when we've a 0 for all the elements. So I just tried in unchecking and it worked. |
Thank you; it seems that simply setting There's still, as far as I'm concerned, the question if we should perhaps wait a little while longer with making this change (given that the feature is fairly new)? |
In the meantime, using it helps to find some potential issues, hence it isn't so bad.
|
It has been recently released in Firefox:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog
and it's available in Safari too:
https://webkit.org/blog/12445/new-webkit-features-in-safari-15-4/
The text was updated successfully, but these errors were encountered: