diff --git a/images/baselines.png b/images/baselines.png index b51ed6a3a57..6d7f1304db8 100644 Binary files a/images/baselines.png and b/images/baselines.png differ diff --git a/source b/source index 9bc5da8545d..b8a0cef9a14 100644 --- a/source +++ b/source @@ -3875,6 +3875,8 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
The keywords map to these alignment points as follows:
top
- hanging
middle
- alphabetic
bottom
- The direction
attribute's allowed keywords are
@@ -68985,19 +68987,20 @@ try {
emHeightAscent
attributeThe distance from the horizontal line indicated by the textBaseline
attribute to the highest top of the em
- squares in the inline box, in CSS pixels; positive numbers
- indicating that the given baseline is below the top of that em square (so this value will usually
- be positive). Zero if the given baseline is the top of that em square; half the font size if the
- given baseline is the middle of that em square.
emHeightDescent
attributeThe distance from the horizontal line indicated by the textBaseline
attribute to the lowest bottom of the em
- squares in the inline box, in CSS pixels; positive numbers
- indicating that the given baseline is above the bottom of that em square. (Zero if the given baseline
- is the bottom of that em square.)
hangingBaseline
attributeGlyphs rendered using fillText()
and
strokeText()
can spill out of the box given by the
- font size (the em square size) and the width returned by measureText()
(the text width). Authors are encouraged
- to use the bounding box values described above if this is an issue.
measureText()
+ (the text width). Authors are encouraged to use the bounding box values described above if this is
+ an issue.
A future version of the 2D context API might provide a way to render fragments of documents, rendered using CSS, straight to the canvas. This would be provided in preference to a