Skip to content

Commit 99f2fc6

Browse files
committed
Restore matchMedia comment
1 parent ebae472 commit 99f2fc6

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

.claude/settings.local.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"WebFetch(domain:github.com)",
5+
"WebFetch(domain:bugs.webkit.org)",
6+
"Bash(gh workflow *)",
7+
"WebFetch(domain:drafts.csswg.org)"
8+
]
9+
}
10+
}

experimental/tests.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ export const ExperimentalSuites = freezeSuites([
194194
const widths = [768, 704, 640, 560, 480];
195195
const MATCH_MEDIA_QUERY_BREAKPOINT = 640;
196196

197+
// The matchMedia query is "(max-width: 640px)"
198+
// Starting from a width > 640px, we'll only get 1 event when crossing to <= 640px
199+
// This happens when the width changes from 704px to 640px
197200
const resizeWorkPromise = new Promise((resolve) => {
198201
page.addEventListener("resize-work-complete", resolve, { once: true });
199202
});

0 commit comments

Comments
 (0)