This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 26282 - [WebDriver Spec]: ato to research root element behavior HTML / XML
Summary: [WebDriver Spec]: ato to research root element behavior HTML / XML
Status: RESOLVED FIXED
Alias: None
Product: Browser Test/Tools WG
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Andreas Tolfsen
QA Contact: Browser Testing and Tools WG
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 20860
  Show dependency treegraph
 
Reported: 2014-07-08 13:22 UTC by Luke Inman-Semerau
Modified: 2014-07-09 15:18 UTC (History)
1 user (show)

See Also:


Attachments

Description Luke Inman-Semerau 2014-07-08 13:22:38 UTC
action item to be completed from Februrary F2F
Comment 2 Andreas Tolfsen 2014-07-09 15:18:52 UTC
According to enlightened sources I've talked to, setting background-color on either the html or the first body element triggers special casing.  If set it applies to the whole canvas painting area.

This means for example that if your (first) body element has a background-color set and you resize the viewport, the coloured area will always cover the whole viewport.

What this means effectively means for WebDriver is that the canvas is always visible, and because html (alternatively the first body) element's styling properties are propagated on to it, it is consequently always visible.

This applies to both HTML and XHTML documents (served as application type xml).

The relevant spec prose is here:

    http://dev.w3.org/csswg/css-backgrounds/#special-backgrounds

There's a bug in the current draft which has been logged here about display: none and visibility: hidden:

    http://lists.w3.org/Archives/Public/www-style/2014Jul/0137.html