Bug 93752 - Older shadow root rendered in incorrect order when multiple shadow roots containing style tags have been constructed
Summary: Older shadow root rendered in incorrect order when multiple shadow roots cont...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.7
: P2 Normal
Assignee: Hajime Morrita
URL:
Keywords: HasReduction
Depends on:
Blocks: 72352
  Show dependency treegraph
 
Reported: 2012-08-10 16:32 PDT by Steve Orvell
Modified: 2013-03-18 17:19 PDT (History)
6 users (show)

See Also:


Attachments
Reduction producing incorrect rendering + the expected rendering (1.25 KB, text/html)
2012-08-10 16:32 PDT, Steve Orvell
no flags Details
Patch (3.09 KB, patch)
2013-03-17 19:23 PDT, Hajime Morrita
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Orvell 2012-08-10 16:32:28 PDT
Created attachment 157832 [details]
Reduction producing incorrect rendering + the expected rendering

A shadow root is composed in incorrect order in the following construction:

1. make an element and insert it into the document. 
2. create a shadow root that contains a style element.
3. make another element.
4. on this element create a shadow root that contains a style element.
5. on this element create another shadow root starting with a <shadow> tag.
6. insert the element into the document,

The rendering of the 2nd element is incorrect. For this element it's expected that the 1st shadow root's content will be rendered at the start of the 2nd shadow root (due to the location of the <shadow> tag at the beginning of the 2nd shadow root); however, the 1st shadow root is rendered at the end of the 2nd shadow root.
Comment 1 Shinya Kawanaka 2012-10-28 20:37:36 PDT
It seems this is working correctly now?
Comment 2 Hajime Morrita 2012-10-29 04:17:03 PDT
(In reply to comment #1)
> It seems this is working correctly now?
Let's add some tests to cover this.
Comment 3 Hajime Morrita 2013-03-17 19:23:50 PDT
Created attachment 193477 [details]
Patch
Comment 4 WebKit Review Bot 2013-03-18 17:19:47 PDT
Comment on attachment 193477 [details]
Patch

Clearing flags on attachment: 193477

Committed r146156: <http://trac.webkit.org/changeset/146156>
Comment 5 WebKit Review Bot 2013-03-18 17:19:50 PDT
All reviewed patches have been landed.  Closing bug.