::first-line and ::first-letter maybe should apply to foreignObject

NEW
Unassigned

Status

()

Core
SVG
4 years ago
2 years ago

People

(Reporter: heycam, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

4 years ago
Created attachment 8479090 [details]
test

It's not clear whether it should, but maybe!
http://www.w3.org/TR/SVG/styling.html suggests not.

CSS2's dynamic pseudo-classes :hover, :active and :focus and pseudo-classes :first-child, :visited, :link and :lang ([CSS2], section 5.11). The remaining CSS2 pseudo-classes, including those having to do with generated content ([CSS2], chapter 12), are not part of the SVG language definition. An SVG element gains focus when it is selected. See Text selection.
(Reporter)

Comment 2

4 years ago
In SVG 2 ::first-line and ::first-letter will be applying to <text>; the corresponding section in the SVG 2 draft will need to be updated.

Given that, does it make sense for them to apply to <foreignObject>, if that has HTML content inside it?
See Also: → bug 1302722
You need to log in before you can comment on or make changes to this bug.