XSLT/XSL-FO/MathML テクニックテーブル |
|
Q. | border-after とconditionality retain を fo:table-header に指定し、border-after を fo:table-cell にも指定して、テーブルヘッダーの下にボーダーを引きたかったのですが、できません。なぜですか。 [No.2002062103] |
---|---|
A. |
fo:table に border-collapse="separate" が指定されている場合、 fo:table-header の border や padding は無効になります。 次のW3Cの勧告をご覧ください。 ... The following properties apply to this formatting object: ...
* [7.7 Common Border, Padding, and Background Properties] border-collapse が "collapse" でも "collapse-with-precedence" でもない 場合(つまり "separate" の場合)、border、padding は適用されない。 ... In the separate borders model, each cell has an individual border. The "border-separation" property specifies the distance between the borders of adjacent cells. This space is filled with the background of the table element. Rows, columns, row groups, and column groups cannot have borders (i.e., user agents must ignore the border properties for those elements). table-header というのは row groups のひとつです。その border は無視し なければならないと明記されています。 |