Bug 194486

Summary: [css-env] WebKit exposes a number of non-standard built-in env() variables
Product: WebKit Reporter: Mats Palmgren <MatsPalmgren_bugz>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Major CC: ahmad.saleem792, ap, bfulgham, dino, eric.carlson, gsnedders, jer.noble, jonlee, karlcow, ntim, rniwa, simon.fraser, thorton, webkit-bug-importer, zalan
Priority: P2 Keywords: BrowserCompat, InRadar
Version: Safari 12   
Hardware: All   
OS: All   
Attachments:
Description Flags
Testcase none

Mats Palmgren
Reported 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/
Attachments
Testcase (173 bytes, text/html)
2019-02-10 16:37 PST, Mats Palmgren
no flags
Radar WebKit Bug Importer
Comment 1 2019-02-12 15:57:50 PST
Tim Horton
Comment 2 2019-02-12 16:01:03 PST
This bug is referring to the fullscreen constants.
Dean Jackson
Comment 3 2019-02-12 16:13:50 PST
We should submit these to a standards body. Although, I'm not sure anyone is using them.
Ahmad Saleem
Comment 4 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!
Note You need to log in before you can comment on or make changes to this bug.