Status: PASS | Duration: 10ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-viewport/zoom/text-stroke-width.html
<!DOCTYPE html> <title>CSS zoom applies to -webkit-text-stroke-width 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/"> <link rel="match" href="reference/text-stroke-width-ref.html"> <style> div { font-size: 3rem; color: cornflowerblue; -webkit-text-stroke-color: hotpink; } .text-stroke-width { -webkit-text-stroke-width: 2px; } .zoom { zoom: 2; } </style> <div class="text-stroke-width" >unzoomed</div> <div class="zoom"><div class="text-stroke-width">zoomed</div></div> <div class="text-stroke-width"><div class="zoom">zoomed inherited</div></div>
/css/css-viewport/zoom/reference/text-stroke-width-ref.html
<!DOCTYPE html> <title>CSS zoom applies to -webkit-text-stroke-width 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(3rem * var(--scale)); -webkit-text-stroke-width: calc(2px * var(--scale)); color: cornflowerblue; -webkit-text-stroke-color: hotpink; } .zoom { --scale: 2; } </style> <div>unzoomed</div> <div class="zoom">zoomed</div> <div class="zoom">zoomed inherited</div>