Bug 194486 - [css-env] WebKit exposes a number of non-standard built-in env() variables
Summary: [css-env] WebKit exposes a number of non-standard built-in env() variables
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari 12
Hardware: All All
: P2 Major
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2019-02-10 16:37 PST by Mats Palmgren
Modified: 2023-11-28 14:58 PST (History)
15 users (show)

See Also:


Attachments
Testcase (173 bytes, text/html)
2019-02-10 16:37 PST, Mats Palmgren
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mats Palmgren 2019-02-10 16:37:46 PST
Created attachment 361651 [details]
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.
"Additional UA-defined environment variables *must not* be supported unless/until they are added to this list."

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/
Comment 1 Radar WebKit Bug Importer 2019-02-12 15:57:50 PST
<rdar://problem/48019166>
Comment 2 Tim Horton 2019-02-12 16:01:03 PST
This bug is referring to the fullscreen constants.
Comment 3 Dean Jackson 2019-02-12 16:13:50 PST
We should submit these to a standards body. Although, I'm not sure anyone is using them.
Comment 4 Ahmad Saleem 2022-08-20 17:20:57 PDT
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 'x' but not within box etc., while all other browsers (Chrome Canary 106 and Firefox Nightly 105) show "green rectangle" around 'x'. Thanks!