equalizedigital / accessibility-checker

GNU General Public License v2.0
15 stars 8 forks source link

Convert the text_small php rule into a JS checked rule #630

Closed pattonwebz closed 1 month ago

pattonwebz commented 1 month ago

The current text_small rule uses php and parses stylesheets and inline styles to determine the size of the element. The PHP check trips up on the use of CSS vars making it less reliable, and also having to partially guess the cascade. Swapping to a JS based rule allows use of computed styles which are much more reliable as they give the actual value rendered.