[html] Element.getClientRects() are not within getBoundingClientRect() #16575
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
area-web
Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop.
browser-safari
library-html
P2
A bug or feature request we're likely to work on
status-blocked
Blocked from making progress by another (referenced) issue
type-code-health
Internal changes to our tools and workflows to make them cleaner, simpler, or more maintainable
web-libraries
Issues impacting dart:html, etc., libraries
This issue was originally filed by Ilya.V...@gmail.com
Test fail
co19/src/LibTest/html/Element/getClientRects_A01_t02
The test containsRectangle should return true for all rects:
main() {
var x = new Element.html('<span>foo<br/>bar</span>');
document.body.append(x);
var rects = x.getClientRects();
for (var i=0; i<rects.length; ++i) {
Expect.isTrue(x.getBoundingClientRect().containsRectangle(rects[i]),
'${i+1} of ${rects.length}');
}
}
The text was updated successfully, but these errors were encountered: