# HG changeset patch # User Brad Werth # Date 1517436134 18000 # Node ID 8554668651cc3364e840b14e784d6e317cac264c # Parent a484fdc6bffac3a5592a95e1e05e133675a5aabe Bug 1418930 Part 6: Add a test of shape-outside with and without a CORS violation. r=emilio MozReview-Commit-ID: KI4itQ1ORYJ diff --git a/layout/style/test/file_shape_outside_CORS.html b/layout/style/test/file_shape_outside_CORS.html new file mode 100644 --- /dev/null +++ b/layout/style/test/file_shape_outside_CORS.html @@ -0,0 +1,60 @@ + + + + + + + + + +
+
allow (image is blank, so text is flush left)
+
+
+
refuse (image unread, so text is moved to box edge)
+
+ + diff --git a/layout/style/test/mochitest.ini b/layout/style/test/mochitest.ini --- a/layout/style/test/mochitest.ini +++ b/layout/style/test/mochitest.ini @@ -282,16 +282,20 @@ fail-if = stylo # bug 1387935 [test_root_node_display.html] [test_rule_insertion.html] [test_rule_serialization.html] [test_rules_out_of_sheets.html] [test_selectors.html] skip-if = toolkit == 'android' #bug 775227 [test_selectors_on_anonymous_content.html] [test_setPropertyWithNull.html] +[test_shape_outside_CORS.html] +support-files = + file_shape_outside_CORS.html + support/1x1-transparent.png [test_shorthand_property_getters.html] [test_specified_value_serialization.html] support-files = file_specified_value_serialization_individual_transforms.html [test_style_attr_listener.html] [test_style_attribute_quirks.html] [test_style_attribute_standards.html] [test_style_struct_copy_constructors.html] [test_stylesheet_additions.html] diff --git a/layout/style/test/support/1x1-transparent.png b/layout/style/test/support/1x1-transparent.png new file mode 100644 index 0000000000000000000000000000000000000000..56cd9eb9309219771ca16fd3fbbd300365ccc04f GIT binary patch literal 89 zc%17D@N?(olHy`uVBq!ia0vp^j3CUx1|;Q0k8}bl&H|6fVg?3oVGw3ym^DWND9G*U h;uyklJvo7aiGhKYf$@ujJfgQu&X%Q~loCICU@4)_27 diff --git a/layout/style/test/test_shape_outside_CORS.html b/layout/style/test/test_shape_outside_CORS.html new file mode 100644 --- /dev/null +++ b/layout/style/test/test_shape_outside_CORS.html @@ -0,0 +1,48 @@ + + + + +CSS Test: shape-outside with a CORS violation + + + + + + + + + + +