-
Notifications
You must be signed in to change notification settings - Fork 661
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
[css-inline] CSS properties appply to SVG elements #3411
Comments
I'm working on these edits, per @fantasai's request (trying to clean up issues on CSS Inline for publication). I'm trying to use the categories currently defined in SVG 2: text content elements (for any of text, tspan, and textPath), text content block element (text), and text content child element (tspan and textPath). I'm using the SVG 1.1 spec as reference for how properties were originally spec'd to apply to the SVG elements. But, it seems we have some inconsistencies between what the spec said and what browsers did. Also,
So, I'm spec'ing all three to apply to all text content elements unless there is a strong objection and/or my guess is wrong about WebKit and Chromium matching here. There's no reason not to let baseline-shift and alignment-baseline apply to SVG |
The Now that CSS Logical Sizing is stable, should probably edit the SVG spec to reference it, but as for CSS Inline and the |
The SVG 2 prose is:
Firefox is the only browser that has implemented |
Closes w3c#3411 See issue for discussion/reasoning & differences from SVG 1. Bikeshed error that needs fixing: the “current text position” definition from SVG text is not being exported in a way that Bikeshed is picking up, even with hints about which spec to look for it in. Changes should be copied over to css-inline-4 after review.
See #5149 for edits |
Closes w3c#3411 See issue for discussion/reasoning & differences from SVG 1. Changes should be copied over to css-inline-4 after review.
Closes #3411 See issue for discussion/reasoning & differences from SVG 1. Changes should be copied over to css-inline-4 after review.
@AmeliaBR Yeah, file an issue on the naming if you have a better alternative. :) I don't like it much either. As long as the TTML folks don't have an objection, we can rename. Wrt applying |
Done in #5189 |
Some of the properties in CSS inline apply to certain SVG elements as well. According to SVG2:
alignment-baseline
totspan
andtextPath
elementsbaseline-shift
totspan
andtextPath
elementsdominent-baseline
to text content elementsinline-sizing
totext
elements (at-risk for SVG 2)line-height
to text content elements (SVG2 actually misses to specify it) CC @AmeliaBRThose are the properties currently covered by SVG's text algorithms. Some of the other properties in CSS inline layout should apply to certain SVG elements as well in the future.
The text was updated successfully, but these errors were encountered: