diff --git a/source b/source index 752006d1692..c14c89d022b 100644 --- a/source +++ b/source @@ -60056,18 +60056,10 @@ interface CanvasPattern { void setTransform(optional DOMMatrix2DInit transform); }; -[Exposed=(Window,Worker)] -dictionary Baselines { - double alphabetic; - double hanging; - double ideographic; -}; - [Exposed=(Window,Worker)] interface TextMetrics { // x-direction readonly attribute double width; // advance width - readonly attribute FrozenArray<double> advances; readonly attribute double actualBoundingBoxLeft; readonly attribute double actualBoundingBoxRight; @@ -60078,7 +60070,9 @@ interface TextMetrics { readonly attribute double actualBoundingBoxDescent; readonly attribute double emHeightAscent; readonly attribute double emHeightDescent; - Baselines getBaselines(); + readonly attribute double hangingBaseline; + readonly attribute double alphabeticBaseline; + readonly attribute double ideographicBaseline; }; [Constructor(unsigned long sw, unsigned long sh), @@ -63001,7 +62995,6 @@ try {
metrics . width
-
metrics . advances
metrics . actualBoundingBoxLeft
metrics . actualBoundingBoxRight
metrics . fontBoundingBoxAscent
@@ -63010,7 +63003,9 @@ try {
metrics . actualBoundingBoxDescent
metrics . emHeightAscent
metrics . emHeightDescent
-
metrics . getBaselines()
+
metrics . hangingBaseline
+
metrics . alphabeticBaseline
+
metrics . ideographicBaseline
@@ -63211,13 +63206,6 @@ v6DVT (also check for '- -' bits in the part above) -->

The width of that inline box, in CSS pixels. (The text's advance width.)

-
advances attribute
- -

Returns a frozen array containing advances for each character in the measured text. Each - advance is measured as the distance from the beginning of the string (starting at 0) up to the - left side of the character. The same frozen array object must be returned every time this - attribute's getter is invoked.

-
actualBoundingBoxLeft attribute
@@ -63315,31 +63303,30 @@ v6DVT (also check for '- -' bits in the part above) --> 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.)

-
getBaselines() method
+
hangingBaseline attribute
-
-

Returns a Baselines dictionary containing available baselines: +

The distance from the horizontal line indicated by the textBaseline attribute to the hanging baseline of the + line box, in CSS pixels; positive numbers indicating that + the given baseline is below the hanging baseline. (Zero if the given baseline is the hanging + baseline.)

- +
ideographicBaseline attribute
+ +

The distance from the horizontal line indicated by the textBaseline attribute to the ideographic baseline of + the line box, in CSS pixels; positive numbers indicating + that the given baseline is below the ideographic baseline. (Zero if the given baseline is the + ideographic baseline.)

-

In all cases, the baslines values are represented as distance from the horizontal line - indicated by the textBaseline attribute to - their respective baseline of the line box, in CSS pixels, with positive numbers indicating that the given baseline is - below the current textBaseline.

-

Glyphs rendered using fillText() and