Status: FAIL | Duration: 194ms | Subtests: 80/140 | Open test on wpt.live | wpt.fyi
Data from commit:
a50cb89 wpt: run reference-named files which are themselves tests (#836) (2026-09-03)
| Subtest | Status | Message |
|---|---|---|
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: visible, padding: 0, border: 0, display: flex | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: visible, padding: 0, border: 0, display: block | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: visible, padding: 0, border: 0, display: flow-root | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: visible, padding: 0, border: 0, display: inline-block | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 60 but got 774 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: visible, padding: 0, border: 0, display: inline-flex | FAIL | assert_equals: scrollHeight should match clientHeight, since there's no overflow expected 60 but got 160 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: visible, padding: 0, border: 0, display: grid | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: visible, padding: 0, border: 0, display: inline-grid | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 60 but got 774 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: visible, padding: 0, border: 3px solid, display: flex | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: visible, padding: 0, border: 3px solid, display: block | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: visible, padding: 0, border: 3px solid, display: flow-root | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: visible, padding: 0, border: 3px solid, display: inline-block | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 60 but got 768 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: visible, padding: 0, border: 3px solid, display: inline-flex | FAIL | assert_equals: scrollHeight should match clientHeight, since there's no overflow expected 60 but got 160 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: visible, padding: 0, border: 3px solid, display: grid | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: visible, padding: 0, border: 3px solid, display: inline-grid | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 60 but got 768 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: visible, padding: 2px, border: 0, display: flex | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: visible, padding: 2px, border: 0, display: block | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: visible, padding: 2px, border: 0, display: flow-root | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: visible, padding: 2px, border: 0, display: inline-block | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 64 but got 772 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: visible, padding: 2px, border: 0, display: inline-flex | FAIL | assert_equals: scrollHeight should match clientHeight, since there's no overflow expected 64 but got 162 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: visible, padding: 2px, border: 0, display: grid | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: visible, padding: 2px, border: 0, display: inline-grid | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 64 but got 772 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: visible, padding: 2px, border: 3px solid, display: flex | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: visible, padding: 2px, border: 3px solid, display: block | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: visible, padding: 2px, border: 3px solid, display: flow-root | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: visible, padding: 2px, border: 3px solid, display: inline-block | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 64 but got 766 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: visible, padding: 2px, border: 3px solid, display: inline-flex | FAIL | assert_equals: scrollHeight should match clientHeight, since there's no overflow expected 64 but got 162 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: visible, padding: 2px, border: 3px solid, display: grid | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: visible, padding: 2px, border: 3px solid, display: inline-grid | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 64 but got 766 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: hidden, padding: 0, border: 0, display: flex | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: hidden, padding: 0, border: 0, display: block | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: hidden, padding: 0, border: 0, display: flow-root | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: hidden, padding: 0, border: 0, display: inline-block | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 60 but got 774 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: hidden, padding: 0, border: 0, display: inline-flex | FAIL | assert_equals: scrollHeight should match clientHeight, since there's no overflow expected 60 but got 160 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: hidden, padding: 0, border: 0, display: grid | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: hidden, padding: 0, border: 0, display: inline-grid | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 60 but got 774 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: hidden, padding: 0, border: 3px solid, display: flex | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: hidden, padding: 0, border: 3px solid, display: block | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: hidden, padding: 0, border: 3px solid, display: flow-root | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: hidden, padding: 0, border: 3px solid, display: inline-block | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 60 but got 768 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: hidden, padding: 0, border: 3px solid, display: inline-flex | FAIL | assert_equals: scrollHeight should match clientHeight, since there's no overflow expected 60 but got 160 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: hidden, padding: 0, border: 3px solid, display: grid | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: hidden, padding: 0, border: 3px solid, display: inline-grid | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 60 but got 768 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: hidden, padding: 2px, border: 0, display: flex | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: hidden, padding: 2px, border: 0, display: block | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: hidden, padding: 2px, border: 0, display: flow-root | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: hidden, padding: 2px, border: 0, display: inline-block | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 64 but got 774 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: hidden, padding: 2px, border: 0, display: inline-flex | FAIL | assert_equals: scrollHeight should match clientHeight, since there's no overflow expected 64 but got 164 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: hidden, padding: 2px, border: 0, display: grid | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: hidden, padding: 2px, border: 0, display: inline-grid | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 64 but got 774 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: hidden, padding: 2px, border: 3px solid, display: flex | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: hidden, padding: 2px, border: 3px solid, display: block | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: hidden, padding: 2px, border: 3px solid, display: flow-root | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: hidden, padding: 2px, border: 3px solid, display: inline-block | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 64 but got 768 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: hidden, padding: 2px, border: 3px solid, display: inline-flex | FAIL | assert_equals: scrollHeight should match clientHeight, since there's no overflow expected 64 but got 164 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: hidden, padding: 2px, border: 3px solid, display: grid | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: hidden, padding: 2px, border: 3px solid, display: inline-grid | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 64 but got 768 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: auto, padding: 0, border: 0, display: flex | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: auto, padding: 0, border: 0, display: block | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: auto, padding: 0, border: 0, display: flow-root | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: auto, padding: 0, border: 0, display: inline-block | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 60 but got 774 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: auto, padding: 0, border: 0, display: inline-flex | FAIL | assert_equals: scrollHeight should match clientHeight, since there's no overflow expected 60 but got 160 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: auto, padding: 0, border: 0, display: grid | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: auto, padding: 0, border: 0, display: inline-grid | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 60 but got 774 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: auto, padding: 0, border: 3px solid, display: flex | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: auto, padding: 0, border: 3px solid, display: block | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: auto, padding: 0, border: 3px solid, display: flow-root | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: auto, padding: 0, border: 3px solid, display: inline-block | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 60 but got 768 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: auto, padding: 0, border: 3px solid, display: inline-flex | FAIL | assert_equals: scrollHeight should match clientHeight, since there's no overflow expected 60 but got 160 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: auto, padding: 0, border: 3px solid, display: grid | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: auto, padding: 0, border: 3px solid, display: inline-grid | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 60 but got 768 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: auto, padding: 2px, border: 0, display: flex | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: auto, padding: 2px, border: 0, display: block | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: auto, padding: 2px, border: 0, display: flow-root | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: auto, padding: 2px, border: 0, display: inline-block | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 64 but got 774 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: auto, padding: 2px, border: 0, display: inline-flex | FAIL | assert_equals: scrollHeight should match clientHeight, since there's no overflow expected 64 but got 164 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: auto, padding: 2px, border: 0, display: grid | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: auto, padding: 2px, border: 0, display: inline-grid | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 64 but got 774 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: auto, padding: 2px, border: 3px solid, display: flex | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: auto, padding: 2px, border: 3px solid, display: block | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: auto, padding: 2px, border: 3px solid, display: flow-root | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: auto, padding: 2px, border: 3px solid, display: inline-block | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 64 but got 768 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: auto, padding: 2px, border: 3px solid, display: inline-flex | FAIL | assert_equals: scrollHeight should match clientHeight, since there's no overflow expected 64 but got 164 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: auto, padding: 2px, border: 3px solid, display: grid | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: auto, padding: 2px, border: 3px solid, display: inline-grid | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 64 but got 768 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: scroll, padding: 0, border: 0, display: flex | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: scroll, padding: 0, border: 0, display: block | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: scroll, padding: 0, border: 0, display: flow-root | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: scroll, padding: 0, border: 0, display: inline-block | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 60 but got 774 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: scroll, padding: 0, border: 0, display: inline-flex | FAIL | assert_equals: scrollHeight should match clientHeight, since there's no overflow expected 60 but got 160 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: scroll, padding: 0, border: 0, display: grid | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: scroll, padding: 0, border: 0, display: inline-grid | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 60 but got 774 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: scroll, padding: 0, border: 3px solid, display: flex | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: scroll, padding: 0, border: 3px solid, display: block | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: scroll, padding: 0, border: 3px solid, display: flow-root | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: scroll, padding: 0, border: 3px solid, display: inline-block | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 60 but got 768 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: scroll, padding: 0, border: 3px solid, display: inline-flex | FAIL | assert_equals: scrollHeight should match clientHeight, since there's no overflow expected 60 but got 160 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: scroll, padding: 0, border: 3px solid, display: grid | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: scroll, padding: 0, border: 3px solid, display: inline-grid | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 60 but got 768 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: scroll, padding: 2px, border: 0, display: flex | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: scroll, padding: 2px, border: 0, display: block | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: scroll, padding: 2px, border: 0, display: flow-root | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: scroll, padding: 2px, border: 0, display: inline-block | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 64 but got 774 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: scroll, padding: 2px, border: 0, display: inline-flex | FAIL | assert_equals: scrollHeight should match clientHeight, since there's no overflow expected 64 but got 164 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: scroll, padding: 2px, border: 0, display: grid | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: scroll, padding: 2px, border: 0, display: inline-grid | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 64 but got 774 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: scroll, padding: 2px, border: 3px solid, display: flex | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: scroll, padding: 2px, border: 3px solid, display: block | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: scroll, padding: 2px, border: 3px solid, display: flow-root | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: scroll, padding: 2px, border: 3px solid, display: inline-block | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 64 but got 768 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: scroll, padding: 2px, border: 3px solid, display: inline-flex | FAIL | assert_equals: scrollHeight should match clientHeight, since there's no overflow expected 64 but got 164 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: scroll, padding: 2px, border: 3px solid, display: grid | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: scroll, padding: 2px, border: 3px solid, display: inline-grid | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 64 but got 768 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: clip, padding: 0, border: 0, display: flex | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: clip, padding: 0, border: 0, display: block | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: clip, padding: 0, border: 0, display: flow-root | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: clip, padding: 0, border: 0, display: inline-block | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 60 but got 774 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: clip, padding: 0, border: 0, display: inline-flex | FAIL | assert_equals: scrollHeight should match clientHeight, since there's no overflow expected 60 but got 160 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: clip, padding: 0, border: 0, display: grid | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: clip, padding: 0, border: 0, display: inline-grid | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 60 but got 774 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: clip, padding: 0, border: 3px solid, display: flex | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: clip, padding: 0, border: 3px solid, display: block | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: clip, padding: 0, border: 3px solid, display: flow-root | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: clip, padding: 0, border: 3px solid, display: inline-block | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 60 but got 768 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: clip, padding: 0, border: 3px solid, display: inline-flex | FAIL | assert_equals: scrollHeight should match clientHeight, since there's no overflow expected 60 but got 160 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: clip, padding: 0, border: 3px solid, display: grid | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: clip, padding: 0, border: 3px solid, display: inline-grid | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 60 but got 768 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: clip, padding: 2px, border: 0, display: flex | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: clip, padding: 2px, border: 0, display: block | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: clip, padding: 2px, border: 0, display: flow-root | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: clip, padding: 2px, border: 0, display: inline-block | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 64 but got 772 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: clip, padding: 2px, border: 0, display: inline-flex | FAIL | assert_equals: scrollHeight should match clientHeight, since there's no overflow expected 64 but got 162 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: clip, padding: 2px, border: 0, display: grid | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: clip, padding: 2px, border: 0, display: inline-grid | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 64 but got 772 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: clip, padding: 2px, border: 3px solid, display: flex | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: clip, padding: 2px, border: 3px solid, display: block | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: clip, padding: 2px, border: 3px solid, display: flow-root | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: clip, padding: 2px, border: 3px solid, display: inline-block | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 64 but got 766 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: clip, padding: 2px, border: 3px solid, display: inline-flex | FAIL | assert_equals: scrollHeight should match clientHeight, since there's no overflow expected 64 but got 162 |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: clip, padding: 2px, border: 3px solid, display: grid | PASS | |
| scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: clip, padding: 2px, border: 3px solid, display: inline-grid | FAIL | assert_equals: scrollWidth should match clientWidth, since there's no overflow expected 64 but got 766 |
/css/cssom-view/scrollWidthHeight-overflow-visible-margin-collapsing.html
<!doctype html> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io"> <link rel="author" title="Mozilla" href="https://mozilla.org"> <link rel="help" href="https://drafts.csswg.org/cssom-view/#dom-element-scrollwidth"> <link rel="help" href="https://drafts.csswg.org/cssom-view/#dom-element-scrollheight"> <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1936156"> <title>scroll{Width,Height} shouldn't account for collapsed margins, in order not to report unnecessary overflow</title> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <style> #target div { height: 20px; min-width: 20px; background-color: green; margin: 20px 10px; } </style> <div id="target"> <div> <div></div> </div> <div></div> <div></div> <div></div> </div> <script> let target = document.getElementById("target"); // "clip" is not really scrollable, but should match as well. for (let overflow of ["visible", "hidden", "auto", "scroll", "clip"]) { for (let padding of ["0", "2px"]) { for (let border of ["0", "3px solid"]) { for (let display of ["flex", "block", "flow-root", "inline-block", "inline-flex", "grid", "inline-grid"]) { test(function() { target.style.overflow = overflow; target.style.display = display; target.style.border = border; target.style.padding = padding; let sh = target.scrollHeight; let sw = target.scrollWidth; let ch = target.clientHeight; let cw = target.clientWidth; assert_equals(sh, ch, "scrollHeight should match clientHeight, since there's no overflow"); assert_equals(sw, cw, "scrollWidth should match clientWidth, since there's no overflow"); }, `scroll{Width,Height} with margins should match client{Width,Height} if there would be no overflow width overflow: ${overflow}, padding: ${padding}, border: ${border}, display: ${display}`); } } } } </script>