BerndGabriel / HtmlViewer

The well-known Delphi/Lazarus HtmlViewer/FrameViewer
Other
395 stars 147 forks source link

border-bottom on a within h1 drawn from 0,0 #355

Open stijnsanders opened 1 week ago

stijnsanders commented 1 week ago

Please consider this bit of code:

HtmlViewer1.LoadFromString(
  '<style>A.X{border-bottom: 2px solid red;}</style>'
  +'<h1><a href="#x" class="X">xxx</a></h1>');

It looks like the border-bottom on the link gets drawn from incorrect coordinates, possibly (0,0): image