Tests navigateur : bilan en page, et fin-de-partie.mjs (1m)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
2a8d14d02b
commit
d74e70f02b
@@ -57,7 +57,12 @@ export async function hiddenUnderActionBar(target) {
|
||||
};
|
||||
const bars = [...document.querySelectorAll("body *")].filter((el) => {
|
||||
const style = getComputedStyle(el);
|
||||
return style.position === "sticky" && style.bottom !== "auto" && shown(el);
|
||||
// Une barre collée en bas : sticky, ou fixe et marquée
|
||||
// .action-bar (la barre du bilan, étape 1m).
|
||||
const stuck =
|
||||
style.position === "sticky" ||
|
||||
(style.position === "fixed" && el.classList.contains("action-bar"));
|
||||
return stuck && style.bottom !== "auto" && shown(el);
|
||||
});
|
||||
const describe = (el) =>
|
||||
el.id
|
||||
|
||||
Reference in New Issue
Block a user