fix(map): stabilize layers menu and offline cache UX
This commit is contained in:
@@ -49,15 +49,18 @@ test("floating surface remains bounded when its anchor is below the viewport", (
|
||||
});
|
||||
|
||||
test("dropdown scroll keeps portal geometry stable and contained", async () => {
|
||||
const styles = await readFile(
|
||||
new URL("../packages/ui-core/styles.css", import.meta.url),
|
||||
"utf8",
|
||||
);
|
||||
const [styles, dropdown] = await Promise.all([
|
||||
readFile(new URL("../packages/ui-core/styles.css", import.meta.url), "utf8"),
|
||||
readFile(new URL("../packages/ui-react/src/Dropdown.tsx", import.meta.url), "utf8"),
|
||||
]);
|
||||
const dropdownRule = styles.match(/\.nodedc-dropdown-surface \{(?<body>[\s\S]*?)\n\}/)?.groups?.body ?? "";
|
||||
|
||||
assert.match(dropdownRule, /box-sizing:\s*border-box;/);
|
||||
assert.match(dropdownRule, /overflow:\s*auto;/);
|
||||
assert.match(dropdownRule, /overscroll-behavior:\s*contain;/);
|
||||
assert.match(dropdown, /new ResizeObserver\(schedulePositionUpdate\)/);
|
||||
assert.match(dropdown, /resizeObserver\.observe\(surface\)/);
|
||||
assert.match(dropdown, /window\.requestAnimationFrame\(updatePosition\)/);
|
||||
});
|
||||
|
||||
test("workspace windows keep their glass rim without masked compositor overlays", async () => {
|
||||
|
||||
Reference in New Issue
Block a user