RGAA 3.0 - Rule 10.4.1
Check wether a forbidden unit is present in all CSS media types screen, tv, handheld and projection.
In the style sheets of the website, non relative units (pt, pc, mm, cm, in) must not be used for the media types screen, tv, handheld, projection. Has this rule been followed?
All the css Rules whose media is “screen”, “tv”, “handheld” or “projection”.
Check whether the properties of the css rules of Set1 use a forbidden unit (pt, pc, mm, cm, in, defined in the “RelativeCssUnits” nomenclature).
For each occurence returning true, raise a MessageA
A messageB is raised indicating that this css have to checked manually
- code : BadUnitType
- status: Failed
- parameter : css-selector name
- present in source : yes
- code : UnTestedResource
- status: Pre-Qualified
- parameter : the resource name
No property of css rules of Set1 uses a forbidden unit (Test1 returns false for all the elements of Set1)
At least one css-rule of Set1 contains a property that uses a forbidden unit (Test1 returns true for at least one ement of Set1)
If a css could not have parsed, and so not tested for any reason AND no property of css rules of Set1 uses a forbidden unit (Test1 returns false for all the elements of Set1)