[css-backgrounds] Canvas background with display:none or visibility:hidden from Simon Sapin on 2014-07-09 (www-style@w3.org from July 2014) (original) (raw)

�3.11. "Backgrounds of Special Elements" explains how the background of :root or extends to cover the entire canvas, but does not specify what happens when the corresponding element has visibility: hidden or display: none.

Firefox 30, Chromium 35, IE 11, and Opera 12 all agree to paint the background with visibility: hidden, but not with display: none. I suggest specifying both cases explicitly.

Test cases:

data:text/html, data:text/html,

data:text/html, data:text/html,

data:text/html, data:text/html,

-- Simon Sapin

Received on Wednesday, 9 July 2014 14:40:08 UTC