Skip to content

Commit 66b56f4

Browse files
committed
add figures for text-underline-position
1 parent 909cdca commit 66b56f4

6 files changed

Lines changed: 107 additions & 27 deletions

css3-text/Overview.html

Lines changed: 62 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
.char { border: 1px dotted gray; }
1919
.quarter { font-size: 25%; }
2020
tt[lang="ja"] { font-family: "MS Gothic", "Osaka", monospace }
21+
div.figure table {
22+
margin :auto;
23+
}
2124
</style>
2225
<link href="http://www.w3.org/StyleSheets/TR/W3C-ED.css" rel=stylesheet
2326
type="text/css">
@@ -36,7 +39,7 @@ <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 12 January
3639
<dt>This version:
3740

3841
<dd><a href="http://dev.w3.org/csswg/css3-text/">$Date: 2012/01/12
39-
02:22:09 $ (CVS $Revision$)</a> <!--
42+
02:46:11 $ (CVS $Revision$)</a> <!--
4043
<dd><a href="http://www.w3.org/TR/2012/WD-css3-text-20120112/">http://www.w3.org/TR/2012/WD-css3-text-20120112/</a></dd>
4144
-->
4245

@@ -492,7 +495,7 @@ <h3 id=text-transform><span class=secno>2.1. </span> <a name=caps-prop></a>
492495
<td><dfn id=text-transform0>text-transform</dfn>
493496

494497
<tr>
495-
<th>Value:
498+
<th><a href="#values">Value</a>:
496499

497500
<td>none | [ [ capitalize | uppercase | lowercase ] || full-width ||
498501
full-size-kana ]
@@ -706,7 +709,7 @@ <h3 id=white-space-collapsing><span class=secno>3.1. </span> White Space
706709
<td><dfn id=text-space-collapse>text-space-collapse</dfn>
707710

708711
<tr>
709-
<th>Value:
712+
<th><a href="#values">Value</a>:
710713

711714
<td>collapse | preserve | preserve-breaks
712715

@@ -782,7 +785,7 @@ <h3 id=tab-size><span class=secno>3.2. </span> Tab Character Size: the
782785
<td><dfn id=tab-size0>tab-size</dfn>
783786

784787
<tr>
785-
<th>Value:
788+
<th><a href="#values">Value</a>:
786789

787790
<td>&lt;integer&gt; | &lt;length&gt;
788791

@@ -997,7 +1000,7 @@ <h3 id=white-space><span class=secno>3.4. </span> White Space and Text
9971000
<td><dfn id=white-space0>white-space</dfn>
9981001

9991002
<tr>
1000-
<th>Value:
1003+
<th><a href="#values">Value</a>:
10011004

10021005
<td>normal | pre | nowrap | pre-wrap | pre-line
10031006

@@ -1219,7 +1222,7 @@ <h3 id=line-break><span class=secno>4.1. </span> Line Breaking Strictness:
12191222
<td><dfn id=line-break0>line-break</dfn>
12201223

12211224
<tr>
1222-
<th>Value:
1225+
<th><a href="#values">Value</a>:
12231226

12241227
<td>auto | loose | normal | strict
12251228

@@ -1365,7 +1368,7 @@ <h3 id=word-break><span class=secno>4.2. </span> Word Breaking Rules: the
13651368
<td><dfn id=word-break0>word-break</dfn>
13661369

13671370
<tr>
1368-
<th>Value:
1371+
<th><a href="#values">Value</a>:
13691372

13701373
<td>normal | keep-all | break-all
13711374

@@ -1604,7 +1607,7 @@ <h3 id=text-wrap><span class=secno>6.1. </span> Text Wrap Settings: the
16041607
<td><dfn id=text-wrap0>text-wrap</dfn>
16051608

16061609
<tr>
1607-
<th>Value:
1610+
<th><a href="#values">Value</a>:
16081611

16091612
<td>normal | none | avoid
16101613

@@ -1745,7 +1748,7 @@ <h3 id=overflow-wrap><span class=secno>6.2. </span> Emergency Wrapping: the
17451748
<td><dfn id=overflow-wrap0>overflow-wrap</dfn>
17461749

17471750
<tr>
1748-
<th>Value:
1751+
<th><a href="#values">Value</a>:
17491752

17501753
<td>normal | break-word
17511754

@@ -1833,7 +1836,7 @@ <h3 id=text-align><span class=secno>7.1. </span> Text Alignment: the
18331836
<td><dfn id=text-align0>text-align</dfn>
18341837

18351838
<tr>
1836-
<th>Value:
1839+
<th><a href="#values">Value</a>:
18371840

18381841
<td>&lt;string&gt;? [ start | end | left | right | center ] | justify |
18391842
match-parent | start end
@@ -2084,7 +2087,7 @@ <h3 id=text-align-last><span class=secno>7.2. </span> Last Line Alignment:
20842087
<td><dfn id=text-align-last0>text-align-last</dfn>
20852088

20862089
<tr>
2087-
<th>Value:
2090+
<th><a href="#values">Value</a>:
20882091

20892092
<td>auto | start | end | left | right | center | justify
20902093

@@ -2155,7 +2158,7 @@ <h3 id=text-justify><span class=secno>7.3. </span> Justification Method:
21552158
<td><dfn id=text-justify0>text-justify</dfn>
21562159

21572160
<tr>
2158-
<th>Value:
2161+
<th><a href="#values">Value</a>:
21592162

21602163
<td>auto | none | inter-word | inter-ideograph | inter-cluster |
21612164
distribute | kashida
@@ -2657,7 +2660,7 @@ <h3 id=word-spacing><span class=secno>8.1. </span> Word Spacing: the
26572660
<td><dfn id=word-spacing0>word-spacing</dfn>
26582661

26592662
<tr>
2660-
<th>Value:
2663+
<th><a href="#values">Value</a>:
26612664

26622665
<td><a href="#spacing-limit">&lt;spacing-limit&gt;</a>
26632666

@@ -2737,7 +2740,7 @@ <h3 id=letter-spacing><span class=secno>8.2. </span> Tracking: the
27372740
<td><dfn id=letter-spacing0>letter-spacing</dfn>
27382741

27392742
<tr>
2740-
<th>Value:
2743+
<th><a href="#values">Value</a>:
27412744

27422745
<td><a href="#spacing-limit">&lt;spacing-limit&gt;</a>
27432746

@@ -2836,7 +2839,7 @@ <h3 id=text-indent><span class=secno>9.1. </span> First Line Indentation:
28362839
<td><dfn id=text-indent0>text-indent</dfn>
28372840

28382841
<tr>
2839-
<th>Value:
2842+
<th><a href="#values">Value</a>:
28402843

28412844
<td>[ <span class=value-inst-length><a
28422845
href="http://www.w3.org/TR/CSS21/syndata.html#value-def-length">&lt;length&gt;</a></span>
@@ -2945,7 +2948,7 @@ <h3 id=hanging-punctuation><span class=secno>9.2. </span> Hanging
29452948
<td><dfn id=hanging-punctuation0>hanging-punctuation</dfn>
29462949

29472950
<tr>
2948-
<th>Value:
2951+
<th><a href="#values">Value</a>:
29492952

29502953
<td>none | [ first || [ force-end | allow-end ] || last ]
29512954

@@ -3295,7 +3298,7 @@ <h4 id=text-decoration-line><span class=secno>10.1.1. </span> Text
32953298
<td><dfn id=text-decoration-line0>text-decoration-line</dfn>
32963299

32973300
<tr>
3298-
<th>Value:
3301+
<th><a href="#values">Value</a>:
32993302

33003303
<td>none | [ underline || overline || line-through ]
33013304

@@ -3367,7 +3370,7 @@ <h4 id=text-decoration-color><span class=secno>10.1.2. </span> Text
33673370
<td><dfn id=text-decoration-color0>text-decoration-color</dfn>
33683371

33693372
<tr>
3370-
<th>Value:
3373+
<th><a href="#values">Value</a>:
33713374

33723375
<td><a href="http://www.w3.org/TR/css3-color/#color0"><span
33733376
class=value-inst-color>&lt;color&gt;</span></a>
@@ -3420,7 +3423,7 @@ <h4 id=text-decoration-style><span class=secno>10.1.3. </span> Text
34203423
<td><dfn id=text-decoration-style0>text-decoration-style</dfn>
34213424

34223425
<tr>
3423-
<th>Value:
3426+
<th><a href="#values">Value</a>:
34243427

34253428
<td>solid | double | dotted | dashed | wavy
34263429

@@ -3475,7 +3478,7 @@ <h4 id=text-decoration><span class=secno>10.1.4. </span> Text Decoration
34753478
<td><dfn id=text-decoration0>text-decoration</dfn>
34763479

34773480
<tr>
3478-
<th>Value:
3481+
<th><a href="#values">Value</a>:
34793482

34803483
<td><var><a
34813484
href="#text-decoration-line">&lt;text-decoration-line&gt;</a></var> ||
@@ -3566,7 +3569,7 @@ <h4 id=text-decoration-skip><span class=secno>10.1.5. </span> Text
35663569
<td><dfn id=text-decoration-skip0>text-decoration-skip</dfn>
35673570

35683571
<tr>
3569-
<th>Value:
3572+
<th><a href="#values">Value</a>:
35703573

35713574
<td>none | [ objects || spaces || ink || edges ]
35723575

@@ -3662,7 +3665,7 @@ <h4 id=text-underline-position><span class=secno>10.1.6. </span> Text
36623665
<td><dfn id=text-underline-position0>text-underline-position</dfn>
36633666

36643667
<tr>
3665-
<th>Value:
3668+
<th><a href="#values">Value</a>:
36663669

36673670
<td>auto | alphabetic | below && left | below && right
36683671

@@ -3747,6 +3750,38 @@ <h4 id=text-underline-position><span class=secno>10.1.6. </span> Text
37473750
then an overline also switches sides and is drawn on the "under" side.
37483751
</dl>
37493752

3753+
<div class=figure class=data id=fig-text-underline-position>
3754+
<table>
3755+
<tbody>
3756+
<tr>
3757+
<td> <img alt="text-underline-position: alphabetic"
3758+
src=underline-position-alphabetic.png>
3759+
3760+
<td rowspan=3> <img alt="text-underline-position: left"
3761+
src=underline-position-left.png>
3762+
3763+
<td rowspan=3> <img alt="text-underline-position: right"
3764+
src=underline-position-right.png>
3765+
3766+
<tr>
3767+
<td>&lsquo;<code class=css>alphabetic</code>&rsquo;
3768+
3769+
<tr>
3770+
<td> <img alt="text-underline-position: below"
3771+
src=underline-position-below.png>
3772+
3773+
<tr>
3774+
<td>&lsquo;<code class=css>below</code>&rsquo;
3775+
3776+
<td>&lsquo;<code class=css>left</code>&rsquo;
3777+
3778+
<td>&lsquo;<code class=css>right</code>&rsquo;
3779+
</table>
3780+
3781+
<p class=caption>&lsquo;<a href="#text-underline-position0"><code
3782+
class=property>text-underline-position</code></a>&rsquo; values</p>
3783+
</div>
3784+
37503785
<div class=note>
37513786
<p>In some cases (such as in OpenType) the font format can offer
37523787
information about the appropriate position of an underline. Typically
@@ -3784,7 +3819,7 @@ <h4 id=text-emphasis-style><span class=secno>10.2.1. </span> Emphasis Mark
37843819
<td><dfn id=text-emphasis-style0>text-emphasis-style</dfn>
37853820

37863821
<tr>
3787-
<th>Value:
3822+
<th><a href="#values">Value</a>:
37883823

37893824
<td>none | [ [ filled | open ] || [ dot | circle | double-circle |
37903825
triangle | sesame ] ] | <a class=noxref
@@ -3956,7 +3991,7 @@ <h4 id=text-emphasis-color><span class=secno>10.2.2. </span> Emphasis Mark
39563991
<td><dfn id=text-emphasis-color0>text-emphasis-color</dfn>
39573992

39583993
<tr>
3959-
<th>Value:
3994+
<th><a href="#values">Value</a>:
39603995

39613996
<td>&lt;color&gt;
39623997

@@ -4005,7 +4040,7 @@ <h4 id=text-emphasis><span class=secno>10.2.3. </span> Emphasis Mark
40054040
<td><dfn id=text-emphasis0>text-emphasis</dfn>
40064041

40074042
<tr>
4008-
<th>Value:
4043+
<th><a href="#values">Value</a>:
40094044

40104045
<td>&lsquo;<code class=css>&lt;<a
40114046
href="#text-emphasis-style">text-emphasis-style</a>&gt;</code>&rsquo;
@@ -4068,7 +4103,7 @@ <h4 id=text-emphasis-position><span class=secno>10.2.4. </span> Emphasis
40684103
<td><dfn id=text-emphasis-position0>text-emphasis-position</dfn>
40694104

40704105
<tr>
4071-
<th>Value:
4106+
<th><a href="#values">Value</a>:
40724107

40734108
<td>[ above | below ] && [ right | left ]
40744109

@@ -4216,7 +4251,7 @@ <h3 id=text-shadow><span class=secno>10.3. </span> Text Shadows: the
42164251
<td><dfn id=text-shadow0>text-shadow</dfn>
42174252

42184253
<tr>
4219-
<th>Value:
4254+
<th><a href="#values">Value</a>:
42204255

42214256
<td>none | [ &lt;length>{2,3} && &gt;color>? ]#
42224257

css3-text/Overview.src.html

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
.char { border: 1px dotted gray; }
1818
.quarter { font-size: 25%; }
1919
tt[lang="ja"] { font-family: "MS Gothic", "Osaka", monospace }
20+
div.figure table {
21+
margin :auto;
22+
}
2023
</style>
2124

2225
<link rel="stylesheet" type="text/css" href="http://www.w3.org/StyleSheets/TR/W3C-ED.css">
@@ -2793,6 +2796,48 @@ <h4 id="text-underline-position">
27932796
switches sides and is drawn on the "under" side.</dd>
27942797
</dl>
27952798

2799+
<div class="figure" class="data" id="fig-text-underline-position">
2800+
<table>
2801+
<tr>
2802+
<td>
2803+
<img
2804+
alt="text-underline-position: alphabetic"
2805+
src="underline-position-alphabetic.png"
2806+
/>
2807+
</td>
2808+
<td rowspan="3">
2809+
<img
2810+
alt="text-underline-position: left"
2811+
src="underline-position-left.png"
2812+
/>
2813+
</td>
2814+
<td rowspan="3">
2815+
<img
2816+
alt="text-underline-position: right"
2817+
src="underline-position-right.png"
2818+
/>
2819+
</td>
2820+
</tr>
2821+
<tr>
2822+
<td>''alphabetic''</td>
2823+
</tr>
2824+
<tr>
2825+
<td>
2826+
<img
2827+
alt="text-underline-position: below"
2828+
src="underline-position-below.png"
2829+
/>
2830+
</td>
2831+
</tr>
2832+
<tr>
2833+
<td>''below''</td>
2834+
<td>''left''</td>
2835+
<td>''right''</td>
2836+
</tr>
2837+
</table>
2838+
<p class="caption">'text-underline-position' values</p>
2839+
</div>
2840+
27962841
<div class="note">
27972842
<p>In some cases (such as in OpenType) the font format can offer
27982843
information about the appropriate position of an underline.
3.09 KB
Loading
5.51 KB
Loading
2.32 KB
Loading
2.33 KB
Loading

0 commit comments

Comments
 (0)