Add link with a negative coordinate to testcase.

This commit is contained in:
Jonathan Kew 2021-07-20 17:45:21 +01:00
parent b7d67433b7
commit a8238adc5a

View file

@ -385,6 +385,10 @@ create_document (cairo_surface_t *surface, cairo_t *cr)
cairo_tag_end (cr, CAIRO_TAG_LINK);
cairo_restore (cr);
/* An annotation whose rect has a negative coordinate. */
cairo_tag_begin (cr, CAIRO_TAG_LINK, "uri='http://127.0.0.1/' rect=[10.0 -10.0 100.0 100.0]");
cairo_tag_end (cr, CAIRO_TAG_LINK);
cairo_show_page (cr);
page_num = 0;