Detect Hidden Scroll Content

Detect Hidden Scroll Content

Detect Hidden Scroll Content

工作概述

位置
全球
工作类型
Freelancer.com
薪水
$195 - $390 项目报价
发布日期
8 小时 前

额外细节

工作编号
61315
工作视图
6

职位描述

Title: Browser layout expert: detect content hidden in scroll regions (5 h, hourly)

About the project
A test harness that renders React components in headless Chromium
(TypeScript, Vite, Playwright), changes their content and screen size,
and measures whether the layout breaks. Breakage is found by geometry,
not by comparing screenshots: five checks run inside the page and report
overflow, clipping, content spilling out of its box, overlap and content
cut off by the screen edge. The checks have been compared against blind
human labels.

The problem
The checks treat every scroll container as fine, because content past
its edge can be reached by scrolling. Human labellers disagree in one
kind of case: a navigation row that scrolls with its scroll bar hidden
by CSS, and at 200% text size shrinks until only "Dashb" of its first
link shows. The screenshots show no scroll bars at all, so the rule has
to come from the page's DOM and CSS, not from the picture. The current
checks are frozen, so this is a prototype rule for the next version.

What you'll do
Must have:
1. Define, in plain words first, and then implement a new check for
scroll regions that hide content without any sign that they scroll:
either the scroll bar is hidden by CSS, or the visible area has
shrunk smaller than a single item.
2. Put the check behind a switch, so that with the switch off nothing
in the current results changes.
3. Pin its behaviour with lab cases (minimal HTML with exact expected
counts, both cases it must flag and cases it must not): left-to-right
and right-to-left pages, horizontal and vertical scrolling, nested
scroll containers, scroll bars hidden in each common way, and regions
that are cut off but do show that they scroll.
If time is left:
4. Content pushed past a scroll container's start edge (for example
centred content wider than its container), which cannot be scrolled
to at all.
5. A badge or pill that runs under neighbouring text that sits in no box.

Acceptance (I will run these)
- Switch off: the full test suite passes, and no existing check's
output changes.
- Switch on:
- your lab cases pass;
- none of the 20 hand-written reference components gets a finding in
any of the 19 test cases;
- the real component from the disagreement above fails its case;
- three real cases whose scroll region is already cut in the
unchanged render get no new failure.
- Checks stay plain DOM functions: no timers, no randomness, no network.

Deliverables
- Commits in the repository I give you (Conventional Commits format, no
trailers), sent back as patch files. You don't push anywhere.
- A one-page report: the rule in plain words, what it catches and what
it misses, the acceptance results, open questions and time spent.

Terms
Hourly at 35$, capped at 5 hours. Must-haves first; if you reach the
cap, stop and report where you are. Node 26; scripts must work on
Windows, macOS and Linux.

To apply, answer briefly
1. Screenshots in this harness show no scroll bars. From inside the
page, how would you tell whether a scroll container's scroll bar is
hidden by CSS, both with `scrollbar-width: none` and with a
`::-webkit-scrollbar` rule?
2. An `overflow-x: auto` container holds a flex row with
`justify-content: center` that is wider than the container. What can
the user scroll to, and what can't they?

---
來源:Freelancer.com | 出價次數:74 | 剩餘時間:6 日 | 專案類型:按小時

常見問題 FAQ

點樣申請呢份工?

請點擊頁面上嘅「立即申請」按鈕,或者按照聯絡資料聯絡僱主。

申請後幾耐有回覆?

回覆時間視乎僱主,一般 1-2 星期內會有面試邀請。

呢份工係唔係真實㗎?

EZJobs 上嘅所有職位都經過審核,確保真實有效。

位置

类似职位

Freelancer.com

Freelancer.com

App Developer-Mode

Freelancer.com
Freelancer.com

饼干

本网站使用cookie来确保您在我们的网站上获得最佳体验。

接受