Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple layers per stacking context #6142

Closed
pcwalton opened this issue May 19, 2015 · 1 comment
Closed

Support multiple layers per stacking context #6142

pcwalton opened this issue May 19, 2015 · 1 comment
Assignees

Comments

@pcwalton
Copy link
Contributor

@pcwalton pcwalton commented May 19, 2015

We should change stacking contexts and layers to be 1:N instead of 1:1/1:0 as they are today in order to match the CSS spec. Possibly the best way to do this would be to add layer IDs to every display item; after flattening and shuffling the items into the proper order, we'd instantiate the layers, creating front and back layers as necessary. For example, if display items have layer IDs 1, 1, 1, 1, 2, 2, 1, 1, 1 we'd create three layers for layer IDs as follows: 1, 2, 1.

This would in effect be a very simple version of Gecko's FrameLayerBuilder.

cc @rocallahan

emilio added a commit to emilio/servo that referenced this issue May 19, 2015
Note that this keeps using readback right now, `NativeSurface` painting
will be implemented soon.

Also see servo#6142
emilio added a commit to emilio/servo that referenced this issue May 20, 2015
Note that this keeps using readback right now, `NativeSurface` painting
will be implemented soon.

Also see servo#6142
emilio added a commit to emilio/servo that referenced this issue May 20, 2015
Note that this keeps using readback right now, `NativeSurface` painting
will be implemented soon.

Also see servo#6142
@mrobinson mrobinson self-assigned this Mar 23, 2017
@mrobinson
Copy link
Member

@mrobinson mrobinson commented Mar 23, 2017

This should be supported now with 9d72e89 and #16073!

@mrobinson mrobinson closed this Mar 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.