<?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>155782</bug_id>
          
          <creation_ts>2016-03-22 21:21:53 -0700</creation_ts>
          <short_desc>Some CSS Custom Properties do not recalculate when new stylesheet is added to DOM</short_desc>
          <delta_ts>2016-03-24 18:42:30 -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 9</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>OS X 10.11</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>154785</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="Daniel Freedman">dfreedm</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>eoconnor</cc>
    
    <cc>hyatt</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>1177270</commentid>
    <comment_count>0</comment_count>
    <who name="Daniel Freedman">dfreedm</who>
    <bug_when>2016-03-22 21:21:53 -0700</bug_when>
    <thetext>If a stylesheet is added to the DOM dynamically, and it defines a CSS Custom Property used in another rule for the border property, it does not apply the border effect.

Steps to reproduce
1. Load attached css-vars-late-style.html in Safari 9.1
2. Note that the element with text content &quot;Should be bordered&quot; does not have a border

Expected Results
Div with content &quot;Should be bordered&quot; should have a 10px solid green border.

Actual Results
Div is not bordered

Works in Chrome 49 and Firefox 45</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1177271</commentid>
    <comment_count>1</comment_count>
      <attachid>274726</attachid>
    <who name="Daniel Freedman">dfreedm</who>
    <bug_when>2016-03-22 21:22:19 -0700</bug_when>
    <thetext>Created attachment 274726
Minimal reproduction</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1177273</commentid>
    <comment_count>2</comment_count>
    <who name="Daniel Freedman">dfreedm</who>
    <bug_when>2016-03-22 21:24:58 -0700</bug_when>
    <thetext>After playing with it in the Dev Tools, setting display to none and back to block will trigger the correct effect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1177837</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2016-03-24 18:23:08 -0700</bug_when>
    <thetext>&lt;rdar://problem/25351781&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1177839</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2016-03-24 18:42:30 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 154785 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>274726</attachid>
            <date>2016-03-22 21:22:19 -0700</date>
            <delta_ts>2016-03-22 21:22:19 -0700</delta_ts>
            <desc>Minimal reproduction</desc>
            <filename>css-vars-late-style.html</filename>
            <type>text/html</type>
            <size>647</size>
            <attacher name="Daniel Freedman">dfreedm</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KICA8bWV0YSBjaGFyc2V0PSJ1dGYtOCI+CiAg
PG1ldGEgbmFtZT0idmlld3BvcnQiIGNvbnRlbnQ9IndpZHRoPWRldmljZS13aWR0aCI+CiAgPHRp
dGxlPkxhdGUgc3R5bGluZyBkb2VzIG5vdCBhcHBseSB2YXJpYWJsZXM8L3RpdGxlPgo8L2hlYWQ+
Cjxib2R5PgogIDxzdHlsZT4KICAgIC5jaGlsZCB7CiAgICAgIGJvcmRlcjogdmFyKC0tZ3JhbmQt
Y2hpbGQtc2NvcGUtdmFyKQogICAgfQogIDwvc3R5bGU+CiAgPHRlbXBsYXRlIGlkPSJ0Ij4KICAg
IDxzdHlsZT4KICAgICAgLnBhcmVudCB7CiAgICAgICAgLS1ncmFuZC1jaGlsZC1zY29wZS12YXI6
IDEwcHggc29saWQgZ3JlZW47CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC90ZW1wbGF0ZT4KICA8
ZGl2IGNsYXNzPSJwYXJlbnQiPgogICAgPGRpdiBjbGFzcz0iY2hpbGQiPlNob3VsZCBCZSBCb3Jk
ZXJlZDwvZGl2PgogIDwvZGl2PgogIDxzY3JpcHQ+CiAgICBhZGRFdmVudExpc3RlbmVyKCdsb2Fk
JywgZnVuY3Rpb24oKXsKICAgICAgdmFyIGZyYWcgPSB0LmNvbnRlbnQuY2xvbmVOb2RlKHRydWUp
OwogICAgICBkb2N1bWVudC5ib2R5LmFwcGVuZENoaWxkKGZyYWcpOwogICAgfSk7CiAgPC9zY3Jp
cHQ+CjwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>