WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
177371
Add env() as an alias of constant()
https://bugs.webkit.org/show_bug.cgi?id=177371
Summary
Add env() as an alias of constant()
Tim Horton
Reported
2017-09-22 11:35:16 PDT
Add env() as an alias of constant()
Attachments
Patch
(7.80 KB, patch)
2017-09-22 11:35 PDT
,
Tim Horton
no flags
Details
Formatted Diff
Diff
Patch
(15.33 KB, patch)
2017-09-22 11:48 PDT
,
Tim Horton
no flags
Details
Formatted Diff
Diff
Patch
(16.21 KB, patch)
2017-09-22 12:30 PDT
,
Tim Horton
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Tim Horton
Comment 1
2017-09-22 11:35:45 PDT
Created
attachment 321570
[details]
Patch
Radar WebKit Bug Importer
Comment 2
2017-09-22 11:36:57 PDT
<
rdar://problem/34599168
>
Tim Horton
Comment 3
2017-09-22 11:48:56 PDT
Created
attachment 321571
[details]
Patch
Joseph Pecoraro
Comment 4
2017-09-22 11:56:48 PDT
Comment on
attachment 321571
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=321571&action=review
Inspector parts look good to me.
> Source/WebInspectorUI/UserInterface/Models/CSSKeywordCompletions.js:71 > + else if (functionName === "constant" || functionName == "env")
Please add this as well, so that `env()` gets syntax highlighted like `var()` / `constant()` do. diff --git a/Source/WebInspectorUI/UserInterface/Models/CSSCompletions.js b/Source/WebInspectorUI/UserInterface/Models/CSSCompletions.js index 56860424e21..434f841c6a1 100644 --- a/Source/WebInspectorUI/UserInterface/Models/CSSCompletions.js +++ b/Source/WebInspectorUI/UserInterface/Models/CSSCompletions.js @@ -97,7 +97,7 @@ WI.CSSCompletions = class CSSCompletions return; var propertyNamesForCodeMirror = {}; - var valueKeywordsForCodeMirror = {"inherit": true, "initial": true, "unset": true, "revert": true, "var": true, "constant": true}; + var valueKeywordsForCodeMirror = {"inherit": true, "initial": true, "unset": true, "revert": true, "var": true, "constant": true, "env": true}; var colorKeywordsForCodeMirror = {}; function nameForCodeMirror(name)
Tim Horton
Comment 5
2017-09-22 12:30:10 PDT
Created
attachment 321578
[details]
Patch
Simon Fraser (smfr)
Comment 6
2017-09-22 12:58:01 PDT
Comment on
attachment 321578
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=321578&action=review
> LayoutTests/TestExpectations:38 > +fast/css/variables/env/ios [ Skip ]
Hmm this is pretty sad. Maybe we should have some testing-specific env values?
Tim Horton
Comment 7
2017-09-22 13:02:05 PDT
(In reply to Simon Fraser (smfr) from
comment #6
)
> Comment on
attachment 321578
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=321578&action=review
> > > LayoutTests/TestExpectations:38 > > +fast/css/variables/env/ios [ Skip ] > > Hmm this is pretty sad. Maybe we should have some testing-specific env > values?
This only skips 1/4 tests. But yes, we should have further coverage with more types and non-zero values.
WebKit Commit Bot
Comment 8
2017-09-22 13:15:19 PDT
Comment on
attachment 321578
[details]
Patch Clearing flags on attachment: 321578 Committed
r222402
: <
http://trac.webkit.org/changeset/222402
>
WebKit Commit Bot
Comment 9
2017-09-22 13:15:20 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug