Closed Bug 1907971 Opened 1 year ago Closed 1 year ago

Inconsistent CSS selector matching with svg:use

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

RESOLVED INVALID

People

(Reporter: jrmuizel, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: webcompat:platform-bug)

Attachments

(1 file)

Attached file testcase.html

This is based off the reduced test case on bug 1896589.

Chrome and Safari paint both "61"s red and we probably should too.

Flags: needinfo?(emilio)
Blocks: 1896589

No, we all agreed with the w3c not to do this. The SVG specification is clear on this: https://www.w3.org/TR/SVG2/struct.html#UseStyleInheritance

https://issues.chromium.org/issues/40550039 is the Chrome bug and https://bugs.webkit.org/show_bug.cgi?id=249080 is the webkit bug.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INVALID

The spec change was made in 2017 and the other browser don't seem eager to adopt the new behaviour. Should we consider changing the spec back and adopting Chrome and Safari's behaviour?

Flags: needinfo?(longsonr)

I've added comments to the webkit and Chrome bugs maybe that will get some reaction.

Flags: needinfo?(longsonr)

Do we have a list of the other bugs that we've marked as invalid?

Flags: needinfo?(longsonr)

Yeah this is not inconsistent at all. In fact that's exactly how shadow dom works outside of svg.

Flags: needinfo?(emilio)

(In reply to Jeff Muizelaar [:jrmuizel] from comment #4)

Do we have a list of the other bugs that we've marked as invalid?

One of these at least was bug 1415186 (which was filed for a codepen demo; it's not clear if any live sites were affected there).

Not sure if there are others.

See Also: → 1415186

I think this is most of them:

bug 1805048 bug 1760954 bug 1415186 bug 1409720 bug 1424466 bug 1421336 bug 1421336 bug 1395221 bug 1406436 bug 1377435

Note that these are over at least 7 years.

Flags: needinfo?(longsonr)
No longer blocks: 1896589
See Also: → 1933437
See Also: → 1934811
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: