Skip to content

Commit

Permalink
Apply CSS zoom to letter-spacing
Browse files Browse the repository at this point in the history
Bug: chromium:40946858
Change-Id: If191b1cef100533698e8825f478621ab1ca3cad1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5573601
Reviewed-by: Anders Hartvoll Ruud <[email protected]>
Commit-Queue: Stefan Zager <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1309990}
  • Loading branch information
szager-chromium authored and chromium-wpt-export-bot committed Jun 4, 2024
1 parent 76920a1 commit 0fd9af9
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
24 changes: 24 additions & 0 deletions css/css-viewport/zoom/letter-spacing.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<style>CSS zoom applies to letter-spacing when specified and inherited</style>
<link rel="author" title="Stefan Zager" href="mailto:[email protected]">
<link rel="help" href="https://drafts.csswg.org/css-viewport/">
<link rel="match" href="reference/letter-spacing-ref.html">
<div style="letter-spacing: 2px; font-size: 12px">
12px font text with 2px letter-spacing
</div>

<hr>

<div style="letter-spacing: 2px; font-size: 12px; zoom: 2">
12px font zoomed text with 2px letter-spacing
</div>

<hr>

<div style="letter-spacing: 2px; font-size: 12px">
<div style="zoom:2">
12px font zoomed inherited text with 2px letter-spacing
</div>
</div>

<hr>
23 changes: 23 additions & 0 deletions css/css-viewport/zoom/reference/letter-spacing-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<style>CSS zoom applies to letter-spacing when specified and inherited</style>
<link rel="author" title="Stefan Zager" href="mailto:[email protected]">
<link rel="help" href="https://drafts.csswg.org/css-viewport/">
<div style="letter-spacing: 2px; font-size: 12px">
12px font text with 2px letter-spacing
</div>

<hr>

<div style="letter-spacing: 4px; font-size: 24px;">
12px font zoomed text with 2px letter-spacing
</div>

<hr>

<div style="letter-spacing: 2px; font-size: 12px">
<div style="letter-spacing: 4px; font-size: 24px">
12px font zoomed inherited text with 2px letter-spacing
</div>
</div>

<hr>

0 comments on commit 0fd9af9

Please sign in to comment.