News for hackers. Stuff that matters.
Re:Kosmonaut: web browser from scratch in Rust by zzo38computer on Friday August 21, 2020 @03:26AM (#24232834)
Another feature would be "meta-CSS", which would be only for user stylesheets (and not usable in web pages), and can apply CSS in CSS, for example:

- Apply an animation (or other style) to any CSS styles that specify "text-decoration: blink".

- Specify what colour to use when a CSS rule specifies "background" as the colour name.

- Make all transitions (or animations) twice as fast or twice as slow.

- Prevent certain CSS commands from being used entirely, or change their meaning to a different command.

- Select elements by the CSS rules that the document applies to them (even if those CSS rules are disabled, and even if class names are unpredictable).

- Define exactly how big a "in" or "px" or whatever unit is.

There are no comments on this comment yet.