lighthouse 9.5.0-dev.20220509 → 9.5.0-dev.20220512

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -70,7 +70,9 @@ class ExperimentalInteractionToNextPaint extends Audit {
70
70
  return {score: null, notApplicable: true};
71
71
  }
72
72
 
73
- const timing = interactionEvent.args.data.duration;
73
+ // TODO: remove workaround once 103.0.5052.0 is sufficiently released.
74
+ const timing = interactionEvent.name === 'FallbackTiming' ?
75
+ interactionEvent.duration : interactionEvent.args.data.duration;
74
76
 
75
77
  return {
76
78
  score: Audit.computeLogNormalScore({p10: context.options.p10, median: context.options.median},
@@ -0,0 +1,280 @@
1
+ /**
2
+ * @license Copyright 2022 The Lighthouse Authors. All Rights Reserved.
3
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
4
+ * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
5
+ */
6
+ 'use strict';
7
+
8
+ const Audit = require('./audit.js');
9
+ const ComputedResponsivenes = require('../computed/metrics/responsiveness.js');
10
+ const ProcessedTrace = require('../computed/processed-trace.js');
11
+ const i18n = require('../lib/i18n/i18n.js');
12
+ const NetworkRecords = require('../computed/network-records.js');
13
+ const MainThreadTasks = require('../lib/tracehouse/main-thread-tasks.js');
14
+ const {taskGroups} = require('../lib/tracehouse/task-groups.js');
15
+ const TraceProcessor = require('../lib/tracehouse/trace-processor.js');
16
+ const {getExecutionTimingsByURL} = require('../lib/tracehouse/task-summary.js');
17
+ const inpThresholds = require('./metrics/experimental-interaction-to-next-paint.js').defaultOptions;
18
+ const LHError = require('../lib/lh-error.js');
19
+
20
+ /** @typedef {import('../computed/metrics/responsiveness.js').EventTimingEvent} EventTimingEvent */
21
+ /** @typedef {import('../lib/tracehouse/main-thread-tasks.js').TaskNode} TaskNode */
22
+
23
+ const TASK_THRESHOLD = 1;
24
+
25
+ const UIStrings = {
26
+ /** Title of a diagnostic audit that provides detail on the main thread work the browser did during a key user interaction. This descriptive title is shown to users when the amount is acceptable and no user action is required. */
27
+ title: 'Minimizes work during key interaction',
28
+ /** Title of a diagnostic audit that provides detail on the main thread work the browser did during a key user interaction. This imperative title is shown to users when there is a significant amount of execution time that could be reduced. */
29
+ failureTitle: 'Minimize work during key interaction',
30
+ /** Description of the work-during-interaction metric. This description is displayed within a tooltip when the user hovers on the metric name to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
31
+ description: 'This is the thread-blocking work occurring during the Interaction to Next Paint measurement. [Learn more](https://web.dev/inp/).',
32
+ /** Label for a column in a data table; entries will be information on the time that the browser is delayed before responding to user input. Ideally fits within a ~40 character limit. */
33
+ inputDelay: 'Input delay',
34
+ /** Label for a column in a data table; entries will be information on the time taken by code processing user input that delays a response to the user. Ideally fits within a ~40 character limit. */
35
+ processingDelay: 'Processing delay',
36
+ /** Label for a column in a data table; entries will be information on the time that the browser is delayed before presenting a response to user input on screen. Ideally fits within a ~40 character limit. */
37
+ presentationDelay: 'Presentation delay',
38
+ /**
39
+ * @description Summary text that identifies the time the browser took to process a user interaction.
40
+ * @example {mousedown} interactionType
41
+ */
42
+ displayValue: `{timeInMs, number, milliseconds}\xa0ms spent on event '{interactionType}'`,
43
+ /** Label for a column in a data table; entries will the UI element that was the target of a user interaction (for example, a button that was clicked on). Ideally fits within a ~40 character limit. */
44
+ eventTarget: 'Event target',
45
+ };
46
+
47
+ const str_ = i18n.createMessageInstanceIdFn(__filename, UIStrings);
48
+
49
+ /**
50
+ * @fileoverview This metric gives a high-percentile measure of responsiveness to input.
51
+ */
52
+ class WorkDuringInteraction extends Audit {
53
+ /**
54
+ * @return {LH.Audit.Meta}
55
+ */
56
+ static get meta() {
57
+ return {
58
+ id: 'work-during-interaction',
59
+ title: str_(UIStrings.title),
60
+ failureTitle: str_(UIStrings.failureTitle),
61
+ description: str_(UIStrings.description),
62
+ scoreDisplayMode: Audit.SCORING_MODES.NUMERIC,
63
+ supportedModes: ['timespan'],
64
+ requiredArtifacts: ['traces', 'devtoolsLogs', 'TraceElements'],
65
+ };
66
+ }
67
+
68
+ /**
69
+ * @param {TaskNode} task
70
+ * @param {TaskNode|undefined} parent
71
+ * @param {number} startTs
72
+ * @param {number} endTs
73
+ * @return {number}
74
+ */
75
+ static recursivelyClipTasks(task, parent, startTs, endTs) {
76
+ const taskEventStart = task.event.ts;
77
+ const taskEventEnd = task.endEvent?.ts ?? task.event.ts + Number(task.event.dur || 0);
78
+
79
+ task.startTime = Math.max(startTs, Math.min(endTs, taskEventStart)) / 1000;
80
+ task.endTime = Math.max(startTs, Math.min(endTs, taskEventEnd)) / 1000;
81
+ task.duration = task.endTime - task.startTime;
82
+
83
+ const childTime = task.children
84
+ .map(child => WorkDuringInteraction.recursivelyClipTasks(child, task, startTs, endTs))
85
+ .reduce((sum, child) => sum + child, 0);
86
+ task.selfTime = task.duration - childTime;
87
+ return task.duration;
88
+ }
89
+
90
+ /**
91
+ * Clip the tasks by the start and end points. Take the easy route and drop
92
+ * to duration 0 if out of bounds, since only durations are needed in the
93
+ * end (for now).
94
+ * Assumes owned tasks, so modifies in place. Can be called multiple times on
95
+ * the same `tasks` because always computed from original event timing.
96
+ * @param {Array<TaskNode>} tasks
97
+ * @param {number} startTs
98
+ * @param {number} endTs
99
+ */
100
+ static clipTasksByTs(tasks, startTs, endTs) {
101
+ for (const task of tasks) {
102
+ if (task.parent) continue;
103
+ WorkDuringInteraction.recursivelyClipTasks(task, undefined, startTs, endTs);
104
+ }
105
+ }
106
+
107
+ /**
108
+ * @param {EventTimingEvent} interactionEvent
109
+ */
110
+ static getPhaseTimes(interactionEvent) {
111
+ const interactionData = interactionEvent.args.data;
112
+ const startTs = interactionEvent.ts;
113
+ const navStart = startTs - interactionData.timeStamp * 1000;
114
+ const processingStartTs = navStart + interactionData.processingStart * 1000;
115
+ const processingEndTs = navStart + interactionData.processingEnd * 1000;
116
+ const endTs = startTs + interactionData.duration * 1000;
117
+ return {
118
+ inputDelay: {startTs, endTs: processingStartTs},
119
+ processingDelay: {startTs: processingStartTs, endTs: processingEndTs},
120
+ presentationDelay: {startTs: processingEndTs, endTs},
121
+ };
122
+ }
123
+
124
+ /**
125
+ * @param {EventTimingEvent} interactionEvent
126
+ * @param {LH.Trace} trace
127
+ * @param {LH.Artifacts.ProcessedTrace} processedTrace
128
+ * @param {Array<LH.Artifacts.NetworkRequest>} networkRecords
129
+ * @return {{table: LH.Audit.Details.Table, phases: Record<string, {startTs: number, endTs: number}>}}
130
+ */
131
+ static getThreadBreakdownTable(interactionEvent, trace, processedTrace, networkRecords) {
132
+ // Limit to interactionEvent's thread.
133
+ // TODO(bckenny): limit to interactionEvent's navigation.
134
+ const threadEvents = TraceProcessor.filteredTraceSort(trace.traceEvents, evt => {
135
+ return evt.pid === interactionEvent.pid && evt.tid === interactionEvent.tid;
136
+ });
137
+ const traceEndTs = threadEvents.reduce((endTs, evt) => {
138
+ return Math.max(evt.ts + (evt.dur || 0), endTs);
139
+ }, 0);
140
+ // frames is only used for URL attribution, so can include all frames, even if OOPIF.
141
+ const {frames} = processedTrace;
142
+ const threadTasks = MainThreadTasks.getMainThreadTasks(threadEvents, frames, traceEndTs);
143
+
144
+ const phases = WorkDuringInteraction.getPhaseTimes(interactionEvent);
145
+
146
+ /** @type {LH.Audit.Details.TableItem[]} */
147
+ const items = [];
148
+ for (const [phaseName, phaseTimes] of Object.entries(phases)) {
149
+ // Clip tasks to start and end time.
150
+ WorkDuringInteraction.clipTasksByTs(threadTasks, phaseTimes.startTs, phaseTimes.endTs);
151
+ const executionTimings = getExecutionTimingsByURL(threadTasks, networkRecords);
152
+
153
+ const results = [];
154
+ for (const [url, timingByGroupId] of executionTimings) {
155
+ const totalExecutionTimeForURL = Object.values(timingByGroupId)
156
+ .reduce((total, timespanMs) => total + timespanMs);
157
+
158
+ const scriptingTotal = timingByGroupId[taskGroups.scriptEvaluation.id] || 0;
159
+ const layoutTotal = timingByGroupId[taskGroups.styleLayout.id] || 0;
160
+ const renderTotal = timingByGroupId[taskGroups.paintCompositeRender.id] || 0;
161
+
162
+ results.push({
163
+ url: url,
164
+ total: totalExecutionTimeForURL,
165
+ scripting: scriptingTotal,
166
+ layout: layoutTotal,
167
+ render: renderTotal,
168
+ });
169
+ }
170
+
171
+ const filteredResults = results
172
+ .filter(result => result.total > TASK_THRESHOLD)
173
+ .sort((a, b) => b.total - a.total);
174
+
175
+ items.push({
176
+ phase: str_(UIStrings[/** @type {keyof UIStrings} */ (phaseName)]),
177
+ total: (phaseTimes.endTs - phaseTimes.startTs) / 1000,
178
+ subItems: {
179
+ type: 'subitems',
180
+ items: filteredResults,
181
+ },
182
+ });
183
+ }
184
+
185
+ /** @type {LH.Audit.Details.Table['headings']} */
186
+ const headings = [
187
+ /* eslint-disable max-len */
188
+ {key: 'phase', itemType: 'text', subItemsHeading: {key: 'url', itemType: 'url'}, text: 'Phase'},
189
+ {key: 'total', itemType: 'ms', subItemsHeading: {key: 'total', granularity: 1, itemType: 'ms'}, granularity: 1, text: 'Total time'},
190
+ {key: null, itemType: 'ms', subItemsHeading: {key: 'scripting', granularity: 1, itemType: 'ms'}, text: 'Script evaluation'},
191
+ {key: null, itemType: 'ms', subItemsHeading: {key: 'layout', granularity: 1, itemType: 'ms'}, text: taskGroups.styleLayout.label},
192
+ {key: null, itemType: 'ms', subItemsHeading: {key: 'render', granularity: 1, itemType: 'ms'}, text: taskGroups.paintCompositeRender.label},
193
+ /* eslint-enable max-len */
194
+ ];
195
+
196
+ return {
197
+ table: Audit.makeTableDetails(headings, items),
198
+ phases,
199
+ };
200
+ }
201
+
202
+ /**
203
+ * @param {LH.Artifacts['TraceElements']} traceElements
204
+ * @return {LH.Audit.Details.Table | undefined}
205
+ */
206
+ static getTraceElementTable(traceElements) {
207
+ const responsivenessElement = traceElements.find(el => el.traceEventType === 'responsiveness');
208
+ if (!responsivenessElement) return;
209
+
210
+ /** @type {LH.Audit.Details.Table['headings']} */
211
+ const headings = [
212
+ {key: 'node', itemType: 'node', text: str_(UIStrings.eventTarget)},
213
+ ];
214
+ const elementItems = [{node: Audit.makeNodeItem(responsivenessElement.node)}];
215
+
216
+ return Audit.makeTableDetails(headings, elementItems);
217
+ }
218
+
219
+ /**
220
+ * @param {LH.Artifacts} artifacts
221
+ * @param {LH.Audit.Context} context
222
+ * @return {Promise<LH.Audit.Product>}
223
+ */
224
+ static async audit(artifacts, context) {
225
+ const {settings} = context;
226
+ // TODO: responsiveness isn't yet supported by lantern.
227
+ if (settings.throttlingMethod === 'simulate') {
228
+ return {score: null, notApplicable: true};
229
+ }
230
+
231
+ const trace = artifacts.traces[WorkDuringInteraction.DEFAULT_PASS];
232
+ const metricData = {trace, settings};
233
+ const interactionEvent = await ComputedResponsivenes.request(metricData, context);
234
+ // If no interaction, diagnostic audit is n/a.
235
+ if (interactionEvent === null) {
236
+ return {score: null, notApplicable: true};
237
+ }
238
+ // TODO: remove workaround once 103.0.5052.0 is sufficiently released.
239
+ if (interactionEvent.name === 'FallbackTiming') {
240
+ throw new LHError(
241
+ LHError.errors.UNSUPPORTED_OLD_CHROME,
242
+ {featureName: 'detailed EventTiming trace events'}
243
+ );
244
+ }
245
+
246
+ const auditDetailsItems = [];
247
+
248
+ const traceElementItem = WorkDuringInteraction.getTraceElementTable(artifacts.TraceElements);
249
+ if (traceElementItem) auditDetailsItems.push(traceElementItem);
250
+
251
+ const devtoolsLog = artifacts.devtoolsLogs[WorkDuringInteraction.DEFAULT_PASS];
252
+ // Network records will usually be empty for timespans.
253
+ const networkRecords = await NetworkRecords.request(devtoolsLog, context);
254
+ const processedTrace = await ProcessedTrace.request(trace, context);
255
+ const {table: breakdownTable, phases} = WorkDuringInteraction.getThreadBreakdownTable(
256
+ interactionEvent, trace, processedTrace, networkRecords);
257
+ auditDetailsItems.push(breakdownTable);
258
+
259
+ const interactionType = interactionEvent.args.data.type;
260
+ auditDetailsItems.push({
261
+ type: /** @type {const} */ ('debugdata'),
262
+ interactionType,
263
+ phases,
264
+ });
265
+
266
+ const duration = interactionEvent.args.data.duration;
267
+ const displayValue = str_(UIStrings.displayValue, {timeInMs: duration, interactionType});
268
+ return {
269
+ score: duration < inpThresholds.p10 ? 1 : 0,
270
+ displayValue,
271
+ details: {
272
+ type: 'list',
273
+ items: auditDetailsItems,
274
+ },
275
+ };
276
+ }
277
+ }
278
+
279
+ module.exports = WorkDuringInteraction;
280
+ module.exports.UIStrings = UIStrings;
@@ -25,11 +25,14 @@
25
25
  * @property {number} interactionId
26
26
  */
27
27
  /** @typedef {LH.Trace.AsyncEvent & {name: 'EventTiming', args: {data: EventTimingData}}} EventTimingEvent */
28
-
28
+ /**
29
+ * A fallback EventTiming placeholder, used if updated EventTiming events are not available.
30
+ * TODO: Remove once 103.0.5052.0 is sufficiently released.
31
+ * @typedef {{name: 'FallbackTiming', duration: number}} FallbackTimingEvent
32
+ */
29
33
 
30
34
  const makeComputedArtifact = require('../computed-artifact.js');
31
35
  const ProcessedTrace = require('../processed-trace.js');
32
- const LHError = require('../../lib/lh-error.js');
33
36
 
34
37
  const KEYBOARD_EVENTS = new Set(['keydown', 'keypress', 'keyup']);
35
38
  const CLICK_TAP_DRAG_EVENTS = new Set([
@@ -77,7 +80,7 @@ class Responsiveness {
77
80
  * one interaction had this duration by returning the first found.
78
81
  * @param {ResponsivenessEvent} responsivenessEvent
79
82
  * @param {LH.Trace} trace
80
- * @return {EventTimingEvent}
83
+ * @return {EventTimingEvent|FallbackTimingEvent}
81
84
  */
82
85
  static findInteractionEvent(responsivenessEvent, {traceEvents}) {
83
86
  const candidates = traceEvents.filter(/** @return {evt is EventTimingEvent} */ evt => {
@@ -85,12 +88,12 @@ class Responsiveness {
85
88
  return evt.name === 'EventTiming' && evt.ph !== 'e';
86
89
  });
87
90
 
88
- if (candidates.length && !candidates[0].args.data.frame) {
91
+ if (candidates.length && !candidates.some(candidate => candidate.args.data?.frame)) {
89
92
  // Full EventTiming data added in https://crrev.com/c/3632661
90
- throw new LHError(
91
- LHError.errors.UNSUPPORTED_OLD_CHROME,
92
- {featureName: 'detailed EventTiming trace events'}
93
- );
93
+ return {
94
+ name: 'FallbackTiming',
95
+ duration: responsivenessEvent.args.data.maxDuration,
96
+ };
94
97
  }
95
98
 
96
99
  const {maxDuration, interactionType} = responsivenessEvent.args.data;
@@ -131,7 +134,7 @@ class Responsiveness {
131
134
  /**
132
135
  * @param {{trace: LH.Trace, settings: Immutable<LH.Config.Settings>}} data
133
136
  * @param {LH.Artifacts.ComputedContext} context
134
- * @return {Promise<EventTimingEvent|null>}
137
+ * @return {Promise<EventTimingEvent|FallbackTimingEvent|null>}
135
138
  */
136
139
  static async compute_(data, context) {
137
140
  const {settings, trace} = data;
@@ -48,9 +48,14 @@ const clsRelevantAudits = [
48
48
  // 'preload-fonts', // actually in BP, rather than perf
49
49
  ];
50
50
 
51
+ const inpRelevantAudits = [
52
+ 'work-during-interaction',
53
+ ];
54
+
51
55
  module.exports = {
52
56
  fcpRelevantAudits,
53
57
  lcpRelevantAudits,
54
58
  tbtRelevantAudits,
55
59
  clsRelevantAudits,
60
+ inpRelevantAudits,
56
61
  };
@@ -6,19 +6,23 @@
6
6
  'use strict';
7
7
 
8
8
  const legacyDefaultConfig = require('../../config/default-config.js');
9
+ const m2a = require('../../config/metrics-to-audits.js');
9
10
  const {deepClone} = require('../../config/config-helpers.js');
10
11
 
11
12
  /** @type {LH.Config.AuditJson[]} */
12
13
  const frAudits = [
13
14
  'byte-efficiency/uses-responsive-images-snapshot',
14
15
  'metrics/experimental-interaction-to-next-paint',
16
+ 'work-during-interaction',
15
17
  ];
16
18
 
17
19
  /** @type {Record<string, LH.Config.AuditRefJson[]>} */
18
20
  const frCategoryAuditRefExtensions = {
19
21
  'performance': [
20
22
  {id: 'uses-responsive-images-snapshot', weight: 0},
21
- {id: 'experimental-interaction-to-next-paint', weight: 0, group: 'metrics', acronym: 'INP'},
23
+ {id: 'experimental-interaction-to-next-paint', weight: 0, group: 'metrics', acronym: 'INP',
24
+ relevantAudits: m2a.inpRelevantAudits},
25
+ {id: 'work-during-interaction', weight: 0},
22
26
  ],
23
27
  };
24
28
 
@@ -100,7 +104,6 @@ const defaultConfig = {
100
104
  {id: artifacts.EmbeddedContent, gatherer: 'seo/embedded-content'},
101
105
  {id: artifacts.FontSize, gatherer: 'seo/font-size'},
102
106
  {id: artifacts.Inputs, gatherer: 'inputs'},
103
- {id: artifacts.FullPageScreenshot, gatherer: 'full-page-screenshot'},
104
107
  {id: artifacts.GlobalListeners, gatherer: 'global-listeners'},
105
108
  {id: artifacts.IFrameElements, gatherer: 'iframe-elements'},
106
109
  {id: artifacts.ImageElements, gatherer: 'image-elements'},
@@ -130,6 +133,9 @@ const defaultConfig = {
130
133
  // Artifact copies are renamed for compatibility with legacy artifacts.
131
134
  {id: artifacts.devtoolsLogs, gatherer: 'devtools-log-compat'},
132
135
  {id: artifacts.traces, gatherer: 'trace-compat'},
136
+
137
+ // FullPageScreenshot comes at the very end so all other node analysis is captured.
138
+ {id: artifacts.FullPageScreenshot, gatherer: 'full-page-screenshot'},
133
139
  ],
134
140
  navigations: [
135
141
  {
@@ -22,6 +22,7 @@ const Trace = require('./trace.js');
22
22
  const ProcessedTrace = require('../../computed/processed-trace.js');
23
23
  const ProcessedNavigation = require('../../computed/processed-navigation.js');
24
24
  const LighthouseError = require('../../lib/lh-error.js');
25
+ const ComputedResponsivenes = require('../../computed/metrics/responsiveness.js');
25
26
 
26
27
  /** @typedef {{nodeId: number, score?: number, animations?: {name?: string, failureReasonsMask?: number, unsupportedProperties?: string[]}[]}} TraceElementData */
27
28
 
@@ -142,6 +143,23 @@ class TraceElements extends FRGatherer {
142
143
  return topFive;
143
144
  }
144
145
 
146
+ /**
147
+ * @param {LH.Trace} trace
148
+ * @param {LH.Gatherer.FRTransitionalContext} context
149
+ * @return {Promise<TraceElementData|undefined>}
150
+ */
151
+ static async getResponsivenessElement(trace, context) {
152
+ const {settings} = context;
153
+ try {
154
+ const responsivenessEvent = await ComputedResponsivenes.request({trace, settings}, context);
155
+ if (!responsivenessEvent || responsivenessEvent.name === 'FallbackTiming') return;
156
+ return {nodeId: responsivenessEvent.args.data.nodeId};
157
+ } catch {
158
+ // Don't let responsiveness errors sink the rest of the gatherer.
159
+ return;
160
+ }
161
+ }
162
+
145
163
  /**
146
164
  * Find the node ids of elements which are animated using the Animation trace events.
147
165
  * @param {Array<LH.TraceEvent>} mainThreadEvents
@@ -237,14 +255,15 @@ class TraceElements extends FRGatherer {
237
255
 
238
256
  const lcpNodeId = largestContentfulPaintEvt?.args?.data?.nodeId;
239
257
  const clsNodeData = TraceElements.getTopLayoutShiftElements(mainThreadEvents);
240
- const animatedElementData =
241
- await this.getAnimatedElements(mainThreadEvents);
258
+ const animatedElementData = await this.getAnimatedElements(mainThreadEvents);
259
+ const responsivenessElementData = await TraceElements.getResponsivenessElement(trace, context);
242
260
 
243
261
  /** @type {Map<string, TraceElementData[]>} */
244
262
  const backendNodeDataMap = new Map([
245
263
  ['largest-contentful-paint', lcpNodeId ? [{nodeId: lcpNodeId}] : []],
246
264
  ['layout-shift', clsNodeData],
247
265
  ['animation', animatedElementData],
266
+ ['responsiveness', responsivenessElementData ? [responsivenessElementData] : []],
248
267
  ]);
249
268
 
250
269
  const traceElements = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lighthouse",
3
- "version": "9.5.0-dev.20220509",
3
+ "version": "9.5.0-dev.20220512",
4
4
  "description": "Automated auditing, performance metrics, and best practices for the web.",
5
5
  "main": "./lighthouse-core/index.js",
6
6
  "bin": {
@@ -300,6 +300,9 @@
300
300
  /* This is normally the height of the topbar, but we want it to stick to the top of our scroll container .lh-container` */
301
301
  top: 0;
302
302
  }
303
+ .lh-devtools .lh-element-screenshot__overlay {
304
+ position: absolute;
305
+ }
303
306
 
304
307
  @keyframes fadeIn {
305
308
  0% { opacity: 0;}
@@ -1061,8 +1064,8 @@
1061
1064
  }
1062
1065
 
1063
1066
  /* Report */
1064
- .lh-list > div:not(:last-child) {
1065
- padding-bottom: 20px;
1067
+ .lh-list > :not(:last-child) {
1068
+ margin-bottom: calc(var(--default-padding) * 2);
1066
1069
  }
1067
1070
 
1068
1071
  .lh-header-container {
@@ -4,7 +4,6 @@
4
4
  * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
5
5
  */
6
6
 
7
-
8
7
  import {DOM} from '../renderer/dom.js';
9
8
  import {ReportRenderer} from '../renderer/report-renderer.js';
10
9
  import {ReportUIFeatures} from '../renderer/report-ui-features.js';