@@ -971,37 +971,39 @@ <h3 id=line-position><span class=secno>2.7. </span> Determining the
971971 Position and Thickness of Line Decorations</ h3 >
972972
973973 < p > In determining the position of text decoration lines, user agents must
974- first determine , per line, an "ideal" position for every fragment of a
975- single < a href ="#decorating-box "> < i > decorating box </ i > </ a > , then position
976- the decoration as follows:
974+ consider , per line box, the "ideal" positions of all fragments of in-flow
975+ inline descendants of the < a href ="#decorating-box "> < i > decorating
976+ box </ i > </ a > on that line as follows:
977977
978978 < dl >
979979 < dt > overlines (and < i > over</ i > -positioned underlines)
980980
981- < dd > Position the line with respect to the highest < i > over </ i > content
982- edge of the decorated fragments.
981+ < dd > Align the line decoration with respect to the highest
982+ < i > text-over </ i > edge of the considered fragments.
983983
984984 < dt > < a href ="#alphabetic "> < i > alphabetic</ i > </ a > underlines
985985
986- < dd > Position the line to an average of the ideal underlines of the
987- decorated fragments, assigning any fragment with non-initial ‘< code
986+ < dd > Align the line decoration to an average of the ideal underlines of
987+ the considered fragments, assigning any inline with non-initial ‘< code
988988 class =property > vertical-align</ code > ’ the ideal position of its parent,
989- but below the lowest alphabetic baseline considered.
989+ but keeping the line decoration below the lowest alphabetic baseline
990+ considered. (A considered alphabetic baseline can be above the averaged
991+ position if the dominant baseline is non-alphabetic.)
990992
991993 < dt > non-alphabetic underlines (and < a
992994 href ="#under "> < i > under</ i > </ a > -positioned overlines)
993995
994- < dd > Position the line with respect to the lowest < a
995- href =" #under " > < i > under</ i > </ a > content edge of the decorated fragments.
996+ < dd > Position the line decoration with respect to the lowest
997+ < i > text- under</ i > edge of the considered fragments.
996998
997999 < dt > line-throughs
9981000
999- < dd > For each set of decorated fragments with the same ‘< code
1001+ < dd > For each set of considered fragments with the same ‘< code
10001002 class =property > font-size</ code > ’, compute an ideal position averaged
10011003 from their direct contents and font metrics, assigning any fragment with
1002- non-initial ‘< code class =property > vertical-align</ code > ’the ideal
1004+ non-initial ‘< code class =property > vertical-align</ code > ’ the ideal
10031005 position of its parent. Position the portion of the line across each
1004- decorated fragment at the fragment's ideal position. (Essentially, this
1006+ decorated fragment at that fragment's ideal position. (Essentially, this
10051007 performs the same sort of averaging as for alphabetic underlines, but
10061008 recomputes the position when drawing across a descendant with a different
10071009 computed ‘< code class =property > font-size</ code > ’.) < span
@@ -1853,7 +1855,7 @@ <h3 class=no-num id=recent-changes> Changes since the <a
18531855 < li > Clarified and corrected the definitions for < a
18541856 href ="#line-decoration "> line decoration propagation</ a >
18551857
1856- < li > Changed the definitions for averaging < a href ="#line-positions "> line
1858+ < li > Changed the definitions for averaging < a href ="#line-position "> line
18571859 decoration positions</ a > to better accommodate changes in font size.
18581860
18591861 < li > Changed ‘< code class =css > above</ code > ’ and ‘< code
0 commit comments