-
Notifications
You must be signed in to change notification settings - Fork 2k
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
alignment-baseline does not work on <text> in Firefox #23921
Comments
Of the two non-deprecated attributes <svg width="300" height="120" viewBox="0 0 300 120"
xmlns="http://www.w3.org/2000/svg">
<!-- Materialization of anchors -->
<path d="M30,65 L300,65" stroke="grey" />
<!-- Anchors in action -->
<text x="60" y="65">A <tspan alignment-baseline="hanging">hanging</tspan></text>
<circle cx="60" cy="65" r="3" fill="red" />
<style><![CDATA[
text{
font: bold 36px Verdana, Helvetica, Arial, sans-serif;
}
]]></style>
</svg> |
Related: mdn/content#22260 The CSS spec for |
This data was fixed in #23545! |
MDN URL: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/alignment-baseline
What information was incorrect, unhelpful, or incomplete?
The example has the alignmnet-baseline attribute on a text element. This is not supported (see the comment under the image: 'For object alignment in other elements (such as
<text>
), see dominant-baseline.')Specific section or headline?
Example section
What did you expect to see?
An example where the attributes are applied to supported elements.
Did you test this? If so, how?
https://codepen.io/tomfroehle/pen/yLoXKZz
Example in Chrome 95.0.4638.54:
Example in FireFox 93.0:
MDN Content page report details
en-us/web/svg/attribute/alignment-baseline
The text was updated successfully, but these errors were encountered: