From c0172f049e82662779ec3332ee0663f0b9e9d4d2 Mon Sep 17 00:00:00 2001 From: Daniel Holbert Date: Fri, 14 Nov 2014 16:45:24 -0800 Subject: [PATCH] Bug 624647 reftests, part 1: Test 'object-fit' & 'object-position' properties with a PNG image in various container elements. r=seth --- .../object-fit-contain-png-001-ref.html | 77 +++++++++++++ .../images3/object-fit-contain-png-001e.html | 77 +++++++++++++ .../images3/object-fit-contain-png-001i.html | 77 +++++++++++++ .../images3/object-fit-contain-png-001o.html | 77 +++++++++++++ .../images3/object-fit-contain-png-001p.html | 77 +++++++++++++ .../object-fit-contain-png-002-ref.html | 77 +++++++++++++ .../images3/object-fit-contain-png-002e.html | 77 +++++++++++++ .../images3/object-fit-contain-png-002i.html | 77 +++++++++++++ .../images3/object-fit-contain-png-002o.html | 77 +++++++++++++ .../images3/object-fit-contain-png-002p.html | 77 +++++++++++++ .../images3/object-fit-cover-png-001-ref.html | 77 +++++++++++++ .../images3/object-fit-cover-png-001e.html | 77 +++++++++++++ .../images3/object-fit-cover-png-001i.html | 77 +++++++++++++ .../images3/object-fit-cover-png-001o.html | 77 +++++++++++++ .../images3/object-fit-cover-png-001p.html | 77 +++++++++++++ .../images3/object-fit-cover-png-002-ref.html | 77 +++++++++++++ .../images3/object-fit-cover-png-002e.html | 77 +++++++++++++ .../images3/object-fit-cover-png-002i.html | 77 +++++++++++++ .../images3/object-fit-cover-png-002o.html | 77 +++++++++++++ .../images3/object-fit-cover-png-002p.html | 77 +++++++++++++ .../images3/object-fit-fill-png-001-ref.html | 77 +++++++++++++ .../images3/object-fit-fill-png-001e.html | 77 +++++++++++++ .../images3/object-fit-fill-png-001i.html | 77 +++++++++++++ .../images3/object-fit-fill-png-001o.html | 77 +++++++++++++ .../images3/object-fit-fill-png-001p.html | 77 +++++++++++++ .../images3/object-fit-fill-png-002-ref.html | 77 +++++++++++++ .../images3/object-fit-fill-png-002e.html | 77 +++++++++++++ .../images3/object-fit-fill-png-002i.html | 77 +++++++++++++ .../images3/object-fit-fill-png-002o.html | 77 +++++++++++++ .../images3/object-fit-fill-png-002p.html | 77 +++++++++++++ .../images3/object-fit-none-png-001-ref.html | 77 +++++++++++++ .../images3/object-fit-none-png-001e.html | 77 +++++++++++++ .../images3/object-fit-none-png-001i.html | 77 +++++++++++++ .../images3/object-fit-none-png-001o.html | 77 +++++++++++++ .../images3/object-fit-none-png-001p.html | 77 +++++++++++++ .../images3/object-fit-none-png-002-ref.html | 77 +++++++++++++ .../images3/object-fit-none-png-002e.html | 77 +++++++++++++ .../images3/object-fit-none-png-002i.html | 77 +++++++++++++ .../images3/object-fit-none-png-002o.html | 77 +++++++++++++ .../images3/object-fit-none-png-002p.html | 77 +++++++++++++ .../object-fit-scale-down-png-001-ref.html | 78 +++++++++++++ .../object-fit-scale-down-png-001e.html | 77 +++++++++++++ .../object-fit-scale-down-png-001i.html | 77 +++++++++++++ .../object-fit-scale-down-png-001o.html | 77 +++++++++++++ .../object-fit-scale-down-png-001p.html | 77 +++++++++++++ .../object-fit-scale-down-png-002-ref.html | 78 +++++++++++++ .../object-fit-scale-down-png-002e.html | 77 +++++++++++++ .../object-fit-scale-down-png-002i.html | 77 +++++++++++++ .../object-fit-scale-down-png-002o.html | 77 +++++++++++++ .../object-fit-scale-down-png-002p.html | 77 +++++++++++++ .../w3c-css/submitted/images3/reftest.list | 42 +++++++ .../submitted/images3/support/colors-16x8.png | Bin 0 -> 93 bytes .../submitted/images3/support/colors-8x16.png | Bin 0 -> 92 bytes .../support/generate-object-fit-png-tests.sh | 109 ++++++++++++++++++ .../support/template-object-fit-ref.html | 78 +++++++++++++ .../support/template-object-fit-test.html | 77 +++++++++++++ .../reftests/w3c-css/submitted/reftest.list | 2 +- 57 files changed, 4159 insertions(+), 1 deletion(-) create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-001-ref.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-001e.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-001i.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-001o.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-001p.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-002-ref.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-002e.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-002i.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-002o.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-002p.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-001-ref.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-001e.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-001i.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-001o.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-001p.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-002-ref.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-002e.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-002i.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-002o.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-002p.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-001-ref.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-001e.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-001i.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-001o.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-001p.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-002-ref.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-002e.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-002i.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-002o.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-002p.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-none-png-001-ref.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-none-png-001e.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-none-png-001i.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-none-png-001o.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-none-png-001p.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-none-png-002-ref.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-none-png-002e.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-none-png-002i.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-none-png-002o.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-none-png-002p.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-001-ref.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-001e.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-001i.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-001o.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-001p.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-002-ref.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-002e.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-002i.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-002o.html create mode 100644 layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-002p.html create mode 100644 layout/reftests/w3c-css/submitted/images3/reftest.list create mode 100644 layout/reftests/w3c-css/submitted/images3/support/colors-16x8.png create mode 100644 layout/reftests/w3c-css/submitted/images3/support/colors-8x16.png create mode 100644 layout/reftests/w3c-css/submitted/images3/support/generate-object-fit-png-tests.sh create mode 100644 layout/reftests/w3c-css/submitted/images3/support/template-object-fit-ref.html create mode 100644 layout/reftests/w3c-css/submitted/images3/support/template-object-fit-test.html diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-001-ref.html b/layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-001-ref.html new file mode 100644 index 000000000000..8b5cce62b09c --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-001-ref.html @@ -0,0 +1,77 @@ + + + + + + CSS Reftest Reference + + + + + +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-001e.html b/layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-001e.html new file mode 100644 index 000000000000..572d30eeefc9 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-001e.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: contain' on embed element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-001i.html b/layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-001i.html new file mode 100644 index 000000000000..39bbf249d548 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-001i.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: contain' on img element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-001o.html b/layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-001o.html new file mode 100644 index 000000000000..b126b4816432 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-001o.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: contain' on object element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-001p.html b/layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-001p.html new file mode 100644 index 000000000000..66c165e99596 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-001p.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: contain' on video element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-002-ref.html b/layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-002-ref.html new file mode 100644 index 000000000000..337775d9692f --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-002-ref.html @@ -0,0 +1,77 @@ + + + + + + CSS Reftest Reference + + + + + +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-002e.html b/layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-002e.html new file mode 100644 index 000000000000..e42f05f03cae --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-002e.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: contain' on embed element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-002i.html b/layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-002i.html new file mode 100644 index 000000000000..b03bafe860d0 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-002i.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: contain' on img element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-002o.html b/layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-002o.html new file mode 100644 index 000000000000..f4aa820e390a --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-002o.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: contain' on object element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-002p.html b/layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-002p.html new file mode 100644 index 000000000000..f18e4818a19f --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-002p.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: contain' on video element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-001-ref.html b/layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-001-ref.html new file mode 100644 index 000000000000..9245b71a509a --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-001-ref.html @@ -0,0 +1,77 @@ + + + + + + CSS Reftest Reference + + + + + +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-001e.html b/layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-001e.html new file mode 100644 index 000000000000..e39b710bcf2d --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-001e.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: cover' on embed element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-001i.html b/layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-001i.html new file mode 100644 index 000000000000..7d88c1a6d94e --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-001i.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: cover' on img element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-001o.html b/layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-001o.html new file mode 100644 index 000000000000..e0e657099aae --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-001o.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: cover' on object element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-001p.html b/layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-001p.html new file mode 100644 index 000000000000..49eb6dc327be --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-001p.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: cover' on video element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-002-ref.html b/layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-002-ref.html new file mode 100644 index 000000000000..ce31bc73dcaa --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-002-ref.html @@ -0,0 +1,77 @@ + + + + + + CSS Reftest Reference + + + + + +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-002e.html b/layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-002e.html new file mode 100644 index 000000000000..dff433a9bdc4 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-002e.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: cover' on embed element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-002i.html b/layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-002i.html new file mode 100644 index 000000000000..0c595c3e46b1 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-002i.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: cover' on img element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-002o.html b/layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-002o.html new file mode 100644 index 000000000000..1148a6ee2f9d --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-002o.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: cover' on object element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-002p.html b/layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-002p.html new file mode 100644 index 000000000000..937be0c17548 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-002p.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: cover' on video element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-001-ref.html b/layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-001-ref.html new file mode 100644 index 000000000000..a7ed886b01b1 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-001-ref.html @@ -0,0 +1,77 @@ + + + + + + CSS Reftest Reference + + + + + +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-001e.html b/layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-001e.html new file mode 100644 index 000000000000..b36e1491f012 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-001e.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: fill' on embed element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-001i.html b/layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-001i.html new file mode 100644 index 000000000000..1bf280d41d62 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-001i.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: fill' on img element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-001o.html b/layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-001o.html new file mode 100644 index 000000000000..55f75245ac4a --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-001o.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: fill' on object element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-001p.html b/layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-001p.html new file mode 100644 index 000000000000..0299aefc141e --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-001p.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: fill' on video element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-002-ref.html b/layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-002-ref.html new file mode 100644 index 000000000000..a6e9f59d6c58 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-002-ref.html @@ -0,0 +1,77 @@ + + + + + + CSS Reftest Reference + + + + + +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-002e.html b/layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-002e.html new file mode 100644 index 000000000000..3f5dc254d7ee --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-002e.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: fill' on embed element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-002i.html b/layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-002i.html new file mode 100644 index 000000000000..708a77207090 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-002i.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: fill' on img element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-002o.html b/layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-002o.html new file mode 100644 index 000000000000..9b8433ff4bd0 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-002o.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: fill' on object element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-002p.html b/layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-002p.html new file mode 100644 index 000000000000..fd51e92747e2 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-002p.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: fill' on video element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-none-png-001-ref.html b/layout/reftests/w3c-css/submitted/images3/object-fit-none-png-001-ref.html new file mode 100644 index 000000000000..3b151feba0f4 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-none-png-001-ref.html @@ -0,0 +1,77 @@ + + + + + + CSS Reftest Reference + + + + + +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-none-png-001e.html b/layout/reftests/w3c-css/submitted/images3/object-fit-none-png-001e.html new file mode 100644 index 000000000000..22417890c5f1 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-none-png-001e.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: none' on embed element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-none-png-001i.html b/layout/reftests/w3c-css/submitted/images3/object-fit-none-png-001i.html new file mode 100644 index 000000000000..200ac3dafba6 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-none-png-001i.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: none' on img element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-none-png-001o.html b/layout/reftests/w3c-css/submitted/images3/object-fit-none-png-001o.html new file mode 100644 index 000000000000..4b2659a2db1f --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-none-png-001o.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: none' on object element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-none-png-001p.html b/layout/reftests/w3c-css/submitted/images3/object-fit-none-png-001p.html new file mode 100644 index 000000000000..3e18c7960d36 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-none-png-001p.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: none' on video element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-none-png-002-ref.html b/layout/reftests/w3c-css/submitted/images3/object-fit-none-png-002-ref.html new file mode 100644 index 000000000000..f3a914f77309 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-none-png-002-ref.html @@ -0,0 +1,77 @@ + + + + + + CSS Reftest Reference + + + + + +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-none-png-002e.html b/layout/reftests/w3c-css/submitted/images3/object-fit-none-png-002e.html new file mode 100644 index 000000000000..9d9146523867 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-none-png-002e.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: none' on embed element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-none-png-002i.html b/layout/reftests/w3c-css/submitted/images3/object-fit-none-png-002i.html new file mode 100644 index 000000000000..57c66a35deb4 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-none-png-002i.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: none' on img element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-none-png-002o.html b/layout/reftests/w3c-css/submitted/images3/object-fit-none-png-002o.html new file mode 100644 index 000000000000..a34f947cdc84 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-none-png-002o.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: none' on object element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-none-png-002p.html b/layout/reftests/w3c-css/submitted/images3/object-fit-none-png-002p.html new file mode 100644 index 000000000000..7b1ee9a7d812 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-none-png-002p.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: none' on video element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-001-ref.html b/layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-001-ref.html new file mode 100644 index 000000000000..a0df585552c3 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-001-ref.html @@ -0,0 +1,78 @@ + + + + + + CSS Reftest Reference + + + + + +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-001e.html b/layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-001e.html new file mode 100644 index 000000000000..9950736c0ad0 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-001e.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: scale-down' on embed element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-001i.html b/layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-001i.html new file mode 100644 index 000000000000..f7bad0219076 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-001i.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: scale-down' on img element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-001o.html b/layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-001o.html new file mode 100644 index 000000000000..88fe859d734a --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-001o.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: scale-down' on object element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-001p.html b/layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-001p.html new file mode 100644 index 000000000000..55b24df754fe --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-001p.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: scale-down' on video element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-002-ref.html b/layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-002-ref.html new file mode 100644 index 000000000000..5162493d28e3 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-002-ref.html @@ -0,0 +1,78 @@ + + + + + + CSS Reftest Reference + + + + + +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-002e.html b/layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-002e.html new file mode 100644 index 000000000000..4cd28c91a911 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-002e.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: scale-down' on embed element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-002i.html b/layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-002i.html new file mode 100644 index 000000000000..db5f385222e8 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-002i.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: scale-down' on img element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-002o.html b/layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-002o.html new file mode 100644 index 000000000000..43700fd7a9d1 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-002o.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: scale-down' on object element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-002p.html b/layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-002p.html new file mode 100644 index 000000000000..7089444b30b8 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-002p.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: 'object-fit: scale-down' on video element, with a PNG image and with various 'object-position' values + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/reftest.list b/layout/reftests/w3c-css/submitted/images3/reftest.list new file mode 100644 index 000000000000..757ac7957b79 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/reftest.list @@ -0,0 +1,42 @@ +default-preferences test-pref(layout.css.object-fit-and-position.enabled,true) +# Tests for 'object-fit' / 'object-position' with a PNG image +== object-fit-fill-png-001e.html object-fit-fill-png-001-ref.html +== object-fit-fill-png-001i.html object-fit-fill-png-001-ref.html +== object-fit-fill-png-001o.html object-fit-fill-png-001-ref.html +== object-fit-fill-png-001p.html object-fit-fill-png-001-ref.html +== object-fit-fill-png-002e.html object-fit-fill-png-002-ref.html +== object-fit-fill-png-002i.html object-fit-fill-png-002-ref.html +== object-fit-fill-png-002o.html object-fit-fill-png-002-ref.html +== object-fit-fill-png-002p.html object-fit-fill-png-002-ref.html +== object-fit-contain-png-001e.html object-fit-contain-png-001-ref.html +== object-fit-contain-png-001i.html object-fit-contain-png-001-ref.html +== object-fit-contain-png-001o.html object-fit-contain-png-001-ref.html +== object-fit-contain-png-001p.html object-fit-contain-png-001-ref.html +== object-fit-contain-png-002e.html object-fit-contain-png-002-ref.html +== object-fit-contain-png-002i.html object-fit-contain-png-002-ref.html +== object-fit-contain-png-002o.html object-fit-contain-png-002-ref.html +== object-fit-contain-png-002p.html object-fit-contain-png-002-ref.html +== object-fit-cover-png-001e.html object-fit-cover-png-001-ref.html +== object-fit-cover-png-001i.html object-fit-cover-png-001-ref.html +== object-fit-cover-png-001o.html object-fit-cover-png-001-ref.html +== object-fit-cover-png-001p.html object-fit-cover-png-001-ref.html +== object-fit-cover-png-002e.html object-fit-cover-png-002-ref.html +== object-fit-cover-png-002i.html object-fit-cover-png-002-ref.html +== object-fit-cover-png-002o.html object-fit-cover-png-002-ref.html +== object-fit-cover-png-002p.html object-fit-cover-png-002-ref.html +== object-fit-none-png-001e.html object-fit-none-png-001-ref.html +== object-fit-none-png-001i.html object-fit-none-png-001-ref.html +== object-fit-none-png-001o.html object-fit-none-png-001-ref.html +== object-fit-none-png-001p.html object-fit-none-png-001-ref.html +== object-fit-none-png-002e.html object-fit-none-png-002-ref.html +== object-fit-none-png-002i.html object-fit-none-png-002-ref.html +== object-fit-none-png-002o.html object-fit-none-png-002-ref.html +== object-fit-none-png-002p.html object-fit-none-png-002-ref.html +== object-fit-scale-down-png-001e.html object-fit-scale-down-png-001-ref.html +== object-fit-scale-down-png-001i.html object-fit-scale-down-png-001-ref.html +== object-fit-scale-down-png-001o.html object-fit-scale-down-png-001-ref.html +== object-fit-scale-down-png-001p.html object-fit-scale-down-png-001-ref.html +== object-fit-scale-down-png-002e.html object-fit-scale-down-png-002-ref.html +== object-fit-scale-down-png-002i.html object-fit-scale-down-png-002-ref.html +== object-fit-scale-down-png-002o.html object-fit-scale-down-png-002-ref.html +== object-fit-scale-down-png-002p.html object-fit-scale-down-png-002-ref.html diff --git a/layout/reftests/w3c-css/submitted/images3/support/colors-16x8.png b/layout/reftests/w3c-css/submitted/images3/support/colors-16x8.png new file mode 100644 index 0000000000000000000000000000000000000000..bd238458713fb195283368e22853b21de4335c47 GIT binary patch literal 93 zcmeAS@N?(olHy`uVBq!ia0vp^0zk~c!2~4hMP3{LQYxMbP0l+XkK|L+2zS+uZ_G&fw|l=d#Wzp$P!Vi5Y4D literal 0 HcmV?d00001 diff --git a/layout/reftests/w3c-css/submitted/images3/support/generate-object-fit-png-tests.sh b/layout/reftests/w3c-css/submitted/images3/support/generate-object-fit-png-tests.sh new file mode 100644 index 000000000000..476977c890ec --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/support/generate-object-fit-png-tests.sh @@ -0,0 +1,109 @@ +#!/bin/bash +# +# Any copyright is dedicated to the Public Domain. +# http://creativecommons.org/publicdomain/zero/1.0/ +# +# This is a script that I used to generate a suite of tests for the CSS +# properties "object-fit" and "object-position", using a template testcase +# file and reference case file. +# +# The reference case uses the "background-size" & "background-position" +# equivalent of the tested "object-fit" / "object-position" values. +# (One exception: since there is no "background-size" equivalent of +# "object-fit: scale-down", we add an extra CSS rule for the "scale-down" +# reference cases -- see REPLACEME_SCALE_DOWN_EXTRA_RULE below.) + +FILE_PATH="./" +REFTEST_LIST_FILE="$FILE_PATH/reftest.list" + +TEMPLATE_TESTCASE_FILENAME=$FILE_PATH/support/template-object-fit-test.html +TEMPLATE_REFERENCE_FILENAME=$FILE_PATH/support/template-object-fit-ref.html + +imageFileFormat="png" + +# Array of image files to use for testing: +imageFileArr=("support/colors-16x8.png" "support/colors-8x16.png") +numImageFiles=${#imageFileArr[@]} + +# Array of "object-fit" values, & of corresponding "background-size" values. +# (Note: background-size has no equivalent for "object-fit: scale-down". We use +# "auto auto" here, which is equivalent *some* of the time; and for the cases +# where it's *not* equivalent, we use an extra CSS rule in the reference case. +# See REPLACEME_SCALE_DOWN_EXTRA_RULE below.) +objectFitArr=( "fill" "contain" "cover" "none" "scale-down" ) +backgroundSizeEquivArr=( "100% 100%" "contain" "cover" "auto auto" "auto auto" ) +numObjectFitVals=${#objectFitArr[@]} + +# Array of tag-names for elements that we'd like to test: +# (Also: array of a single-letter abbreviation for each element, an array of +# the close tag for each element -- if a close tag is needed -- and an array +# indicating the attribute that each element uses to specify its image source.) +tagNameArr=( "embed" "img" "object" "video" ) +tagLetterArr=( "e" "i" "o" "p" ) +tagCloseTokenArr=( "" "" "" "" ) +tagSrcAttrArr=( "src" "src" "data" "poster" ) +numTags=${#tagNameArr[@]} + +# FIRST: Add 'default-preferences' line to the top of our reftest manifest: +echo "default-preferences test-pref(layout.css.object-fit-and-position.enabled,true) +# Tests for 'object-fit' / 'object-position' with a PNG image" \ + >> $REFTEST_LIST_FILE + +for ((i = 0; i < $numObjectFitVals; i++)); do + objectFit=${objectFitArr[$i]} + backgroundSizeEquiv=${backgroundSizeEquivArr[$i]} + + # The reference case for "scale-down" needs an additional style rule, to + # look like "object-fit: scale-down" on small objects. (This is necessary + # because "background-size" doesn't have a value that exactly maps to + # "object-fit: scale-down".) + if [[ $objectFit == "scale-down" ]]; then + scaledownRule=".objectOuter > .small { background-size: contain; }" + scaledownSedCmd="s/REPLACEME_SCALE_DOWN_EXTRA_RULE/$scaledownRule/" + else + # (We're not testing "scale-down" in this generated file, so just delete + # the template's placeholder line for a "scale-down"-specific CSS rule.) + scaledownSedCmd="/REPLACEME_SCALE_DOWN_EXTRA_RULE/d" + fi + + for ((j = 0; j < $numImageFiles; j++)); do + imageFile=${imageFileArr[$j]} + let testNum=$j+1 + testNum="00$testNum" # zero-pad to 3 digits, per w3c convention + + filenameStub="object-fit-$objectFit-$imageFileFormat-$testNum" + + # Generate a reference case: + filenameRef="$filenameStub-ref.html" + echo Generating ${filenameRef}. + cat $TEMPLATE_REFERENCE_FILENAME \ + | sed "s,REPLACEME_IMAGE_FILENAME,$imageFile," \ + | sed "s/REPLACEME_BACKGROUND_SIZE_VAL/$backgroundSizeEquiv/" \ + | sed "$scaledownSedCmd" \ + > $FILE_PATH/$filenameRef; + + # Generate a test for each of our tags: + for ((k = 0; k < $numTags; k++)); do + tagName=${tagNameArr[$k]} + tagLetter=${tagLetterArr[$k]} + tagCloseToken=${tagCloseTokenArr[$k]} + tagSrcAttr=${tagSrcAttrArr[$k]} + + filenameTest="$filenameStub$tagLetter.html" + testTitle="'object-fit: $objectFit' on $tagName element, with a PNG image and with various 'object-position' values" + echo Generating ${filenameTest}. + cat $TEMPLATE_TESTCASE_FILENAME \ + | sed "s,REPLACEME_IMAGE_FILENAME,$imageFile," \ + | sed "s/REPLACEME_TEST_TITLE/$testTitle/" \ + | sed "s,REPLACEME_REFERENCE_FILENAME,$filenameRef," \ + | sed "s/REPLACEME_CONTAINER_TAG/$tagName/" \ + | sed "s,REPLACEME_CONTAINER_CLOSETAG,$tagCloseToken," \ + | sed "s/REPLACEME_SRC_ATTR/$tagSrcAttr/" \ + | sed "s/REPLACEME_OBJECT_FIT_VAL/$objectFit/" \ + > $FILE_PATH/$filenameTest + + echo "== $filenameTest $filenameRef" \ + >> $REFTEST_LIST_FILE + done + done +done diff --git a/layout/reftests/w3c-css/submitted/images3/support/template-object-fit-ref.html b/layout/reftests/w3c-css/submitted/images3/support/template-object-fit-ref.html new file mode 100644 index 000000000000..94caf1ecbe90 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/support/template-object-fit-ref.html @@ -0,0 +1,78 @@ + + + + + + CSS Reftest Reference + + + + + +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ + diff --git a/layout/reftests/w3c-css/submitted/images3/support/template-object-fit-test.html b/layout/reftests/w3c-css/submitted/images3/support/template-object-fit-test.html new file mode 100644 index 000000000000..fe1518235442 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/images3/support/template-object-fit-test.html @@ -0,0 +1,77 @@ + + + + + + CSS Test: REPLACEME_TEST_TITLE + + + + + + + + + + REPLACEME_CONTAINER_CLOSETAG + REPLACEME_CONTAINER_CLOSETAG + REPLACEME_CONTAINER_CLOSETAG + REPLACEME_CONTAINER_CLOSETAG + REPLACEME_CONTAINER_CLOSETAG + REPLACEME_CONTAINER_CLOSETAG + REPLACEME_CONTAINER_CLOSETAG +
+ + REPLACEME_CONTAINER_CLOSETAG + REPLACEME_CONTAINER_CLOSETAG + REPLACEME_CONTAINER_CLOSETAG + REPLACEME_CONTAINER_CLOSETAG + REPLACEME_CONTAINER_CLOSETAG + REPLACEME_CONTAINER_CLOSETAG + REPLACEME_CONTAINER_CLOSETAG +
+ + REPLACEME_CONTAINER_CLOSETAG + REPLACEME_CONTAINER_CLOSETAG + REPLACEME_CONTAINER_CLOSETAG + REPLACEME_CONTAINER_CLOSETAG + REPLACEME_CONTAINER_CLOSETAG + REPLACEME_CONTAINER_CLOSETAG + REPLACEME_CONTAINER_CLOSETAG +
+ + diff --git a/layout/reftests/w3c-css/submitted/reftest.list b/layout/reftests/w3c-css/submitted/reftest.list index 86b01ead4db5..89afe907c3dd 100644 --- a/layout/reftests/w3c-css/submitted/reftest.list +++ b/layout/reftests/w3c-css/submitted/reftest.list @@ -26,7 +26,7 @@ include flexbox/reftest.list # include fonts3/reftest.list # Image Values and Replaced Content Level 3 -# include images3/reftest.list +include images3/reftest.list # Media Queries Level 3 # include mediaqueries3/reftest.list