-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
ResizeObserver content rect calculation must not include CSS transforms #40258
Copy link
Copy link
Closed
Labels
A-content/domInteracting with the DOM from web contentInteracting with the DOM from web contentA-layout/query
Description
This is tested by
servo/tests/wpt/tests/resize-observer/notify.html
Lines 141 to 166 in a6aa21b
| function test4() { | |
| let helper = new ResizeTestHelper( | |
| "test4: transform do not cause notifications", | |
| [ | |
| { | |
| setup: observer => { | |
| observer.observe(t2); | |
| }, | |
| notify: (entries, observer) => { | |
| return true; // Delay next step | |
| } | |
| }, | |
| { | |
| setup: observer => { | |
| t2.classList.add("transform"); | |
| }, | |
| notify: (entries, observer) => { | |
| assert_unreached("transform must not trigger notifications"); | |
| }, | |
| timeout: () => { | |
| t2.classList.remove("transform"); | |
| } | |
| } | |
| ]); | |
| return helper.start(); | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-content/domInteracting with the DOM from web contentInteracting with the DOM from web contentA-layout/query