webcode-tk 1.1.9__tar.gz → 1.1.10__tar.gz
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.
- {webcode_tk-1.1.9 → webcode_tk-1.1.10}/PKG-INFO +1 -1
- {webcode_tk-1.1.9 → webcode_tk-1.1.10}/pyproject.toml +1 -1
- {webcode_tk-1.1.9 → webcode_tk-1.1.10}/webcode_tk/__init__.py +1 -1
- {webcode_tk-1.1.9 → webcode_tk-1.1.10}/webcode_tk/cascade_tools.py +4 -3
- {webcode_tk-1.1.9 → webcode_tk-1.1.10}/LICENSE.rst +0 -0
- {webcode_tk-1.1.9 → webcode_tk-1.1.10}/README.rst +0 -0
- {webcode_tk-1.1.9 → webcode_tk-1.1.10}/webcode_tk/color_keywords.py +0 -0
- {webcode_tk-1.1.9 → webcode_tk-1.1.10}/webcode_tk/color_tools.py +0 -0
- {webcode_tk-1.1.9 → webcode_tk-1.1.10}/webcode_tk/css_tools.py +0 -0
- {webcode_tk-1.1.9 → webcode_tk-1.1.10}/webcode_tk/font_tools.py +0 -0
- {webcode_tk-1.1.9 → webcode_tk-1.1.10}/webcode_tk/html_tools.py +0 -0
- {webcode_tk-1.1.9 → webcode_tk-1.1.10}/webcode_tk/sample_report.json +0 -0
- {webcode_tk-1.1.9 → webcode_tk-1.1.10}/webcode_tk/ux_tools.py +0 -0
- {webcode_tk-1.1.9 → webcode_tk-1.1.10}/webcode_tk/validator_tools.py +0 -0
|
@@ -1841,11 +1841,12 @@ def get_color_contrast_details(tree: CSSAppliedTree, rating="AAA") -> list:
|
|
|
1841
1841
|
for result in results:
|
|
1842
1842
|
count = results.count(result)
|
|
1843
1843
|
file, selector, element, size, rating = result
|
|
1844
|
-
msg = f"fail: in {file},
|
|
1844
|
+
msg = f"fail: in {file}, element: <{element}> had {count} "
|
|
1845
1845
|
if count > 1:
|
|
1846
|
-
msg += f"contrast errors
|
|
1846
|
+
msg += f"contrast errors for {size} {rating} "
|
|
1847
1847
|
else:
|
|
1848
|
-
msg += f"contrast error
|
|
1848
|
+
msg += f"contrast error for {size} {rating} "
|
|
1849
|
+
msg += f"triggered by selector {selector}."
|
|
1849
1850
|
if msg not in adjusted:
|
|
1850
1851
|
adjusted.append(msg)
|
|
1851
1852
|
results = adjusted
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|