Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ResizeObserver] The initial value of the last reported size should be -1x-1 #8839

Conversation

cathiechen
Copy link
Contributor

@cathiechen cathiechen commented Jan 19, 2023

91f24ff

[ResizeObserver] The initial value of the last reported size should be -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:

91f24ff

Misc iOS, tvOS & watchOS macOS Linux Windows
❌ πŸ§ͺ style βœ… πŸ›  ios βœ… πŸ›  mac βœ… πŸ›  wpe βœ… πŸ›  πŸ§ͺ win
βœ… πŸ§ͺ bindings βœ… πŸ›  ios-sim βœ… πŸ›  mac-AS-debug βœ… πŸ›  gtk βœ… πŸ›  wincairo
βœ… πŸ§ͺ webkitperl βœ… πŸ§ͺ ios-wk2 βœ… πŸ§ͺ api-mac βœ… πŸ§ͺ gtk-wk2
βœ… πŸ§ͺ api-ios βœ… πŸ§ͺ mac-wk1 βœ… πŸ§ͺ api-gtk
βœ… πŸ›  tv βœ… πŸ§ͺ mac-wk2
βœ… πŸ›  tv-sim ❌ πŸ§ͺ mac-AS-debug-wk2
βœ… πŸ›  watch βœ… πŸ§ͺ mac-wk2-stress
βœ… πŸ›  watch-sim

@cathiechen cathiechen self-assigned this Jan 19, 2023
@cathiechen cathiechen added the DOM For bugs specific to XML/HTML DOM elements (including parsing). label Jan 19, 2023
@Loirooriol
Copy link
Contributor

The commit message seems wrong.

The bug for this is https://bugs.webkit.org/show_bug.cgi?id=250836 instead of https://bugs.webkit.org/show_bug.cgi?id=157743
And the link should point to w3c/csswg-drafts#3664 instead of https://bugs.webkit.org/show_bug.cgi?id=250836

Copy link
Contributor

@Loirooriol Loirooriol left a comment

Choose a reason for hiding this comment

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

LGTM if you fix the commit message

@cathiechen
Copy link
Contributor Author

The commit message seems wrong.

The bug for this is https://bugs.webkit.org/show_bug.cgi?id=250836 instead of https://bugs.webkit.org/show_bug.cgi?id=157743 And the link should point to w3c/csswg-drafts#3664 instead of https://bugs.webkit.org/show_bug.cgi?id=250836

Ah, indeed! Fixed, thanks a lot!

@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Jan 19, 2023
Copy link
Contributor

@Loirooriol Loirooriol left a comment

Choose a reason for hiding this comment

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

You edited the comment, but the commit was not updated. I suspect this won't do.

Copy link
Contributor

@Loirooriol Loirooriol left a comment

Choose a reason for hiding this comment

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

I guess observe-disconnected-target-crash.html fails because you need something like 1a04d71

@cathiechen
Copy link
Contributor Author

You edited the comment, but the commit was not updated. I suspect this won't do.

I will try to upload a new commit, see if it works:)

@cathiechen
Copy link
Contributor Author

I guess observe-disconnected-target-crash.html fails because you need something like 1a04d71

Thanks, I'll take a look

…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:
@cathiechen cathiechen removed the merging-blocked Applied to prevent a change from being merged label Jan 23, 2023
@cathiechen cathiechen force-pushed the eng/ResizeObserver-The-initial-value-of-the-last-reported-size-should-be--1x-1 branch from ac99702 to 91f24ff Compare January 23, 2023 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DOM For bugs specific to XML/HTML DOM elements (including parsing). merging-blocked Applied to prevent a change from being merged
Projects
None yet
4 participants