WCAG 2.0 - 基準1.4.8を理解する
-
14-11-2019 - |
質問
WCAG 2.0の基準1.4.8を理解するのに問題があります。
基本的に理解しているものから、たとえば私が<div>
を持っている場合、私は背景とテキストの両方の色を定義している場合、私は次のいずれかにします。
- ユーザーがそれらの色を変更できるように、そのDIVのカラーピッカーツールを提供します。
- "G156:テキストのブロックの前景と背景を変更できる一般的に利用可能なユーザーエージェントを使用するテクノロジを使用して"
カラーピッカー音がかなり取得されているので、私は「G156」に私の希望を置きます。通常のWebブラウザ(すなわち、Firefox、Operaなど)はそのようなユーザーエージェントとして資格を与えますか?
もう1つの混乱の部分は、「F24:Backgroundカラーを指定せずに前景色を指定することや、逆の前景色を指定することで、成功基準1.4.3,1.4.6、1.4.8」と表示されている「共通の障害」です。 「そのDIVの背景とテキストの色、安全」の両方を指定する限り、「名前を付けます」。
このWCAG基準の解釈方法についての考えは?
解決
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.