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 15553 - [Shadow]: Consider providing ability to not render shadow host
Summary: [Shadow]: Consider providing ability to not render shadow host
Status: RESOLVED WONTFIX
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Dimitri Glazkov
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 16009
  Show dependency treegraph
 
Reported: 2012-01-13 23:30 UTC by Dimitri Glazkov
Modified: 2012-03-09 22:22 UTC (History)
1 user (show)

See Also:


Attachments

Description Dimitri Glazkov 2012-01-13 23:30:06 UTC
As specified today, shadow DOM subtrees only replace contents of a shadow host. Jonas mentioned that we've once talked about enabling to also not render the shadow host itself. A simple use case here would be using shadow DOM subtrees to build more than one row of a table.

One way this could be done is by specifying "display:transparent", which informs the rendering that the DOM element it matches is removed from rendering and substituted with its children.

The path here would be to specify "display:transparent", then specify shadow host and shadow root rendering in a way where by default, shadow root has "display:transparent" applied, and shadow host does not. Then the authors could simply set shadow host to "display:transparent" and eat their cakes.
Comment 1 Dimitri Glazkov 2012-03-09 22:22:53 UTC
This will be done as part of CSS work on display:contents or whatever it's called. No special work needed here.