Autocomplete CSS variables inside calc()
Categories
(DevTools :: Inspector: Rules, defect, P3)
Tracking
(firefox60 wontfix, firefox136 fixed)
People
(Reporter: Oriol, Assigned: nchevobbe)
References
(Blocks 3 open bugs)
Details
(Keywords: perf-alert)
Attachments
(1 file)
Updated•8 years ago
|
Updated•8 years ago
|
Updated•8 years ago
|
Updated•3 years ago
|
| Assignee | ||
Comment 1•2 years ago
|
||
At the moment, we're using a very simple heuristic for the autocompletion (we basically check for last space before cursor and have a regex for var)
We should use InspectorCSSParser instead, so we would have a better context of the currently edited function/token
| Assignee | ||
Comment 2•2 years ago
|
||
Using the parser allows us to have more context for building the suggestions.
For example, here, we can now autocomplete var() when it's inside another function,
and we can also avoid completion if we're in an unclosed css comment.
Test cases are added to cover those.
Updated•2 years ago
|
Comment 4•1 year ago
|
||
| bugherder | ||
Comment 5•1 year ago
|
||
(In reply to Pulsebot from comment #3)
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/df91a73ed334
[devtools] Use InspectorCSSParser to handle CSS value autocomplete.
r=devtools-reviewers,ochameau.
Perfherder has detected a talos performance change from push df91a73ed334d79870e9ef1379ededfa0f089eb6.
Improvements:
| Ratio | Test | Platform | Options | Absolute values (old vs new) |
|---|---|---|---|---|
| 6% | perf_reftest_singletons scrollbar-styles-1.html | linux1804-64-shippable-qr | e10s fission stylo webrender | 355.29 -> 335.67 |
Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests.
If you need the profiling jobs you can trigger them yourself from treeherder job view or ask a sheriff to do that for you.
You can run these tests on try with ./mach try perf --alert 43344
For more information on performance sheriffing please see our FAQ.
| Assignee | ||
Comment 6•1 year ago
|
||
(In reply to Acasandrei Beatrice (needinfo me) from comment #5)
(In reply to Pulsebot from comment #3)
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/df91a73ed334
[devtools] Use InspectorCSSParser to handle CSS value autocomplete.
r=devtools-reviewers,ochameau.Perfherder has detected a talos performance change from push df91a73ed334d79870e9ef1379ededfa0f089eb6.
Improvements:
Ratio Test Platform Options Absolute values (old vs new) 6% perf_reftest_singletons scrollbar-styles-1.html linux1804-64-shippable-qr e10s fission stylo webrender 355.29 -> 335.67 Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests.
If you need the profiling jobs you can trigger them yourself from treeherder job view or ask a sheriff to do that for you.
You can run these tests on try with
./mach try perf --alert 43344For more information on performance sheriffing please see our FAQ.
This patch only impacts the inspector, which shouldn't have any effect on perf_reftest , unless I'm missing something
Updated•1 year ago
|
Description
•