CSS revert directive support

Discussions about the development and maturation of the platform code (UXP).
Warning: may contain highly-technical topics.

Moderators: trava90, athenian200

User avatar
UCyborg
Fanatic
Fanatic
Posts: 171
Joined: 2019-01-10, 09:37

CSS revert directive support

Unread post by UCyborg » 2022-11-28, 21:33

https://developer.mozilla.org/en-US/docs/Web/CSS/revert

Just a quick question whether this can be supported in the underlying browser engine.

I don't know if there's a good reason for this, but forums based on Discourse platform use it to undo previously set overflow-y property, only an issue on JavaScriptless version where scroller disappears on Pale Moon.

Example URL: https://boards.straightdope.com/t/how-a ... rse/926428

Found this on Discourse's GitHub page: https://github.com/discourse/discourse/ ... l.erb#L240

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

Re: CSS revert directive support

Unread post by Moonchild » 2022-11-28, 22:19

Filed Issue #2045 (UXP).
Feel free to have a crack at it if comfortable working with our CSS engine. Aside from the actual implementation, adding a new keyword isn't too terribly difficult. Considering this just clears/resets applied styles, I doubt it'd touch much of the actual layout engine beyond the parser/style system.
"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

User avatar
UCyborg
Fanatic
Fanatic
Posts: 171
Joined: 2019-01-10, 09:37

Re: CSS revert directive support

Unread post by UCyborg » 2022-11-30, 22:26

Sorry, I guess this belongs in the platform development subforum. Just wanted to point out one thing I found that's missing, it's good for it to be on the list of things to tackle in the future.

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

Re: CSS revert directive support

Unread post by Moonchild » 2022-11-30, 22:35

UCyborg wrote:
2022-11-30, 22:26
Sorry, I guess this belongs in the platform development subforum.
yeah I'll move it.
"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