text-box-trim-float-clear-br-003.html (780B)
1 <!DOCTYPE html> 2 <title>text-box-trim does not interfere with clearance less than trim amount</title> 3 <link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-box-trim"> 4 <link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-box-edge"> 5 <link rel="match" href="text-box-trim-float-clear-br-003-ref.html"> 6 <style> 7 @import "support/MetricsTestFont.css"; 8 9 .spacer { 10 background: lightgray; 11 block-size: 100px; 12 } 13 .target, .float { 14 font: 100px/1 MetricsTestFont; 15 } 16 .target { 17 text-box-trim: trim-end; 18 text-box-edge: text alphabetic; 19 } 20 .float { 21 float: left; 22 width: 100px; 23 height: 90px; 24 background: yellow; 25 } 26 .clear { clear: both; } 27 </style> 28 <div class="float"></div> 29 <div class="target"> 30 ApÉx 31 <br class="clear"> 32 </div> 33 <div class="spacer"></div>