Domanda

Ho problemi a capire i criteri WCAG 2.0 1.4.8.

Da quello che capisco, sostanzialmente dice che se ho ad esempio un <div> che definisco sia il colore di sfondo che il colore di testo, dovrò anche:

    .
  • Fornisci uno strumento raccoglitrice per quel div in modo che l'utente possa modificare quei colori
  • "G156: Utilizzo di una tecnologia che ha comunemente disponibili agenti utente che possono cambiare il primo piano e lo sfondo di blocchi di testo"

    Fornire un selettore di colori suona abbastanza bene, quindi sto ponendo le mie speranze su "G156". Un normale browser Web (IE, Firefox, Opera ecc.) Si qualifica come tale agente utente?

    Un'altra parte confusa è il "fallimento comune" in cui si dice "F24: fallimento del criterio di successo 1.4.3, 1.4.6 e 1.4.8 a causa di specificare i colori in primo piano senza specificare i colori di sfondo o viceversa", che ordinano di interpretare come "purché si specifichi sia di sfondo che colore del testo per quel div, sicuro".

    Qualche idea su come interpretare questo criterio WCAG?

È stato utile?

Soluzione

Does a regular web browser (ie,firefox,opera etc.) qualify as such an user agent?

According to http://www.w3.org/TR/2010/NOTE-WCAG20-TECHS-20101014/G156, it seems so. It says:

Tests

Procedure

  • Open the Web page in a browser that allows users to change colors of HTML content.

  • Change the foreground and background colors in the browser settings so they are different than those specified in the content.

  • Return to the page and check that that the new specified foreground text and background colors in the browser override the colors specified in the content.

Expected Results

  • Check #3 is true.

"as long as you specify both background and text color for that div, you're safe"

I think so. It means don't just assume the background is white, because if you don't explicitly specify it, it might not be.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top