diff --git a/_data/wcag-act-rules/rule-versions.yml b/_data/wcag-act-rules/rule-versions.yml
index 9144f13b0..ccfe444fb 100644
--- a/_data/wcag-act-rules/rule-versions.yml
+++ b/_data/wcag-act-rules/rule-versions.yml
@@ -510,3 +510,12 @@ bisz58:
url: 674b10/
w3cDate: 20 December 2023
isoDate: 2023-12-20
+b33eff:
+ - file: proposed.md
+ url: b33eff/proposed/
+ w3cDate: 2 December 2024
+ isoDate: 2024-12-02
+ - file: index.md
+ url: b33eff/
+ w3cDate: 14 April 2025
+ isoDate: 2025-04-14
diff --git a/content-assets/wcag-act-rules/testcases.json b/content-assets/wcag-act-rules/testcases.json
index 1c9e2a5a5..70910da40 100644
--- a/content-assets/wcag-act-rules/testcases.json
+++ b/content-assets/wcag-act-rules/testcases.json
@@ -17160,6 +17160,7 @@
},
{
"ruleId": "b33eff",
+ "approved": true,
"ruleName": "Orientation of the page is not restricted using CSS transforms",
"ruleAccessibilityRequirements": {
"wcag21:1.3.4": {
@@ -17178,6 +17179,7 @@
},
{
"ruleId": "b33eff",
+ "approved": true,
"ruleName": "Orientation of the page is not restricted using CSS transforms",
"ruleAccessibilityRequirements": {
"wcag21:1.3.4": {
@@ -17196,6 +17198,7 @@
},
{
"ruleId": "b33eff",
+ "approved": true,
"ruleName": "Orientation of the page is not restricted using CSS transforms",
"ruleAccessibilityRequirements": {
"wcag21:1.3.4": {
@@ -17214,6 +17217,7 @@
},
{
"ruleId": "b33eff",
+ "approved": true,
"ruleName": "Orientation of the page is not restricted using CSS transforms",
"ruleAccessibilityRequirements": {
"wcag21:1.3.4": {
@@ -17232,6 +17236,7 @@
},
{
"ruleId": "b33eff",
+ "approved": true,
"ruleName": "Orientation of the page is not restricted using CSS transforms",
"ruleAccessibilityRequirements": {
"wcag21:1.3.4": {
@@ -17250,6 +17255,7 @@
},
{
"ruleId": "b33eff",
+ "approved": true,
"ruleName": "Orientation of the page is not restricted using CSS transforms",
"ruleAccessibilityRequirements": {
"wcag21:1.3.4": {
@@ -17268,6 +17274,7 @@
},
{
"ruleId": "b33eff",
+ "approved": true,
"ruleName": "Orientation of the page is not restricted using CSS transforms",
"ruleAccessibilityRequirements": {
"wcag21:1.3.4": {
@@ -17286,6 +17293,7 @@
},
{
"ruleId": "b33eff",
+ "approved": true,
"ruleName": "Orientation of the page is not restricted using CSS transforms",
"ruleAccessibilityRequirements": {
"wcag21:1.3.4": {
@@ -17304,6 +17312,7 @@
},
{
"ruleId": "b33eff",
+ "approved": true,
"ruleName": "Orientation of the page is not restricted using CSS transforms",
"ruleAccessibilityRequirements": {
"wcag21:1.3.4": {
@@ -17322,6 +17331,7 @@
},
{
"ruleId": "b33eff",
+ "approved": true,
"ruleName": "Orientation of the page is not restricted using CSS transforms",
"ruleAccessibilityRequirements": {
"wcag21:1.3.4": {
@@ -17340,6 +17350,7 @@
},
{
"ruleId": "b33eff",
+ "approved": true,
"ruleName": "Orientation of the page is not restricted using CSS transforms",
"ruleAccessibilityRequirements": {
"wcag21:1.3.4": {
@@ -17358,6 +17369,7 @@
},
{
"ruleId": "b33eff",
+ "approved": true,
"ruleName": "Orientation of the page is not restricted using CSS transforms",
"ruleAccessibilityRequirements": {
"wcag21:1.3.4": {
diff --git a/content/rules/b33eff/index.md b/content/rules/b33eff/index.md
new file mode 100644
index 000000000..526788fc8
--- /dev/null
+++ b/content/rules/b33eff/index.md
@@ -0,0 +1,460 @@
+---
+title: "Orientation of the page is not restricted using CSS transforms"
+permalink: /standards-guidelines/act/rules/b33eff/
+ref: /standards-guidelines/act/rules/b33eff/
+lang: en
+github:
+ repository: w3c/wcag-act-rules
+ path: content/rules/b33eff/index.md
+feedbackmail: public-wcag-act@w3.org
+footer: |
+
Rule Identifier: b33eff
+ Date: Updated 14 April 2025
+ Authors: Audrey Maniez, Jey Nandakumar, Tom Brunet. Contributors: Participants of the ACT Rules Community Group (CG).
+ This rule was written in the ACT Rules Community Group. It is written as part of the EU-funded WAI-Tools Project. Implementations are part of the EU funded WAI-CooP Project. It was approved and published by the Accessibility Guidelines Working Group (AG WG).
+proposed: false
+rule_meta:
+ id: b33eff
+ name: "Orientation of the page is not restricted using CSS transforms"
+ rule_type: atomic
+ original_file: css-restrict-orientation-b33eff.md
+ description: |
+ This rule checks that page content is not restricted to either `landscape` or `portrait` orientation using CSS transforms
+ last_modified: 14 April 2025
+ scs_tested:
+ - handle: Orientation
+ num: 1.3.4
+ level: AA
+---
+
+## Applicability
+
+This rule applies to any [HTML element][] that is [visible](#visible) and has one of the following CSS properties applied conditionally on the [orientation](https://www.w3.org/TR/css3-mediaqueries/#orientation) [media feature](https://www.w3.org/TR/css3-mediaqueries/#media1) with a value of `landscape` or `portrait`:
+
+- the CSS [rotate](https://www.w3.org/TR/css-transforms-2/#individual-transforms) property; or
+- the CSS [transform](https://www.w3.org/TR/css-transforms/#propdef-transform) property with any of the below [transformation functions](https://www.w3.org/TR/css-transforms/#transform-functions):
+
+ - [rotate](https://www.w3.org/TR/css-transforms/#funcdef-transform-rotate)
+ - [rotate3d](https://www.w3.org/TR/css-transforms-2/#funcdef-rotate3d)
+ - [rotateZ](https://www.w3.org/TR/css-transforms-2/#funcdef-rotatez)
+ - [matrix](https://www.w3.org/TR/css-transforms/#funcdef-transform-matrix)
+ - [matrix3d](https://www.w3.org/TR/css-transforms-2/#funcdef-matrix3d)
+
+**Note:** These specific [transformation functions](https://www.w3.org/TR/css-transforms/#transform-functions) are of interest to this rule as they have the potential to affect the [rotation](https://www.w3.org/TR/css-transforms-2/#Rotate3dDefined) of a given element.
+
+**Note:** The [rotate](https://www.w3.org/TR/css-transforms-2/#individual-transforms) property and the [rotate3d](https://www.w3.org/TR/css-transforms-2/#funcdef-rotate3d), [rotateZ](https://www.w3.org/TR/css-transforms-2/#funcdef-rotatez) and [matrix3d](https://www.w3.org/TR/css-transforms-2/#funcdef-matrix3d) transform functions are currently part of a [W3C](https://www.w3.org/) Working Draft and widely implemented in browsers.
+
+## Expectation
+
+The target element is neither rotated clockwise nor counter clockwise around the Z-axis at an angle corresponding to 90 degrees relative from the position of the element in `landscape` orientation to the position of the element in `portrait` orientation, and vice versa.
+
+**Note:** Imagine the display of a smartphone with cartoon figure at its center. With this example, if a user turns the smartphone a quarter turn, that is a partial move from one orientation to the other, the user would expect that the cartoon figure continues to remain facing upwards. The smartphone accomplishes this by rotating the contents of its display a quarter turn to counter the users change in orientation. In effect, the cartoon figure has remained in place and its rotation relative from one orientation to the other is 0 degrees. Now imagine that a developer facilitated this rotation of the cartoon figure by a quarter turn _only_ when the smartphone starts from one orientation and not the other; its rotation relative from one orientation to the other would then be 90 degrees and it would appear stuck, or locked, as the user moves between orientations. What the developer has done is effectively counter the smartphone's attempt at countering the user's change in orientation.
+
+## Background
+
+### Assumptions
+
+This rule does not consider and may produce incorrect results for:
+
+- Elements for which a particular display orientation is [essential](https://www.w3.org/TR/WCAG22/#dfn-essential).
+- The existence of any control on the page that can change the orientation on demand.
+- Scripts are not used to adjust the CSS orientation lock.
+
+### Accessibility Support
+
+There are no accessibility support issues known.
+
+### Bibliography
+
+- [Understanding Success Criterion 1.3.4: Orientation](https://www.w3.org/WAI/WCAG22/Understanding/orientation.html)
+- [CSS Transforms Module Level 1](https://www.w3.org/TR/css-transforms/#funcdef-transform-matrix)
+- [CSS Transforms Module Level 2](https://www.w3.org/TR/css-transforms-2)
+- [CSS3 Media Queries](https://www.w3.org/TR/css3-mediaqueries/)
+- [Managing screen orientation](https://developer.mozilla.org/en-US/docs/Web/API/CSS_Object_Model/Managing_screen_orientation)
+- [Orientation](https://www.w3.org/TR/css3-mediaqueries/#orientation)
+- [The Transform Rendering Model](https://drafts.csswg.org/css-transforms/#transform-rendering)
+
+## Accessibility Requirements Mapping
+
+
+
+ 1.3.4 Orientation (Level AA)
+
+ - Learn more about 1.3.4 Orientation
+ - Required for conformance to WCAG 2.1 and later on level AA and higher.
+ - Outcome mapping:
+ - Any
failed
outcomes: success criterion is not satisfied
+ - All
passed
outcomes: success criterion needs further testing
+ - An
inapplicable
outcome: success criterion needs further testing
+
+
+
+
+
+## Input Aspects
+
+The following aspects are required in using this rule.
+
+- [DOM Tree](https://www.w3.org/TR/act-rules-aspects/#input-aspects-dom)
+- [CSS Styling](https://www.w3.org/TR/act-rules-aspects/#input-aspects-css)
+
+## Test Cases
+
+### Passed
+
+#### Passed Example 1
+
+Open in a new tab
+
+A page where CSS [transform](https://www.w3.org/TR/css-transforms/#propdef-transform) property has [rotateZ](https://www.w3.org/TR/css-transforms-2/#funcdef-rotatez) [transform function](https://www.w3.org/TR/css-transforms/#transform-functions) conditionally applied on the [orientation](https://www.w3.org/TR/css3-mediaqueries/#orientation) [media feature](https://www.w3.org/TR/css3-mediaqueries/#media1) which does not restrict the element to either `portrait` or `landscape` orientation.
+
+```html
+
+
+ Page with some content
+
+
+
+
+ Page Content
+
+
+
+```
+
+#### Passed Example 2
+
+Open in a new tab
+
+A page where CSS [transform](https://www.w3.org/TR/css-transforms/#propdef-transform) property has [matrix](https://www.w3.org/TR/css-transforms/#funcdef-transform-matrix) [transform function](https://www.w3.org/TR/css-transforms/#transform-functions) conditionally applied on the [orientation](https://www.w3.org/TR/css3-mediaqueries/#orientation) [media feature](https://www.w3.org/TR/css3-mediaqueries/#media1) which does not restrict the element to either `portrait` or `landscape` orientation.
+
+**Note:** The extremely small number in the transform function below is included to ensure testing methodologies correctly interpret the impacts of the transformation and are not simply looking for 0.
+
+```html
+
+
+ Page with some content
+
+
+
+
+ Page Content
+
+
+
+```
+
+#### Passed Example 3
+
+Open in a new tab
+
+A page where the CSS [rotate](https://www.w3.org/TR/css-transforms-2/#individual-transforms) property has a 0 degree rotation conditionally applied on the [orientation](https://www.w3.org/TR/css3-mediaqueries/#orientation) [media feature](https://www.w3.org/TR/css3-mediaqueries/#media1) which does not restrict the element to either `portrait` or `landscape` orientation.
+
+```html
+
+
+ Page with some content
+
+
+
+
+ Page Content
+
+
+
+```
+
+### Failed
+
+#### Failed Example 1
+
+Open in a new tab
+
+A page where CSS [transform](https://www.w3.org/TR/css-transforms/#propdef-transform) property has [rotate](https://www.w3.org/TR/css-transforms/#funcdef-transform-rotate) [transform function](https://www.w3.org/TR/css-transforms/#transform-functions) conditionally applied on the [orientation](https://www.w3.org/TR/css3-mediaqueries/#orientation) [media feature](https://www.w3.org/TR/css3-mediaqueries/#media1) which restricts the element to `landscape` orientation.
+
+```html
+
+
+ Page with some content
+
+
+
+ Page Content
+
+
+```
+
+#### Failed Example 2
+
+Open in a new tab
+
+A page where CSS [transform](https://www.w3.org/TR/css-transforms/#propdef-transform) property has [matrix3d](https://www.w3.org/TR/css-transforms-2/#funcdef-matrix3d) [transform function](https://www.w3.org/TR/css-transforms/#transform-functions) conditionally applied on the [orientation](https://www.w3.org/TR/css3-mediaqueries/#orientation) [media feature](https://www.w3.org/TR/css3-mediaqueries/#media1) which restricts the element to `portrait` orientation.
+
+```html
+
+
+ Page with some content
+
+
+
+ Page Content
+
+
+```
+
+#### Failed Example 3
+
+Open in a new tab
+
+This page appears rotated at a slight angle of 2.5 degrees for stylistic purposes, but is locked in portrait orientation by applying a 92.5 degree rotation when in landscape orientation:
+
+```html
+
+
+ Page with some content
+
+
+
+ Page Content
+
+
+```
+
+#### Failed Example 4
+
+Open in a new tab
+
+A page where the CSS [rotate](https://www.w3.org/TR/css-transforms-2/#individual-transforms) property has a 90 degree rotation conditionally applied on the [orientation](https://www.w3.org/TR/css3-mediaqueries/#orientation) [media feature](https://www.w3.org/TR/css3-mediaqueries/#media1) which restricts the element to `landscape` orientation.
+
+```html
+
+
+ Page with some content
+
+
+
+ Page Content
+
+
+```
+
+### Inapplicable
+
+#### Inapplicable Example 1
+
+Open in a new tab
+
+A page where there are no CSS styles.
+
+```html
+
+
+ Page with some content
+
+
+ I am a page with no styles
+
+
+```
+
+#### Inapplicable Example 2
+
+Open in a new tab
+
+A page that has no CSS [transform](https://www.w3.org/TR/css-transforms/#propdef-transform) property specified.
+
+```html
+
+
+ Page with some content
+
+
+
+ Page Content
+
+
+```
+
+#### Inapplicable Example 3
+
+Open in a new tab
+
+A page where CSS [transform](https://www.w3.org/TR/css-transforms/#propdef-transform) property is applied to an element that is not [visible](#visible).
+
+```html
+
+
+ Page with some content
+
+
+
+
+ Page Content
+
+
+
+```
+
+#### Inapplicable Example 4
+
+Open in a new tab
+
+A page where CSS [transform](https://www.w3.org/TR/css-transforms/#propdef-transform) property is not applied conditionally on the [orientation](https://www.w3.org/TR/css3-mediaqueries/#orientation) [media feature](https://www.w3.org/TR/css3-mediaqueries/#media1).
+
+```html
+
+
+ Page with some content
+
+
+
+
+ Page Content
+
+
+
+```
+
+#### Inapplicable Example 5
+
+Open in a new tab
+
+A page where CSS [transform](https://www.w3.org/TR/css-transforms/#propdef-transform) property is conditionally applied on the [orientation](https://www.w3.org/TR/css3-mediaqueries/#orientation) [media feature](https://www.w3.org/TR/css3-mediaqueries/#media1), but does not have any of the applicable [transformation functions](https://www.w3.org/TR/css-transforms/#transform-functions) which restricts the element to either `landscape` or `portrait` orientation.
+
+```html
+
+
+ Page with some content
+
+
+
+
+ Page Content
+
+
+
+```
+
+## Glossary
+
+### Namespaced Element {#namespaced-element}
+
+An [element][] with a specific [namespaceURI][] value from [HTML namespaces][]. For example an "SVG element" is any element with the "SVG namespace", which is `http://www.w3.org/2000/svg`.
+
+Namespaced elements are not limited to elements described in a specification. They also include custom elements. Elements such as `a` and `title` have a different namespace depending on where they are used. For example a `title` in an HTML page usually has the HTML namespace. When used in an `svg` element, a `title` element has the SVG namespace instead.
+
+### Outcome {#outcome}
+
+A conclusion that comes from evaluating an ACT Rule on a [test subject][] or one of its constituent test target. An outcome can be one of the five following types:
+
+- **Inapplicable:** No part of the test subject matches the applicability
+- **Passed:** A [test target][] meets all expectations
+- **Failed:** A [test target][] does not meet all expectations
+- **cantTell:** Whether the rule is applicable, or not all expectations were met could not be fully determined by the tester.
+- **Untested**: The tester has not attempted to evaluate the test subject.
+
+**Note**: A rule has one `passed` or `failed` outcome for every [test target][]. When a tester evaluates a test target it can also be reported as `cantTell` if the rule cannot be tested in its entirety. For example, when applicability was automated, but the expectations have to be evaluated manually.
+
+When there are no test targets the rule has one `inapplicable` outcome. If the tester is unable to determine whether there are test targets there will be one `cantTell` outcome. And when no evaluation has occurred the test target has one untested outcome. This means that each [test subject][] always has one or more outcomes.
+
+Outcomes used in ACT Rules can be expressed using the [outcome property][] of the [[EARL10-Schema]][].
+
+### Visible {#visible}
+
+Content perceivable through sight.
+
+Content is considered _visible_ if making it fully transparent would result in a difference in the pixels rendered for any part of the document that is currently within the viewport or can be brought into the viewport via scrolling.
+
+[Content is defined in WCAG](https://www.w3.org/TR/WCAG22/#dfn-content).
+
+For more details, see [examples of visible](https://act-rules.github.io/pages/examples/visible/).
+
+[earl10-schema]: https://www.w3.org/TR/act-rules-format-1.1/#biblio-earl10-schema
+[element]: https://dom.spec.whatwg.org/#element 'DOM element, 2021/05/31'
+[html element]: #namespaced-element
+[html namespaces]: https://infra.spec.whatwg.org/#namespaces 'HTML namespace, 2021/05/31'
+[namespaceuri]: https://dom.spec.whatwg.org/#dom-element-namespaceuri 'DOM Element namespaceURI, 2021/05/31'
+[outcome property]: https://www.w3.org/TR/EARL10-Schema/#outcome
+[test subject]: https://www.w3.org/TR/act-rules-format-1.1/#test-subject
+[test target]: https://www.w3.org/TR/act-rules-format/#test-target
diff --git a/wcag-mapping.json b/wcag-mapping.json
index ec05f1660..ea61c76b8 100644
--- a/wcag-mapping.json
+++ b/wcag-mapping.json
@@ -1394,6 +1394,45 @@
}
}
},
+ {
+ "title": "Orientation of the page is not restricted using CSS transforms",
+ "permalink": "/standards-guidelines/act/rules/b33eff/",
+ "successCriteria": [
+ "orientation"
+ ],
+ "wcagTechniques": [],
+ "deprecated": false,
+ "proposed": false,
+ "frontmatter": {
+ "id": "b33eff",
+ "name": "Orientation of the page is not restricted using CSS transforms",
+ "rules_format": 1.1,
+ "rule_type": "atomic",
+ "description": "This rule checks that page content is not restricted to either `landscape` or `portrait` orientation using CSS transforms\n",
+ "accessibility_requirements": {
+ "wcag21:1.3.4": {
+ "forConformance": true,
+ "failed": "not satisfied",
+ "passed": "further testing needed",
+ "inapplicable": "further testing needed"
+ }
+ },
+ "input_aspects": [
+ "DOM Tree",
+ "CSS Styling"
+ ],
+ "acknowledgments": {
+ "authors": [
+ "Audrey Maniez",
+ "Jey Nandakumar",
+ "Tom Brunet"
+ ],
+ "funding": [
+ "WAI-Tools"
+ ]
+ }
+ }
+ },
{
"title": "Role attribute has valid value",
"permalink": "/standards-guidelines/act/rules/674b10/",
@@ -3542,45 +3581,6 @@
}
}
},
- {
- "title": "Orientation of the page is not restricted using CSS transforms",
- "permalink": "/standards-guidelines/act/rules/b33eff/proposed/",
- "successCriteria": [
- "orientation"
- ],
- "wcagTechniques": [],
- "deprecated": false,
- "proposed": true,
- "frontmatter": {
- "id": "b33eff",
- "name": "Orientation of the page is not restricted using CSS transforms",
- "rules_format": 1.1,
- "rule_type": "atomic",
- "description": "This rule checks that page content is not restricted to either `landscape` or `portrait` orientation using CSS transforms\n",
- "accessibility_requirements": {
- "wcag21:1.3.4": {
- "forConformance": true,
- "failed": "not satisfied",
- "passed": "further testing needed",
- "inapplicable": "further testing needed"
- }
- },
- "input_aspects": [
- "DOM Tree",
- "CSS Styling"
- ],
- "acknowledgments": {
- "authors": [
- "Audrey Maniez",
- "Jey Nandakumar",
- "Tom Brunet"
- ],
- "funding": [
- "WAI-Tools"
- ]
- }
- }
- },
{
"title": "Summary element has non-empty accessible name",
"permalink": "/standards-guidelines/act/rules/2t702h/proposed/",