- From: Cameron McCormack via GitHub <sysbot+gh@w3.org>
- Date: Thu, 08 Nov 2018 05:04:30 +0000
- To: public-css-archive@w3.org
heycam has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-display] should display:contents on SVG textPath compute to none? == 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: ```svg <text> <textPath style="display: contents"> <textPath>should I render?</textPath> </textPath> </text> ``` 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: ```svg <text> <tspan style="display: contents"> <textPath>should I render?</textPath> </tspan> </text> ``` 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 make `display: contents` compute to `none` for `<tspan>` too? That seems a bit restrictive. /cc @emilio @lilles @AmeliaBR Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3302 using your GitHub account
Received on Thursday, 8 November 2018 05:04:32 UTC