<?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>194486</bug_id>
          
          <creation_ts>2019-02-10 16:37:46 -0800</creation_ts>
          <short_desc>[css-env] WebKit exposes a number of non-standard built-in env() variables</short_desc>
          <delta_ts>2023-11-28 14:58:13 -0800</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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mats Palmgren">MatsPalmgren_bugz</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>dino</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>gsnedders</cc>
    
    <cc>jer.noble</cc>
    
    <cc>jonlee</cc>
    
    <cc>karlcow</cc>
    
    <cc>ntim</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1504758</commentid>
    <comment_count>0</comment_count>
      <attachid>361651</attachid>
    <who name="Mats Palmgren">MatsPalmgren_bugz</who>
    <bug_when>2019-02-10 16:37:46 -0800</bug_when>
    <thetext>Created attachment 361651
Testcase

It appears that WebKit exposes a number of built-in env() variables[1] that
are not in the css-env specification[2].

The specification says that any UA that implements env() has a mandatory
requirement to not expose additional variables to the web.
&quot;Additional UA-defined environment variables *must not* be supported unless/until they are added to this list.&quot;

The attached testcase fails in Safari 12.0.1.  This makes it a non-compliant UA.

Please unship these variables, or write up a specification for what they do
and bring it to the CSSWG for standardization.

Thanks.

[1]
https://github.com/WebKit/webkit/blob/master/Source/WebCore/dom/ConstantPropertyMap.cpp#L57-L61

[2]
https://drafts.csswg.org/css-env-1/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1505458</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-02-12 15:57:50 -0800</bug_when>
    <thetext>&lt;rdar://problem/48019166&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1505462</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2019-02-12 16:01:03 -0800</bug_when>
    <thetext>This bug is referring to the fullscreen constants.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1505475</commentid>
    <comment_count>3</comment_count>
    <who name="Dean Jackson">dino</who>
    <bug_when>2019-02-12 16:13:50 -0800</bug_when>
    <thetext>We should submit these to a standards body. Although, I&apos;m not sure anyone is using them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1892742</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-20 17:20:57 -0700</bug_when>
    <thetext>I am able to reproduce this bug using attached test case on Safari 15.6.1 and Safari Technology Preview 151 and it just show &apos;x&apos; but not within box etc., while all other browsers (Chrome Canary 106 and Firefox Nightly 105) show &quot;green rectangle&quot; around &apos;x&apos;. Thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>361651</attachid>
            <date>2019-02-10 16:37:46 -0800</date>
            <delta_ts>2019-02-10 16:37:46 -0800</delta_ts>
            <desc>Testcase</desc>
            <filename>env.html</filename>
            <type>text/html</type>
            <size>173</size>
            <attacher name="Mats Palmgren">MatsPalmgren_bugz</attacher>
            
              <data encoding="base64">PHN0eWxlPgpkaXYgewogIHdpZHRoOiBlbnYoZnVsbHNjcmVlbi1pbnNldC10b3AsIDEwMHB4KTsK
ICBib3JkZXI6IDFweCBzb2xpZDsKICBiYWNrZ3JvdW5kOiBncmVlbjsKfQo8L3N0eWxlPgo8cHJl
PlBBU1MgaWYgdGhlIGJveCBiZWxvdyBoYXMgMTAwcHggd2lkdGguPC9wcmU+CjxkaXY+eDwvZGl2
Pgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>