Some useful CSS properties currently unsupported

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.
Gumboots

Some useful CSS properties currently unsupported

Unread post by Gumboots » 2021-02-25, 21:38

I'm wondering if there is any plan to implement some useful CSS that is generally well-supported by other browsers but not currently supported by Pale Moon.

The ones I'm thinking of are CSS columns, text-underline-position and scrollbar-color*. These are listed in what I would consider to be order of importance. I can probably come up with several more if you're ever short of things to do. :D

I've checked the repo and these properties don't have an issue assigned at the moment.

*If you really want to get cool and groovy, you could even implement the various ::-webkit-scrollbar properties, which are far more versatile than the Firefox option.

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2189
Joined: 2018-05-05, 13:29

Re: Some useful CSS properties currently unsupported

Unread post by vannilla » 2021-02-25, 22:04

The first two work just fine.

New Tobin Paradigm

Re: Some useful CSS properties currently unsupported

Unread post by New Tobin Paradigm » 2021-02-25, 22:10

Define "well supported" when almost every browser is Chrome.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35591
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Some useful CSS properties currently unsupported

Unread post by Moonchild » 2021-02-25, 22:13

scrollbar-color really isn't high priority. Scrollbars are by definition system elements and will be system-styled. Replacing that with something independent of system widgets just to be able to change the color is largely unnecessary sugar and will completely break with OS integration. Scrollbars will look different depending on whether you are on version x or y of Windows, Mac or Linux (and Linux is even worse with a plethora of theming engines that can be freely swapped out). If you make that "custom" then it will massively reduce usability of the control by breaking uniformity and intuitiveness of the control. We already see this with custom-styled input boxes, arrows and lists.
However, if you really want to control it you can do the work in page content: hide the scrollbars and draw your own -- and you'll have full control. Too much work? well then keep in mind that you're asking us to do the same work and then some.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

New Tobin Paradigm

Re: Some useful CSS properties currently unsupported

Unread post by New Tobin Paradigm » 2021-02-25, 22:22

I'd say careful patches would be welcome but it should also be behind a pref.

Gumboots

Re: Some useful CSS properties currently unsupported

Unread post by Gumboots » 2021-02-26, 06:18

vannilla wrote:
2021-02-25, 22:04
The first two work just fine.
Tried them. They work with FF and Chrome/derivatives. Couldn't get them to work with PM. Grid works. Columns didn't seem to, and text-decoration-position: under; doesn't.
New Tobin Paradigm wrote:
2021-02-25, 22:10
Define "well supported" when almost every browser is Chrome.
Well yeah, "almost every browser" is near enough to well-supported. :D

Gumboots

Re: Some useful CSS properties currently unsupported

Unread post by Gumboots » 2021-02-26, 06:29

Moonchild wrote:
2021-02-25, 22:13
scrollbar-color really isn't high priority. Scrollbars are by definition system elements and will be system-styled. Replacing that with something independent of system widgets just to be able to change the color is largely unnecessary sugar and will completely break with OS integration. Scrollbars will look different depending on whether you are on version x or y of Windows, Mac or Linux (and Linux is even worse with a plethora of theming engines that can be freely swapped out). If you make that "custom" then it will massively reduce usability of the control by breaking uniformity and intuitiveness of the control. We already see this with custom-styled input boxes, arrows and lists.

However, if you really want to control it you can do the work in page content: hide the scrollbars and draw your own -- and you'll have full control. Too much work? well then keep in mind that you're asking us to do the same work and then some.
I'm not asking for anyone to completely rewrite all scrollbars. I was just wondering if some of the newer CSS would be supported at some point. Obviously they will still pick up the basic OS/version styling. That's fine.

Standard scrollbars are a bit of an eyesore on a lot of themes, particularly dark ones. There are various workarounds for this, such as using partial opacity on the relevant element in combination with a higher contrast text colour than other elements on the page. Done correctly, that can give even text contrast against all backgrounds combined with a scrollbar that won't burn your eyes out when they are adjusted for a dark theme.

However, it's still a workaround, and if it was possible to target the scrollbar directly via CSS this would be more versatile and more convenient. In a case like this it's not so much "sugar" as balancing the various elements of the theme for greater ease of use. I'm not saying you have to do it. I'm just pointing out some of the reasons why someone might want to.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35591
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Some useful CSS properties currently unsupported

Unread post by Moonchild » 2021-02-26, 11:28

Gumboots wrote:
2021-02-26, 06:29
I'm not asking for anyone to completely rewrite all scrollbars.
Actually, you are :)
System widgets can't be custom-styled. To support this keyword, all scrollbar code in the browser must be rewritten.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

New Tobin Paradigm

Re: Some useful CSS properties currently unsupported

Unread post by New Tobin Paradigm » 2021-02-26, 13:12

Gumboots wrote:
2021-02-26, 06:18
New Tobin Paradigm wrote:
2021-02-25, 22:10
Define "well supported" when almost every browser is Chrome.
Well yeah, "almost every browser" is near enough to well-supported. :D
You may have missed my point. You can't argue on the basis of a "well supported" feature these days when almost every browser is the SAME browser.

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2189
Joined: 2018-05-05, 13:29

Re: Some useful CSS properties currently unsupported

Unread post by vannilla » 2021-02-26, 14:21

Gumboots wrote:
2021-02-26, 06:18
Tried them. They work with FF and Chrome/derivatives. Couldn't get them to work with PM. Grid works. Columns didn't seem to, and text-decoration-position: under; doesn't.
I'm not too sure what you are seeing differently, but admittedly regarding text-underline-position, MDN says using "under" should not cross any descendants but the Pale Moon implementation might do that.
Still, it would be nice to see some screenshots to understand what you mean by "not working".

Gumboots

Re: Some useful CSS properties currently unsupported

Unread post by Gumboots » 2021-02-27, 06:51

Moonchild wrote:
2021-02-26, 11:28
Gumboots wrote:
2021-02-26, 06:29
I'm not asking for anyone to completely rewrite all scrollbars.
Actually, you are :)
System widgets can't be custom-styled. To support this keyword, all scrollbar code in the browser must be rewritten.
OK, you're the browser expert. Me no savvy browser innards. I just thought that if FF can throw in their new scrollbar-color property then maybe it wouldn't be a huge drama in PM. If it's a huge drama, I understand why you wouldn't want to prioritise it.

New Tobin Paradigm wrote:
2021-02-26, 13:12
You may have missed my point. You can't argue on the basis of a "well supported" feature these days when almost every browser is the SAME browser.
I got your point. My reply was a joke. Still, although Chrome and its derivatives (Opera, Edge, etc) have the majority of the market FF still has a decent chunk. Then there's Mac/iOS and its horrors, which some people are strangely addicted to. AFAIK all of these support the properties I was asking about.

vannilla wrote:
2021-02-26, 14:21
Still, it would be nice to see some screenshots to understand what you mean by "not working".
Ok, I'll have another play with it, and whip up a basic live text page if I still can't get it to work.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4980
Joined: 2015-12-09, 15:45
Contact:

Re: Some useful CSS properties currently unsupported

Unread post by moonbat » 2021-02-27, 07:39

Gumboots wrote:
2021-02-27, 06:51
FF still has a decent chunk
They're down to around 3% now, from a peak of 35-36% in 2009.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

Gumboots

Re: Some useful CSS properties currently unsupported

Unread post by Gumboots » 2021-02-27, 07:53

Overall, yes, but Pale Moon isn't competing in the mobile browser space anyway AFAIK. FF is around 8% on desktop (plus or minus, depending on who you believe). Safari about the same. Chrome/Edge/Opera (all the same, really) have about 80%.

FF is negligible on mobile, but Safari is a lot higher than on desktop.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35591
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Some useful CSS properties currently unsupported

Unread post by Moonchild » 2021-02-27, 09:39

Gumboots wrote:
2021-02-27, 06:51
Me no savvy browser innards.
This is why I told you off the bat what it meant to support it. But I guess that quarter didn't drop.
Gumboots wrote:
2021-02-27, 06:51
If it's a huge drama, I understand why you wouldn't want to prioritise it.
It's just not something we should focus on when there are much more pressing things we have to divide our time among.
That is why was said:
New Tobin Paradigm wrote:
2021-02-25, 22:22
I'd say careful patches would be welcome but it should also be behind a pref.
...meaning we are welcoming anyone who wants to contribute to this which is a "nice to have for aesthetics but non-breaking" to do the work necessary for it.
As it is, we probably need to do custom scrollbar work anyway to make scrollbar-width: thin; work consistently on the various Linux theme engines anyway, so if that's all tied together, then adding a colour variation (and additional styling for full-width scroll bars with colour) should be less work. I suspect some interdependency there.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Locked