Skip to content

Commit

Permalink
Add #29
Browse files Browse the repository at this point in the history
  • Loading branch information
foxdavidj committed Sep 11, 2019
1 parent 3c7d6cd commit 3df8861
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sql/2019/09_Accessibility/09_29.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#standardSQL
# 09_29: Sites with sufficient text color contrast with its background
SELECT
COUNTIF(CAST(JSON_EXTRACT_SCALAR(report, '$.audits.color-contrast.score') as NUMERIC) = 1) AS total_sufficient,
COUNT(0) AS total_sites,
ROUND(COUNTIF(CAST(JSON_EXTRACT_SCALAR(report, '$.audits.color-contrast.score') as NUMERIC) = 1) * 100 / COUNT(0), 2) AS sufficient_percent
FROM
`httparchive.lighthouse.2019_07_01_mobile`

0 comments on commit 3df8861

Please sign in to comment.