Status: PASS | Duration: 56ms | Subtests: 20/20 | 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 |
|---|---|---|
| 0px | PASS | |
| -0px | PASS | |
| 0.1px | PASS | |
| -0.1px | PASS | |
| 0.25px | PASS | |
| -0.25px | PASS | |
| 0.5px | PASS | |
| -0.5px | PASS | |
| 0.9px | PASS | |
| -0.9px | PASS | |
| 1px | PASS | |
| -1px | PASS | |
| 1.25px | PASS | |
| -1.25px | PASS | |
| 1.5px | PASS | |
| -1.5px | PASS | |
| 2px | PASS | |
| -2px | PASS | |
| 2.75px | PASS | |
| -2.75px | PASS |
/css/css-borders/outline-offset-rounding.tentative.html
<!doctype html> <title>outline-offset gets snapped like outline-width</title> <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/12906"> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <body> <script> const values = [ { input: "0px", expected: "0px" }, { input: "0.1px", expected: "1px" }, { input: "0.25px", expected: "1px" }, { input: "0.5px", expected: "1px" }, { input: "0.9px", expected: "1px" }, { input: "1px", expected: "1px" }, { input: "1.25px", expected: "1px" }, { input: "1.5px", expected: "1px" }, { input: "2px", expected: "2px" }, { input: "2.75px", expected: "2px" }, ]; for (const {input, expected} of values) { test(function() { const div = document.createElement("div"); div.style.outlineOffset = input; document.body.appendChild(div); assert_equals(getComputedStyle(div).outlineOffset, expected); }, input) let negExpected = input == "0px" ? "0px" : "-" + expected; test(function() { const div = document.createElement("div"); div.style.outlineOffset = "-" + input; document.body.appendChild(div); assert_equals(getComputedStyle(div).outlineOffset, negExpected); }, "-" + input) } </script>