<?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>200803</bug_id>
          
          <creation_ts>2019-08-15 17:39:22 -0700</creation_ts>
          <short_desc>Applying dynamic styling via :host causes shadow elements to render improperly</short_desc>
          <delta_ts>2020-03-26 13:18:15 -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 12</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <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>
          
          <blocked>148695</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Jan Miksovsky">jan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>emilio</cc>
    
    <cc>graouts</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>1561855</commentid>
    <comment_count>0</comment_count>
      <attachid>376451</attachid>
    <who name="Jan Miksovsky">jan</who>
    <bug_when>2019-08-15 17:39:22 -0700</bug_when>
    <thetext>Created attachment 376451
Repro case for bug

We&apos;ve seen a regression in a recent Safari release (not sure when it occurred) that prevents a web component of ours from rendering properly in response to user interaction.

We&apos;ve isolated a minimum repro case at https://jsbin.com/xariwib/edit?html,output (or see attachment).

Expect: Clicking the buttons in the demo toggles their &quot;selected&quot; class, which ends up applying :host styling to show their selection state. This works as expected in Chrome and Firefox.

Actual: in Safari 12+, the buttons begin to move or disappear.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1562420</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-08-16 22:34:41 -0700</bug_when>
    <thetext>&lt;rdar://problem/54420420&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1577503</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2019-10-07 14:08:08 -0700</bug_when>
    <thetext>I can still reproduce this with trunk WebKit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1634523</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2020-03-26 13:18:15 -0700</bug_when>
    <thetext>This appears to be fixed now (as of Safari 13.1)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>376451</attachid>
            <date>2019-08-15 17:39:22 -0700</date>
            <delta_ts>2019-08-15 17:39:22 -0700</delta_ts>
            <desc>Repro case for bug</desc>
            <filename>webkitHostRenderRepro.html</filename>
            <type>text/html</type>
            <size>1152</size>
            <attacher name="Jan Miksovsky">jan</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KICA8aGVhZD4KICAgIDxtZXRhIGNoYXJz
ZXQ9InV0Zi04Ij4KICAgIDx0aXRsZT5SZXBhaW50IGlzc3VlcyB1c2luZyA6aG9zdCBzdHlsaW5n
PC90aXRsZT4KICAgIDxzY3JpcHQgdHlwZT0ibW9kdWxlIj4KICAgICAgY2xhc3MgTXlFbGVtZW50
IGV4dGVuZHMgSFRNTEVsZW1lbnQgewogICAgICAgIGNvbnN0cnVjdG9yKCkgewogICAgICAgICAg
c3VwZXIoKTsKICAgICAgICAgIHRoaXMuYXR0YWNoU2hhZG93KHsgbW9kZTogJ29wZW4nIH0pOwog
ICAgICAgICAgdGhpcy5zaGFkb3dSb290LmlubmVySFRNTCA9IGAKICAgICAgICAgICAgPHN0eWxl
PgogICAgICAgICAgICAgICNpbm5lciB7CiAgICAgICAgICAgICAgICBjb2xvcjogaW5oZXJpdDsK
ICAgICAgICAgICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgICAgICAgICB9CiAgICAg
IAogICAgICAgICAgICAgIDpob3N0KC5zZWxlY3RlZCkgewogICAgICAgICAgICAgICAgY29sb3I6
IGRvZGdlcmJsdWU7CiAgICAgICAgICAgICAgICB6LWluZGV4OiAxOwogICAgICAgICAgICAgIH0K
ICAgICAgICAgICAgPC9zdHlsZT4KICAgICAgICAgICAgPGJ1dHRvbiBpZD0iaW5uZXIiPgogICAg
ICAgICAgICAgIDxzbG90Pjwvc2xvdD4KICAgICAgICAgICAgPC9idXR0b24+CiAgICAgICAgICBg
OwogICAgICAgICAgdGhpcy5hZGRFdmVudExpc3RlbmVyKCdjbGljaycsICgpID0+IHsKICAgICAg
ICAgICAgdGhpcy5jbGFzc0xpc3QudG9nZ2xlKCdzZWxlY3RlZCcpOwogICAgICAgICAgfSk7CiAg
ICAgICAgfQogICAgICB9CiAgICAgIGN1c3RvbUVsZW1lbnRzLmRlZmluZSgnbXktZWxlbWVudCcs
IE15RWxlbWVudCk7ICAgIAogICAgPC9zY3JpcHQ+CiAgPC9oZWFkPgogIDxib2R5PgogICAgPHA+
CiAgICAgIENsaWNrIHRoZSBidXR0b25zIHRvIHRvZ2dsZSB0aGVpciBjb2xvci4gSW4gU2FmYXJp
LCB0aGV5IGJlZ2luIHRvIG1vdmUgYXJvdW5kIG9yIGRpc2FwcGVhci4KICAgIDwvcD4KICAgIDxk
aXYgc3R5bGU9ImRpc3BsYXk6IGdyaWQ7Ij4KICAgICAgPG15LWVsZW1lbnQ+T25lPC9teS1lbGVt
ZW50PgogICAgICA8bXktZWxlbWVudD5Ud288L215LWVsZW1lbnQ+CiAgICA8L2Rpdj4KICA8L2Jv
ZHk+CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>