<?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>306818</bug_id>
          
          <creation_ts>2026-02-02 16:41:11 -0800</creation_ts>
          <short_desc>Incorrect outlineWidth in result of getComputedStyle when OutlineStyle is None</short_desc>
          <delta_ts>2026-02-09 16:42:12 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></resolution>
          
          
          <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>mechannik512</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>karlcow</cc>
    
    <cc>sam</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2177346</commentid>
    <comment_count>0</comment_count>
    <who name="">mechannik512</who>
    <bug_when>2026-02-02 16:41:11 -0800</bug_when>
    <thetext>If OutlineStyle is None, getComputedStyle should return outlineWidth equal to 0, but now it returns 3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2177348</commentid>
    <comment_count>1</comment_count>
    <who name="">mechannik512</who>
    <bug_when>2026-02-02 16:55:18 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/57740</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2177387</commentid>
    <comment_count>2</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2026-02-02 18:54:36 -0800</bug_when>
    <thetext>As mentioned in the PR, the current behavior is correct as of CSS UI 4, due to the CSSWG resolution https://github.com/w3c/csswg-drafts/issues/11494.

Is this change in behavior causing an issue for you?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2177473</commentid>
    <comment_count>3</comment_count>
    <who name="">mechannik512</who>
    <bug_when>2026-02-03 00:17:30 -0800</bug_when>
    <thetext>&gt; Is this change in behavior causing an issue for you?

Yes it does (custom JS code of making element screenshot on page, when calculating element coords, includes element outline width, which just changed for all elements)

But since it aligns with CSS UI 4, its not a bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2177533</commentid>
    <comment_count>4</comment_count>
    <who name="">mechannik512</who>
    <bug_when>2026-02-03 04:54:58 -0800</bug_when>
    <thetext>Wait, shouldn&apos;t we still return &quot;0px&quot; when outline is &quot;none&quot; for compatibility reasons, as described here?
https://github.com/w3c/csswg-drafts/issues/11494#issuecomment-2675800489</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2177955</commentid>
    <comment_count>5</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2026-02-04 09:20:32 -0800</bug_when>
    <thetext>Perhaps, re-opening this while we take this up with the working group. I filed https://github.com/w3c/csswg-drafts/issues/13451 to start that discussion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2177956</commentid>
    <comment_count>6</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2026-02-04 09:22:12 -0800</bug_when>
    <thetext>mechannik512, are you able to provide a link to the content where this bug is hitting, or is this something that is private?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2177957</commentid>
    <comment_count>7</comment_count>
    <who name="">mechannik512</who>
    <bug_when>2026-02-04 09:27:07 -0800</bug_when>
    <thetext>(In reply to Sam Weinig from comment #6)
&gt; mechannik512, are you able to provide a link to the content where this bug
&gt; is hitting, or is this something that is private?

Not private. Its piece of code where we calculate coords of an element so we could extract that area from viewport screenshot.
Here is link to PR where i fix it on the side of our tool: https://github.com/gemini-testing/testplane/pull/1198/changes</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2179668</commentid>
    <comment_count>8</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-02-09 16:42:12 -0800</bug_when>
    <thetext>&lt;rdar://problem/170011782&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>