Skip to content

Commit

Permalink
Don't add border on images with a link
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rodarima committed Oct 18, 2024
1 parent 572b934 commit ed28301
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/styleengine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ed28301

Please sign in to comment.