<?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>201336</bug_id>
          
          <creation_ts>2019-08-30 03:58:07 -0700</creation_ts>
          <short_desc>CSS invert() filter does not apply to the body element</short_desc>
          <delta_ts>2023-09-20 16:47:44 -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 12</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=261806</see_also>
          <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="Nicholas Shanks">nickshanks</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1566622</commentid>
    <comment_count>0</comment_count>
      <attachid>377697</attachid>
    <who name="Nicholas Shanks">nickshanks</who>
    <bug_when>2019-08-30 03:58:07 -0700</bug_when>
    <thetext>Created attachment 377697
Reduction

When the BODY element is selected, the CSS invert() filter does not get applied.

Changing the CSS selector to &quot;:root&quot;, &quot;html&quot;, &quot;h1&quot;, or &quot;p&quot; applies the filter to the selected element; changing the selector to &quot;:root&gt;*&quot; or &quot;html&gt;*&quot; does not apply the filter, i.e. it is the matched element, not the selector used, that is causing the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1566682</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-08-30 09:19:30 -0700</bug_when>
    <thetext>&lt;rdar://problem/54884371&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>377697</attachid>
            <date>2019-08-30 03:58:07 -0700</date>
            <delta_ts>2019-08-30 03:58:07 -0700</delta_ts>
            <desc>Reduction</desc>
            <filename>invert-body-element-reduction.html</filename>
            <type>text/html</type>
            <size>308</size>
            <attacher name="Nicholas Shanks">nickshanks</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUw+Cjx0aXRsZT5UZXN0IGNhc2UgZm9yIGNhbGxpbmcgQ1NTIGludmVydCgp
IGZ1bmN0aW9uIG9uIGJvZHkgZWxlbWVudDwvdGl0bGU+CjxzdHlsZT5ib2R5e2JhY2tncm91bmQ6
cmVkO2NvbG9yOnZpb2xldDtmaWx0ZXI6aW52ZXJ0KDEpfTwvc3R5bGU+CjxoMT5UZXN0IGNhc2Ug
Zm9yIGNhbGxpbmcgQ1NTIGludmVydCgpIGZ1bmN0aW9uIG9uIGJvZHkgZWxlbWVudDwvaDE+Cgo8
cD5mb3JlZ3JvdW5kIGNvbG91ciBzaG91bGQgYmUgZ3JlZW48L3A+CjxwPmJhY2tncm91bmQgY29s
b3VyIHNob3VsZCBiZSBjeWFuPC9wPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>