SlideShare una empresa de Scribd logo
1 de 22
Accessible 
SVG 
Anna Khabibullina
Agenda 
Needs 
Problems 
Solutions 
Demo 
Browser Support 
Q & A
So … What do we do? 
sitecues by Ai Squared is a web-based software solution, a 
widget, that builds zoom and speech features right into 
websites. 
Needs
Needs 
“95% of users who 
could benefit from 
zoom & speech 
don’t own an 
assistive technology” 
— David Wu, CEO AI2
Reinventing Web Magnification & Speech 
“See it better” “Talk to me” 
sitecues by Ai Squared
Problems We 
Address Today
Keyboard accessibility 
Screen reader accessibility 
Problems We Address Today 
http://www.sitepoint.com/tips-accessible-svg/
“Managing focus in SVG is a 
nightmare”(sigh) 
— Doug Schepers, 
Web Standards Specialist, 
Team Contact for the SVG, WebApps, and Web Events Working Groups 
Problem 1 
Keyboard navigation for SVG
Problem 1 
Native browser support for tab navigation in SVG: 
Windows 7 OS 
Keyboard navigation for SVG 
+ 
Support for SVG 
“tabindex” “focusable” 
Internet Explorer 11 
Mozilla Firefox 33 
Chrome 39 
https://dump.testsuite.org/2006/svg/003.svg
Add smart(manual) keyboard navigation: 
- tab cycles: keep a list of things for cycle 
(2 elements) 
- focus index: 0, 1, … 
- show a focus outline 
Solution 1 
Keyboard navigation for SVG 
1 2
Problem 1.1 
Add focus outline for SVG in all 
browsers. 
- CSS outline for SVG elements 
- getBoundingClientRect() 
Solution 1.1 
Draw outline object on top of SVG 
elements. 
- role=“presentation” 
pointer-events: “none” 
- Fixed in the browser! 
Cross Browser Outline
Problem 2 
Limited screen reader access for SVG 
- attributes 
focusable 
tabindex 
- elements 
title 
desc 
Screen reader access 
http://www.paciellogroup.com/blog/2013/12/using-aria-enhance-svg-accessibility/
Solution 2 
Screen reader access 
Enhancing the SVG with ARIA dramatically 
changes the information that is available 
through browser accessibility APIs: 
- roles: 
application, dialog 
- states attributes: 
aria-checked 
- focus attributes: 
aria-activedescendant
ARIA aria-activedescendant attribute explained. 
<ul class="radiogroup" id="rg1" role="radiogroup" aria-labelledby="rg1_label" 
aria-activedescendant="rg1-r1" tabindex="0"> 
<li id="rg1-r1" tabindex="-1" role="radio" aria-checked="false"> 
<img role="presentation" src="images/radio-unchecked.gif" alt=""> 
Thai 
</li> 
... 
<li id="rg1-r5" tabindex="-1" role="radio" aria-checked="false"> 
<img role="presentation" src="images/radio-unchecked.gif" alt=""> 
Rainbow Gardens 
http://test.cita.illinois.edu/aria/radio/radio2.php 
</li> 
</ul>
ARIA aria-activedescendant attribute explained: allow 
changes in focus within widgets to be communicated to Assistive 
Technology. 
<ul class="radiogroup" id="rg1" role="radiogroup" aria-labelledby="rg1_label" 
aria-activedescendant="rg1-r1" tabindex="0"> 
<li id="rg1-r1" tabindex="-1" role="radio" aria-checked="false"> 
<img role="presentation" src="images/radio-unchecked.gif" alt=""> 
Thai 
</li> 
... 
<li id="rg1-r5" tabindex="-1" role="radio" aria-checked="false"> 
<img role="presentation" src="images/radio-unchecked.gif" alt=""> 
Rainbow Gardens 
</li> 
</ul> 
http://test.cita.illinois.edu/aria/radio/radio2.php
Problem 3 
browse mode: complex read-only 
documents such as web pages are 
browsed 
focus mode: form elements, controls, UI 
widgets 
Screen reader browse mode
Solution 3 
Screen reader browse mode 
Hotkeys depend on screen reader: 
- NVDA: press ENTER or SPACE to 
switch 
- Window-eyes: CTRL+SHIFT+A 
- ZoomText: ? 
- Jaws: ? 
Automatic switch from browse mode: 
- Focus on role=“dialog”
Show Time! 
Demo
Internet Explorer + Window-Eyes 
• Partial Support 
Firefox + NVDA 
• Full Support 
Chrome + Jaws 
• Poor Support 
Badge and Panel Keyboard Navigation Browser Support 
(Windows)
Wait! 
http://www.html5accessibility.com/tests/canvas.html 
http://msdn.microsoft.com/en-us/library/ie/gg193983(v=vs.85).aspx
Thank you 
twitter: _khabibullina 
email: akhabibullina@aisquared.com
Canvas 
•Pixel based (Dynamic .png) 
•Single HTML element 
•Modified through script only 
•Event model/user interaction is granular (x,y) 
•Performance is better with smaller surface, a 
larger number of objects (>10k), or both 
SVG 
•Shape based 
•Multiple graphical elements, which become 
part of the DOM 
•Modified through script and CSS 
•Event model/user interaction is abstracted 
(rect, path) 
•Performance is better with smaller number of 
objects (<10k), a larger surface, or both 
High Level Summary of Canvas vs. SVG

Más contenido relacionado

Similar a SVG Accessibility

Wordcamp Thessaloniki 2011 The Nextweb
Wordcamp Thessaloniki 2011 The NextwebWordcamp Thessaloniki 2011 The Nextweb
Wordcamp Thessaloniki 2011 The Nextweb
George Kanellopoulos
 
Responsive UX - One size fits all @BigDesign conference #BigD12
Responsive UX - One size fits all   @BigDesign conference #BigD12Responsive UX - One size fits all   @BigDesign conference #BigD12
Responsive UX - One size fits all @BigDesign conference #BigD12
touchtitans
 
Win j svsphonegap-damyan-petev-mihail-mateev
Win j svsphonegap-damyan-petev-mihail-mateevWin j svsphonegap-damyan-petev-mihail-mateev
Win j svsphonegap-damyan-petev-mihail-mateev
Mihail Mateev
 
Web app and more
Web app and moreWeb app and more
Web app and more
faming su
 
The Image that called me - Active Content Injection with SVG Files
The Image that called me - Active Content Injection with SVG FilesThe Image that called me - Active Content Injection with SVG Files
The Image that called me - Active Content Injection with SVG Files
Mario Heiderich
 
Devon 2011-f-1 반응형 웹 디자인
Devon 2011-f-1  반응형 웹 디자인Devon 2011-f-1  반응형 웹 디자인
Devon 2011-f-1 반응형 웹 디자인
Daum DNA
 
Uni Tour Germany 11.2009
Uni Tour Germany 11.2009Uni Tour Germany 11.2009
Uni Tour Germany 11.2009
Patrick Lauke
 

Similar a SVG Accessibility (20)

Wordcamp Thessaloniki 2011 The Nextweb
Wordcamp Thessaloniki 2011 The NextwebWordcamp Thessaloniki 2011 The Nextweb
Wordcamp Thessaloniki 2011 The Nextweb
 
Html5 Whats around the bend
Html5 Whats around the bendHtml5 Whats around the bend
Html5 Whats around the bend
 
Responsive UX - One size fits all @BigDesign conference #BigD12
Responsive UX - One size fits all   @BigDesign conference #BigD12Responsive UX - One size fits all   @BigDesign conference #BigD12
Responsive UX - One size fits all @BigDesign conference #BigD12
 
Html5 more than just html5 v final
Html5  more than just html5 v finalHtml5  more than just html5 v final
Html5 more than just html5 v final
 
HTML5 - A Whirlwind tour
HTML5 - A Whirlwind tourHTML5 - A Whirlwind tour
HTML5 - A Whirlwind tour
 
Win j svsphonegap-damyan-petev-mihail-mateev
Win j svsphonegap-damyan-petev-mihail-mateevWin j svsphonegap-damyan-petev-mihail-mateev
Win j svsphonegap-damyan-petev-mihail-mateev
 
Rich Media Advertising with SVG and JavaScript
Rich Media Advertising with SVG and JavaScriptRich Media Advertising with SVG and JavaScript
Rich Media Advertising with SVG and JavaScript
 
Web Apps and more
Web Apps and moreWeb Apps and more
Web Apps and more
 
Web app and more
Web app and moreWeb app and more
Web app and more
 
SVG Icons and Screen Reader Accessibility
SVG Icons and Screen Reader AccessibilitySVG Icons and Screen Reader Accessibility
SVG Icons and Screen Reader Accessibility
 
Making JavaScript Accessible
Making JavaScript AccessibleMaking JavaScript Accessible
Making JavaScript Accessible
 
The Image that called me - Active Content Injection with SVG Files
The Image that called me - Active Content Injection with SVG FilesThe Image that called me - Active Content Injection with SVG Files
The Image that called me - Active Content Injection with SVG Files
 
Accessibility Hacks Version 2
Accessibility Hacks Version 2Accessibility Hacks Version 2
Accessibility Hacks Version 2
 
Accessibility Hacks version 2
Accessibility Hacks version 2Accessibility Hacks version 2
Accessibility Hacks version 2
 
Accessibility Hacks Wordcamp Manchester October 2018
Accessibility Hacks Wordcamp Manchester October 2018Accessibility Hacks Wordcamp Manchester October 2018
Accessibility Hacks Wordcamp Manchester October 2018
 
Responsive Websites
Responsive WebsitesResponsive Websites
Responsive Websites
 
Devon 2011-f-1 반응형 웹 디자인
Devon 2011-f-1  반응형 웹 디자인Devon 2011-f-1  반응형 웹 디자인
Devon 2011-f-1 반응형 웹 디자인
 
Svcc 2013-css3-and-mobile
Svcc 2013-css3-and-mobileSvcc 2013-css3-and-mobile
Svcc 2013-css3-and-mobile
 
Uni Tour Germany 11.2009
Uni Tour Germany 11.2009Uni Tour Germany 11.2009
Uni Tour Germany 11.2009
 
Fake it 'til you make it
Fake it 'til you make itFake it 'til you make it
Fake it 'til you make it
 

Último

result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
Tonystark477637
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
rknatarajan
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 

Último (20)

Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 

SVG Accessibility

  • 1. Accessible SVG Anna Khabibullina
  • 2. Agenda Needs Problems Solutions Demo Browser Support Q & A
  • 3. So … What do we do? sitecues by Ai Squared is a web-based software solution, a widget, that builds zoom and speech features right into websites. Needs
  • 4. Needs “95% of users who could benefit from zoom & speech don’t own an assistive technology” — David Wu, CEO AI2
  • 5. Reinventing Web Magnification & Speech “See it better” “Talk to me” sitecues by Ai Squared
  • 7. Keyboard accessibility Screen reader accessibility Problems We Address Today http://www.sitepoint.com/tips-accessible-svg/
  • 8. “Managing focus in SVG is a nightmare”(sigh) — Doug Schepers, Web Standards Specialist, Team Contact for the SVG, WebApps, and Web Events Working Groups Problem 1 Keyboard navigation for SVG
  • 9. Problem 1 Native browser support for tab navigation in SVG: Windows 7 OS Keyboard navigation for SVG + Support for SVG “tabindex” “focusable” Internet Explorer 11 Mozilla Firefox 33 Chrome 39 https://dump.testsuite.org/2006/svg/003.svg
  • 10. Add smart(manual) keyboard navigation: - tab cycles: keep a list of things for cycle (2 elements) - focus index: 0, 1, … - show a focus outline Solution 1 Keyboard navigation for SVG 1 2
  • 11. Problem 1.1 Add focus outline for SVG in all browsers. - CSS outline for SVG elements - getBoundingClientRect() Solution 1.1 Draw outline object on top of SVG elements. - role=“presentation” pointer-events: “none” - Fixed in the browser! Cross Browser Outline
  • 12. Problem 2 Limited screen reader access for SVG - attributes focusable tabindex - elements title desc Screen reader access http://www.paciellogroup.com/blog/2013/12/using-aria-enhance-svg-accessibility/
  • 13. Solution 2 Screen reader access Enhancing the SVG with ARIA dramatically changes the information that is available through browser accessibility APIs: - roles: application, dialog - states attributes: aria-checked - focus attributes: aria-activedescendant
  • 14. ARIA aria-activedescendant attribute explained. <ul class="radiogroup" id="rg1" role="radiogroup" aria-labelledby="rg1_label" aria-activedescendant="rg1-r1" tabindex="0"> <li id="rg1-r1" tabindex="-1" role="radio" aria-checked="false"> <img role="presentation" src="images/radio-unchecked.gif" alt=""> Thai </li> ... <li id="rg1-r5" tabindex="-1" role="radio" aria-checked="false"> <img role="presentation" src="images/radio-unchecked.gif" alt=""> Rainbow Gardens http://test.cita.illinois.edu/aria/radio/radio2.php </li> </ul>
  • 15. ARIA aria-activedescendant attribute explained: allow changes in focus within widgets to be communicated to Assistive Technology. <ul class="radiogroup" id="rg1" role="radiogroup" aria-labelledby="rg1_label" aria-activedescendant="rg1-r1" tabindex="0"> <li id="rg1-r1" tabindex="-1" role="radio" aria-checked="false"> <img role="presentation" src="images/radio-unchecked.gif" alt=""> Thai </li> ... <li id="rg1-r5" tabindex="-1" role="radio" aria-checked="false"> <img role="presentation" src="images/radio-unchecked.gif" alt=""> Rainbow Gardens </li> </ul> http://test.cita.illinois.edu/aria/radio/radio2.php
  • 16. Problem 3 browse mode: complex read-only documents such as web pages are browsed focus mode: form elements, controls, UI widgets Screen reader browse mode
  • 17. Solution 3 Screen reader browse mode Hotkeys depend on screen reader: - NVDA: press ENTER or SPACE to switch - Window-eyes: CTRL+SHIFT+A - ZoomText: ? - Jaws: ? Automatic switch from browse mode: - Focus on role=“dialog”
  • 19. Internet Explorer + Window-Eyes • Partial Support Firefox + NVDA • Full Support Chrome + Jaws • Poor Support Badge and Panel Keyboard Navigation Browser Support (Windows)
  • 21. Thank you twitter: _khabibullina email: akhabibullina@aisquared.com
  • 22. Canvas •Pixel based (Dynamic .png) •Single HTML element •Modified through script only •Event model/user interaction is granular (x,y) •Performance is better with smaller surface, a larger number of objects (>10k), or both SVG •Shape based •Multiple graphical elements, which become part of the DOM •Modified through script and CSS •Event model/user interaction is abstracted (rect, path) •Performance is better with smaller number of objects (<10k), a larger surface, or both High Level Summary of Canvas vs. SVG