W3Cはblockquoteでインデントする

アンカーを見つけるためにCSS 2.1の仕様書のソースを眺めていたら、blockquote要素をインデントのために使っているのを見つけた。

<p>The following <a name="width-constraints">constraints</a> must hold
among the used values of the other properties:</p>
<blockquote>
<p><a href="box.html#propdef-margin-left" class="noxref"><span class="propinst-margin-left">'margin-left'</span></a> + <a href="box.html#propdef-border-left-width" class="noxref"><span
class="propinst-border-left-width">'border-left-width'</span></a> + <a href="box.html#propdef-padding-left" class="noxref"><span
class="propinst-padding-left">'padding-left'</span></a> + <a href="visudet.html#propdef-width" class="noxref"><span
class="propinst-width">'width'</span></a> + <a href="box.html#propdef-padding-right" class="noxref"><span
class="propinst-padding-right">'padding-right'</span></a> + <a href="box.html#propdef-border-right-width" class="noxref"><span
class="propinst-border-right-width">'border-right-width'</span></a> +
<a href="box.html#propdef-margin-right" class="noxref"><span class="propinst-margin-right">'margin-right'</span></a> + scrollbar
width (if any) = width of <a
href="#containing-block-details">containing block</a>
</p>
</blockquote>

駄目じゃん、W3Cともあろうものが。インデントはmargin-leftプロパティだろう。それを解説するはずの仕様書のマークアップがおかしいとは。

ちなみにHTML 4.01の仕様書では、The usage of BLOCKQUOTE to indent text is deprecated in favor of style sheets.(9.2.2 Quotations: The BLOCKQUOTE and Q elements - Paragraphs, Lines, and Phrases)と述べられており、blockquote要素をインデントのために使うことは非推奨(deprecated)としている。もちろんHTMLの仕様とCSSの仕様を策定している人は別人だが、これはどうか思う。

インデントはindetプロパティでしょう。indentとmarginは別物。

HTMLの仕様書で使われている「インデント」とCSSの仕様書で使われている「インデント」では意味が違うと思う。HTMLの仕様書に書かれている「インデントのためにblockquoteを使うべからず」のインデントは、CSSで言うならブロックボックスに左マージンを取ることではないかな。

転載元リソース情報

URI
http://elastic965.80code.com/blog/2007/02/w3c_blockquote
作成日
2007年02月16日

2008年6月10日

案内

広告

広告

このページについてつぶやく コメント一覧