From 4397c7f931ea7e760ebb8e0b90462624e075829c Mon Sep 17 00:00:00 2001 From: Jiapan-Yu <2541771811yjp@gmail.com> Date: Thu, 21 Oct 2021 16:33:44 +0800 Subject: [PATCH] not a right comparison an empty
has its parent element's content area width which may not be zero --- 2-ui/1-document/09-size-and-scroll/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2-ui/1-document/09-size-and-scroll/article.md b/2-ui/1-document/09-size-and-scroll/article.md index 13e245eb..b477a281 100644 --- a/2-ui/1-document/09-size-and-scroll/article.md +++ b/2-ui/1-document/09-size-and-scroll/article.md @@ -116,7 +116,7 @@ function isHidden(elem) { } ``` -Please note that such `isHidden` returns `true` for elements that are on-screen, but have zero sizes (like an empty `
`). +Please note that such `isHidden` returns `true` for elements that are on-screen, but have zero sizes. ```` ## clientTop/Left