<?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>120283</bug_id>
          
          <creation_ts>2013-08-25 23:20:40 -0700</creation_ts>
          <short_desc>Object style.visibility not coming as inherit when parent&apos;s visibility is changed</short_desc>
          <delta_ts>2022-07-13 15:02:07 -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>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Jose Lejin PJ">jose.lejin</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bfulgham</cc>
    
    <cc>jond</cc>
    
    <cc>koivisto</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>920894</commentid>
    <comment_count>0</comment_count>
    <who name="Jose Lejin PJ">jose.lejin</who>
    <bug_when>2013-08-25 23:20:40 -0700</bug_when>
    <thetext>Try changing parent&apos;s visibility property dynamically, then  its child style.visibility should come as &apos;inherit&apos;. 
But its returning nothing.

Please refer the attached test app.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>920895</commentid>
    <comment_count>1</comment_count>
      <attachid>209616</attachid>
    <who name="sheetanshu">sheetanshub</who>
    <bug_when>2013-08-25 23:35:52 -0700</bug_when>
    <thetext>Created attachment 209616
test case: dynamically change the visibility status to hidden, check the child element visibility status

Visibility status of child element should be &apos;inherit&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>920896</commentid>
    <comment_count>2</comment_count>
      <attachid>209616</attachid>
    <who name="sheetanshu">sheetanshub</who>
    <bug_when>2013-08-25 23:54:34 -0700</bug_when>
    <thetext>Comment on attachment 209616
test case: dynamically change the visibility status to hidden, check the child element visibility status

&gt;
&gt;&lt;html&gt;
&gt;&lt;body&gt;
&gt;&lt;script type=&quot;text/javascript&quot;&gt;
&gt;function applyFocus()
&gt;{
&gt;	document.getElementById(&apos;menuId&apos;).focus();
&gt;}
&gt;&lt;/script&gt;
&gt;
&gt;&lt;body BGCOLOR=&quot;gray&quot;&gt;
&gt;&lt;script type=&quot;text/javascript&quot;&gt;
&gt;
&gt;setTimeout(disable,2000);
&gt;	
&gt;function disable()
&gt;{
&gt;	document.getElementById(&quot;parentDiv&quot;).style.visibility=&quot;hidden&quot;
&gt;	alert(&quot;parentDiv visibility status:&quot; + parentDiv.style.visibility);
&gt;	alert(&quot;mySelect visibility status:&quot; + childDiv.style.visibility);	
&gt;}  
&gt;
&gt;&lt;/script&gt;
&gt;
&gt;&lt;form&gt;
&gt;&lt;div id=&quot;parentDiv&quot; style=&quot;position:absolute; left:100; top:100;&quot;&gt;
&gt;	&lt;textarea id =&quot;childDiv&quot; rows=&quot;4&quot; cols=&quot;50&quot; &gt;Edit here ..
&gt;    &lt;/textarea&gt;
&gt;&lt;/div&gt;
&gt;
&gt;&lt;br /&gt;
&gt;    &lt;p&gt;The above text area will be disbled after 2 secs..&lt;/p&gt;
&gt;&lt;/body&gt;
&gt;&lt;/html&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>920897</commentid>
    <comment_count>3</comment_count>
      <attachid>209617</attachid>
    <who name="sheetanshu">sheetanshub</who>
    <bug_when>2013-08-25 23:57:02 -0700</bug_when>
    <thetext>Created attachment 209617
child visibility status should be &apos;inherit&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>920995</commentid>
    <comment_count>4</comment_count>
      <attachid>209616</attachid>
    <who name="sheetanshu">sheetanshub</who>
    <bug_when>2013-08-26 06:30:30 -0700</bug_when>
    <thetext>Comment on attachment 209616
test case: dynamically change the visibility status to hidden, check the child element visibility status

Obsolete</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1872819</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-05-30 14:50:04 -0700</bug_when>
    <thetext>I just tested this with Safari 15.5 and also with Chrome Canary 104 and Firefox Nightly 102, all browsers behave same across the attached test case. Should this be more of spec clarity issue rather than browser implementation issue to have desired result? Thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>209616</attachid>
            <date>2013-08-25 23:35:52 -0700</date>
            <delta_ts>2013-08-26 06:30:30 -0700</delta_ts>
            <desc>test case: dynamically change the visibility status to hidden, check the child element visibility status</desc>
            <filename>testCase.htm</filename>
            <type>text/html</type>
            <size>723</size>
            <attacher name="sheetanshu">sheetanshub</attacher>
            
              <data encoding="base64">DQo8aHRtbD4NCjxib2R5Pg0KPHNjcmlwdCB0eXBlPSJ0ZXh0L2phdmFzY3JpcHQiPg0KZnVuY3Rp
b24gYXBwbHlGb2N1cygpDQp7DQoJZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ21lbnVJZCcpLmZv
Y3VzKCk7DQp9DQo8L3NjcmlwdD4NCg0KPGJvZHkgQkdDT0xPUj0iZ3JheSI+DQo8c2NyaXB0IHR5
cGU9InRleHQvamF2YXNjcmlwdCI+DQoNCnNldFRpbWVvdXQoZGlzYWJsZSwyMDAwKTsNCgkNCmZ1
bmN0aW9uIGRpc2FibGUoKQ0Kew0KCWRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJwYXJlbnREaXYi
KS5zdHlsZS52aXNpYmlsaXR5PSJoaWRkZW4iDQoJYWxlcnQoInBhcmVudERpdiB2aXNpYmlsaXR5
IHN0YXR1czoiICsgcGFyZW50RGl2LnN0eWxlLnZpc2liaWxpdHkpOw0KCWFsZXJ0KCJteVNlbGVj
dCB2aXNpYmlsaXR5IHN0YXR1czoiICsgbXlTZWxlY3Quc3R5bGUudmlzaWJpbGl0eSk7CQ0KfSAg
DQoNCjwvc2NyaXB0Pg0KDQo8Zm9ybT4NCjxkaXYgaWQ9InBhcmVudERpdiIgc3R5bGU9InBvc2l0
aW9uOmFic29sdXRlOyBsZWZ0OjEwMDsgdG9wOjEwMDsiPg0KCTx0ZXh0YXJlYSBpZCA9ImNoaWxk
RGl2IiByb3dzPSI0IiBjb2xzPSI1MCIgPkVkaXQgaGVyZSAuLg0KICAgIDwvdGV4dGFyZWE+DQo8
L2Rpdj4NCg0KPGJyIC8+DQogICAgPHA+VGhlIGFib3ZlIHRleHQgYXJlYSB3aWxsIGJlIGRpc2Js
ZWQgYWZ0ZXIgMiBzZWNzLi48L3A+DQo8L2JvZHk+DQo8L2h0bWw+
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>209617</attachid>
            <date>2013-08-25 23:57:02 -0700</date>
            <delta_ts>2013-08-25 23:57:02 -0700</delta_ts>
            <desc>child visibility status should be &apos;inherit&apos;</desc>
            <filename>updatedTestCase.htm</filename>
            <type>text/html</type>
            <size>723</size>
            <attacher name="sheetanshu">sheetanshub</attacher>
            
              <data encoding="base64">DQo8aHRtbD4NCjxib2R5Pg0KPHNjcmlwdCB0eXBlPSJ0ZXh0L2phdmFzY3JpcHQiPg0KZnVuY3Rp
b24gYXBwbHlGb2N1cygpDQp7DQoJZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ21lbnVJZCcpLmZv
Y3VzKCk7DQp9DQo8L3NjcmlwdD4NCg0KPGJvZHkgQkdDT0xPUj0iZ3JheSI+DQo8c2NyaXB0IHR5
cGU9InRleHQvamF2YXNjcmlwdCI+DQoNCnNldFRpbWVvdXQoZGlzYWJsZSwyMDAwKTsNCgkNCmZ1
bmN0aW9uIGRpc2FibGUoKQ0Kew0KCWRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJwYXJlbnREaXYi
KS5zdHlsZS52aXNpYmlsaXR5PSJoaWRkZW4iDQoJYWxlcnQoInBhcmVudERpdiB2aXNpYmlsaXR5
IHN0YXR1czoiICsgcGFyZW50RGl2LnN0eWxlLnZpc2liaWxpdHkpOw0KCWFsZXJ0KCJteVNlbGVj
dCB2aXNpYmlsaXR5IHN0YXR1czoiICsgY2hpbGREaXYuc3R5bGUudmlzaWJpbGl0eSk7CQ0KfSAg
DQoNCjwvc2NyaXB0Pg0KDQo8Zm9ybT4NCjxkaXYgaWQ9InBhcmVudERpdiIgc3R5bGU9InBvc2l0
aW9uOmFic29sdXRlOyBsZWZ0OjEwMDsgdG9wOjEwMDsiPg0KCTx0ZXh0YXJlYSBpZCA9ImNoaWxk
RGl2IiByb3dzPSI0IiBjb2xzPSI1MCIgPkVkaXQgaGVyZSAuLg0KICAgIDwvdGV4dGFyZWE+DQo8
L2Rpdj4NCg0KPGJyIC8+DQogICAgPHA+VGhlIGFib3ZlIHRleHQgYXJlYSB3aWxsIGJlIGRpc2Js
ZWQgYWZ0ZXIgMiBzZWNzLi48L3A+DQo8L2JvZHk+DQo8L2h0bWw+
</data>

          </attachment>
      

    </bug>

</bugzilla>