forked from SchemaStore/schemastore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
css-module-text.xml
194 lines (161 loc) · 23.5 KB
/
css-module-text.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<?xml version="1.0" encoding="utf-8"?>
<CssModule name="Text" standard-reference="http://www.w3.org/TR/css3-text/" status="WD" pub-date="2013-10-10">
<CssProperty name="text-transform" restriction="enum" syntax="h1 { $(name): capitalize; }" description="Controls capitalization effects of an element's text." standard-reference="http://www.w3.org/TR/css3-text/#text-transform0">
<entry value="none" description="No capitalization effects." />
<entry value="capitalize" description="Puts all words in titlecase." />
<entry value="uppercase" description="Puts all characters of each word in uppercase." />
<entry value="lowercase" description="Puts all characters of each word in lowercase." />
<entry value="full-width" version="3.0" browsers="none" description="Puts all characters in fullwidth form. If the character does not have corresponding fullwidth form, it is left as is." />
<entry value="fullsize-kana" version="3.0" browsers="none" description="Converts all small Kana characters to normal Kana. This value is typically used for ruby annotation text." />
</CssProperty>
<CssProperty name="white-space" version="1.0" restriction="enum" syntax="section { $(name): nowrap; }" description="Shorthand property for the 'white-space-collapsing' and 'text-wrap' properties." standard-reference="http://www.w3.org/TR/css3-text/#white-space0">
<entry value="normal" description="Sets 'white-space-collapsing' to 'collapse' and 'text-wrap' to 'normal'." />
<entry value="pre" description="Sets 'white-space-collapsing' to 'preserve' and 'text-wrap' to 'none'." />
<entry value="nowrap" description="Sets 'white-space-collapsing' to 'collapse' and 'text-wrap' to 'none'." />
<entry value="pre-wrap" description="Sets 'white-space-collapsing' to 'preserve' and 'text-wrap' to 'normal'." />
<entry value="pre-line" description="Sets 'white-space-collapsing' to 'preserve-breaks' and 'text-wrap' to 'normal'." />
</CssProperty>
<CssProperty name="tab-size" version="3.0" browsers="none" restriction="integer, length" syntax="div { $(name): 4; }" description="This property determines the width of the tab character (U+0009), in space characters (U+0020), when rendered" standard-reference="http://www.w3.org/TR/css3-text/#tab-size" />
<CssProperty name="line-break" version="3.0" browsers="none" restriction="enum" syntax="p { $(name): normal; }" description="Specifies what set of line breaking restrictions are in effect within the element." standard-reference="http://www.w3.org/TR/css3-text/#line-break0">
<entry value="auto" description="The UA determines the set of line-breaking restrictions to use for CJK scripts, and it may vary the restrictions based on the length of the line; e.g., use a less restrictive set of line-break rules for short lines." />
<entry value="loose" description="Breaks text using the least restrictive set of line-breaking rules. Typically used for short lines, such as in newspapers." />
<entry value="normal" description="Breaks text using the most common set of line-breaking rules." />
<entry value="strict" description="Breaks CJK scripts using a more restrictive set of line-breaking rules than 'normal'." />
</CssProperty>
<CssProperty name="word-break" version="3.0" browsers="C,FF15,IE5,S3" restriction="enum" syntax="p.album { $(name): break-all; }" description="Specifies line break opportunities for non-CJK scripts." standard-reference="http://www.w3.org/TR/css3-text/#word-break0">
<entry value="normal" description="Breaks non-CJK scripts according to their own rules." />
<entry value="break-all" description="Lines may break between any two grapheme clusters for non-CJK scripts. This option is used mostly in a context where the text is predominantly using CJK characters with few non-CJK excerpts and it is desired that the text be better distributed on each line." />
<entry value="keep-all" description="Block characters can no longer create implied break points. Otherwise this option is equivalent to 'normal'. This option is mostly used where the presence of word separator characters still creates line-breaking opportunities, as in Korean." />
<entry value="break-word" />
</CssProperty>
<CssProperty name="text-wrap" version="3.0" browsers="none" restriction="enum" syntax="p.test { $(name): none; }" description="Specifies mode for text wrapping." standard-reference="http://www.w3.org/TR/css3-text/#word-break0">
<entry value="normal" description="Lines may break at allowed break points, as determined by the line-breaking rules in effect. Honors rules specified in Unicode Standard Annex #14 for the WJ, ZW, and GL line-breaking classes." />
<entry value="none" description="Lines may not break; text that does not fit within the block container overflows it." />
<entry value="avoid" description="Line breaking is suppressed within the element: the UA may only break within the element if there are no other valid break points in the line." />
</CssProperty>
<CssProperty name="text-align" version="1.0" restriction="string" browsers="all" syntax="h2 { $(name): center; }" description="Describes how inline contents of a block are horizontally aligned if the contents do not completely fill the line box." standard-reference="http://www.w3.org/TR/css3-text/#text-align0">
<entry value="start" version="3.0" browsers="none" description="The inline contents are aligned to the start edge of the line box." />
<entry value="end" version="3.0" browsers="none" description="The inline contents are aligned to the end edge of the line box." />
<entry value="match-parent" version="3.0" browsers="none" description="This value behaves the same as 'inherit' except that an inherited value of 'start' or 'end' is calculated against its parent's 'direction' value." />
<entry value="left" description="The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text." />
<entry value="right" description="The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text." />
<entry value="center" description="The inline contents are centered within the line box." />
<entry value="justify" description="The text is justified according to the method specified by the 'text-justify' property." />
</CssProperty>
<CssProperty name="text-align-last" version="3.0" browsers="FF12,IE5" restriction="enum" syntax="div { $(name): right; }" description="Describes how the last line of a block or a line right before a forced line break is aligned when 'text-align' is set to 'justify'." standard-reference="http://www.w3.org/TR/css3-text/#text-align-last0">
<entry value="auto" version="3.0" />
<entry value="start" version="3.0" browsers="none" description="The inline contents are aligned to the start edge of the line box." />
<entry value="end" version="3.0" browsers="none" description="The inline contents are aligned to the end edge of the line box." />
<entry value="left" description="The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text." />
<entry value="right" description="The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text." />
<entry value="center" description="The inline contents are centered within the line box." />
<entry value="justify" description="The text is justified according to the method specified by the 'text-justify' property." />
</CssProperty>
<CssProperty name="text-justify" version="3.0" browsers="IE5.5" restriction="enum" description="Selects the justification algorithm used when 'text-align' is set to 'justify'. The property applies to block containers, but the UA may (but is not required to) also support it on inline elements." syntax="div { $(name): inter-word; }" standard-reference="http://www.w3.org/TR/css3-text/#text-justify0">
<entry value="none" browsers="none" description="Justification is disabled." />
<entry value="auto" description="The UA determines the justification algorithm to follow, based on a balance between performance and adequate presentation quality." />
<entry value="inter-word" description="Justification primarily changes spacing at word separators. This value is typically used for languages that separate words using spaces, like English or (sometimes) Korean." />
<entry value="inter-ideograph" description="Justification primarily changes spacing at word separators and at inter-graphemic boundaries in scripts that use no word spaces. This value is typically used for CJK languages." />
<entry value="inter-cluster" description="Justification primarily changes spacing at word separators and at grapheme cluster boundaries in clustered scripts. This value is typically used for Southeast Asian scripts such as Thai." />
<entry value="distribute" description="Justification primarily changes spacing both at word separators and at grapheme cluster boundaries in all scripts except those in the connected and cursive groups. This value is sometimes used in e.g. Japanese, often with the 'text-align-last' property." />
<entry value="distribute-all-lines" />
<entry value="distribute-center-last " />
<entry value="newspaper " />
<entry value="kashida" description="Justification primarily stretches Arabic and related scripts through the use of kashida or other calligraphic elongation." />
<entry value="trim" browsers="none" description="Specifies that compression is preferred to expansion and enables the trimming of blank space in glyphs where allowed by typographic tradition." />
</CssProperty>
<CssProperty name="word-spacing" version="1.0" restriction="length, percentage" description="Specifies the minimum, maximum, and optimal spacing between words." syntax="article { $(name): 3px; }" standard-reference="http://www.w3.org/TR/css3-text/#word-spacing0">
<entry value="normal" description="The normal inter-word space, as defined by the current font and/or the user agent." />
</CssProperty>
<CssProperty name="letter-spacing" version="1.0" restriction="length" description="Specifies the minimum, maximum, and optimal spacing between grapheme clusters." syntax="h2 { $(name): 2px; }" standard-reference="http://www.w3.org/TR/css3-text/#letter-spacing0">
<entry value="normal" description="The spacing is the normal spacing for the current font. It is typically zero-length." />
</CssProperty>
<CssProperty name="text-indent" version="1.0" restriction="percentage, length" description="Specifies the indentation applied to lines of inline content in a block. The indentation only affects the first line of inline content in the block unless the 'hanging' keyword is specified, in which case it affects all lines except the first." syntax="li { $(name): 5px; }" standard-reference="http://www.w3.org/TR/css3-text/#text-indent0">
<entry value="hanging" version="3.0" browsers="none" description="Inverts which lines are affected." />
<entry value="each-line" version="3.0" browsers="none" description="Indentation affects the first line of the block container as well as each line after a forced line break, but does not affect lines after a text wrap break." />
</CssProperty>
<CssProperty name="hanging-punctuation" version="3.0" browsers="none" restriction="enum" syntax="p { $(name): first; }" description="Determines whether a punctuation mark, if one is present, may be placed outside the content area at the start or at the end of a full line of text." standard-reference="http://www.w3.org/TR/css3-text/#hanging-punctuation0">
<entry value="none" description="No characters can hang." />
<entry value="first" description="Punctuation (specifically, opening brackets and quotes) may hang outside the start edge of the first line." />
<entry value="last" description="A closing bracket or quote at the end of the last formatted line of an element hangs. This applies to all characters in the Unicode categories Pe, Pf, Pi." />
<entry value="allow-end" description="Punctuation (specifically, stops and commas) may hang outside the end edge of all lines if the punctuation does not otherwise fit prior to justification." />
<entry value="force-end" description="Punctuation (specifically, stops and commas) may hang outside the end edge of all lines. If justification is enabled on this line, then it will force the punctuation to hang." />
</CssProperty>
<CssProperty name="text-decoration-line" version="3.0" browsers="none" restriction="enum" type="text-decoration-lines" syntax="div { $(name): underline; }" description="Specifies what line decorations, if any, are added to the element." standard-reference="http://www.w3.org/TR/css3-text/#text-decoration-line0" />
<CssPropertyValue type="text-decoration-lines">
<entry value="none" description="Neither produces nor inhibits text decoration." />
<entry value="underline" description="Each line of text is underlined." />
<entry value="overline" description="Each line of text has a line above it." />
<entry value="line-through" description="Each line of text has a line through the middle." />
</CssPropertyValue>
<CssProperty name="text-decoration-color" version="3.0" browsers="none" type="color" restriction="color" syntax="div { $(name): #ff0; }" description="Specifies the color of text decoration (underlines overlines, and line-throughs) set on the element with text-decoration-line." standard-reference="http://www.w3.org/TR/css3-text/#text-decoration-color0" />
<CssProperty name="text-decoration-style" version="3.0" browsers="none" restriction="enum" type="text-decoration-styles" syntax="div { $(name): solid; }" description="Specifies the line style for underline, line-through and overline text decoration." standard-reference="http://www.w3.org/TR/css3-text/#text-decoration-style0" />
<CssPropertyValue type="text-decoration-styles">
<entry value="none" description="Produces no line." />
<entry value="solid" description="Produces a solid line." />
<entry value="double" description="Produces a double line." />
<entry value="dotted" description="Produces a dotted line." />
<entry value="dashed" description="Produces a dashed line style." />
<entry value="wavy" description="Produces a wavy line." />
</CssPropertyValue>
<CssProperty name="text-decoration" version="1.0" restriction="enum, color" type="text-decoration-lines, text-decoration-styles" description="Decorations applied to font used for an element's text." syntax="a:visited { $(name): line-through; }" standard-reference="http://www.w3.org/TR/css3-text/#text-decoration0" />
<CssProperty name="text-decoration-skip" version="3.0" browsers="none" restriction="enum" description="Specifies what parts of the element's content any text decoration affecting the element must skip over. It controls all text decoration lines drawn by the element and also any text decoration lines drawn by its ancestors." syntax="none | [ images || spaces || ink || all ]" standard-reference="http://www.w3.org/TR/css3-text/#text-decoration-skip0">
<entry value="none" description="Skip nothing: text-decoration is drawn for all text content and for inline replaced elements." />
<entry value="objects" description="Skip this element if it is an atomic inline (such as an image or inline-block)." />
<entry value="spaces" description="Skip white space: this includes regular spaces (U+0020) and tabs (U+0009), as well as nbsp (U+00A0), ideographic space (U+3000), all fixed width spaces (such as U+2000–U+200A, U+202F and U+205F), and any adjacent letter-spacing or word-spacing." />
<entry value="ink" description="Skip over where glyphs are drawn: interrupt the decoration line to let text show through where the text decoration would otherwise cross over a glyph. The UA may also skip a small distance to either side of the glyph outline." />
</CssProperty>
<CssProperty name="text-underline-position" version="3.0" browsers="IE10" restriction="enum" syntax="article { $(name): auto; }" description="Sets the position of an underline specified on the same element: it does not affect underlines specified by ancestor elements. This property is typically used in vertical writing contexts such as in Japanese documents where it often desired to have the underline appear 'over' (to the right of) the affected run of text" standard-reference="http://www.w3.org/TR/css3-text/#text-underline-position0">
<entry value="auto" description="The user agent may use any algorithm to determine the underline's position. In horizontal line layout, the underline should be aligned as for alphabetic. In vertical line layout, if the language is set to Japanese or Korean, the underline should be aligned as for over." />
<entry value="alphabetic" browsers="none" description="The underline is aligned with the alphabetic baseline. In this case the underline is likely to cross some descenders." />
<entry value="below" description="The underline is aligned with the under edge of the element's content box." />
<entry value="left" browsers="none" description="In vertical typographic modes, the underline is aligned as for 'below', on the left edge of the text." />
<entry value="right" browsers="none" description="In vertical typographic modes, the underline is aligned as for 'below;, except it is aligned to the right edge of the text" />
</CssProperty>
<CssProperty name="text-emphasis-style" version="3.0" browsers="none" restriction="string" type="text-emphasis-style" description="Applies emphasis marks to the element's text." syntax="none | [[ filled | open ] || [ dot | circle | double-circle | triangle | sesame ]] | <string>" standard-reference="http://www.w3.org/TR/css3-text/#text-emphasis-style0" />
<CssPropertyValue type="text-emphasis-style">
<entry value="none" description="No emphasis marks." />
<entry value="filled" description="The shape is filled with solid color." />
<entry value="open" description="The shape is hollow." />
<entry value="dot" description="Draw small circles as marks. The filled dot is U+2022 '•', and the open dot is U+25E6 '◦'." />
<entry value="circle" description="Draw large circles as marks. The filled circle is U+25CF '●', and the open circle is U+25CB '○'." />
<entry value="double-circle" description="Draw double circles as marks. The filled double-circle is U+25C9 '◉', and the open double-circle is U+25CE '◎'." />
<entry value="triangle" description="Draw triangles as marks. The filled triangle is U+25B2 '▲', and the open triangle is U+25B3 '△'." />
<entry value="sesame" description="Draw sesames as marks. The filled sesame is U+FE45 '﹅', and the open sesame is U+FE46 '﹆'." />
</CssPropertyValue>
<CssProperty name="text-emphasis-color" version="3.0" browsers="none" type="color" restriction="color" description="Describes the foreground color of the emphasis marks." syntax="div { $(name): #ff0; }" standard-reference="http://www.w3.org/TR/css3-text/#text-emphasis-color0" />
<CssProperty name="text-emphasis" version="3.0" browsers="none" restriction="color, string" type="text-emphasis-style" description="Shorthand for setting text-emphasis-style and text-emphasis-color in one declaration." syntax="<color> | <string> | none | [ [ filled | open ] || [ dot | circle | double-circle | triangle | sesame ] ]" standard-reference="http://www.w3.org/TR/css3-text/#text-emphasis0" />
<CssProperty name="text-emphasis-position" version="3.0" browsers="none" restriction="enum" syntax="[ above | below ] && [ right | left ]" description="Describes where emphasis marks are drawn at." standard-reference="http://www.w3.org/TR/css3-text/#text-emphasis-position0">
<entry value="above" description="Draw marks over the text in horizontal typographic mode." />
<entry value="below" description="Draw marks under the text in horizontal typographic mode." />
<entry value="right" description="Draw marks to the right of the text in vertical typographic mode." />
<entry value="left" description="Draw marks to the left of the text in vertical typographic mode." />
</CssProperty>
<CssProperty name="text-shadow" version="3.0" browsers="C,FF3.6,IE10,O9.5,S1.1" restriction="length, color" description="Enables shadow effects to be applied to the text of the element." syntax="h1 { $(name): 20px 12px 2px #333;}" standard-reference="http://www.w3.org/TR/css3-text/#text-shadow0">
<entry value="none" description="No shadow." />
</CssProperty>
<CssProperty name="hyphens" version="3.0" browsers="none" type="hyphens" restriction="enum" description="This property controls whether hyphenation is allowed to create more break opportunities within a line of text." syntax="div { $(name): manual; }" standard-reference="http://www.w3.org/TR/css3-text/#hyphens0" />
<CssPropertyValue type="hyphens">
<entry value="none" description="Words are not broken at line breaks, even if characters inside the word suggest line break points." />
<entry value="manual" description="Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities" />
<entry value="auto" description="Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word." />
</CssPropertyValue>
<CssProperty name="overflow-wrap" version="3.0" browsers="none" restriction="enum" syntax="div { $(name): break-word; }" description="This property specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit within the line box." standard-reference="http://www.w3.org/TR/css3-text/#overflow-wrap0">
<entry value="normal" />
<entry value="break-word" />
</CssProperty>
<CssProperty name="text-space-collapse" version="3.0" browsers="none" restriction="enum" syntax="div { $(name): collapse; }" description="This property declares whether and how white space inside the element is collapsed. Values have the following meanings, which must be interpreted according to the white space processing rules." standard-reference="http://www.w3.org/TR/css3-text/#text-space-collapse">
<entry value="collapse" />
<entry value="preserve" />
<entry value="preserve-breaks" />
</CssProperty>
<CssProperty name="word-wrap" version="2.0" restriction="enum" syntax="p { $(name): break-word; }" description="Specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit." standard-reference="http://www.w3.org/TR/css3-text/#word-wrap0">
<entry value="normal" description="Lines may break only at allowed break points." />
<entry value="break-word" description="An unbreakable 'word' may be broken at an arbitrary point if there are no otherwise-acceptable break points in the line." />
<entry value="hyphenate" browsers="none" description="An unbreakable 'word' may be hyphenated if there are no otherwise-acceptable break points in the line even if hyphenation is turned off." />
</CssProperty>
<CssProperty name="text-size-adjust" version="3.0" browsers="none" restriction="enum, percentage" syntax="body { $(name): 150%; }" description="Specifies a size adjustment for displaying text content in mobile browsers." standard-reference="http://dev.w3.org/csswg/css-size-adjust/">
<entry value="auto" />
<entry value="none" />
</CssProperty>
</CssModule>