diff --git a/test/unit/custom-style.html b/test/unit/custom-style.html
index ce0a060bf6..0c15a44c01 100644
--- a/test/unit/custom-style.html
+++ b/test/unit/custom-style.html
@@ -250,7 +250,7 @@
child-of-child-with-var {
/* in certain browsers (e.g. Safari) `top`, `bottom`, `left`, `right` don't compute
when no explicit position is defined (`relative` / `absolute` / `fixed`) */
- position: absolute;
+ position: relative;
--variable-own-line: "Varela font";
margin-top: var(--variable-property-own-line);
margin-bottom: var(--variable-property-preceded-property);