Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make caretRangeFromPoint return empty range for content-visibility: h…
…idden https://bugs.webkit.org/show_bug.cgi?id=249473 Reviewed by Darin Adler. Make caretRangeFromPoint return empty range for content-visibility: hidden since the element's contents are empty. * LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-080-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-080.html: * Source/WebCore/dom/Document.cpp: (WebCore::Document::caretPositionFromPoint): Canonical link: https://commits.webkit.org/258142@main
- Loading branch information
1 parent
b09f48f
commit 0ccd3d9
Showing
3 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
...web-platform-tests/css/css-contain/content-visibility/content-visibility-080-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Content Visibility: caret position with html hidden * { all: initial; content-visibility: hidden; } test(() => { const range = document.caretRangeFromPoint(); assert_not_equals(range, null, "range exists"); assert_equals(range.startContainer, html, "startContainer is html"); assert_equals(range.startOffset, 0, "startOffset is zero"); assert_equals(range.endContainer, html, "endContainer is html"); assert_equals(range.endOffset, 0, "endOffset is zero"); }, "Caret range from point"); | ||
FAIL Caret range from point assert_equals: startContainer is html expected Element node <html id="html"><head><meta charset="utf8"> | ||
<title>Conten... but got Text node "Content Visibility: caret position with html hidden" | ||
|
||
|
||
PASS Caret range from point | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters