Skip to content

Commit

Permalink
Add settings of value
Browse files Browse the repository at this point in the history
  • Loading branch information
shogohida committed Nov 1, 2022
1 parent 436a88a commit dd5d4ae
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions core/audits/dobetterweb/dom-size.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,29 @@ class DOMSize extends Audit {
const items = [
{
statistic: str_(UIStrings.statisticDOMElements),
value: Math.floor(stats.totalBodyElements),
value: {
type: 'numeric',
granularity: 1,
value: stats.totalBodyElements,
},
},
{
node: Audit.makeNodeItem(stats.depth),
statistic: str_(UIStrings.statisticDOMDepth),
value: Math.floor(stats.depth.max),
value: {
type: 'numeric',
granularity: 1,
value: stats.depth.max,
},
},
{
node: Audit.makeNodeItem(stats.width),
statistic: str_(UIStrings.statisticDOMWidth),
value: Math.floor((stats.width.max),
value: {
type: 'numeric',
granularity: 1,
value: stats.width.max,
},
},
];

Expand Down

0 comments on commit dd5d4ae

Please sign in to comment.