Skip to content

Commit

Permalink
Improve wavy decorations for smallish fonts
Browse files Browse the repository at this point in the history
The wavy text decoration for 10pt font is not as small as one would
expect. The issue is that we cap the smallest wavy size we are willing
to draw, and this is too pessimistic.

To address this, split the limits for the height and width of the
wave and reduce them. In the process remove a function.

Bug: 347595640
Change-Id: Ibd2d2f4b37f1454a5697d38703b47bd9d5de6454
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5631324
Reviewed-by: Fredrik Söderquist <[email protected]>
Commit-Queue: Stephen Chenney <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1317302}
  • Loading branch information
schenney-chromium authored and sadym-chromium committed Jul 18, 2024
1 parent 794a3ae commit 07b3057
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link rel="help" href="https://drafts.csswg.org/css-highlight-api-1/">
<link rel="match" href="css-target-text-decoration-001-ref.html">
<meta name="assert" content="This test checks that text-decorations of target text are fully rendered.">
<meta name="fuzzy" content="0-60;0-32">
<meta name="fuzzy" content="0-60;0-38">
<script src="/common/reftest-wait.js"></script>
<style>
::target-text {
Expand Down

0 comments on commit 07b3057

Please sign in to comment.