From b3cdd8c2fd10e92733a6e949fb599c86e9bf6015 Mon Sep 17 00:00:00 2001 From: "Patrick H. Lauke" Date: Sun, 10 Mar 2024 10:23:19 +0000 Subject: [PATCH 1/6] Remove "1280 pixels wide" test step from F94 Closes https://github.com/w3c/wcag/issues/704 --- techniques/failures/F94.html | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/techniques/failures/F94.html b/techniques/failures/F94.html index b01f72e13e..d051a22a4e 100644 --- a/techniques/failures/F94.html +++ b/techniques/failures/F94.html @@ -2,7 +2,7 @@ Failure of Success Criterion 1.4.4 due to incorrect use of viewport units to resize text - +

Failure of Success Criterion 1.4.4 due to incorrect use of viewport units to resize text

@@ -20,8 +20,7 @@

Description

The objective of this technique is to document the failure of text to re-scale when viewport units are used on text. As these units are relative to the viewport, it means they cannot be resized by zooming or adjusting text-size.

There are various methods to increase and decrease the size of text and other content, but viewport units applied to text (generally via font-size in CSS) prevent most available methods. Attempts to use browser controls to zoom or adjust text-size will not work. Only methods that completely override the CSS will work, and those could cause other issues such as layouts collapsing or text overlapping.

Some uses of viewport units may not prevent text-size adjustments, but if they are used as the primary method for defining text-size, they are likely to cause a failure of Success Criterion 1.4.4.

- -

If media queries were used to adjust the size of text or unit of measure at different screen sizes, it may not be a failure of Resize Text. On-page controls provided by the author are also a way of passing the resize text success criteria.

+

If media queries were used to adjust the size of text or unit of measure at different screen sizes, it may not be a failure of Resize Text. On-page controls provided by the author are also a way of passing the resize text success criteria.

Examples

@@ -34,7 +33,7 @@

Failure example 1

} <p class="callout">Text that scales by viewport units</p> -

Example page with an example of text sized in vh units.

+

Example page with an example of text sized in vh units.

@@ -44,16 +43,15 @@

Procedure

In a desktop browser with a resizable window:

  1. Set zoom level to 100%.
  2. -
  3. Set window size to 1280 pixels wide.
  4. -
  5. Visit the page to be tested.
  6. -
  7. Use any of the following methods to resize text when available: +
  8. Visit the page to be tested.
  9. +
  10. Use any of the following methods to resize text when available:
    • the zoom feature of the browser
    • the text-sizing feature of the browser,
    • on-page controls for resizing text.
  11. -
  12. Check that the text resizes by one of the methods above, and can be resized to at least 200% of the default.
  13. +
  14. Check that the text resizes by one of the methods above, and can be resized to at least 200% of the default.
@@ -66,8 +64,8 @@

Expected Results

From 94adbc9d454c52bbb55f9797258abaf858bd7547 Mon Sep 17 00:00:00 2001 From: "Patrick H. Lauke" Date: Mon, 3 Jun 2024 16:54:02 +0100 Subject: [PATCH 4/6] Update techniques/failures/F94.html --- techniques/failures/F94.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/techniques/failures/F94.html b/techniques/failures/F94.html index 43316dc176..4d29fd2361 100644 --- a/techniques/failures/F94.html +++ b/techniques/failures/F94.html @@ -57,7 +57,7 @@

Procedure

Expected Results

    -
  • If step #4 is false, then this failure condition applies and the content fails Success Criteria 1.4.4, Resize Text.
  • +
  • If step #4 is false, then this failure condition applies and the content fails Success Criterion 1.4.4 Resize Text.
From f11dffdaaa5d5425c4a4dfa93026512c465fd70d Mon Sep 17 00:00:00 2001 From: Mike Gower Date: Wed, 12 Jun 2024 08:26:01 -0700 Subject: [PATCH 5/6] Apply suggestions from code review Incorporating the changes from #3876 into this PR --- techniques/failures/F94.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/techniques/failures/F94.html b/techniques/failures/F94.html index 4d29fd2361..ca87adc267 100644 --- a/techniques/failures/F94.html +++ b/techniques/failures/F94.html @@ -40,9 +40,7 @@

Failure example 1

Tests

Procedure

-

In a desktop browser with a resizable window:

    -
  1. Set zoom level to 100%.
  2. Visit the page to be tested.
  3. Use any of the following methods to resize text when available:
      @@ -57,7 +55,7 @@

      Procedure

      Expected Results

        -
      • If step #4 is false, then this failure condition applies and the content fails Success Criterion 1.4.4 Resize Text.
      • +
      • If the last step is false, then this failure condition applies and the content fails Success Criterion 1.4.4 Resize Text.
From ba3d2835b1ab22ef1fcad6fbe669f4b6362b86a9 Mon Sep 17 00:00:00 2001 From: "Patrick H. Lauke" Date: Wed, 12 Jun 2024 19:46:40 +0100 Subject: [PATCH 6/6] Remove irrelevant preamble and first step from F94, future-proof expected results (#3876) This is a follow-up to https://github.com/w3c/wcag/pull/3739