<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>4824</bug_id>
          
          <creation_ts>2005-09-03 09:37:40 -0700</creation_ts>
          <short_desc>CSS &quot;border-bottom-style: dotted&quot; attribute sometimes draws extra pixel</short_desc>
          <delta_ts>2024-04-12 04:18:08 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>412</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=268448</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="John Sullivan">sullivan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>ian</cc>
    
    <cc>mitz</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>18536</commentid>
    <comment_count>0</comment_count>
    <who name="John Sullivan">sullivan</who>
    <bug_when>2005-09-03 09:37:40 -0700</bug_when>
    <thetext>This bug is also in Radar as &lt;rdar://4045083&gt;

The CSS border-bottom-style:dotted attribute sometimes draws an extra pixel in the bottom border when 
the link length is a certain length.  See screenshot.  For &quot;Fire&quot; and &quot;Colloquy&quot; the bottome borders look 
fine;  but for &quot;LimeWire&quot; and &quot;Fractality&quot; you can see an extra pixel at the right side of the border;  almost 
like an ink smudge.

What&apos;s probably happening is that it&apos;s always drawing a last pixel at the end of the bounds... and this 
sometimes happens to line up with the dotted pattern, sometimes not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33122</commentid>
    <comment_count>1</comment_count>
    <who name="">mitz</who>
    <bug_when>2006-02-17 05:34:36 -0800</bug_when>
    <thetext>(In reply to comment #0)
&gt; What&apos;s probably happening is that it&apos;s always drawing a last pixel at the end of the bounds... and this 
&gt; sometimes happens to line up with the dotted pattern, sometimes not.

This is intended (QWKPainter.mm:295):
        // Do a rect fill of our endpoints.  This ensures we always have the
        // appearance of being a border.  We then draw the actual dotted/dashed line.

ideally it should be done only if two borders meet at the given endpoint.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1953480</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-05-06 23:56:29 -0700</bug_when>
    <thetext>(In reply to mitz from comment #1)
&gt; (In reply to comment #0)
&gt; &gt; What&apos;s probably happening is that it&apos;s always drawing a last pixel at the end of the bounds... and this 
&gt; &gt; sometimes happens to line up with the dotted pattern, sometimes not.
&gt; 
&gt; This is intended (QWKPainter.mm:295):
&gt;         // Do a rect fill of our endpoints.  This ensures we always have the
&gt;         // appearance of being a border.  We then draw the actual
&gt; dotted/dashed line.
&gt; 
&gt; ideally it should be done only if two borders meet at the given endpoint.

I tried to search for this comment in WebKit source using Searchfox.org (easier to use when trying to search comment) but I couldn&apos;t find this comment.

I am not sure on the radar bug, whether we have any testcase etc.

Can we close this now?

Adding @ap - to help on Radar bit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1953518</commentid>
    <comment_count>3</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2023-05-07 09:52:31 -0700</bug_when>
    <thetext>I am not seeing any test case on this. Not sure what the right category for &quot;needs more information&quot; in bugzilla but I am somewhat convinced we already addressed this so -&gt; config changed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1953523</commentid>
    <comment_count>4</comment_count>
      <attachid>466261</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2023-05-07 10:22:04 -0700</bug_when>
    <thetext>Created attachment 466261
test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1953528</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2023-05-07 10:26:30 -0700</bug_when>
    <thetext>Doesn&apos;t seem fixed. All browser engines are different here, but at least on this test case, Firefox seems nicest.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1953544</commentid>
    <comment_count>6</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2023-05-07 12:58:24 -0700</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #4)
&gt; Created attachment 466261 [details]
&gt; test case
👍</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2028042</commentid>
    <comment_count>7</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-04-12 04:18:08 -0700</bug_when>
    <thetext>@Alan &amp; Alexey - I think bug 268448 might have progressed it slightly. Since Safari 17.5 is different from Minibrowser.

https://commits.webkit.org/276585@main</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>466261</attachid>
            <date>2023-05-07 10:22:04 -0700</date>
            <delta_ts>2023-05-07 10:22:04 -0700</delta_ts>
            <desc>test case</desc>
            <filename>test.html</filename>
            <type>text/html</type>
            <size>312</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">PHN0eWxlPgpkaXYgewpib3JkZXItYm90dG9tLXN0eWxlOmRvdHRlZDsKfQo8L3N0eWxlPgo8ZGl2
IHN0eWxlPSJ3aWR0aDoxMDBweDsiPjwvZGl2Pjxicj4KPGRpdiBzdHlsZT0id2lkdGg6MTAxcHg7
Ij48L2Rpdj48YnI+CjxkaXYgc3R5bGU9IndpZHRoOjEwMnB4OyI+PC9kaXY+PGJyPgo8ZGl2IHN0
eWxlPSJ3aWR0aDoxMDNweDsiPjwvZGl2Pjxicj4KPGRpdiBzdHlsZT0id2lkdGg6MTA0cHg7Ij48
L2Rpdj48YnI+CjxkaXYgc3R5bGU9IndpZHRoOjEwNXB4OyI+PC9kaXY+PGJyPgo8ZGl2IHN0eWxl
PSJ3aWR0aDoxMDZweDsiPjwvZGl2Pjxicj4K
</data>

          </attachment>
      

    </bug>

</bugzilla>