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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>29006</bug_id>
          
          <creation_ts>2015-07-29 21:37:59 +0000</creation_ts>
          <short_desc>What should happen when calling getComputedStyle for a pseudo that doesn&apos;t exist?</short_desc>
          <delta_ts>2015-09-04 09:01:47 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>CSSOM</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <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>1</everconfirmed>
          <reporter name="David Zbarsky">dzbarsky</reporter>
          <assigned_to name="Simon Pieters">zcorpan</assigned_to>
          
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>122323</commentid>
    <comment_count>0</comment_count>
      <attachid>1618</attachid>
    <who name="David Zbarsky">dzbarsky</who>
    <bug_when>2015-07-29 21:37:59 +0000</bug_when>
    <thetext>Created attachment 1618
Testcase

https://drafts.csswg.org/cssom/#extensions-to-the-window-interface

[[
If pseudoElt is as an ASCII case-insensitive match for either &apos;:before&apos; or &apos;::before&apos; let obj be the ::before pseudo-element of elt.
If pseudoElt is as an ASCII case-insensitive match for either &apos;:after&apos; or &apos;::after&apos; let obj be the ::after pseudo-element of elt. 
]]

The attached testcase alerts &quot;auto&quot; in Firefox, &quot;50px&quot; in Chrome and Safari, and &quot;&quot; in Opera.  What should the behavior be when the pseudoelement doesn&apos;t exist?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123071</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2015-09-04 09:01:47 +0000</bug_when>
    <thetext>The terminology section says

&quot;In this specification the ::before and ::after pseudo-elements are assumed to exist for all elements even if no box is generated for them.&quot;
https://drafts.csswg.org/cssom/#terminology

But that might not make it clear how it should behave; I&apos;ll look into this.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>1618</attachid>
            <date>2015-07-29 21:37:59 +0000</date>
            <delta_ts>2015-07-29 21:37:59 +0000</delta_ts>
            <desc>Testcase</desc>
            <filename>gCS3.html</filename>
            <type>text/html</type>
            <size>237</size>
            <attacher name="David Zbarsky">dzbarsky</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPgo8c3R5bGU+CiNmb28gewp3aWR0aDogNTBweDsKfQo8L3N0eWxlPgo8L2hl
YWQ+Cjxib2R5Pgo8ZGl2IGlkPSJmb28iPiBGT08gPC9kaXY+CjxzY3JpcHQ+CnZhciBmb28gPSBk
b2N1bWVudC5nZXRFbGVtZW50QnlJZCgnZm9vJyk7CmFsZXJ0KGdldENvbXB1dGVkU3R5bGUoZm9v
LCAiOmJlZm9yZSIpLmdldFByb3BlcnR5VmFsdWUoJ3dpZHRoJykpOwo8L3NjcmlwdD4KPC9ib2R5
Pgo8L2h0bWw+
</data>

          </attachment>
      

    </bug>

</bugzilla>