| <!DOCTYPE html> |
| <title>text-box-trim does not interfere with height and vice versa (end edge)</title> |
| <link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-box-trim"> |
| <link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-box-edge"> |
| <link ref="help" href="https://www.w3.org/TR/css-align-3/#distribution-block"> |
| <link rel="match" href="text-box-trim-height-002-ref.html"> |
| <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> |
| <style> |
| .spacer { |
| background: lightgray; |
| block-size: 20px; |
| } |
| .max-height > .spacer:first-child { |
| margin-top: 80px; /* avoid overlap */ |
| } |
| |
| .target { |
| font: 100px/2 Ahem; |
| text-box-trim: trim-both; |
| text-box-edge: text alphabetic; |
| align-content: unsafe end; |
| } |
| |
| .height > .target { |
| height: 120px; |
| } |
| |
| .min-height > .target { |
| min-height: 120px; |
| } |
| |
| .max-height > .target { |
| max-height: 10px; |
| } |
| </style> |
| |
| <div class="height"> |
| <div class="spacer"></div> |
| <div class="target">ApÉx</div> |
| <div class="spacer"></div> |
| </div> |
| |
| <div class="min-height"> |
| <div class="spacer"></div> |
| <div class="target">ApÉx</div> |
| <div class="spacer"></div> |
| </div> |
| |
| <div class="max-height"> |
| <div class="spacer"></div> |
| <div class="target">ApÉx</div> |
| <div class="spacer"></div> |
| </div> |