forked from WebKit/WebKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ResizeObserver] The initial value of the last reported size should b…
…e -1x-1 https://bugs.webkit.org/show_bug.cgi?id=250836 Reviewed by NOBODY (OOPS!). The conclusion of [1] indicates that when first observing an element with ResizeObserver, lastReportedSize gets initialized with a -1 x -1 size. [1] w3c/csswg-drafts#3664 * LayoutTests/imported/w3c/web-platform-tests/resize-observer/notify-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/resize-observer/observe-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/resize-observer/svg-expected.txt: * LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/resize-observer/notify-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/resize-observer/notify-expected.txt. * LayoutTests/platform/mac/imported/w3c/web-platform-tests/resize-observer/svg-expected.txt: * Source/WebCore/page/ResizeObservation.cpp:
- Loading branch information
1 parent
6ecd79a
commit 91f24ff
Showing
6 changed files
with
47 additions
and
8 deletions.
There are no files selected for viewing
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
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
23 changes: 23 additions & 0 deletions
23
...ests/platform/mac-wk1/imported/w3c/web-platform-tests/resize-observer/notify-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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
ResizeObserver tests | ||
|
||
t1 | ||
t2 | ||
t3 | ||
inline | ||
|
||
PASS ResizeObserver implemented | ||
PASS guard | ||
PASS test0: notification ordering | ||
PASS test1: display:none triggers notification | ||
PASS test2: remove/appendChild trigger notification | ||
PASS test3: dimensions match | ||
PASS test4: transform do not cause notifications | ||
PASS test5: moving an element does not trigger notifications | ||
FAIL test6: inline element notifies once with 0x0. assert_unreached: Timed out waiting for notification. (1000ms) Reached unreachable code | ||
PASS test7: unobserve inside notify callback | ||
PASS test8: observe inside notify callback | ||
PASS test9: disconnect inside notify callback | ||
PASS test10: element notifies when parent removed | ||
PASS test11: display:none element should be notified | ||
PASS test12: element sized 0x0 should be notified | ||
|
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