Re: [csswg-drafts] [css-color-5] Make it easier for authors to select the right WCAG level in color-contrast() (#6319)

Automating this is a good idea in theory,and leveraging the ability of CSS to convert between length units is attractive.

However there is some hand-waving in WCAG 2.1 which makes this less algorithmic and thus more difficult to implement. For example

> or font size that would yield equivalent size for Chinese, Japanese and Korean (CJK) fonts

and

> For many mainstream body text fonts, 14 and 18 point is roughly equivalent to 1.2 and 1.5 em or to 120% or 150% of the default size for body text (assuming that the body font is 100%), but authors would need to check this for the particular fonts in use.

The precise nature of the _font-specific check_, or the definition of _equivalent font size for CJK_, could use some clarity.

-- 
GitHub Notification of comment by svgeesus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6319#issuecomment-849735028 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 27 May 2021 15:36:46 UTC