<?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>169706</bug_id>
          
          <creation_ts>2017-03-15 15:37:51 -0700</creation_ts>
          <short_desc>Shadow element styles based on host attributes do not update</short_desc>
          <delta_ts>2017-05-08 18:35:24 -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>DOM</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>macOS 10.12</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>170762</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jan Miksovsky">jan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cdumez</cc>
    
    <cc>koivisto</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1288289</commentid>
    <comment_count>0</comment_count>
    <who name="Jan Miksovsky">jan</who>
    <bug_when>2017-03-15 15:37:51 -0700</bug_when>
    <thetext>See http://jsbin.com/gubocem/edit?html,output

Expect: Clicking the indicated element updates its `toggle` attribute, which should in turn apply a style rule changing the background color. This works as expected in Chrome.

Actual: Clicking the element updates the attribute, but not the style. Using the inspector to manually disable the rule for `background` and re-enable it causes the rule to be applied as expected.

We&apos;ve encountered various flavors of this bug before: https://bugs.webkit.org/show_bug.cgi?id=112869 and https://bugs.webkit.org/show_bug.cgi?id=158900.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1288404</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-03-15 19:23:46 -0700</bug_when>
    <thetext>&lt;rdar://problem/31080691&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1306173</commentid>
    <comment_count>2</comment_count>
      <attachid>309447</attachid>
    <who name="Jan Miksovsky">jan</who>
    <bug_when>2017-05-08 17:35:10 -0700</bug_when>
    <thetext>Created attachment 309447
Repro case

Adding the repro case as an attachment, as jsbin.com seems to be down/flaky.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1306192</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2017-05-08 18:35:24 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 170762 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>309447</attachid>
            <date>2017-05-08 17:35:10 -0700</date>
            <delta_ts>2017-05-08 17:35:10 -0700</delta_ts>
            <desc>Repro case</desc>
            <filename>webkitRecalcHostStyles.html</filename>
            <type>text/html</type>
            <size>1349</size>
            <attacher name="Jan Miksovsky">jan</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KPGhlYWQ+CgogIDxtZXRhIGNoYXJzZXQ9
InV0Zi04Ij4KICA8bWV0YSBuYW1lPSJ2aWV3cG9ydCIgY29udGVudD0id2lkdGg9ZGV2aWNlLXdp
ZHRoLGluaXRpYWwtc2NhbGU9MSI+CiAgPHRpdGxlPkNoYW5nZXMgaW4gc3R5bGVzIGJhc2VkIG9u
IGhvc3QgYXR0cmlidXRlcyBub3QgcGlja2VkIHVwPC90aXRsZT4KCiAgPHNjcmlwdD4KICAgIGNs
YXNzIFRlc3RFbGVtZW50IGV4dGVuZHMgSFRNTEVsZW1lbnQgewoKICAgICAgY29uc3RydWN0b3Io
KSB7CiAgICAgICAgc3VwZXIoKTsKICAgICAgICBjb25zdCByb290ID0gdGhpcy5hdHRhY2hTaGFk
b3coeyBtb2RlOiAnb3BlbicgfSk7CiAgICAgICAgcm9vdC5pbm5lckhUTUwgPSBgCiAgICAgICAg
ICA8c3R5bGU+CiAgICAgICAgICAgIDpob3N0IHsKICAgICAgICAgICAgICBib3JkZXI6IDFweCBz
b2xpZCBncmF5OwogICAgICAgICAgICAgIGN1cnNvcjogcG9pbnRlcjsKICAgICAgICAgICAgICBk
aXNwbGF5OiBpbmxpbmUtYmxvY2s7CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgICNjb250YWlu
ZXIgewogICAgICAgICAgICAgIHBhZGRpbmc6IDAuNWVtOwogICAgICAgICAgICB9CgogICAgICAg
ICAgICA6aG9zdChbdG9nZ2xlXSkgI2NvbnRhaW5lciB7CiAgICAgICAgICAgICAgYmFja2dyb3Vu
ZDogcGluazsKICAgICAgICAgICAgfQogICAgICAgICAgPC9zdHlsZT4KICAgICAgICAgIDxkaXYg
aWQ9ImNvbnRhaW5lciI+CiAgICAgICAgICAgIDxzbG90Pjwvc2xvdD4KICAgICAgICAgIDwvZGl2
PgogICAgICAgIGA7CgogICAgICAgIHRoaXMuYWRkRXZlbnRMaXN0ZW5lcignY2xpY2snLCAoKSA9
PiB7CiAgICAgICAgICBjb25zdCBhdHRyaWJ1dGVOYW1lID0gJ3RvZ2dsZSc7CiAgICAgICAgICBp
ZiAodGhpcy5nZXRBdHRyaWJ1dGUoYXR0cmlidXRlTmFtZSkgIT09IG51bGwpIHsKICAgICAgICAg
ICAgdGhpcy5yZW1vdmVBdHRyaWJ1dGUoYXR0cmlidXRlTmFtZSk7CiAgICAgICAgICB9IGVsc2Ug
ewogICAgICAgICAgICB0aGlzLnNldEF0dHJpYnV0ZShhdHRyaWJ1dGVOYW1lLCAnJyk7CiAgICAg
ICAgICB9CiAgICAgICAgfSk7CiAgICAgIH0KCiAgICB9CiAgICBjdXN0b21FbGVtZW50cy5kZWZp
bmUoJ3Rlc3QtZWxlbWVudCcsIFRlc3RFbGVtZW50KTsKICA8L3NjcmlwdD4KCjwvaGVhZD4KCjxi
b2R5PgogIDxwPgogICAgQ2xpY2tpbmcgdGhlIGVsZW1lbnQgYmVsb3cgc2hvdWxkIHRvZ2dsZSBp
dHMgYmFja2dyb3VuZCBjb2xvci4KICA8L3A+CiAgPHRlc3QtZWxlbWVudD4KICAgIDxkaXY+Q2xp
Y2sgbWU8L2Rpdj4KICA8L3Rlc3QtZWxlbWVudD4KPC9ib2R5Pgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>