Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<title>CSS zoom applies to text-shadow when specified and inherited</title>
<link rel="author" title="Stefan Zager" href="mailto:szager@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-viewport/">
<style>
body {
--scale: 1;
}
div {
font-size: calc(1rem * var(--scale));
text-shadow: calc(5px * var(--scale)) calc(5px * var(--scale)) hotpink;
}
.zoom {
--scale: 2;
}
</style>
<div>unzoomed</div>
<div class="zoom">zoomed</div>
<div class="zoom">zoomed inherited</div>