Bug 177371

Summary: Add env() as an alias of constant()
Product: WebKit Reporter: Tim Horton <thorton>
Component: New BugsAssignee: Tim Horton <thorton>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, dino, joepeck, jonlee, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

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
Patch (15.33 KB, patch)
2017-09-22 11:48 PDT, Tim Horton
no flags
Patch (16.21 KB, patch)
2017-09-22 12:30 PDT, Tim Horton
no flags
Tim Horton
Comment 1 2017-09-22 11:35:45 PDT
Radar WebKit Bug Importer
Comment 2 2017-09-22 11:36:57 PDT
Tim Horton
Comment 3 2017-09-22 11:48:56 PDT
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
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.