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)
Core
CSS Parsing and Computation
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
.
Assignee | ||
Comment 1•3 years ago
|
||
Depends on D164805
Assignee | ||
Comment 2•3 years ago
|
||
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
Comment 4•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/490e18451730
https://hg.mozilla.org/mozilla-central/rev/a29d18f7c0d2
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
status-firefox110:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•