-
Notifications
You must be signed in to change notification settings - Fork 48
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
CSS Layout Fighting in Options Page #708
Comments
Interesting. It works for me so I wonder what's different. I've tried with Firefox 92 and Firefox 91 on Windows 10 and I can't reproduce that. I'll see if I can try with Firefox 90. |
Hmm, I can't reproduce it in Firefox 90 either. Does it do it endlessly? Or only while downloading updates? Does it stop if you change the settings in any way? The only other factors I can think of are:
|
Yes it never stops flickering, but I still can change the settings. Might be resolution related? I'm on 2560 x 1440 px with 175% scaling. |
...yep, that seems to be scaling-related. Going to 200% scaling makes it stop. |
Hmm, that's interesting. I tried that same resolution and magnification using Firefox 90 and I still can't reproduce it. Maybe fonts are related too. Ultimately it's probably a Firefox bug since I don't think that options page is doing anything fancy. So if static content is producing layout thrashing it suggests an instability in Firefox layout code. Nevertheless we still need to fix it -- but it's a bit hard to know how without being able to reproduce it 🤔 |
If anyone can consistently reproduce this, perhaps the most helpful thing would be:
If you can determine which element is causing the flickering then that will help us know what we need to fix. |
I notice that it constantly triggers "overflow" at the It stops when I either
It also stops when I remove any of the Of course this could be a red herring because triggering a reflow of the layout could make it go away naturally. It also stops when I delete the |
The smallest-possible change I found to stabilize the layout is going from .panel-section-db-summary > :not(:first-child) {
margin-top: 20px;
} to .panel-section-db-summary > :not(:first-child) {
margin-top: 14px;
} but then again, this very possibly only circumvents the rounding issue in some internal layout code in Firefox from occurring, without addressing the root issue. Another thing that works is disabling It really looks like it is margin- and/or flexbox-related, and as if too many things of equal priority on the page are relative to each other. |
Yeah, this is really odd. I wonder if it's because Firefox manually sets the page height of the options page: Changes to the DOM of the page trigger that to be updated: I wonder if we're running into trouble because of some of the responsive elements in the page. e.g. maybe we have something like the following situation:
That might fit with the observation that converting the |
Alright, I think I might know a fix. I think if we put |
Sounds like a pragmatic fix to me
Don't forget to test on mobile Firefox :) |
I don't suppose you can help? I've never even tried running it on Firefox for Android. |
Sure, I can try to help with that! Disclaimer: I'm using mobile Firefox as my main browser, and I currently don't have 10-ten installed, but I can give it a go and if you have any specifics I should test, let me know. |
...and I've hit the first roadblock - apparently 10-ten is not marked as compatible with Firefox for Android at the moment. I suppose that's only a matter of adjusting the manifest? |
Sorry for the delay here. Firefox for Android only allows recommended extensions at the moment. Information here: Extensions in Firefox for Android Update I think the criteria for being a Recommended Extension includes being "relevant to a general, international audience" (https://support.mozilla.org/en-US/kb/recommended-extensions-program) for which I don't think any foreign language tool will ever qualify. That said, it can be installed on Firefox Nightly, see: Expanded extension support in Firefox for Android Nightly. I know some people are doing that although I've personally never tried. |
Then let's disregard my cautionary remark. I was under the impression that Firefox for Android supported running all extensions, but I've never put that to the test. Thanks for the heads-up. |
No problem. Some day I'd like to tweak Firefox for Android support so that if/when Mozilla do allow more extensions to run there we'll be ready to go. |
The options page currently does this (Tenten 1.2.0, Firefox 90.0.2 64-bit, Windows 10)
The text was updated successfully, but these errors were encountered: