<?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>67157</bug_id>
          
          <creation_ts>2011-08-29 15:18:55 -0700</creation_ts>
          <short_desc>getComputedStyle returns incorrect styles with nonstandard pseudo-elements</short_desc>
          <delta_ts>2022-08-06 05:27:25 -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>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.7</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>243539</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Marc Hoyois">marc.hoyois</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>hyatt</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>458480</commentid>
    <comment_count>0</comment_count>
      <attachid>105529</attachid>
    <who name="Marc Hoyois">marc.hoyois</who>
    <bug_when>2011-08-29 15:18:55 -0700</bug_when>
    <thetext>Created attachment 105529
HTML file demonstrating the bug

Overview:

getComputedStyle(element, pseudoElt) returns incorrect styles for many (all?) -webkit-prefixed pseudo-elements.
For some it returns the styles of element, and for others it returns completely empty styles.

Steps to reproduce:
Open attached HTML file (check the console for the full styles).

Actual result:
The width of the play button is reported as &apos;300px&apos;, the width of the spin button as &apos;&apos;.

Expected results:
The actual width of the play button is &apos;16px&apos;, the width of the spin button is &apos;13px&apos;.

Build Date &amp; Platform:
Tested in Safari 5.1 and r93978

Note: I prefixed &apos;::&apos; to the pseudoElt string, which I think is the correct way to do it, but the results are the same with &apos;:&apos; and no prefix at all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1889358</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-06 05:27:25 -0700</bug_when>
    <thetext>*** Safari 15.6 on macOS 12.5 ***

width of play button: 300px
width of spin button: 300px
etc.

*** Firefox Nightly 105 ***

width of play button: 
width of spin button: 
etc.

*** Chrome Canary 106 ***

width of play button: 300px
width of spin button: 300px
etc.

*** This bug has been marked as a duplicate of bug 243539 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>105529</attachid>
            <date>2011-08-29 15:18:55 -0700</date>
            <delta_ts>2011-08-29 15:18:55 -0700</delta_ts>
            <desc>HTML file demonstrating the bug</desc>
            <filename>getcomputedstyle.html</filename>
            <type>text/html</type>
            <size>681</size>
            <attacher name="Marc Hoyois">marc.hoyois</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8Ym9keT4KPHNjcmlwdD4KCXZhciB2aWRlbyA9IGRvY3Vt
ZW50LmNyZWF0ZUVsZW1lbnQoInZpZGVvIik7Cgl2aWRlby5jb250cm9scyA9IHRydWU7Cglkb2N1
bWVudC5ib2R5LmFwcGVuZENoaWxkKHZpZGVvKTsKCXZhciBpbnB1dCA9IGRvY3VtZW50LmNyZWF0
ZUVsZW1lbnQoImlucHV0Iik7CglpbnB1dC50eXBlID0gIm51bWJlciI7Cglkb2N1bWVudC5ib2R5
LmFwcGVuZENoaWxkKGlucHV0KTsKCXZhciBzdHlsZTEgPSBnZXRDb21wdXRlZFN0eWxlKHZpZGVv
LCAiOjotd2Via2l0LW1lZGlhLWNvbnRyb2xzLXBsYXktYnV0dG9uIik7Cgl2YXIgc3R5bGUyID0g
Z2V0Q29tcHV0ZWRTdHlsZSh2aWRlbywgIjo6LXdlYmtpdC1pbm5lci1zcGluLWJ1dHRvbiIpOwoJ
Y29uc29sZS5sb2coIlN0eWxlIG9mIHBsYXkgYnV0dG9uOiAiICsgc3R5bGUxLmNzc1RleHQpOwoJ
Y29uc29sZS5sb2coIlN0eWxlIG9mIHNwaW4gYnV0dG9uOiAiICsgc3R5bGUyLmNzc1RleHQpOwoJ
YWxlcnQoIndpZHRoIG9mIHBsYXkgYnV0dG9uOiAiICsgc3R5bGUxLmdldFByb3BlcnR5VmFsdWUo
IndpZHRoIikgKyAiXG53aWR0aCBvZiBzcGluIGJ1dHRvbjogIiArIHN0eWxlMi5nZXRQcm9wZXJ0
eVZhbHVlKCJ3aWR0aCIpICsgIlxuZXRjLiIpOwo8L3NjcmlwdD4KPC9ib2R5Pgo8L2h0bWw+
</data>

          </attachment>
      

    </bug>

</bugzilla>