Skip to content

Commit 17955a4

Browse files
authored
Editorial changed to programmatically hidden (#1857)
1 parent 19dc17f commit 17955a4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pages/glossary/programmatically-hidden.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ An HTML element is _programmatically hidden_ if either it has a [computed][] CSS
1313
- has a [computed][] CSS property `display` of `none`; or
1414
- has an `aria-hidden` attribute set to `true`
1515

16-
**Note**: Contrarily to the other conditions, the `visibility` CSS property may be reverted by descendants.
16+
**Note**: Contrary to the other conditions, the `visibility` CSS property may be reverted by descendants.
1717

18-
**Note**: The [HTML standard suggests](https://html.spec.whatwg.org/multipage/rendering.html#hidden-elements) rendering elements with the `hidden` attribute with a CSS rule that applies the value `none` to the CSS property `display` of the element. Although the suggestion is not normative, known user agents render it according to the suggestion (unless the content specifies another CSS rule that sets the value of the `display` property). If a user agent does not follow the suggestion, this definition may produce incorrect results for this user agent.
18+
**Note**: The [HTML standard suggests](https://html.spec.whatwg.org/multipage/rendering.html#hidden-elements) setting the CSS `display` property to `none` for elements with the `hidden` attribute. While not required by HTML, all modern browsers follow this suggestion. Because of this the `hidden` attribute is not used in this definition. In browsers that use this suggestion, overriding the CSS `display` property can reveal elements with the `hidden` attribute.
1919

2020
[computed]: https://www.w3.org/TR/css-cascade/#computed-value 'CSS definition of computed value'
2121
[flat tree]: https://drafts.csswg.org/css-scoping/#flat-tree 'Definition of flat tree'

0 commit comments

Comments
 (0)