This test is validating all used CSS on the url specified. We are currently using local version of W3C CSS Validation for validation:
- Inline CSS in
style
-element - Inline CSS in
style
-attribute - CSS referenced using
link
-element
Addition to test all of above sources (compared to only test inline styles that W3C CSS Validation do) we are also adding support for:
- Draft CSS properties by using MDN Web Docs - CSS reference as guidance.
100%
as valid value offont-stretch
- Draft CSS functions by using MDN Web Docs - CSS reference as guidance.
For every source (see above) we are calculating rating based on:
- Number of different error types
- Number of total number of errors
we are then combining the results.
Math used are:
rating_number_of_error_types = 5.0 - (number_of_error_types / 5.0)
rating_number_of_errors = 5.0 - ((number_of_errors / 2.0) / 5.0)
As always, minimum rating are 1.0.
- Fork this repository
- As we are using external service ( https://developer.mozilla.org/en-US/docs/Web/CSS/Reference )so the machine running this test needs to be able to access external service.
Read more on the general page for github actions.
-
It is highly recommended to set
cache_when_possible
toTrue
and to setcache_time_delta
to -
It is highly recommended to set
cache_time_delta
to at least 12 hours (Fail to do so may result in banning of service like github). -
Depending on your preference, follow below NPM package or Docker image steps below.
-
Download and install Java (JDK 8 or above)
- Download and install Node.js (version 20.x)
- Download and install Google Chrome browser
- Install NPM packages (
npm install --production
) - Set
sitespeed_use_docker = False
in yourconfig.py
- Allow node to connect through Windows firewall
- Make sure Docker command is globally accessible on your system.
- Set
sitespeed_use_docker = True
in yourconfig.py
No frequently asked questions yet :)