nsIFrame::BuildDisplayListForStackingContext has weird replaced element check

NEW
Unassigned

Status

()

defect
P3
normal
8 months ago
8 months ago

People

(Reporter: bzbarsky, Unassigned)

Tracking

Trunk
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox64 affected)

Details

Consider this testcase:

  <button style="visibility:hidden; opacity: 0.99">
    <span style="visibility: visible">First</span>
  </button>
  <button style="visibility:hidden; opacity: 1">
    <span style="visibility: visible ">Second</span>
  </button>

"Second" shows up but "First" does not.  This seems pretty odd.

You can get the same effect by having both buttons positioned and one with non-auto z-index (so it's a stacking context).

In general, this check seems bogus to me at first glance.
Looks like it's been there all the way since bug 317375.
Blocks: 317375
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.