Closed Bug 1805898 Opened 3 years ago Closed 3 years ago

Elements may fail to be query containers for the pseudo-element they originate

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

RESOLVED FIXED
110 Branch
Tracking Status
firefox110 --- fixed

People

(Reporter: Oriol, Assigned: Oriol)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

<!DOCTYPE html>
<style>
@container (width: 100px) {
  p::before { content: "BAD" }
}
@container (width: 50px) {
  p::before { content: "GOOD" }
}
</style>
<div style="width: 100px; container-type: size">
  <p style="width: 50px; container-type: size"></p>
</div>

p::before skips its originating element p and thinks that its query container is the div.

Depends on D164807

Pushed by oriol-bugzilla@hotmail.com: https://hg.mozilla.org/integration/autoland/rev/490e18451730 Fix elements not being query containers for the pseudo-element they originate. r=emilio https://hg.mozilla.org/integration/autoland/rev/a29d18f7c0d2 Properly handle ::backdrop. r=emilio
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch
See Also: → 1806273
Blocks: 1767964
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: