<?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>76743</bug_id>
          
          <creation_ts>2012-01-20 14:58:26 -0800</creation_ts>
          <short_desc>:only-child not showing in Webkit/Safari</short_desc>
          <delta_ts>2026-02-03 05:17:52 -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>CSS</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>CONFIGURATION CHANGED</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>
          <dependson>238822</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jeroen Schmit">jeroen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>karlcow</cc>
    
    <cc>shanestephens</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>539814</commentid>
    <comment_count>0</comment_count>
    <who name="Jeroen Schmit">jeroen</who>
    <bug_when>2012-01-20 14:58:26 -0800</bug_when>
    <thetext>I&apos;m trying to get this to work:

&lt;!doctype html&gt;
&lt;html&gt;
&lt;style&gt;
    section{
        display: none;
    }
    section:only-child {
        display: block;
    }   
&lt;/style&gt;
&lt;body&gt;
    &lt;section&gt;This should be visible&lt;/section&gt;   
&lt;/body&gt;
&lt;/html&gt;

I believe that the text &apos;This should be visible&apos; should be visible. This is also the case in Firefox. Firebug, as well as Safari&apos;s Web Inspector think so as well.

However, if you open the page in Safari (OSX and iPhone), the text is not showing. 

See also: http://stackoverflow.com/questions/8893673/only-child-not-showing-in-webkit-safari</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1882730</commentid>
    <comment_count>1</comment_count>
      <attachid>460834</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-12 16:29:28 -0700</bug_when>
    <thetext>Created attachment 460834
Test Case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1882731</commentid>
    <comment_count>2</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-12 16:29:40 -0700</bug_when>
    <thetext>Safari, Chrome, and Firefox all agree on rendering for this test case. I don&apos;t believe there is any remaining compatibility issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2177541</commentid>
    <comment_count>3</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2026-02-03 05:17:52 -0800</bug_when>
    <thetext>Fixed by Bug 238822</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>460834</attachid>
            <date>2022-07-12 16:29:28 -0700</date>
            <delta_ts>2022-07-12 16:29:28 -0700</delta_ts>
            <desc>Test Case</desc>
            <filename>76743.html</filename>
            <type>text/html</type>
            <size>211</size>
            <attacher name="Brent Fulgham">bfulgham</attacher>
            
              <data encoding="base64">PCFkb2N0eXBlIGh0bWw+CjxodG1sPgo8c3R5bGU+CiAgICBzZWN0aW9uewogICAgICAgIGRpc3Bs
YXk6IG5vbmU7CiAgICB9CiAgICBzZWN0aW9uOm9ubHktY2hpbGQgewogICAgICAgIGRpc3BsYXk6
IGJsb2NrOwogICAgfSAgIAo8L3N0eWxlPgo8Ym9keT4KICAgIDxzZWN0aW9uPlRoaXMgc2hvdWxk
IGJlIHZpc2libGU8L3NlY3Rpb24+ICAgCjwvYm9keT4KPC9odG1sPg==
</data>

          </attachment>
      

    </bug>

</bugzilla>