Open Bug 1393554 Opened 7 years ago Updated 2 years ago

backface-visibility doesn't apply to the text in this testcase, only to the border

Categories

(Core :: Web Painting, enhancement, P3)

enhancement

Tracking

()

Tracking Status
firefox57 --- affected

People

(Reporter: mstange, Unassigned)

References

Details

Attachments

(3 files, 1 obsolete file)

Attached file testcase
In this testcase, Chrome and Safari only show a red border, but we also show the word "Text" (mirrored).

The text "Text" is inside an element with backface-visibility:hidden whose parent element is a preserve-3d element which is rotated by 180 degrees around the Y axis.

We correctly hide the blue border of the backface-visibilite:hidden element, but not its text.
So it looks like the reason for this is that the text belongs to an anonymous nsTextNode, not the block with the backface-visibility:hidden style.

backface-visibility doesn't create a stacking context, nor is it inherited, so it seems somewhat correct for us to determine that the text shouldn't be affected by that style.

Clearly blink/WebKit are doing something different here, so maybe we should just try match that and get the spec to fit.
Attached file backface-hidden.html
Here's another test case where we have different behaviour from Chrome and Safari
And while we're at it here's a manifestation of the fundamental compositing bug using backface-hidden.
Here's a simplified version of the last one
Assignee: nobody → jmuizelaar
Attachment #8901336 - Attachment is obsolete: true
Assignee: jmuizelaar → nobody
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: