File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 149
149
assert_greater_than_equal ( thirdLine . top - rubyLine . top ,
150
150
rubyLine . top - firstLine . top + RUBY_EMPHASIS_SIZE ) ;
151
151
} , 'Don\'t Consume half-leading of the next line with text-emphasis' ) ;
152
+
153
+ // crbug.com/336592423
154
+ test ( ( ) => {
155
+ const { container, ruby, rt} = renderRuby (
156
+ '<div style="line-height:1;">' +
157
+ '<span style="display:inline-block; width:1em; height:4em; vertical-align:top"></span><br>' +
158
+ '<ruby>base<rt>annotation</rt></ruby></div>' ) ;
159
+ const firstLine = container . querySelector ( 'span' ) . getBoundingClientRect ( ) ;
160
+ const rtBox = rt . getBoundingClientRect ( ) ;
161
+ assert_greater_than_equal ( rtBox . top , firstLine . bottom ) ;
162
+ } , 'An atomic-inline should not overlap with an annotation in the next line' ) ;
152
163
</ script >
153
164
</ body >
You can’t perform that action at this time.
0 commit comments