<!-- Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ --> <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 100 100" preserveAspectRatio="none"> <title>Testcase for mask that can't be resolved</title> <rect width="100%" height="100%" fill="red"/> <g mask="url(#foo)"> <!-- Draw a line path with zero area --> <path stroke="lime" stroke-width="200%" d="M0,50L100,50"/> </g> </svg>