* 仕様書

[REFS[
- [3] [CITE@en-GB-x-hixie[HTML Standard]] ([TIME[2016-04-03 15:54:50 +09:00]] 版) <https://html.spec.whatwg.org/#rendering>
]REFS]

* 意味

[5] [[要素]]が[DFN[[RUBYB[レンダリングされる]@en[being rendered]]]]とは、
当該[[要素]]にCSSレイアウト箱、SVGレイアウト箱、
あるいはその他[[スタイル言語]]の何らかの[[等価]]なものが関連付けられていることをいいます
[SRC[>>3]]。

[6] [[レンダリング]]されているかどうかと、
[[画面]]外にあるかどうかは無関係です。 [SRC[>>3]]
[[画面]]外 ([[viewport]] 外) にあったとしても、
[[スタイル言語]]等で非表示が指示されていなければ、
[[レンダリング]]されるとみなされます。

* 決定

[9] [[レンダリング中]]かどうかの具体的な判定方法は定められていません。

[10] [CODE(CSS)@en[display: none]] なら、非[[レンダリング中]]です。

[11] [CODE(CSS)@en[[[visibility]]: [[hidden]]]] は、おそらく[[レンダリング中]]です。

[12] [CODE(CSS)@en[[[opacity]]: 0]] でも、[[レンダリング中]]です。

[13] [[フォールバック内容]]は、非表示の場合、非[[レンダリング中]]です。

* 処理

[7] [[要素]]が[[レンダリングされている]]かどうかは、
当該[[要素]] (や[[子孫]]) が色々な操作を行うかどうかに影響します。
[[レンダリング]]される状態に変化したり、されない状態に変化したりする時に副作用として[[要素]]の処理が行われることもあります。

[8] 次のものに影響します。

[FIG(list)[
- [CODE(HTMLe)@en[embed]] [[要素]]が[[潜在的活性]]であるかどうか ([[event loop step 1]] 時点)
- [CODE(HTMLe)@en[object]] [[要素]]の処理
- [[素片へのスクロール]]
- [[intersect the viewport]] かどうか
- [[入れ子閲覧文脈]]が[[レンダリング]]されるかどうか
]FIG]

* 関連

[4] [[レンダリング]]も参照。

* 歴史

[1] 
>
To display text, a system puts characters on a visual display
device such as a screen or a printer.  To render text, a system
analyzes the character input to determine how to display the text.
The terms "display" and "render" are sometimes used
interchangeably.  Note, however,  that text might be rendered as
audio and/or tactile output, such as in systems that have been
designed for people with visual disabilities.  <NONE>

;; [CITE@en[RFC 3536 - Terminology Used in Internationalization in the IETF]] ([TIME[2011-01-29 02:14:52 +09:00]] 版) <http://tools.ietf.org/html/rfc3536#page-7>

[2]
>
For simplicity, terms such as [DFN@en[shown]], [DFN@en[displayed]], and [DFN@en[visible]] might sometimes be used when referring to the way a document is rendered to the user. These terms are not meant to imply a visual medium; they must be considered to apply to other media in equivalent ways.

;; [[Web Applications 1.0]]
<http://www.whatwg.org/specs/web-apps/current-work/complete.html#terminology>


[14] [CITE@en[Only apply "being rendered" to elements]]
([[domenic]]著, [TIME[2016-10-05 03:59:01 +09:00]])
<https://github.com/whatwg/html/commit/4bf7b83405a903590196c70de8e6b2ec9f904f3d>