Skip to content

Conversation

@lionel-rowe
Copy link
Contributor

Description

Fix typo in Element#checkVisibility example display: content -> display: contents.

Motivation

The live example currently doesn't properly demonstrate the intended behavior due to the typo. Setting elementToCheck.style.display to the invalid value "content" is a no-op, so it just remains as whatever the previous selection was.

Additional details

https://developer.mozilla.org/en-US/docs/Web/CSS/display#contents

@lionel-rowe lionel-rowe requested a review from a team as a code owner October 29, 2025 10:08
@lionel-rowe lionel-rowe requested review from hamishwillee and removed request for a team October 29, 2025 10:08
@github-actions github-actions bot added Content:WebAPI Web API docs size/xs [PR only] 0-5 LoC changed labels Oct 29, 2025
@github-actions
Copy link
Contributor

Preview URLs

Copy link
Member

@Josh-Cena Josh-Cena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks

@Josh-Cena Josh-Cena merged commit 33cb1ea into mdn:main Oct 30, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:WebAPI Web API docs size/xs [PR only] 0-5 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants