This PR converts the text_small rule from PHP to the js checker.
The PHP rule relied on complex CSS parsing, which could trip up or produce a false positive when CSS variables were used, the cascade order was unclear, or non-px units were in use.
The JS check uses actual computed styles to determine the exact rendered size of the text.
This PR converts the
text_small
rule from PHP to the js checker.The PHP rule relied on complex CSS parsing, which could trip up or produce a false positive when CSS variables were used, the cascade order was unclear, or non-px units were in use.
The JS check uses actual computed styles to determine the exact rendered size of the text.
Closes: #630