-
Notifications
You must be signed in to change notification settings - Fork 713
[css-display] should display:contents on SVG textPath compute to none? #3302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
For your first example, this is identical to For your second, I wasn't aware that Also, |
That seems reasonable to me.
|
OK, so are edits needed to css-display-3 or no? If so, what edits? @tabatkins ? |
I think you can leave the |
Correction: if my interpretation above is accepted, I don't think you need to change the normative text, but we should probably tweak this sentence in the note:
Make “any content inside” → “any valid content (plain text or |
PS, while you're making edits, might want to also drop this sentence in light of w3c/fxtf-drafts#245:
|
Alright, done. Thanks @AmeliaBR !!! |
https://drafts.csswg.org/css-display/#unbox-svg
I found #2118 which resulted in
display: contents
being allowed on<textPath>
.In the note, the rationale for computing display:contents to none for particular SVG elements is explained as preventing display:contents from working on elements that change the "context" for their children. But what should happen with:
Normally, a
<textPath>
that is not a direct child of a<text>
, ignoring<a>
, should not render (I believe -- filed w3c/svgwg#580 to clarify that).Similarly:
Here,
<tspan>
does affect the context for its children, since it causes<textPath>
s to no longer work. But does that mean we should really makedisplay: contents
compute tonone
for<tspan>
too? That seems a bit restrictive./cc @emilio @lilles @AmeliaBR
The text was updated successfully, but these errors were encountered: