Proton Mail: Search Bar - Incorrect clamp() CSS Function

For support with specific websites

Moderator: trava90

Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
User avatar
sunstarunicorn
Moonbather
Moonbather
Posts: 74
Joined: 2016-04-07, 21:01

Proton Mail: Search Bar - Incorrect clamp() CSS Function

Unread post by sunstarunicorn » 2025-05-09, 22:27

About two weeks ago now, I noticed that my Search Box in Proton Mail had suddenly gotten a lot smaller than I was used to, as my screenshot below shows:
2025-05-04 Small Search Box.png
I assumed it was a new bug with Proton Mail and opened a support ticket with them. As I had half-expected, they came back and said, sorry, we don't fully support browsers like Pale Moon, so you may see some bugs when using Proton Mail with Pale Moon. I knew that, of course, having lived with several small Proton Mail bugs ever since they rolled out the new Proton Mail and shut down their original version.

However, the Proton Mail support did come back with something else, which I wanted to bring here. They did some additional investigation on their side and called out an 'non-support or incorrect support of clamp() CSS function in PaleMoon on searchbox--adaptWidth.'

They also said that they've been using this for their search box for over a year, so if I've only noticed a problem quite recently, they suspect a recent change on the Pale Moon side might've caused a regression issue.

Given that, I thought I'd come here and report the issue, as I know this search box has been working just fine for me until very recently.

I can confirm this behavior occurs on a clean profile, even after updating to Pale Moon 33.7.1 (I updated today from Pale Moon 33.7.0, just to see if that would fix the issue).

If there's any other information needed, I'll do my best to provide!
You do not have the required permissions to view the files attached to this post.
Then I shall name you Tinúviel Beria uin Morchaint, which means 'Daughter of Twilight protecting from the Shadows' in Elvish.

Once a King or Queen of Narnia, always a King or Queen.

He is not a tame Lion...but he is Good.

Connect, Respect, Protect.

Let's Keep the Peace!

User avatar
frostknight
Astronaut
Astronaut
Posts: 553
Joined: 2022-08-10, 02:25

Re: Proton Mail: Search Bar - Incorrect clamp() CSS Function

Unread post by frostknight » 2025-05-09, 22:57

At least they said they don't *fully* support palemoon instead of we don't support palemoon period.

I'll see if I can log in and have same problem.

No, I didn't have the same problem, weird, it looks like it did before a few weeks ago. Is something in your setup different? I am confused.
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Say NO to Fascism and Corporatism as much as possible!
Also, Peace Be With us All!

User avatar
andyprough
Board Warrior
Board Warrior
Posts: 1090
Joined: 2020-05-31, 04:33

Re: Proton Mail: Search Bar - Incorrect clamp() CSS Function

Unread post by andyprough » 2025-05-09, 23:03

I can confirm. That search box is about an inch more narrow than on a Firefox-based browser, but still functional and plenty useful. Not really a show-stopper bug.

Proton should really give some kind of option for expanding that search box bigger, to fill up most of the space in the web page view.

They do support Pale Moon more than a lot of online services. I had an issue where the Proton Drive website wasn't working at all in Pale Moon earlier this year, which was due to a change on Proton's end, and after a little bit of prodding on my part Proton fixed it. They tried to claim it was due to a recent change in Pale Moon, but I showed them that I ran into the same bug when using a year-old version of Pale Moon, even though that same version and later versions had worked just fine with Proton Drive's website for me last year. Anyway, they got around to fixing it after a couple of weeks. Pretty good people overall.

User avatar
frostknight
Astronaut
Astronaut
Posts: 553
Joined: 2022-08-10, 02:25

Re: Proton Mail: Search Bar - Incorrect clamp() CSS Function

Unread post by frostknight » 2025-05-09, 23:06

andyprough wrote:
2025-05-09, 23:03
I can confirm. That search box is about an inch more narrow than on a Firefox-based browser, but still functional and plenty useful. Not really a show-stopper bug.

They do support Pale Moon more than a lot of online services. I had an issue where the Proton Drive website wasn't working at all in Pale Moon earlier this year, which was due to a change on Proton's end, and after a little bit of prodding on my part Proton fixed it. They tried to claim it was due to a recent change in Pale Moon, but I showed them that I ran into the same bug when using a year-old version of Pale Moon, even though that same version and later versions had worked just fine with Proton Drive's website for me last year. Anyway, they got around to fixing it after a couple of weeks. Pretty good people overall.
Sounds like they have some decency.

I don't use firefox anymore except to install librewolf on certain computers. But that being said, I haven't checked librewolf on this bug. That being said also though, its probably a minor nuisance if I had.

Disroot.org has a bit of a problem with palemoon sometimes due to their ui being way over the top. It lags quite a bit at first. Then it works fine with an annoying warning of course.

I only use librewolf for obvious reasons, compatbility problems otherwise I prefer palemoon.
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Say NO to Fascism and Corporatism as much as possible!
Also, Peace Be With us All!

User avatar
andyprough
Board Warrior
Board Warrior
Posts: 1090
Joined: 2020-05-31, 04:33

Re: Proton Mail: Search Bar - Incorrect clamp() CSS Function

Unread post by andyprough » 2025-05-09, 23:15

Off-topic:
frostknight wrote:
2025-05-09, 23:06
I don't use firefox anymore except to install librewolf on certain computers.
Well, I said "Firefox-based". As you are probably well aware, that means Trisquel's Abrowser for me. Which is the non-ESR version of IceCat.

User avatar
frostknight
Astronaut
Astronaut
Posts: 553
Joined: 2022-08-10, 02:25

Re: Proton Mail: Search Bar - Incorrect clamp() CSS Function

Unread post by frostknight » 2025-05-09, 23:18

andyprough wrote:
2025-05-09, 23:15
Well, I said "Firefox-based". As you are probably well aware, that means Trisquel's Abrowser for me. Which is the non-ESR version of IceCat.
Smart. And btw, I looked on icecat web site, supposedly its not as backed up on updates as it used to be.
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Say NO to Fascism and Corporatism as much as possible!
Also, Peace Be With us All!

User avatar
adoxa
Lunatic
Lunatic
Posts: 398
Joined: 2019-03-16, 13:26
Location: Qld, Aus.

Re: Proton Mail: Search Bar - Incorrect clamp() CSS Function

Unread post by adoxa » 2025-05-10, 00:16

See if this userstyle works (I don't have an account, so haven't tested, but the style did show up on the login page).

Code: Select all

@-moz-document domain("proton.me") {
  .searchbox {
    inline-size:calc(100vw*.35 - 1.25rem) !important;
  }
  .searchbox--adaptWidth {
    inline-size:calc(var(--width-conversation-column, 35vw ) - 1.25rem) !important;
  }
}

User avatar
andyprough
Board Warrior
Board Warrior
Posts: 1090
Joined: 2020-05-31, 04:33

Re: Proton Mail: Search Bar - Incorrect clamp() CSS Function

Unread post by andyprough » 2025-05-10, 03:58

adoxa wrote:
2025-05-10, 00:16
See if this userstyle works (I don't have an account, so haven't tested, but the style did show up on the login page).
Yup, that works, thanks adoxa!

User avatar
sunstarunicorn
Moonbather
Moonbather
Posts: 74
Joined: 2016-04-07, 21:01

Re: Proton Mail: Search Bar - Incorrect clamp() CSS Function

Unread post by sunstarunicorn » 2025-05-10, 14:58

Please forgive my ignorance - I've never really had to tinker with individual websites like this.

How do I apply a userstyle?

Edit: And this may not be a show-stopper bug, but it's really annoying to have my search bar/box be so small when it wasn't before. :-(

Second Edit:
andyprough wrote:
2025-05-09, 23:03
They do support Pale Moon more than a lot of online services. I had an issue where the Proton Drive website wasn't working at all in Pale Moon earlier this year, which was due to a change on Proton's end, and after a little bit of prodding on my part Proton fixed it. They tried to claim it was due to a recent change in Pale Moon, but I showed them that I ran into the same bug when using a year-old version of Pale Moon, even though that same version and later versions had worked just fine with Proton Drive's website for me last year. Anyway, they got around to fixing it after a couple of weeks. Pretty good people overall.
Andy,

That's exactly the same argument they used on me!

Which made me suspicious, so I just went and checked Proton Mail on an older laptop of mine that's still running Pale Moon 33.6.1 - lo and behold, I see the exact same behavior with the search bar!

So I've now gone back to the support ticket with my older browser evidence to wave it and call shenanigans at them. Let's see what they come back with.
Then I shall name you Tinúviel Beria uin Morchaint, which means 'Daughter of Twilight protecting from the Shadows' in Elvish.

Once a King or Queen of Narnia, always a King or Queen.

He is not a tame Lion...but he is Good.

Connect, Respect, Protect.

Let's Keep the Peace!

User avatar
Kerebron
Fanatic
Fanatic
Posts: 125
Joined: 2016-12-04, 22:01

Re: Proton Mail: Search Bar - Incorrect clamp() CSS Function

Unread post by Kerebron » 2025-05-10, 16:07

sunstarunicorn wrote:
2025-05-10, 14:58
How do I apply a userstyle?
Use Stylem add-on.
Now, here, you see, it takes all the running you can do, to keep in the same place. If you want to get somewhere else, you must run at least twice as fast as that!

User avatar
andyprough
Board Warrior
Board Warrior
Posts: 1090
Joined: 2020-05-31, 04:33

Re: Proton Mail: Search Bar - Incorrect clamp() CSS Function

Unread post by andyprough » 2025-05-10, 17:24

sunstarunicorn wrote:
2025-05-10, 14:58
That's exactly the same argument they used on me!

Which made me suspicious, so I just went and checked Proton Mail on an older laptop of mine that's still running Pale Moon 33.6.1 - lo and behold, I see the exact same behavior with the search bar!

So I've now gone back to the support ticket with my older browser evidence to wave it and call shenanigans at them. Let's see what they come back with.
Exactly what happened to me with the Proton Drive website earlier this year. In the past Proton used to immediately assign a ticket and start working on the bug, but it appears that in recent months they've added a layer of a simple triage person you have to get past first. I found that the successful action was to just persistently keep pushing for them to solve it, but politely and without showing any anger. In fact, I had to file the bug twice, but then they fixed it and thanked me for the bug report.