Closed Bug 976364 Opened 10 years ago Closed 10 years ago

'perspective' should trigger creation of a stacking context

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla30

People

(Reporter: dbaron, Assigned: dbaron)

Details

(Keywords: css3)

Attachments

(1 file)

I'm separating this out from bug 968555.

The 'perspective' CSS property should trigger creation of a stacking context.
While it seems a little silly since 'perspective' doesn't require
atomicity (rather, it adds an additional transformation to any 3-D
descendants, which already require atomicity), the spec requires it, and
it matches WebKit.
Attachment #8381018 - Flags: review?(matt.woodrow)
Comment on attachment 8381018 [details] [diff] [review]
Make 'perspective' create a stacking context.

Review of attachment 8381018 [details] [diff] [review]:
-----------------------------------------------------------------

::: layout/generic/nsFrame.cpp
@@ +2186,2 @@
>      || disp->mMixBlendMode != NS_STYLE_BLEND_NORMAL
>      || nsSVGIntegrationUtils::UsingEffectsForFrame(child);

Might be worth splitting this large set of conditions out into a helper.
Attachment #8381018 - Flags: review?(matt.woodrow) → review+
I'm inclined to leave it, since there's also an advantage to having the code right there rather than having to go look at another function.
https://hg.mozilla.org/mozilla-central/rev/221426a61d0f
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: