dillo-browser / dillo

Dillo, a multi-platform graphical web browser
https://dillo-browser.github.io/
GNU General Public License v3.0
582 stars 30 forks source link

Improve default style readability #269

Open rodarima opened 1 month ago

rodarima commented 1 month ago

Until margin:auto is supported, we have a lot of pages showing text glued to the Dillo window. Disabling CSS styles cause the default body margin of 5px to take effect. This margin is too small for computer screens, which is the default target.

It can be overrided by user styles ~/.dillo/style.css, but we should select a reasonable default.

Here is an example where this happens: https://washbear.neocities.org/browsers

And this is how it looks with CSS disabled and the margin increased to 2.5em:

margin

Similarly, we may want to increase the default font size and the line height.

Here is the recommended style for HTML4 CSS2: https://drafts.csswg.org/css2/#html-stylesheet

Also: https://html.spec.whatwg.org/multipage/rendering.html

rodarima commented 1 month ago

Hmm, I see that increasing the default margin breaks too many websites. Probably it is only okay to make it 8 or 10 px.

rodarima commented 1 month ago

The default background color #dcd1ba is also too dark by default. The idea that we should not use too bright colors is good, but I don't think it should be addressed at the browser level by default, as there are tools that dimm bright colors on the whole system.

The spec recommend the canvas to be white by default, so I think it would be expected to switch it. Of course users can choose any other value in the config.