Ver Mensaje Individual
  #1 (permalink)  
Antiguo 01/05/2013, 06:23
Cotelandia
 
Fecha de Ingreso: diciembre-2011
Ubicación: Argentina
Mensajes: 88
Antigüedad: 12 años, 5 meses
Puntos: 4
Pregunta Duda sobre .visuallyhidden de Boilerplate

Viendo la plantilla por ahí encontre esto en el CSS que es para ocultar elementos sin usar el {display: none;} para no ser penalizado por el buscador de Google. Creo que esa es la única razón ¿o no?.

Código CSS:
Ver original
  1. /*
  2.  * Hide only visually, but have it available for screenreaders: h5bp.com/v
  3.  */
  4.  
  5. .visuallyhidden {
  6.     border: 0;
  7.     clip: rect(0 0 0 0);
  8.     height: 1px;
  9.     margin: -1px;
  10.     overflow: hidden;
  11.     padding: 0;
  12.     position: absolute;
  13.     width: 1px;
  14. }

Hasta ahí todo bien, pero me podrían explicar para que sirve esto que sigue debajo en el css

Código CSS:
Ver original
  1. /*
  2.  * Extends the .visuallyhidden class to allow the element to be focusable
  3.  * when navigated to via the keyboard: h5bp.com/p
  4.  */
  5.  
  6. .visuallyhidden.focusable:active,
  7. .visuallyhidden.focusable:focus {
  8.     clip: auto;
  9.     height: auto;
  10.     margin: 0;
  11.     overflow: visible;
  12.     position: static;
  13.     width: auto;
  14. }

Desde ya gracias ;)