Comments (1)
We fixed this issue (cANDI 3.2.2). Here is some additional info for future reference:
cANDI is certainly taking font size and weight into consideration. WCAG’s current requirement for large text, 14pt bold, is not exactly precise. Using the point (pt) unit is relevant to the font chosen and the user agent (OS/browser) doing the conversion into pixels. See this definition of large scale text from WCAG (especially note 3) http://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html#larger-scaledef. Therefore, all font size units (pt, em, %, etc.) are converted to px to perform the comparison.
A google search for “pt to px conversion”, returns only approximate figures. Some results show 14pt to be approximately 19px. Some calculators put it closer to 18.5px. Using Windows 10 both IE and Chrome are calculating 14pt to be 18 pixels (they may be rounding down). Since cANDI relies on the user agent to provide the computed unit (the pixel value), its cut-off was at 18.5pixels, which is why this github issue was created.
To resolve this issue, we adjusted the large text threshold to be 18px so that when testing against basic fonts on Windows 10 IE/Chrome/Firefox, the 3:1 ratio check will kick in. Keep in mind some user agents/fonts may convert 14pt to a different pixel value, which may show this type of issue again.
The underlying issue is with how WCAG defines large text. If it was defined using pixels instead of points, there would be no room for such discrepancies.
from andi.
Related Issues (20)
- Why aren't there any this. function's in AndiModule()
- Provide more details about what is needed for the TODO statements
- tabindex in createOverlay could be given a default value of 0 HOT 1
- It might be good to have a code checker or javascript linter to help make the code formatted better
- The longdesc attribute is deprecated HOT 2
- H
- Using ANDI with Microsoft PowerApps
- ANDI Does not work on our Web Application HOT 3
- The previous and next buttons for hidden content have a problem with looping.
- alert_0194 is put in group 3 when it is listed in the same area as the alerts from group 19. HOT 1
- ARIA grid has no [role=row] rows. HOT 1
- These variables are not being used HOT 1
- andi.css CSS performance issues HOT 1
- Commented out code in andi.js HOT 3
- Unnecessary code in andi.js HOT 1
- More unused variables
- Unknown CSS Properties used HOT 1
- Make ANDI be available as a Library to facilitate automation HOT 1
- Unused code in the ANDI repository
- Refuse to load the SSA.GOV javascript in Salesforce application. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from andi.