Conference PaperPDF Available

Abstract and Figures

Automatic evaluation tools are crucial for helping designers to develop accessible web content. However, most of the existing automatic tools are focused on evaluating the accessibility of (X)HTML code and do not consider style sheets. CSS provides mechanisms for separating content from display which is a requirement for accessible web documents. Although the use of CSS has become essential, sometimes its powerful mechanisms and functionalities may lead to a misuse. This paper presents an accessibility evaluation framework for verifying the correct application of CSS techniques. For this purpose, a flexible accessibility evaluation framework was selected and adapted to incorporate CSS test cases defined in WCAG 2.0. As a result of a detailed analysis, 6 different types of test cases were identified and a total number of 92 test cases were accommodated into the framework. This process has lead to obtain a flexible framework which performs more comprehensive automatic evaluations.
Content may be subject to copyright.
Exploring Automatic CSS Accessibility Evaluation
Amaia Aizpurua, Myriam Arrue, Markel Vigo and Julio Abascal
Laboratory of Human-Computer Interaction for Special Needs, Informatika Fakultatea,
University of the Basque Country, Manuel Lardizabal 1, 20018 Donostia, Spain
amaia.aizpurua@ehu.es, myriam@si.ehu.es, markel@si.ehu.es, julio@si.ehu.es
Abstract. Automatic evaluation tools are crucial for helping designers to develop accessible
web content. However, most of the existing automatic tools are focused on evaluating the
accessibility of (X)HTML code and do not consider style sheets. CSS provides mechanisms for
separating content from display which is a requirement for accessible web documents.
Although the use of CSS has become essential, sometimes its powerful mechanisms and
functionalities may lead to a misuse. This paper presents an accessibility evaluation framework
for verifying the correct application of CSS techniques. For this purpose, a flexible accessibility
evaluation framework was selected and adapted to incorporate CSS test cases defined in
WCAG 2.0. As a result of a detailed analysis, 6 different types of test cases were identified and
a total number of 92 test cases were accommodated into the framework. This process has lead
to obtain a flexible framework which performs more comprehensive automatic evaluations.
1. Introduction
One of the most important issues for improving accessibility of web content is to
ensure that its structure is separated from the presentation. According to Paciello [1]
“by separating presentation from structure, specialized technologies used by people
with disabilities can easily interpret the structure and render it properly to users”.
Therefore, web designers should use appropriate mechanisms for this purpose. In this
sense, the World Wide Web Consortium (W3C)1 recommends using Cascading Style
Sheets (CSS)2.
In recent years, the use of CSS has significantly increased. Designers are supposed to
consider structure and presentation as two different aspects of web development by
properly structuring web documents using only (X)HTML mark-up and defining its
presentation in a separated CSS file. This process facilitates the development of web
documents which are more accessible, easier to maintain, possible to navigate with
screen readers, better indexed by search engine [2], etc. In addition, the use of CSS
has other advantages regarding accessibility [3]:
Allows designers to control the spacing, alignment, positioning, etc. of
components without using (X)HTML structural elements for stylistic effects.
Reduces required download time by preventing the use of images for positioning
content such as invisible images.
1 http://www.w3.org/
2 http://www.w3.org/Style/CSS/
2 Amaia Aizpurua, Myriam Arrue, Markel Vigo, and Julio Abascal
Provides control over font size, color and style avoiding the use of images to
represent text.
Allows users to override designers’ styles.
Provides techniques for including orientation mechanisms such as numbers or
contextual clues, etc.
However, the use of CSS does not guarantee accessibility of web documents. For
instance, when the designer defines rigid styles may disturb with the ones defined in
users’ personal style sheets. Therefore, mechanisms for evaluating the use of CSS are
needed in order to ensure accessibility of web documents.
Web Content Accessibility Guidelines 1.0 (WCAG 1.0) [4] specify several CSS
techniques [5] which are necessary for developing accessible web documents. In
addition, the new version of this set of guidelines, WCAG 2.0 [6], defines evaluation
procedures for ensuring CSS techniques [7] are correctly used. Automatic tools able
to evaluate the correct use of these CSS techniques would be very useful as they are
an essential help for web developers. Ivory and Hearst [8] highlight some advantages
of using automatic tools:
Evaluation process becomes less time demanding and consequently there is a
reduction in costs.
The detected errors are more consistent.
Possibility for predicting the effort needed in the process in terms of time and
economical costs.
Spreads evaluation scope as it is possible to analyse diverse aspects of the
interface in less time.
Facilitates the process to evaluators with little experience in usability and
accessibility evaluation.
Facilitates comparing the adequacy of different user interface design alternatives.
Facilitates incorporation of evaluation tasks during the development process.
Many automatic web accessibility evaluation tools exist though most of them focus
on (X)HTML mark-up evaluation. The existing automatic evaluation tools for CSS
are based on simple syntax verifications such as checking that relative units of
measurement are used. The main objective of this work is to extend the evaluation of
style aspects by adapting a flexible accessibility evaluation framework to incorporate
WCAG 2.0 CSS techniques. For this purpose, a thorough analysis of CSS techniques
has been done. It has been useful in order to detect similarities of these techniques
with respect of (X)HTML ones. The paper is structured as follows: section 2 is
devoted to the analysis of the CSS techniques evaluation coverage of existing
accessibility evaluation tools; section 3 describes the analysis process of CSS
techniques proposed in WCAG 2.0, in this process test cases are identified and
classified; section 4 presents the evaluation process of CSS performed by the adapted
evaluation framework; section 5 points out the limitations of current CSS evaluation
procedures and conclusions are drawn in section 6.
Exploring Automatic CSS Accessibility Evaluation 3
2. Related Work
There are numerous accessibility evaluation tools. Diverse ways for classifying them
can be found in the literature [8, 9, 10, 11]. For instance, they can be classified in two
groups, remote or local, based on the location they are executed, on the local
computer or on a server respectively. Other [12] studied the coverage of several
evaluation tools in all the stages of the development process: specification, design,
implementation and post-implementation.
However, the most relevant aspect of tools considered for this research work is their
coverage of CSS techniques when evaluating web accessibility. W3C-Web
Accessibility Initiative (WAI)3 maintains a complete list of available evaluation tools4
and it is possible to search for tools with specific characteristics, for instance their
coverage of CSS techniques. According to this list there are 18 tools which meet the
specified search criteria: they are free software and evaluate the accessibility of CSS
based on WCAG 1.0. Some of them are specific tools which are focused on CSS
evaluation while others are accessibility general tools which check some CSS
techniques in addition to (X)HTML techniques. Nevertheless, most of them only
incorporate a few aspects of CSS; for instance the W3C CSS Validation Service5 is a
specific tool which checks style sheets against the grammar, properties and values
defined in the corresponding CSS specification. The CSS Analyser6 tool by Juicy
Studio checks the validity of the given CSS as well as the color contrast and the use of
relative units. Hera7 is an online general accessibility tool based on techniques defined
in WCAG 1.0 and also checks some CSS related techniques from checkpoints such as
3.2: Create documents that validate to published formal grammars”, “3.3: Use style
sheets to control layout and presentation or 3.4: Use relative rather than absolute
units in markup language attribute values and style sheet property value”. The
evaluated aspects regarding CSS are basically related to checking the use of style
sheets in the evaluated web page, validating its syntax against the corresponding
formal grammar and verifying the use of relative units.
The aim of this research work is to extend the CSS techniques verified by automatic
tools incorporating them into general accessibility evaluation tools in order to perform
more comprehensive evaluations. There are several accessibility evaluation tools
which are interesting to incorporate new techniques as they do not have to be recoded.
They are based on flexible guidelines definition language which provides mechanisms
for specifying testing cases. AccessEnable [13] and Kwaresmi [14, 15] are two
examples. AccessEnable is a commercial tool which is not longer supported, whereas
the GDL guidelines definition language used by Kwaresmi has been recently revised
[16]. The locally executable version of TAW8 offers several functionalities for
defining personalized tests but they are limited to some regular expressions not
sufficiently complete for accommodating CSS techniques testing cases. More
3 http://www.w3.org/WAI/
4 http://www.w3.org/WAI/ER/tools/Overview
5 http://jigsaw.w3.org/css-validator/
6 http://juicystudio.com/services/csstest.php#csscheck
7 http://www.sidar.org/hera/
8 http://www.tawdis.net
4 Amaia Aizpurua, Myriam Arrue, Markel Vigo, and Julio Abascal
recently, Leporini et al. [17] have developed a new evaluation tool MAGENTA which
is based on Guidelines Abstraction Language, GAL. Abascal et al. [18] proposed in
2004 the evaluation tool EvalAccess. Recently, the language for guidelines definition
used by the tool, UGL (Unified Guidelines Language), was extended and revised in
order to accommodate different types of sets of guidelines [19]. This framework has
been selected for this research work since its proved flexibility. As far as the
evaluation logic of evaluation tools is concerned, there is a growing trend towards
using XML technology. XML query languages are very powerful due to their
expressiveness and flexibility. Takata et al. [20] proposed a pseudo-XQuery language
for accessibility evaluation purposes and XPath/XQuery sentences are defined to
check WCAG guidelines in [21]. The use of this technology makes the
implementation of the evaluation logic easier and, as a result, many lines of source
code are saved.
3. Incorporating CSS into Accessibility Evaluation Process
The process described by Vanderdonckt in [22] has been taken as the basis of this
work. The principal steps of the process are the following:
Gather, combine and compile accessibility guidelines from different sources in
order to develop a complete set of guidelines.
Classify and order the obtained set of guidelines in one organizational
framework.
Develop a computational representation of the set of guidelines so guidelines can
be specified and manipulated by software components.
As it can be observed, this process is focused on a complete analysis of sets of
guidelines in order to obtain a computational representation flexible enough to
accommodate different types of guidelines. In this case, different sets of guidelines
have been analysed in order to detect the CSS techniques defined. This process is not
simple as guidelines may have different formats, may contain different information
and may be described with different level of detail [23, 24]. However, it has been
simplified as the recently released WCAG 2.0 determines the exact evaluation
procedure for each CSS technique. Depending of their evaluation procedure CSS
techniques can be classified in three groups:
Automatic tests: these problems should not require human judgment to check
their validity. Therefore, their evaluation can be completely automatic.
Manual or semi-automatic tests: human judgment is necessary to check potential
problems associated to particular fragments of code implementing the page.
Generic problems: human judgment is necessary to check potential problems that
cannot be associated to any code fragments.
EvalAccess framework can manage these three types of tests. However, the most
important types of tests are those that its evaluation can be totally or partially
automated.
Exploring Automatic CSS Accessibility Evaluation 5
As a result of the analysis, 22 CSS techniques have been detected. 13 of those can be
automatically or semi-automatically evaluated whereas 8 specify generic problems
independent of any CSS code fragment and require human judgment. In addition,
there is one CSS technique9 which has no available tests. For the automatic and semi-
automatic techniques a number of 92 test cases have been identified. Those test cases
can be classified in 6 different types shown in Table 1.
Table 1. The detected different types of test cases for CSS techniques in WCAG 2.0
Id.
Test case name
Description
Example
1
Selector warning
Using a selector may cause
accessibility problems and have to be
tested manually
WCAG 2.0 – C15 technique
A :focus
2
Property warning
Using a property may cause
accessibility problems and have to be
tested manually
WCAG 2.0 – C25 technique
*{color, background-
color}
3
Determined
value
The value of a property has to be one
of some specifically defined
WCAG 2.0 – C13 technique
*{font-size: xx-small,
x-small, small, medium,
large, x-large, xx-large,
larger, smaller}
4
Determined Part
of Value
The value of a property must contain
a determined value
WCAG 2.0 – C12 technique
*{font-size: *%}
5
Value between
two values
The value of a property must be
between to values
WCAG 2.0 – C21 technique
P{line-height: 150% -
200%}
6
Avoid
determined part
of value
Avoid a determined value for a
property
WCAG 2.0 – C20 technique
DIV {width: cm, mm, in,
pt, pc, px }
The detected test cases can be easily represented by UGL, the guidelines specification
language used by EvalAccess. This ensures a straightforward process for
accommodating the new test cases into the evaluation framework simply by defining
each one and incorporating this definition in UGL to the repository of EvalAccess.
However, each test case type requires the specification of one XQuery template. The
evaluation engine of EvalAccess will match the UGL document of each test case with
the corresponding XQuery template. These templates will be completed with the
necessary information contained in the UGL document. These completed XQuery
9 http://www.w3.org/TR/WCAG20-TECHS/css.html#C18
6 Amaia Aizpurua, Myriam Arrue, Markel Vigo, and Julio Abascal
templates will be those directly applicable evaluation queries which will be used by
the evaluation engine.
Figure 1 shows the XQuery template corresponding to test case no. 6 completed with
the necessary information for the evaluation of the test case included as an example.
let $r:=//rule return(
if($r/selector='div') then
(let $p:= $r/declaration_block/declaration/property return(
if($p='width') then(
for $v in $s/descendant::value return(
if( (contains($v/text(), 'cm') or contains($v/text(), 'mm ') or
contains($v/text(), 'in') or contains($v/text(), 'pt ') or
contains($v/text(), 'pc') or contains($v/text(), 'px '))) then
('warn')
else ())) else ())) else ())
Fig 1. XQuery template for CSS test-case no. 6 “Avoid determined part of value
Note that some details of the XQuery sentence related to the results are omitted in
order to enhance readability.
4. Evaluation Process of CSS Techniques
Figure 2 depicts the evaluation process of CSS techniques included in EvalAccess
framework. Each component block in Figure 2 is described below:
1. The CSS Code Retriever obtains the content of a style sheet from the WWW.
The obtained CSS code is then converted into XML. This pre-processing of
CSS code is necessary since EvalAccess framework is prepared to evaluate
(X)HTML code parsed into XML. For this purpose, a XML Schema for
parsing CSS code has been developed.
2. The necessary XQuery templates are matched and completed with the
information contained in UGL. This process leads to obtain all the XQuery
sentences to be applied in the evaluation process.
3. The code of the style sheet in XML format is evaluated against the XQuery
sentences. As a result, detailed evaluation report, which contains information
regarding errors, warnings, etc., is obtained. Since reports are formatted
according to a specific XML Schema, they can be also exploited by external
applications.
Figure 3 shows the defined XML Schema for representing the content of style sheets.
As it can be appreciated, style sheets consist of a set of style rules which contains a
selector and a declaration block. The last one will gather the attributes and the
corresponding values that are defined for the selector element.
Exploring Automatic CSS Accessibility Evaluation 7
Fig 2. Evaluation process included in EvalAccess for verifying CSS techniques.
Fig 3. XML Schema developed for parsing CSS code into XML.
4.1 Example of the Evaluation Process
This section presents a detailed description of each necessary step in the evaluation
process. For this purpose, a CSS code fragment has been selected as an example for
illustrating the developed evaluation process. Figure 4 shows the CSS code fragment.
div{
width: 350px;
margin: 1em 0 1em 0;
}
#tag p{
text-align: justify;
font-size:10px;
font-weight: bold;
background-color: #FFFFFF;
}
Fig 4. An example of CSS code.
As mentioned above, EvalAccess framework transforms the CSS code into XML
based on the developed XML Schema. The XML file corresponding to the example
CSS code (Figure 4) can be found in Figure 5.
8 Amaia Aizpurua, Myriam Arrue, Markel Vigo, and Julio Abascal
<?xml version="1.0"?>
<css xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="file:///c:/schemaCSS.xsd">
<rule_set title="C:\style">
<rule>
<selector>div</selector>
<declaration_block>
<declaration>
<property>width</property>
<value>350px</value>
</declaration>
<declaration>
<property>margin</property>
<value>1em</value>
<value>0</value>
<value>1em</value>
<value>0</value>
</declaration>
</declaration_block>
</rule>
<rule>
<selector>#tag p</selector>
<declaration_block>
<declaration>
<property>text-align</property>
<value>justify</value>
</declaration>
<declaration>
<property>font-size</property>
<value>10px</value>
</declaration>
<declaration>
<property>font-weight</property>
<value>bold</value>
</declaration>
<declaration>
<property>background-color</property>
<value>#FFFFFF</value>
</declaration>
</declaration_block>
</rule>
</rule_set>
</css>
Fig 5. XML representation of the CSS code in Figure 4.
As it can be observed, the CSS code is analysed in order to detect the selectors and all
the rules in terms of attributes and values applied to them. This information is inserted
in a XML file. This XML transformation facilitates the application of the CSS test
cases defined in the evaluation framework.
The 92 CSS test cases identified in WCAG 2.0 document are stored in UGL format in
a repository. In this way, incorporation of new test cases or new versions of existing
ones is quite straightforward.
Next figures, Figure 6, 7 and 8, show the UGL definition of different CSS test cases
applied in the evaluation process and the generated XQuery sentences based on
appropriate XQuery templates directly applied to the XML file containing the CSS
code fragment.
Exploring Automatic CSS Accessibility Evaluation 9
<techniques id="C12">
<type>CSS</type>
<title>Using percent for font sizes</title>
<description>The value of the property must contain a
determined part of value
</description>
<test_case>
<type>4</type>
<evaluation_type>auto</evaluation_type>
<evaluation_result>[error]</evaluation_result>
<element>
<label>#tag p</label>
<attribute>
<atb>[font-size]</atb>
<test_a>value</test_a>
<content analysis="=">[*%]</content>
</attribute>
</element>
</test_case>
</techniques>
for $d in //rule/declaration_block/declaration return
if($d/property = "font-size") then
return
if(not(contains(($d/value), "%")))
then ("error")
else ()
Fig 6. One test case for verifying WCAG 2.0 C12 CSS technique specified in UGL and the
corresponding XQuery sentence.
Figure 6 contains the UGL specification of one test case for CSS technique C12
defined in WCAG 2.0. All the necessary information for completing the
corresponding XQuery template is included in this specification. UGL provides
mechanisms for determining the correspondence of one CSS test case with its XQuery
template (type attribute of the test_case element). In this case, the corresponding
XQuery template is the one defined for CSS test case type no.4 “Determined Part of
Value” (see Table 1).
Figure 7 shows the UGL file and the generated XQuery sentence for the evaluation of
one test case of WCAG 2.0 C19 CSS technique. The XQuery sentence is generated by
including the necessary data in the XQuery template corresponding to CSS test case
type no.3 “Determined value” (see Table 1).
Figure 8 shows UGL specification and XQuery sentence for verifying one of the test
cases of WCAG 2.0 C25 CSS technique. XQuery sentence is generated by including
the necessary data in the XQuery template corresponding to CSS test case type no.2
Property warning” (see Table 1). In this case, a warning will be created if the
XQuery sentence is proved to be true as the test case is of semi-automatic type. This
is defined in UGL by evaluation_result attribute of test_case element.
10 Amaia Aizpurua, Myriam Arrue, Markel Vigo, and Julio Abascal
<techniques id="C19">
<type>CSS</type>
<title>Specifying alignment either to the left OR right in
CSS</title>
<description>The value of the property has to be one of some
specifically defined</description>
<test_case>
<type>3</type>
<evaluation_type>auto</evaluation_type>
<evaluation_result>[error]</evaluation_result>
<element>
<label>#tag p</label>
<attribute>
<atb>[text-align]</atb>
<test_a>value</test_a>
<content analysis="=">[left]</content>
<content analysis="=">[right]</content>
</attribute>
</element>
</test_case>
</techniques>
for $d in //rule/declaration_block/declaration return
if($d/property = "text-align") then
return
if($d/value!="left" and $d/value!="right ")
then ("error")
Fig 7. One test case for verifying WCAG 2.0 C19 CSS technique specified in UGL and the
corresponding XQuery sentence. CSS test-case no. 3 “Determined value
<techniques id="C25">
<type>CSS</type>
<title>Specifying borders and layout in CSS to delineate areas
of a Web page while not specifying text and text-background
colors</title>
<description>It is recommended to avoid using the
property</description>
<test_case>
<type>2</type>
<evaluation_type>semi</evaluation_type>
<evaluation_result>[warn]</evaluation_result>
<element>
<label>#tag p</label>
<attribute>
<atb> [background-color] </atb>
<test_a>warning</test_a>
</attribute>
</element>
</test_case>
</techniques>
for $d in //rule/declaration_block/declaration return
if($d/property = "background-color")
then ("warn")
Fig 8. One test case for verifying WCAG 2.0 C25 CSS technique specified in UGL and the
corresponding XQuery sentence.
Exploring Automatic CSS Accessibility Evaluation 11
UGL specification of CSS test cases also provides useful information for creating the
evaluation results report as the description and title of the test case is also available.
The results obtained evaluating the example CSS code fragment according to the
described three test cases are described in Table 2.
Table 2. Evaluation results of the example CSS code fragment based on the described three test
cases.
Type
Selector
Attribute
Description
Technique Id
CSS code
Error
#tag p
font-size
The value of the
property must
contain a determined
part of value
C12
font-
size:10px
Error
#tag p
text-align
The value of the
property has to be
one of some
specifically defined
C19
text-align:
justify
Warning
#tag p
background-color
It is recommended to
avoid using the
property
C25
background-
color:
#FFFFFF
5. Limitations of CSS evaluation
The main advantage of using style sheets is that they allow the separation of content
from design, as recommended by the W3C. Separating markup and presentation is a
crucial part of universal design paradigm. This architectural principle is the key for
the evolution of the web in a wide range of aspects, such as accessibility, device
independence, ubiquity and so on. Currently, it would be very difficult to fulfill the
WCAG accessibility guidelines without using CSS.
However, CSS provides powerful mechanisms and functionalities which can lead to a
misuse. In this sense, some practices may lead to confuse specialized technologies
used by people with disabilities. For instance, the use of misusing (X)HTML
structural elements for its expected visual effects, such as the TABLE element which
is often used for stylistic purposes like positioning or alignment. On the contrary,
style sheets may be used to imitate proper (X)HTML Markup. Elements such as
headings, paragraphs and inline elements (STRONG, EM, etc) are sometimes
replaced with inappropriate tags which are styled to simply look like markup
elements. In order to avoid confusing specialized technologies, it is crucial to verify
that CSS techniques are applied appropriately.
Even though this paper describes a useful evaluation framework for CSS techniques,
there are several issues which have to be necessarily considered in order to perform
comprehensive evaluations. For example, the presented framework evaluates the
accessibility of a style sheet itself but it is more interesting to evaluate the result of
applying the styles on a specific web page. In addition there are some aspects of CSS
12 Amaia Aizpurua, Myriam Arrue, Markel Vigo, and Julio Abascal
which make more difficult to foresee the final display of a web page, but they should
be considered for ensuring accessibility of web documents:
Inheritance10. CSS allows some properties applied to determined elements, to be
inherited from those specified for the parent elements. Although all CSS
properties cannot be inherited, the latter CSS specification introduced the inherit
property value. This value allows the property to be inherited from a parent
element in the document tree.
Cascading11. Style sheets may belong to different agents: author, user and user-
agent. The cascade is the property which allows having multiple styles from
different sources merged together into one definitive style. It consists of a set of
rules to determine the interaction among conflicting styles from different origins.
Conflicts among styles happen when for the same element in a document a
determined property is assigned contradictory values by different style sheets.
Priority levels have been determined in order to solve these conflicts. They are
based on three main factors: weight and origin, specificity of selectors and order
of appearance. However, there are some mechanisms which can override the
established priorities such as !important style rules, @import statement.
Therefore, it is a complex task to foresee which style rules will be finally applied
to the document.
Media selection12. Media Types allow specifying how documents will be
presented on different media, such as speech synthesizers, braille devices,
printers, etc. The design of a web page to be displayed on a normal desktop
screen may not be suitable for a printer, or a handheld device. There are several
media types but by default, style sheets apply to all media types. Different ways
can be used to make styles apply only to specific media types. The most
commonly used methods are the use of the media attribute of the link or style tag,
and the @media rule. Most of the styles are available to all media types, but some
CSS properties are only designed for certain media. For example, the font-size
style property does not make any sense in speech media. This means that the
rules of the style sheets must be applied depending on the selected media.
Browser implementation differences13. Although most browsers support style
sheets, not all of them provide the same level of implementation14. Moreover,
there are implementation differences among versions of the same browser. There
are several mechanisms15 to solve the CSS related browser bugs. Nevertheless, if
those solutions are not applied and a design for a given web page is made for a
determined browser, the content of the page can be inaccessible for persons using
other browsers.
All these aspects should be considered in order to perform a more adaptive evaluation
but it requires gathering more information about final users’ environment, such as the
browser model and version, access device used, existence of user defined style sheets,
10 http://www.w3.org/TR/CSS21/cascade.html#inheritance
11 http://www.w3.org/TR/CSS21/cascade.html#cascade
12 http://www.w3.org/TR/CSS21/media.html
13 http://www.webreference.com/authoring/style/sheets/browser_support/
14 http://www.quirksmode.org/css/contents.html
15 http://websitetips.com/css/solutions/
Exploring Automatic CSS Accessibility Evaluation 13
etc. Otherwise, evaluating accessibility of CSS for all possible interaction schemas
becomes an excessively complex task.
6. Conclusions
In this paper we have presented a framework to evaluate accessibility of style sheets
according to the CSS techniques specified in WCAG 2.0. For this purpose, a detailed
analysis of CSS techniques has been performed. The framework itself has not been
developed from scratch since one flexible accessibility evaluation framework was
selected to accommodate the new CSS techniques. This allows extending the
efficiency of the framework so that more comprehensive accessibility evaluation can
be performed.
Unified Guidelines Language (UGL) is the basis of the framework. The use of this
language guarantees that new CSS techniques will be easily incorporated into the
framework. A total number of 92 CSS test cases have been defined in UGL and
incorporated to the framework for their automatic verification.
This work involves an important step towards considering the web design in the
accessibility evaluation process. However, the proposed framework only deals with
the evaluation of CSS files and it does not consider some significant aspects inherent
to the use of style sheets such as inheritance, cascading, differences in browser
implementation, etc.
Comprehensive accessibility evaluations involve considering more aspects than only
the CSS or the (X)HTML code. In this sense, it is necessary to predict the resulting
display of combining an (X)HTML file with the applicable style sheets in a
determined context of use (specific browser and version, access device, users’
preferences, etc.). Nevertheless, this is a complex task and future work will be
focused on trying to find better solutions in order to improve the accessibility
evaluation process.
References
1. Paciello, M.G.: Web Accessibility for People with Disabilities. CMP books (2000)
2. Pemberton, S. (2003). Accessibility is for Everyone. ACM Interactions, Vol. 10, No.
6, pp.4-5.
3. Jacobs, I., Brewer, J. (eds.): Accessibility Features of CSS. W3C Note, (1999, August
4) Available at http://www.w3.org/TR/CSS-access
4. Chrisholm, W., Vanderheiden, G., Jacobs, I. (eds.): Web Content Accessibility
Guidelines 1.0, W3C Recommendation, (1999, May 5). Available at
http://www.w3.org/TR/WCAG10/
5. Chisholm, W., Vanderheiden, G., Jacobs, I. (eds.): CSS Techniques for Web Content
Accessibility Guidelines 1.0, W3C Note, (2000, November 6). Available at
http://www.w3.org/TR/WCAG10-CSS-TECHS/
6. Caldwell, B., Cooper, M., Reid, L.G., Vanderheiden, G. (eds.): Web Content
Accessibility Guidelines (WCAG) 2.0, W3C Recommendation, (2008, December
11). Available at http://www.w3.org/TR/WCAG20/
14 Amaia Aizpurua, Myriam Arrue, Markel Vigo, and Julio Abascal
7. Caldwell, B., Cooper, M., Reid, L.G., Vanderheiden, G. (eds.): Techniques for
WCAG 2.0. CSS Techniques for WCAG 2.0, W3C Working Group Note, (2008,
December 11) Available at http://www.w3.org/TR/WCAG20-TECHS/css.html
8. Ivory, M.Y., Hearst, M.A.: The state of art in automating usability evaluations of user
interfaces. ACM Computing Surveys 33(4), 470-516. ACM Press, (2001)
9. Ivory, M.Y., Mankoff, J., Le, A.: Using Automated Tools to Improve Web Site
Usage by Users with Diverse Abilities. Information Technology and Society 1(3),
195-236 (2003)
10. Brajnik, G.: Comparing accessibility evaluation tools: a method for tool
effectiveness. Universal Access in the Information Society 3(3-4), 252-263. Springer,
(2004)
11. Abou-Zahra, S. (ed.): Selecting Web Accessibility Evaluation Tools, (2006).
Available at http://www.w3.org/WAI/eval/selectingtools
12. Xiong, J., Farenc, C., Winckler, M.: Analyzing Tool Support for Inspecting
Accessibility Guidelines During the Development Process of Web Sites. WISE
Workshops 2007. LNCS 4832, 470-480. Springer, (2007)
13. Brinck, T., Hermann, D., Minnebo, B., Hakim, A.: AccessEnable: A Tool for
Evaluating Compliance with Accessibility Standards. In Automatically Evaluating
the Usability of Web Sites, CHI Workshop, (2002)
14. Beirekdar, A., Vanderdonckt, J., Noirhomme-Fraiture, M.: KWARESMI -
Knowledge-based Web Automated Evaluation with REconfigurable guidelineS
optimization. In Proceedings of 9th International Workshop on Design, Specification,
and Verification of Interactive Systems DSV-IS 2002. 362-376, (2002)
15. Beirekdar, A., Vanderdonckt, J., Noirhomme-Fraiture, M.: A Framework and a
Language for Usability Automatic Evaluation of Web Sites by Static Analysis of
HTML Source Code. Chapter 29, in Proceedings of 4th Int. Conf. on Computer-
Aided Design of User Interfaces CADUI 2002. 337-348. Kluwer, (2002)
16. Vanderdonckt, J., Bereikdar, A.: Automated Web Evaluation by Guideline Review.
Journal of Web Engineering. Rinton Press 4(2), 102-117. Rinton Press (2005)
17. Leporini, B., Paternò, F., Scorcia, A.: Flexible tool support for accessibility
evaluation. Interacting with Computers 18(5), 869-890. Elsevier, (2006)
18. Abascal, J., Arrue, M., Fajardo, I., Garay, N., Tomás, J.: Use of Guidelines to
automatically verify web accessibility. Universal Access in the Information Society
3(1), 71-79. Springer, (2004)
19. Arrue, M., Vigo, M., Abascal, J.: Including Heterogeneous Web Accessibililty
Guidelines in the Development Process. Engineering Interactive Systems, EIS. LNCS
4940, 620-637. Springer, (2007)
20. Takata, Y., Nakamura, T., and Seki, H. (2004). Accessibility Verification of WWW
Documents by an Automatic Guideline Verification Tool. Proceedings of the 37th
Hawaii International Conference on System Sciences.
21. Luque, V., Delgado, C., Gaedke, M., and Nussbaumer, M. (2005). WCAG
Formalization with W3C Techniques. LNCS 3579, 615-617. Springer.
22. Vanderdonckt, J.: Development milestones towards a tool for working with
guidelines. Interacting with Computers 12(2), 81-118. Elsevier, (1999)
23. Abascal, J., Nicolle, C.: Why Inclusive Design Guidelines? In J. Abascal, C. Nicolle
(eds.), Inclusive Design Guidelines for HCI, Chapter 1, 3-13. Taylor & Francis,
(2001)
24. Mariage, C., Vanderdonckt, J., Pribeanu, C.: State of the Art of Web Usability
Guidelines. In Proctor, R. and Vu, K. (eds.): The Handbook of Human Factors in
Web Design, Chapter 38, 688-700. Lawrence Erlbaum, (2005)
... Since the creation of the Web, its lack of accessibility has been drawing the attention of various institutions and workgroups [2]. Among the initiatives that have been taken with a view to minimizing that problem, we can highlight the proposal of general guidelines and standard models for assisting Web content owners and developers in the development process of their systems, such as the Web Content Accessibility Guidelines (WCAG) 1 , which are accepted worldwide. The WCAG define a set of ground rules on how to make Web content accessible to users with different conditions, such as visual, auditory, physical or intellectual limitations. ...
... Aizpurua et al. [1] propose an automatic evaluation tool whose focus is analysing the accessibility of the CSS code on Webpages, taking the WCAG 2.0 into account. The tool has 92 test cases which verify the correct use of CSS techniques as applied to the following aspects: focus, color and background settings, font and alignment settings, value and CSS properties settings . ...
Conference Paper
Full-text available
The vast majority of pages available on the Web are developed under the tacit assumption that the final user will not have any kind of disability. Thus, accessibility aspects are not contemplated in their development process. As a consequence, many users encounter interaction barriers and cannot access much of the content in the Web. But the improvement of Websites can be challenging due to their high complexity and lack of documentation, the impossibility of accessing the source code, the use of out-of-dated technologies, and the fact that development teams are often unaware of accessibility rules. To mitigate this problem, this paper proposes a tool, called Website Accessibility Layer (WAL), which aims at both inserting accessibility features into existing Web pages at runtime and diagnosing accessibility issues through a dynamic source code analysis. The current version of the tool contributes to the accessibility of users with visual impairment, dyslexia, and reading difficulties, with respect to 13 Web page resources. The proposal has been validated by being applied to 40 widely accessed Websites with satisfactory results, proving the feasibility of the solution. Furthermore, real users also evaluated positively the benefits brought by the tool to their daily work activities.
... • Analysis: verification [26], defect prediction [8], optimisation [55], performance and energy consumption [77], complexity metrics [2], accessibility metrics [3], quality metrics [45]. ...
Conference Paper
Full-text available
Coding conventions are lexical, syntactic or semantic restrictions enforced on top of a software language for the sake of consistency within the source base. Specifying coding conventions is currently an open problem in software language engineering, addressed in practice by resorting to natural language descriptions which complicate conformance verification. In this paper we present an endeavour to solve this problem for the case of CSS — a ubiquitous software language used for specifying appearance of hypertextual content separately from the content itself. The paper contains the results of domain analysis, a short report on an empirically obtained catalogue of 143 unique CSS coding conventions, the domain-specific ontology for the domain of detecting violations, the design of CssCoco, a language for expressing coding conventions of CSS, as well as a description of the tool we developed to detect violations of conventions specified in this DSL.
... This approach can be cumbersome for expressing possible guidelines to check. UGL language has been subsequently refined [19] to include the opportunity to express requirements related to the CSS code inside the guidelines. ...
Article
Full-text available
During the last decade, Web site accessibility and usability have become increasingly important. Consequently, many tools have been developed for automatic or semi-automatic evaluation of Web site accessibility. Unfortunately, most of them have not been updated over time to keep up with the evolution of accessibility standards and guidelines, thus soon becoming obsolete. Furthermore, the increasing importance of CSS in the definition of modern Web page layout, and the increasing use of scripting technologies in dynamic and interactive Web sites, has led to new challenges in automatic accessibility evaluation that few of the existing tools are able to face. This paper describes MAUVE, a software environment for Web site accessibility and usability evaluation. The tool is characterized by the possibility to specify and update the guidelines that should be validated without requiring changes in the tool implementation. It is based on an XML-based language for Web Guidelines Definition. It allows checking both HTML and CSS to detect accessibility issues and is able to validate dynamic sites as well, based on the use of a set of plugins for the most popular browsers.
Article
Full-text available
The World Wide Web plays an important role in our society—enabling broader access to information and services than was previously available. However, Website usability and accessibility are still a problem. Numerous, automated, evaluation and transformation tools are available to help Web developers build better sites for users with diverse needs. A survey of these automated tools is presented in the context of the user abilities they support. Furthermore, the efficacy of a subset of these tools based on empirical studies is discussed, along with ways to improve existing tools and future research areas.
Conference Paper
Full-text available
Whilst accessibility is widely agreed as an essential requirement for promoting universal access of information, many Web sites still fail to provide accessible content. This paper investigates the support given by currently available tools for taking care of accessibility at different phases of the development process. At first, we provide a detailed classification of accessibility guidelines according to several levels of automation. Then we analyze which kind of automated inspection is supported by currently available tools for building Web sites. Lately, by the means of a case study we try to assess the possibility of fixing accessibility problems at early phases of the development process. Our results provide insights for improving current available tools and for taking accessibility at all phases of development process of Web sites.
Conference Paper
Full-text available
Web accessibility consists of a set of restrictions that Web pages should follow in order to be functional for different devices and users. These restrictions, which are quite heterogeneous and rather expensive to evaluate, unless relayed to human judgement, are usually expressed within a program’s code. Different solutions have recently emerged to express these restrictions in a more declarative way. We present a comparison of some of them and propose some W3C techniques for expressing these constraints. Using W3C technologies, the evaluation cost can be clearly minimized.
Conference Paper
Full-text available
The use of web applications has extremely increased in the last few years. However, some groups of users may experience difficulties when accessing them. Many different sets of accessibility guidelines have been developed in order to improve the quality of web interfaces. Some of them are of general purpose whereas others are specific for user, application or access device characteristics. The existing amount of heterogeneous accessibility guidelines makes it difficult to find, select and handle them in the development process. This paper proposes a flexible framework which facilitates and promotes the web accessibility awareness during all the development process. The basis of this framework is the Unified Guidelines Language (UGL), a uniform guidelines specification language developed as a result of a comprehensive study of different sets of guidelines. The main components of the framework are the guidelines management tool and the flexible evaluation module. Therefore, sharing, extending and searching for adequate accessibility guidelines as well as evaluating web accessibility according to different sets of guidelines become simpler tasks.
Article
Full-text available
Accessibility is one of the key challenges that the Internet must currently face to guarantee universal inclusion. Accessible Web design requires knowledge and experience from the designer, who can be assisted by the use of broadly accepted guidelines. Nevertheless, guideline application may not be obvious, and many designers may lack experience to use them. The difficulty increases because, as the research on accessibility is progressing, existing sets of guidelines are updated and new sets are proposed by diverse institutions. Therefore, the availability of tools to evaluate accessibility, and eventually repair the detected bugs, is crucial. This paper presents a tool, EvalIris, developed to automatically check the accessibility of Websites using sets of guidelines that, by means of a well-defined XML structure, can be easily replaced or updated.
Article
From the Publisher: Web Accessibility for People with Disabilities is a vital tool for Web site developers and administrators who need to understand the law, the requirements of the disabled, and the processes of site evaluation and implementation. It includes an authoritative compendium of development tools and utilities, and is packed with examples demonstrating techniques for adjusting HTML tags, scripts, and other code to improve accessibility. Readers will learn answers to the challenges ahead, including how to: deliver highly graphic and visual content to the blind; provide access to Internet kiosks for the physically challenged; enable nonverbal users to "speak" to devices with voice recognition interfaces. This is a critical resource in helping companies comply with the "effective communication" requirement of the Americans with Disabilities Act of 1990.
Chapter
Web accessibility evaluation is a broad field that combines different disciplines and skills. It encompasses technical aspects such as the assessment of conformance to standards and guidelines, as well as non-technical aspects such as the involvement of end-users during the evaluation process. Since Web accessibility is a qualitative and experiential measure rather than a quantitative and concrete property, the evaluation approaches need to include different techniques and maintain flexibility and adaptability toward different situations. At the same time, evaluation approaches need to be robust and reliable so that they can be effective. This chapter explores some of the techniques and strategies to evaluate the accessibility of Web content for people with disabilities. It highlights some of the common approaches to carry out and manage evaluation processes rather than list out individual steps for evaluating Web content. This chapter also provides an outlook to some of the future directions in which the field seems to be heading, and outlines some opportunities for research and development.
Article
The increasing need to check Web site accessibility has stimulated interest in tools to aid the various activities involved. While some tools for this purpose already exist, we believe that there is a demand for making their support more flexible. In particular, there is often a need for validation of multiple sets of guidelines, repairing Web pages and providing better reports for the evaluators. In this paper, we discuss such issues and how we have addressed them in the design of MAGENTA, our new tool for supporting inspection-based evaluation of accessibility and usability guidelines.
Conference Paper
Since the World Wide Web (WWW) is currently the princi- pal infrastructure used by the general public, web site cre- ators are required to build universally accessible sites. Ac- cessibility guidelines such as the Web Content Accessibil- ity Guidelines (WCAG) show the creators how to make ac- cessible web pages. Also, tools which automatically verify whether or not a given web page complies with the guide- lines are provided. Although those tools are useful, ap- plying them to any document format other than HTML or any guidelines other than WCAG is difficult, since these tools assume a fixed set of guidelines (e.g., WCAG) and a fixed document format (e.g., HTML). That is, changing the built-in guidelines (e.g., verifying whether a given document complies with the guidelines defined by their organization) requires modifying the tool. This paper proposes a simple and clear language for specifying guidelines, and discusses a verification tool which has the following characteristics. • A guideline specification is separated from the tool and can be easily modified. • An arbitrary XML document can be verified. • The tool can be used not only for accessibility guide- line verification but also for complex syntactic check- ing. We also present the verification results conducted on about 3,000 web pages of forty major organizations in the U.S.A. and Japan using our verification tool.