Skip to content

Commit 8511b2b

Browse files
frivoalfantasai
authored andcommitted
[css-text-3] Add sample rendering to example
1 parent a8d0a3a commit 8511b2b

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

css-text-3/Overview.bs

+18-5
Original file line numberDiff line numberDiff line change
@@ -1034,9 +1034,10 @@ Line Breaking Details</h3>
10341034

10351035
<div class="example" id=jp-title-break>
10361036
<style>
1037-
#jp-title-break samp {
1038-
font-size: 2em;
1039-
max-width: 9em;
1037+
#jp-title-break td samp,
1038+
#jp-title-break td pre {
1039+
font-size: 1.5em;
1040+
width: 9em;
10401041
line-height: 2;
10411042
padding: 0.5em 1em;
10421043
display: block;
@@ -1060,13 +1061,25 @@ Line Breaking Details</h3>
10601061

10611062
<table class=data>
10621063
<tr>
1064+
<td>
10631065
<th><code highlight=css>h1 { word-break: normal }</code>
1066+
<th><code highlight=css>h1 { word-break: keep-all }</code>
1067+
<tr>
1068+
<th>Expected rendering
1069+
<td>
1070+
<pre lang=ja>
1071+
窓ぎわのトットちゃ
1072+
</pre>
1073+
<td>
1074+
<pre lang=ja>
1075+
窓ぎわの
1076+
トットちゃん</pre>
1077+
<tr>
1078+
<th>Result in your browser
10641079
<td>
10651080
<samp lang=ja>
10661081
窓ぎわの<wbr>トットちゃん
10671082
</samp>
1068-
<tr>
1069-
<th><pre><code highlight=css>h1 { word-break: keep-all }</code>
10701083
<td>
10711084
<samp style="word-break:keep-all" lang=ja>
10721085
窓ぎわの<wbr>トットちゃん

0 commit comments

Comments
 (0)