Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 311 and 401] [Versions 400 and 401]

Class test_css_text_has_contrast test

Copyright: 2020 onward: Brickfield Education Labs, https://www.brickfield.ie
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 350 lines (12 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 admin/tool/brickfield/tests/local/htmlchecker/common/checks/all_checks.php

Defines 1 class


Class: css_text_has_contrast_test  - X-Ref

Class test_css_text_has_contrast_test

test_check()   X-Ref
Test for the area assign intro


test_check_for_namedcolours()   X-Ref
Test with valid colour names.


test_check_for_invalidcolours()   X-Ref
Test with invalid colour names.


test_check_for_invalidvalues()   X-Ref
Test with invalid colour numeric values.


test_check_for_emptyvalues()   X-Ref
Test with empty colour values.


test_check_for_px18_fail()   X-Ref
Test for text px18 with insufficient contrast of 4.49.


test_check_for_px19bold_pass()   X-Ref
Test for text px19 bold with sufficient contrast of 4.49.


test_check_for_px18_pass()   X-Ref
Test for text px18 with sufficient contrast of 4.81.


test_check_for_medium_fail()   X-Ref
Test for medium (12pt) text with insufficient contrast of 4.49.


test_check_for_medium_pass()   X-Ref
Test for medium (12pt) text with sufficient contrast of 4.81.


test_check_for_larger_fail()   X-Ref
Test for larger (14pt) text with insufficient contrast of 2.94.


test_check_for_larger_pass()   X-Ref
Test for larger (14pt) text with insufficient contrast of 3.02.


test_check_for_largerbold_pass()   X-Ref
Test for larger (14pt) bold text with sufficient contrast of 3.02.