Skip to content

Commit 0152944

Browse files
committed
[text-decor-4] Added example images for percentage insets
1 parent f7ac17a commit 0152944

3 files changed

Lines changed: 15 additions & 4 deletions

File tree

css-text-decor-4/Overview.bs

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -915,22 +915,33 @@ Trimming, Expanding, and Shifting Text Decoration Lines: the 'text-decoration-in
915915
from the start and end of it.
916916
<pre>
917917
h1 {
918-
text-decoration: underline 0.3em rgb(36 148 187 / 0.25);
918+
text-decoration: underline 0.2em rgb(216 148 23);
919919
text-decoration-inset: 10%;
920920
}
921921
</pre>
922+
923+
This results in the orange underline being inset by 10 percent from the start and end of the headline.
924+
925+
<img src="images/underline-inset-percentage.png" height="253" width="499"
926+
alt="Sample rendering of the underline inset example">
922927
</div>
923928

924929
<div class="example">
925-
<p>In this example, the underline is inset 5% of the inline size of each [=box fragment=]
930+
<p>In this example, the underline is inset 10% of the inline size of each [=box fragment=]
926931
from the end of that fragment.
927932
<pre>
928933
h1 {
929-
text-decoration: underline 0.3em rgb(36 148 187 / 0.25);
930-
text-decoration-inset: 0 5%;
934+
text-decoration: underline 0.2em rgb(216 148 23);
935+
text-decoration-inset: 0 10%;
931936
box-decoration-break: clone;
932937
}
933938
</pre>
939+
940+
This results in the orange underline of each line being inset by 10 percent from the end.
941+
942+
<img src="images/underline-inset-percentage-clone.png" height="253" width="499"
943+
alt="Sample rendering of the underline inset example">
944+
</div>
934945
</div>
935946

936947
<dt><dfn>auto</dfn></dt>
18.3 KB
Loading
18.3 KB
Loading

0 commit comments

Comments
 (0)