Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<meta charset="utf-8">
<title>Serialize whitespace</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
"use strict";
test(() => {
const p = document.createElement("p");
const transform = "translate(calc(10%), 10%)";
p.style.transform = transform;
assert_equals(p.style.transform, transform);
});
</script>