Closed Bug 1804406 Opened 2 years ago Closed 2 years ago

Prevent internal SVG elements from becoming query containers for size features

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

RESOLVED FIXED
109 Branch
Tracking Status
firefox109 --- fixed

People

(Reporter: Oriol, Assigned: Oriol)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

I'm not sure the spec is clear about this, but internal SVG elements don't generate CSS boxes, and both Blink and WebKit prevent them from becoming query containers for size features:

<!DOCTYPE html>
<style>
g { container-type: size }
@container (width >= 0) {
  rect { fill: red }
}
</style>
<svg width="100" height="100">
  <g><rect width="100" height="100"></rect></g>
</svg>
Pushed by oriol-bugzilla@hotmail.com: https://hg.mozilla.org/integration/autoland/rev/e39ace891b11 Prevent internal SVG elements from becoming query containers for size features. r=emilio
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch
Regressions: 1804540
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: