Alternate stylesheets do not stick - but "No Style" does stick per domain

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
User avatar
Geert
Newbie
Newbie
Posts: 5
Joined: 2023-01-30, 13:48

Alternate stylesheets do not stick - but "No Style" does stick per domain

Unread post by Geert » 2023-02-08, 16:31

When selecting "View-menu > No Style", then this choice does stick as long as we stay on that same domain. Which is what I would expect.

However, when selecting an alternate stylesheet, it does not stick, and we have to reselect the alternate style for each new page on the same domain.

So, could you make the alternate style sticky too, just like the "No Style"? Because, normally when people choose an alternate style, they have good reasons. For example if it offers better contrast for poor eyesight, or if it is a less complex style that works better in simple or older browsers, or it is in night-mode, or a simplified style suitable for projecting on a beamer or saving as PDF (e.g. without promo, without superfluous things, without columns, etc.).

So, could you make the alternate stylesheets sticky as long as we stay on the same website, on the same domain? This should be not too difficult, since you already have this code working well for the "No Style"?

But this has a very low priority obviously.

Feel free to test it on my website "https://www.interthk.be". Don't worry, this is no spam: it is a retired website for Flemish dentists, which I only use for testing HTML and CSS now. It is in Dutch, so consider any text as "lorem ipsum". Its simplified stylesheet has no variables and no math formulas and thus supports older browsers too, and it rescales a bit different on small screens (make browser window narrower to see the effect).

Locked