

* [CODE(CSS)[tab-stops]] 特性 (CSS)

[10] [ABBR[[[CSS]]] [Cascading Style Sheets]] の[[特性]]
[DFN[tab-stops]] は、[[タブ]]による navigation 
の停止の位置を示すと思われます。 [[Microsoft Office]]
が使用していますが、現在のところ標準化されている特性ではありません。

[[#comment]]


** 他との関係

[11] 似た意味かもしれない特性に
[SAMP(CSS)[[[-ilx-tab-stops]]]] があります。
こちらもやはり標準の特性ではありません。

[[#comment]]


** 例

- [1] [SAMP(CSS)[tablstops: list 22.5pt]]
- [2] [SAMP(CSS)[tab-stops: 42.0pt center 212.6pt right 425.2pt]]
- 
[3]
[SAMP(CSS)[DIV.MsoCaption { [INS[...]] tab-stops: 131.45pt }]] 
[SRC[Word 9]]
- 
[4]
[SAMP(CSS)[tab-stops: list .5in]] ([CODE(HTMLe)[[[p]]]]) 
[SRC[Word 9]]
- [5]
[SAMP(CSS)[tab-stops:right 431.5pt;]] [SRC[Word 10]]
- 
[6]
[SAMP(CSS)[tab-stops:center 3.0in right 6.0in;]] [SRC[Word 10]]
- [7]
[SAMP(CSS)[tab-stops:dotted 1.0cm list blank 32.2pt right dotted 241.0pt;]] 
[SRC[Word 10]]
- [8]
[SAMP(CSS)[tab-stops:center 207.65pt right 415.3pt;]] 
[SRC[Word 9]]
- [9] [SAMP(CSS)[tab-stops:54.0pt]]

[[#comment]]


** メモ

[12]
[[XFA]] 2.4 946頁〜

>
Tab Stops
>
Tab stops are not a feature provided by [CSS2] or the [XHTML] specification, however, the following
extensions are provided for setting tab-stops at either a repeating interval or at specific locations. For
compatibility with [XHTML], tabs are invoked using an element with a style attribute. The ASCII tab
character (U0009) is ordinary white space that does not advance to the next tab-stop.
>
Default tab stops may be set at a repeating interval via the use of a nonstandard [CSS2] style attribute
tab-interval. The default tab stops occur at every multiple of the specified measurement value. However,
these tab stops are in effect only beyond the positions specified by the nonstandard [CSS2] style attribute
tab-stops described below. As a consequence, if no tab stops were defined with the tab stops attribute
then all of the default tab stop positions will be in effect.
>
Default tab stops are always left tabs, that is, after advancing to the tab stop subsequent text is left-aligned
with the tab stop.
>
This attribute is defined as:
[PRE(CSS code)[
tab-interval:size
]PRE]
where size is a non-zero measurement
>
A span element with a style attribute of xfa-tab-count may be used to advance by a specific number
of tab-stops relative to the current position. The span element is recommended to be empty, as any text
or markup that is contained within the span may be discarded by an XFA processing application.
>
[PRE(CSS code)[
xfa-tab-count:count
]PRE]
>where count is a non-negative integer representing the number of tabs-stops to advance
When count is zero the xfa-tab-count attribute must have no effect.
>
Example:
[PRE(HTML example code)[
<p style="tab-interval:0.5in">A
<span style="xfa-tab-count:2" />B
<span style="xfa-tab-count:1" />C</p>
]PRE]
>
Produces:
>
[PRE(aafig)[
A                B        C
]PRE]
>
Tab-stops may be set at specific locations via the use of a nonstandard [CSS2] style attribute tab-stops.
>
This attribute is defined as:
[PRE(CSS code)[
tab-stops:align measurement[ align measurement]...
]PRE]
>
Note: This document uses the monospaced italics type face to indicate placeholders. In actual use,
meaningful values replace such placeholders.
>
align values are described in the following table.
>
,"align" value ,Effect
,center ,Center-aligned tab stop
,left ,Left-aligned tab stop
,right ,Right-aligned tab stop
,decimal ,Tab-stop that aligns content around a radix point
>
A center-aligned tab stop causes the text following the tab to be centered on the tab stop position. A
left-aligned tab stop causes the text following the tab to be left-aligned with the tab stop position. A
right-aligned tab stop causes the text following the tab to be right-aligned with the tab stop position. A
radix-aligned tab stop is used with numeric data. It causes the text following the tab to be aligned with its
radix character (for example, in English-speaking locales) left-aligned with the tab stop position. If the text
has no radix character the text is right-aligned with the tab stop position. The determination of the
appropriate radix character for the locale is implementation-defined.
>
The cursor position starts at the left margin and the tab index starts at zero upon entry to the element that
declares the tab-stops. Within a p element that declares tab-stops, a br element restarts the cursor
position at the left margin and the tab index at zero.
>
Example:
[PRE(HTML example code)[
<p style="tab-stops:left 0.5in left 2in">
<span style="xfa-tab-count:1" />Charles
<span style="xfa-tab-count:1" />Porter<br />
<span style="xfa-tab-count:1" />Alice
<span style="xfa-tab-count:1" />Crawford
</p>
]PRE]
>
Produces:
>
[PRE(aafig)[
  Charles          Porter
  Alice            Crawford
]PRE]
>
Example:
[PRE(HTML example code)[
<p style="font-family:courier;tab-stops:decimal 0.5in">
<span style="xfa-tab-count:1" />1.2345<br />
<span style="xfa-tab-count:1" />99<br />
<span style="xfa-tab-count:1" />-.033<br />
<span style="xfa-tab-count:1" />$ 17.60 plus tax
</p>
]PRE]
>
Produces:
[PRE(aafig)[
   1.2345
  99
   -.033
$ 17.70 plus tax
]PRE]

;; レンダリング例の引用は正確じゃないよ


([[名無しさん]] [sage])


[[#comment]]


* メモ