diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-10-18 08:53:11 +0200 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-10-21 19:22:21 +0200 |
commit | 6d5b3ee329b61adfa144c4f7f9d60bbe10e04071 (patch) | |
tree | 3ed534cbc8e84e0d90bee38d48068ddf350e020c | |
parent | 572b9346d5d844822b1a0cc1f22e15fb898135b4 (diff) |
Don't add border on images with a link
Some images have the same background color as the page so they don't
have a visible border. Always adding a border on images with a link
breaks this property. Links continue to be discoverable by hovering with
the mouse.
Fixes: https://github.com/dillo-browser/dillo/issues/270
-rw-r--r-- | src/styleengine.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/styleengine.cc b/src/styleengine.cc index 14411da8..ceef1a67 100644 --- a/src/styleengine.cc +++ b/src/styleengine.cc @@ -1031,7 +1031,6 @@ void StyleEngine::init () { " h1, h2, h3, h4, h5, h6, header, main, nav, ol, p, pre, section, ul" " {display: block}" "i, em, cite, address, var {font-style: italic}" - ":link img, :visited img {border: 1px solid}" "frameset, ul, ol, dir {margin-left: 40px}" /* WORKAROUND: It should be margin: 1em 0 * but as we don't collapse these margins yet, it |