<?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>145874</bug_id>
          
          <creation_ts>2015-06-10 22:54:58 -0700</creation_ts>
          <short_desc>@supports parse error with the filter property when no parameter is specified</short_desc>
          <delta_ts>2021-09-11 00:42:12 -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>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philippe Wittenbergh">phiw2</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>benjamin</cc>
    
    <cc>chrisjshull</cc>
    
    <cc>jh718.park</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1101232</commentid>
    <comment_count>0</comment_count>
      <attachid>254708</attachid>
    <who name="Philippe Wittenbergh">phiw2</who>
    <bug_when>2015-06-10 22:54:58 -0700</bug_when>
    <thetext>Created attachment 254708
test case

@supports (filter:blur()) or (-webkit-filter: blur()) { /* do something */ } is parsed as valid by Webkit but not by Firefox (the rules inside the `@supports` block are applied by Webkit nightly builds). Note the missing parameter for the  blur value.

Chromium based browsers appear to suffer from the same issue (tested with Opera 30).

Note: 
1. Webkit handles this correctly for `@supports (transform:scale()) {}` and ignores everything inside the @supports block.
2. -webkit-backdrop-filter: blur() is also affected</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1103676</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Wittenbergh">phiw2</who>
    <bug_when>2015-06-20 18:25:36 -0700</bug_when>
    <thetext>Well, after multiple readings of the relevant spec [1], I think I’m wrong – and Webkit (+ Blink) is correct.

filter: blur() or filter: grayscale(), etc without a parameter is actually valid per the mentioned spec. The spec mentions - quote (for blur()): “The lacuna value for interpolation is…”. The word ‘lacuna’ apparently refers to ‘missing parameter’. I had to ask two native English speakers for this; the relevant MDN article [2] confirms this reading (“If no parameter is provided, then a value 0 is used”). By extension @supports (filter: blur()) [or other filters] should parse as valid (prefixed atm of course).

[1] http://www.w3.org/TR/filter-effects/#FilterProperty
[2] https://developer.mozilla.org/en-US/docs/Web/CSS/filter</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1792663</commentid>
    <comment_count>2</comment_count>
    <who name="Joonghun Park">jh718.park</who>
    <bug_when>2021-09-11 00:42:12 -0700</bug_when>
    <thetext>Per the bug reporter&apos;s comment, close this bug as non-issue.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>254708</attachid>
            <date>2015-06-10 22:54:58 -0700</date>
            <delta_ts>2015-06-10 22:54:58 -0700</delta_ts>
            <desc>test case</desc>
            <filename>webkit-at-support-error.html</filename>
            <type>text/html</type>
            <size>449</size>
            <attacher name="Philippe Wittenbergh">phiw2</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIiBkaXI9Imx0ciI+CjxoZWFkPgo8bWV0YSBj
aGFyc2V0PSJ1dGYtOCI+Cjx0aXRsZT50ZXN0PC90aXRsZT4KPG1ldGEgbmFtZT0idmlld3BvcnQi
IGNvbnRlbnQ9IndpZHRoPWRldmljZS13aWR0aCwgaW5pdGlhbC1zY2FsZT0xIj4KPHN0eWxlIHR5
cGU9InRleHQvY3NzIj4KZGl2IHsKCXdpZHRoOiAxMDBweDsKCWhlaWdodDogMTAwcHg7CgliYWNr
Z3JvdW5kOiBncmVlbjsKfQpAc3VwcG9ydHMgKGZpbHRlcjpibHVyKCkpIG9yICgtd2Via2l0LWZp
bHRlcjogYmx1cigpKSB7CglkaXYgeyBiYWNrZ3JvdW5kOiByZWQ7IH0KfQo8L3N0eWxlPgoKPC9o
ZWFkPgo8Ym9keT4KCTxwPiBUaGVyZSBzaG91bGQgYmUgYSBncmVlbiBzcXVhcmUgYmVsb3cgKGFu
ZCBub3QgYSByZWQgb25lKSA8cD4KCjxkaXY+PC9kaXY+Cgo8L2JvZHk+CjwvaHRtbD4=
</data>

          </attachment>
      

    </bug>

</bugzilla>