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 18435 - [Shadow]: Needs consistent way to style the inner element of replaced elements.
Summary: [Shadow]: Needs consistent way to style the inner element of replaced elements.
Status: RESOLVED LATER
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Hayato Ito
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
: 19919 (view as bug list)
Depends on:
Blocks: 23062
  Show dependency treegraph
 
Reported: 2012-07-30 05:29 UTC by Shinya Kawanaka
Modified: 2014-05-29 08:29 UTC (History)
3 users (show)

See Also:


Attachments

Description Shinya Kawanaka 2012-07-30 05:29:47 UTC
When we add a Shadow DOM to replaced elements (e.g. img, input, iframe, etc), we would like to style the inner element of them. However, there is no standardized way to style them.

For example:
  We can easily style an img element if it does not have an AuthorShadowDOM.
    img {
        width: 100px;
        height: 100px;
    }

  Then we add an AuthorShadowDOM for an img element, and let the innerHTML of the AuthorShadowRoot be "<div style='margin: 10px'><shadow></shadow></style>". Since the width of the img element is 100px, and the inner element has 10px margin. It's OK. But how do we set the width of an image itself? 

In WebKit implementation, we have pseudo id of such element. So we can style it anyway.
However, when it comes to the spec, we should have some standardized way to style them, I believe.
Comment 1 Dimitri Glazkov 2012-10-23 23:08:00 UTC
This is blocked on the CSS WG work.
Comment 2 Dimitri Glazkov 2012-11-09 17:03:46 UTC
*** Bug 19919 has been marked as a duplicate of this bug. ***
Comment 3 Hayato Ito 2014-05-29 08:29:57 UTC
Let me mark this LATER.