Firefox 81: IntersectionObserver breaking changes for WebComponents
Categories
(Core :: Layout, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox81 | --- | affected |
| firefox82 | --- | affected |
| firefox83 | --- | unaffected |
People
(Reporter: jakewski, Unassigned)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
|
1.53 KB,
text/html
|
Details |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36
Steps to reproduce:
Create a vertical list of simple web WebComponents and observe them with an IntersectionObserver with options: {root: null, threshold: 0}.
See attached HTML file for demo. I added css to make the difference obvious.
Actual results:
In Firefox 81, only about half of the WebComponents in the viewport trigger the observer with the correct isIntersecting property.
Tested Firefox 80, Firefox 81, Chrome 85, and Safari 14. Firefox 81 has drastically different behavior. In the attached HTML file's comments (L50-L53), there is an equivalent example with normal HTML elements, in which Firefox 81 behaves as expected.
Expected results:
All WebComponents in the viewport should be intersecting with the root node in Firefox 81.
Updated•5 years ago
|
Comment 1•5 years ago
•
|
||
Hi jakewski,
Thank you for reporting this.
I followed your instructions and it looks like this behavior regressed in this patch:
But, thankfully, things appear to have been fixed by this patch:
I am going to mark this as resolved, for now, as the fix should be released in Firefox 83.
Please feel free to re-open this bug if needed.
Updated•5 years ago
|
Updated•5 years ago
|
Description
•