<?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>174704</bug_id>
          
          <creation_ts>2017-07-20 20:10:17 -0700</creation_ts>
          <short_desc>`inherit` breaks when parent element has Shadow Root</short_desc>
          <delta_ts>2022-07-15 14:27:06 -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>Safari 10</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>macOS 10.12</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc>https://codepen.io/bedeoverend/pen/qjeJRY</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>148695</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Bede Overend">bede.overend</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>koivisto</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1330902</commentid>
    <comment_count>0</comment_count>
      <attachid>316062</attachid>
    <who name="Bede Overend">bede.overend</who>
    <bug_when>2017-07-20 20:10:17 -0700</bug_when>
    <thetext>Created attachment 316062
HTML file reproducing inherit bug

When an element has a style property set to `inherit`, the `inherit` doesn&apos;t appear to be applied if the parent element has a Shadow Root. Note that it&apos;s only if that property by default does is not `inherit` e.g. `border` whereas something like color is inherited fine.

Other elements which match the same style selector rules seem to also break, even when their parent does not have a Shadow Root, however is fixed when re-applying styles (perhaps just triggering a redraw?)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1884222</commentid>
    <comment_count>1</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-15 14:25:49 -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>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>316062</attachid>
            <date>2017-07-20 20:10:17 -0700</date>
            <delta_ts>2017-07-20 20:10:17 -0700</delta_ts>
            <desc>HTML file reproducing inherit bug</desc>
            <filename>index.html</filename>
            <type>text/html</type>
            <size>815</size>
            <attacher name="Bede Overend">bede.overend</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KICA8bWV0YSBjaGFyc2V0PSJ1dGYtOCI+CiAg
PG1ldGEgbmFtZT0idmlld3BvcnQiIGNvbnRlbnQ9IndpZHRoPWRldmljZS13aWR0aCI+CiAgPHRp
dGxlPkpTIEJpbjwvdGl0bGU+CiAgPHN0eWxlPgogIAlkaXYgewoJCSAgY29sb3I6IGJsdWU7CgkJ
ICBib3JkZXI6IHNvbGlkIGJsdWUgdGhpbjsKCQkgIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMCwg
MjU1LCAwLCAwLjIpOwoJCX0KCgkJZGl2ICogewoJCSAgYm9yZGVyOiBpbmhlcml0OwoJCSAgYmFj
a2dyb3VuZC1jb2xvcjogaW5oZXJpdDsKCQl9Cgk8L3N0eWxlPgo8L2hlYWQ+Cjxib2R5PgoJPGRp
diBpZD0ic2hhZG93Ij4KCSAgPGgxPk15IHBhcmVudCBoYXMgYSBTaGFkb3cgUm9vdDwvaDE+Cgk8
L2Rpdj4KCgk8ZGl2IGlkPSJuby1zaGFkb3ciPgoJICA8aDE+TXkgcGFyZW50IGhhcyBubyBTaGFk
b3cg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