Skip to content

Commit fb1bb88

Browse files
authored
Editorial updates to the meta-viewport rule (#1822)
* Editorial updates to the meta-viewport rule * Fix broken test * Fix typo
1 parent fddc3c4 commit fb1bb88

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

_rules/meta-viewport-b4f0c3.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,23 @@ acknowledgments:
2222

2323
## Applicability
2424

25-
This rule applies to each `meta` element with a `name` attribute whose value is a [case-insensitive][] match for `viewport` and has a `content` attribute.
25+
This rule applies to each `content` attribute on a `meta` element with a `name` [attribute value][] of `viewport`.
2626

27-
## Expectation
27+
## Expectation 1
2828

29-
For each test target, the `content` attribute, whose value is mapped to a list of property/value pairs in a user-agent specific manner, does not:
29+
For each test target, the [attribute value][] does hot have a `user-scalable` property with a value of `no`.
3030

31-
- specify the property `user-scalable` with a value of `no`; nor
32-
- specify the property `maximum-scale` with a value of less than 2.
31+
## Expectation 2
32+
33+
For each test target, the [attribute value][] does not have a `maximum-scale` property with a value less than 2.
3334

3435
## Assumptions
3536

36-
If any of the following is false, this rule can fail while Success Criteria [1.4.4 Resize text][sc144] and [1.4.10 Reflow][sc1410] can still be satisfied:
37+
Pages for which any of the following is true may satisfy success criteria Success Criteria [1.4.4 Resize text][sc144] and [1.4.10 Reflow][sc1410], even if the rule results in a failed outcome.
3738

38-
- The [page][] has [visible][] [content][].
39-
- There is no other [mechanism](https://www.w3.org/TR/WCAG21/#dfn-mechanism) available to resize the text content.
40-
- The [content][] is not by default rendered in a way that fits in an area of 320 by 256 [CSS pixels][], and needs to reflow to do so.
39+
- The [page][] has no [visible][] [content][]; or
40+
- There is another [mechanism](https://www.w3.org/TR/WCAG21/#dfn-mechanism) available to resize the text content; or
41+
- The [content][] does not need to reflow in order to fit in an area of 320 by 256 [CSS pixels][].
4142

4243
## Accessibility Support
4344

@@ -260,12 +261,12 @@ This viewport `meta` element does not have a `content` attribute.
260261
</html>
261262
```
262263

263-
[case-insensitive]: https://infra.spec.whatwg.org/#ascii-case-insensitive 'ASCII case-insensitive'
264264
[content]: https://www.w3.org/TR/WCAG21/#dfn-content 'content (Web content)'
265265
[maximum-scale]: https://www.w3.org/TR/css-device-adapt-1/#min-scale-max-scale 'The initial-scale, minimum-scale, and maximum-scale properties'
266266
[meta]: https://html.spec.whatwg.org/#the-meta-element 'The meta element'
267267
[page]: https://www.w3.org/TR/WCAG21/#dfn-web-page-s 'Web page'
268268
[user-scalable]: https://www.w3.org/TR/css-device-adapt-1/#user-scalable 'The user-scalable property'
269+
[attribute value]: #attribute-value 'Definition of attribute value'
269270
[visible]: #visible 'Definition of visible'
270271
[css pixels]: https://www.w3.org/TR/css3-values/#reference-pixel 'CSS 3 definition, reference pixel'
271272
[sc144]: https://www.w3.org/TR/WCAG21/#resize-text 'WCAG 2.1 Success Criterion 1.4.4 Resize text'

0 commit comments

Comments
 (0)