Guten Berg!
diff --git a/test/integration/fixtures/blocks/core__cover__deprecated-8.html b/test/integration/fixtures/blocks/core__cover__deprecated-8.html
new file mode 100644
index 00000000000000..8da6a870594839
--- /dev/null
+++ b/test/integration/fixtures/blocks/core__cover__deprecated-8.html
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
diff --git a/test/integration/fixtures/blocks/core__cover__deprecated-8.json b/test/integration/fixtures/blocks/core__cover__deprecated-8.json
new file mode 100644
index 00000000000000..0c55d2778cead8
--- /dev/null
+++ b/test/integration/fixtures/blocks/core__cover__deprecated-8.json
@@ -0,0 +1,33 @@
+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/cover",
+ "isValid": true,
+ "attributes": {
+ "url": "data:image/jpeg;base64,/9j/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/yQALCAABAAEBAREA/8wABgAQEAX/2gAIAQEAAD8A0s8g/9k=",
+ "alt": "",
+ "hasParallax": false,
+ "isRepeated": false,
+ "dimRatio": 40,
+ "backgroundType": "image",
+ "isDark": true
+ },
+ "innerBlocks": [
+ {
+ "clientId": "_clientId_0",
+ "name": "core/paragraph",
+ "isValid": true,
+ "attributes": {
+ "align": "center",
+ "content": "\n Guten Berg!\n ",
+ "dropCap": false,
+ "placeholder": "Write title…",
+ "fontSize": "large"
+ },
+ "innerBlocks": [],
+ "originalContent": "
\n Guten Berg!\n
"
+ }
+ ],
+ "originalContent": "
\n
\n
\n
\n \n
\n
"
+ }
+]
diff --git a/test/integration/fixtures/blocks/core__cover__deprecated-8.parsed.json b/test/integration/fixtures/blocks/core__cover__deprecated-8.parsed.json
new file mode 100644
index 00000000000000..f90273321b52bb
--- /dev/null
+++ b/test/integration/fixtures/blocks/core__cover__deprecated-8.parsed.json
@@ -0,0 +1,30 @@
+[
+ {
+ "blockName": "core/cover",
+ "attrs": {
+ "url": "data:image/jpeg;base64,/9j/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/yQALCAABAAEBAREA/8wABgAQEAX/2gAIAQEAAD8A0s8g/9k=",
+ "dimRatio": 40
+ },
+ "innerBlocks": [
+ {
+ "blockName": "core/paragraph",
+ "attrs": {
+ "align": "center",
+ "placeholder": "Write title…",
+ "fontSize": "large"
+ },
+ "innerBlocks": [],
+ "innerHTML": "\n
\n Guten Berg!\n
\n ",
+ "innerContent": [
+ "\n
\n Guten Berg!\n
\n "
+ ]
+ }
+ ],
+ "innerHTML": "\n
\n
\n
\n
\n \n
\n
\n",
+ "innerContent": [
+ "\n
\n
\n
\n
\n ",
+ null,
+ "\n
\n
\n"
+ ]
+ }
+]
diff --git a/test/integration/fixtures/blocks/core__cover__deprecated-8.serialized.html b/test/integration/fixtures/blocks/core__cover__deprecated-8.serialized.html
new file mode 100644
index 00000000000000..fd99791a8e5247
--- /dev/null
+++ b/test/integration/fixtures/blocks/core__cover__deprecated-8.serialized.html
@@ -0,0 +1,7 @@
+
+
+
diff --git a/test/integration/fixtures/blocks/core__cover__gradient-custom.html b/test/integration/fixtures/blocks/core__cover__gradient-custom.html
new file mode 100644
index 00000000000000..fd0a8517357857
--- /dev/null
+++ b/test/integration/fixtures/blocks/core__cover__gradient-custom.html
@@ -0,0 +1,10 @@
+
+
+
diff --git a/test/integration/fixtures/blocks/core__cover__gradient-custom.json b/test/integration/fixtures/blocks/core__cover__gradient-custom.json
new file mode 100644
index 00000000000000..b1f9b2bcd1358b
--- /dev/null
+++ b/test/integration/fixtures/blocks/core__cover__gradient-custom.json
@@ -0,0 +1,33 @@
+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/cover",
+ "isValid": true,
+ "attributes": {
+ "alt": "",
+ "hasParallax": false,
+ "isRepeated": false,
+ "dimRatio": 100,
+ "backgroundType": "image",
+ "customGradient": "linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",
+ "isDark": true
+ },
+ "innerBlocks": [
+ {
+ "clientId": "_clientId_0",
+ "name": "core/paragraph",
+ "isValid": true,
+ "attributes": {
+ "align": "center",
+ "content": "Cover!",
+ "dropCap": false,
+ "placeholder": "Write title…",
+ "fontSize": "large"
+ },
+ "innerBlocks": [],
+ "originalContent": "
Cover!
"
+ }
+ ],
+ "originalContent": "
"
+ }
+]
diff --git a/test/integration/fixtures/blocks/core__cover__gradient-custom.parsed.json b/test/integration/fixtures/blocks/core__cover__gradient-custom.parsed.json
new file mode 100644
index 00000000000000..53f6fc55fb2777
--- /dev/null
+++ b/test/integration/fixtures/blocks/core__cover__gradient-custom.parsed.json
@@ -0,0 +1,29 @@
+[
+ {
+ "blockName": "core/cover",
+ "attrs": {
+ "customGradient": "linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)"
+ },
+ "innerBlocks": [
+ {
+ "blockName": "core/paragraph",
+ "attrs": {
+ "align": "center",
+ "placeholder": "Write title…",
+ "fontSize": "large"
+ },
+ "innerBlocks": [],
+ "innerHTML": "\n\t\t
Cover!
\n\t\t",
+ "innerContent": [
+ "\n\t\t
Cover!
\n\t\t"
+ ]
+ }
+ ],
+ "innerHTML": "\n
\n",
+ "innerContent": [
+ "\n
\n\t
\n\t
\n\t\t",
+ null,
+ "\n\t
\n
\n"
+ ]
+ }
+]
diff --git a/test/integration/fixtures/blocks/core__cover__gradient-custom.serialized.html b/test/integration/fixtures/blocks/core__cover__gradient-custom.serialized.html
new file mode 100644
index 00000000000000..a6ea10215b7a1b
--- /dev/null
+++ b/test/integration/fixtures/blocks/core__cover__gradient-custom.serialized.html
@@ -0,0 +1,5 @@
+
+
+
diff --git a/test/integration/fixtures/blocks/core__cover__gradient-image.html b/test/integration/fixtures/blocks/core__cover__gradient-image.html
index bd72d791a2a08e..dba861ef5bf3f3 100644
--- a/test/integration/fixtures/blocks/core__cover__gradient-image.html
+++ b/test/integration/fixtures/blocks/core__cover__gradient-image.html
@@ -1,7 +1,7 @@
-
-
+
+
Cover!
diff --git a/test/integration/fixtures/blocks/core__cover__gradient-image.json b/test/integration/fixtures/blocks/core__cover__gradient-image.json
index b02fcb5caaca35..b74558293f8ef7 100644
--- a/test/integration/fixtures/blocks/core__cover__gradient-image.json
+++ b/test/integration/fixtures/blocks/core__cover__gradient-image.json
@@ -29,6 +29,6 @@
"originalContent": "
Cover!
"
}
],
- "originalContent": "
\n\t
\n\t
\n\t
\n\t\t\n\t
\n
"
+ "originalContent": "
\n
\n
\n\t
\n\t\t\n\t
\n
"
}
]
diff --git a/test/integration/fixtures/blocks/core__cover__gradient-image.parsed.json b/test/integration/fixtures/blocks/core__cover__gradient-image.parsed.json
index e03c3b8cd41bb5..e5e97653e27459 100644
--- a/test/integration/fixtures/blocks/core__cover__gradient-image.parsed.json
+++ b/test/integration/fixtures/blocks/core__cover__gradient-image.parsed.json
@@ -21,9 +21,9 @@
]
}
],
- "innerHTML": "\n
\n\t
\n\t
\n\t
\n\t\t\n\t
\n
\n",
+ "innerHTML": "\n
\n
\n
\n\t
\n\t\t\n\t
\n
\n",
"innerContent": [
- "\n
\n\t
\n\t
\n\t
\n\t\t",
+ "\n
\n
\n
\n\t
\n\t\t",
null,
"\n\t
\n
\n"
]
diff --git a/test/integration/fixtures/blocks/core__cover__gradient-image.serialized.html b/test/integration/fixtures/blocks/core__cover__gradient-image.serialized.html
index 6c07b2fe0952a8..135949383f712c 100644
--- a/test/integration/fixtures/blocks/core__cover__gradient-image.serialized.html
+++ b/test/integration/fixtures/blocks/core__cover__gradient-image.serialized.html
@@ -1,5 +1,5 @@
-
+
diff --git a/test/integration/fixtures/blocks/core__cover__gradient-video.html b/test/integration/fixtures/blocks/core__cover__gradient-video.html
index e4b0eb1323cf3c..1081afe2518b3a 100644
--- a/test/integration/fixtures/blocks/core__cover__gradient-video.html
+++ b/test/integration/fixtures/blocks/core__cover__gradient-video.html
@@ -1,6 +1,6 @@
-
+
diff --git a/test/integration/fixtures/blocks/core__cover__gradient-video.json b/test/integration/fixtures/blocks/core__cover__gradient-video.json
index c256b78cc8c494..2927872b3d0e5c 100644
--- a/test/integration/fixtures/blocks/core__cover__gradient-video.json
+++ b/test/integration/fixtures/blocks/core__cover__gradient-video.json
@@ -29,6 +29,6 @@
"originalContent": "
Cover!
"
}
],
- "originalContent": "
"
+ "originalContent": "
"
}
]
diff --git a/test/integration/fixtures/blocks/core__cover__gradient-video.parsed.json b/test/integration/fixtures/blocks/core__cover__gradient-video.parsed.json
index 919ef20eaeadee..8ad72c9c549b24 100644
--- a/test/integration/fixtures/blocks/core__cover__gradient-video.parsed.json
+++ b/test/integration/fixtures/blocks/core__cover__gradient-video.parsed.json
@@ -22,9 +22,9 @@
]
}
],
- "innerHTML": "\n
\n",
+ "innerHTML": "\n
\n",
"innerContent": [
- "\n
\n\t
\n\t
\n\t
\n\t\t",
+ "\n
\n\t
\n\t
\n\t
\n\t\t",
null,
"\n\t
\n
\n"
]
diff --git a/test/integration/fixtures/blocks/core__cover__gradient-video.serialized.html b/test/integration/fixtures/blocks/core__cover__gradient-video.serialized.html
index d78c838b5a1022..417d8666481dcd 100644
--- a/test/integration/fixtures/blocks/core__cover__gradient-video.serialized.html
+++ b/test/integration/fixtures/blocks/core__cover__gradient-video.serialized.html
@@ -1,5 +1,5 @@
-
+
diff --git a/test/integration/fixtures/blocks/core__cover__gradient.html b/test/integration/fixtures/blocks/core__cover__gradient.html
index 8bd16152d5bb13..7b20b808c461c3 100644
--- a/test/integration/fixtures/blocks/core__cover__gradient.html
+++ b/test/integration/fixtures/blocks/core__cover__gradient.html
@@ -1,6 +1,6 @@
-
-
-
+
+
+
Cover!
diff --git a/test/integration/fixtures/blocks/core__cover__gradient.json b/test/integration/fixtures/blocks/core__cover__gradient.json
index fd0e0f59dedcec..d67fbb6cf2979d 100644
--- a/test/integration/fixtures/blocks/core__cover__gradient.json
+++ b/test/integration/fixtures/blocks/core__cover__gradient.json
@@ -9,8 +9,8 @@
"isRepeated": false,
"dimRatio": 100,
"backgroundType": "image",
- "customGradient": "linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",
- "isDark": true
+ "gradient": "luminous-dusk",
+ "isDark": false
},
"innerBlocks": [
{
@@ -28,6 +28,6 @@
"originalContent": "
Cover!
"
}
],
- "originalContent": "
"
+ "originalContent": "
"
}
]
diff --git a/test/integration/fixtures/blocks/core__cover__gradient.parsed.json b/test/integration/fixtures/blocks/core__cover__gradient.parsed.json
index b0f8d37f9e5b44..d6f084f048d856 100644
--- a/test/integration/fixtures/blocks/core__cover__gradient.parsed.json
+++ b/test/integration/fixtures/blocks/core__cover__gradient.parsed.json
@@ -2,7 +2,8 @@
{
"blockName": "core/cover",
"attrs": {
- "customGradient": "linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)"
+ "gradient": "luminous-dusk",
+ "isDark": false
},
"innerBlocks": [
{
@@ -19,9 +20,9 @@
]
}
],
- "innerHTML": "\n
\n",
+ "innerHTML": "\n
\n",
"innerContent": [
- "\n
\n\t
\n\t
\n\t\t",
+ "\n
\n
\n\t
\n\t\t",
null,
"\n\t
\n
\n"
]
diff --git a/test/integration/fixtures/blocks/core__cover__gradient.serialized.html b/test/integration/fixtures/blocks/core__cover__gradient.serialized.html
index 31aedff636c24d..12f535f03d091a 100644
--- a/test/integration/fixtures/blocks/core__cover__gradient.serialized.html
+++ b/test/integration/fixtures/blocks/core__cover__gradient.serialized.html
@@ -1,5 +1,5 @@
-
-
+
+
diff --git a/test/integration/fixtures/blocks/core__cover__gradient__deprecated-8.html b/test/integration/fixtures/blocks/core__cover__gradient__deprecated-8.html
new file mode 100644
index 00000000000000..410e84051946c4
--- /dev/null
+++ b/test/integration/fixtures/blocks/core__cover__gradient__deprecated-8.html
@@ -0,0 +1,10 @@
+
+
+
diff --git a/test/integration/fixtures/blocks/core__cover__gradient__deprecated-8.json b/test/integration/fixtures/blocks/core__cover__gradient__deprecated-8.json
new file mode 100644
index 00000000000000..9df0733233d6b5
--- /dev/null
+++ b/test/integration/fixtures/blocks/core__cover__gradient__deprecated-8.json
@@ -0,0 +1,33 @@
+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/cover",
+ "isValid": false,
+ "attributes": {
+ "alt": "",
+ "hasParallax": false,
+ "isRepeated": false,
+ "dimRatio": 100,
+ "backgroundType": "image",
+ "gradient": "luminous-dusk",
+ "isDark": false
+ },
+ "innerBlocks": [
+ {
+ "clientId": "_clientId_0",
+ "name": "core/paragraph",
+ "isValid": true,
+ "attributes": {
+ "align": "center",
+ "content": "Cover!",
+ "dropCap": false,
+ "placeholder": "Write title…",
+ "fontSize": "large"
+ },
+ "innerBlocks": [],
+ "originalContent": "
Cover!
"
+ }
+ ],
+ "originalContent": "
"
+ }
+]
diff --git a/test/integration/fixtures/blocks/core__cover__gradient__deprecated-8.parsed.json b/test/integration/fixtures/blocks/core__cover__gradient__deprecated-8.parsed.json
new file mode 100644
index 00000000000000..28bb491d166cb5
--- /dev/null
+++ b/test/integration/fixtures/blocks/core__cover__gradient__deprecated-8.parsed.json
@@ -0,0 +1,30 @@
+[
+ {
+ "blockName": "core/cover",
+ "attrs": {
+ "gradient": "luminous-dusk",
+ "isDark": false
+ },
+ "innerBlocks": [
+ {
+ "blockName": "core/paragraph",
+ "attrs": {
+ "align": "center",
+ "placeholder": "Write title…",
+ "fontSize": "large"
+ },
+ "innerBlocks": [],
+ "innerHTML": "\n\t\t
Cover!
\n\t\t",
+ "innerContent": [
+ "\n\t\t
Cover!
\n\t\t"
+ ]
+ }
+ ],
+ "innerHTML": "\n
\n",
+ "innerContent": [
+ "\n
\n
\n\t
\n\t\t",
+ null,
+ "\n\t
\n
\n"
+ ]
+ }
+]
diff --git a/test/integration/fixtures/blocks/core__cover__gradient__deprecated-8.serialized.html b/test/integration/fixtures/blocks/core__cover__gradient__deprecated-8.serialized.html
new file mode 100644
index 00000000000000..12f535f03d091a
--- /dev/null
+++ b/test/integration/fixtures/blocks/core__cover__gradient__deprecated-8.serialized.html
@@ -0,0 +1,5 @@
+
+
+
diff --git a/test/integration/fixtures/blocks/core__cover__solid-color.html b/test/integration/fixtures/blocks/core__cover__solid-color.html
index d08b70dfb3d791..2b280936af63be 100644
--- a/test/integration/fixtures/blocks/core__cover__solid-color.html
+++ b/test/integration/fixtures/blocks/core__cover__solid-color.html
@@ -1,6 +1,6 @@
-
+
diff --git a/test/integration/fixtures/blocks/core__cover__solid-color.json b/test/integration/fixtures/blocks/core__cover__solid-color.json
index c170062fdb975d..9eb5c4df724651 100644
--- a/test/integration/fixtures/blocks/core__cover__solid-color.json
+++ b/test/integration/fixtures/blocks/core__cover__solid-color.json
@@ -28,6 +28,6 @@
"originalContent": "
"
}
],
- "originalContent": "
"
+ "originalContent": "
"
}
]
diff --git a/test/integration/fixtures/blocks/core__cover__solid-color.parsed.json b/test/integration/fixtures/blocks/core__cover__solid-color.parsed.json
index 9be3bb3d0db3a9..98e28467d1ab5c 100644
--- a/test/integration/fixtures/blocks/core__cover__solid-color.parsed.json
+++ b/test/integration/fixtures/blocks/core__cover__solid-color.parsed.json
@@ -19,9 +19,9 @@
]
}
],
- "innerHTML": "\n
\n",
+ "innerHTML": "\n
\n",
"innerContent": [
- "\n
\n\t
\n\t
\n\t\t",
+ "\n
\n
\n\t
\n\t\t",
null,
"\n\t
\n
\n"
]
diff --git a/test/integration/fixtures/blocks/core__cover__solid-color.serialized.html b/test/integration/fixtures/blocks/core__cover__solid-color.serialized.html
index d8532c71201774..4ac6a07e4769d0 100644
--- a/test/integration/fixtures/blocks/core__cover__solid-color.serialized.html
+++ b/test/integration/fixtures/blocks/core__cover__solid-color.serialized.html
@@ -1,5 +1,5 @@
-
+
diff --git a/test/integration/fixtures/blocks/core__cover__video-overlay.html b/test/integration/fixtures/blocks/core__cover__video-overlay.html
index 4e6828cdfc78c3..3d78269821c152 100644
--- a/test/integration/fixtures/blocks/core__cover__video-overlay.html
+++ b/test/integration/fixtures/blocks/core__cover__video-overlay.html
@@ -1,6 +1,6 @@
-
\ No newline at end of file
+
diff --git a/test/integration/fixtures/blocks/core__cover__video-overlay.json b/test/integration/fixtures/blocks/core__cover__video-overlay.json
index a9cc24589f4ae4..cd82ca0b88a08d 100644
--- a/test/integration/fixtures/blocks/core__cover__video-overlay.json
+++ b/test/integration/fixtures/blocks/core__cover__video-overlay.json
@@ -29,6 +29,6 @@
"originalContent": "
\n\t\t\tGuten Berg!\n\t\t
"
}
],
- "originalContent": "
"
+ "originalContent": "
"
}
]
diff --git a/test/integration/fixtures/blocks/core__cover__video-overlay.parsed.json b/test/integration/fixtures/blocks/core__cover__video-overlay.parsed.json
index 00e871e84d25eb..c766000af56727 100644
--- a/test/integration/fixtures/blocks/core__cover__video-overlay.parsed.json
+++ b/test/integration/fixtures/blocks/core__cover__video-overlay.parsed.json
@@ -22,9 +22,9 @@
]
}
],
- "innerHTML": "\n
\n",
+ "innerHTML": "\n
\n",
"innerContent": [
- "\n
\n\t
\n\t
\n\t
\n\t\t",
+ "\n
\n\t
\n\t
\n\t
\n\t\t",
null,
"\n\t
\n
\n"
]
diff --git a/test/integration/fixtures/blocks/core__cover__video-overlay.serialized.html b/test/integration/fixtures/blocks/core__cover__video-overlay.serialized.html
index 9115273d4bc625..cf13928cd9d204 100644
--- a/test/integration/fixtures/blocks/core__cover__video-overlay.serialized.html
+++ b/test/integration/fixtures/blocks/core__cover__video-overlay.serialized.html
@@ -1,5 +1,5 @@
-
+
Guten Berg!
diff --git a/test/integration/fixtures/blocks/core__cover__video.html b/test/integration/fixtures/blocks/core__cover__video.html
index c262722884f28e..6dc5bfae8a15e4 100644
--- a/test/integration/fixtures/blocks/core__cover__video.html
+++ b/test/integration/fixtures/blocks/core__cover__video.html
@@ -1,6 +1,6 @@
-
+
diff --git a/test/integration/fixtures/blocks/core__cover__video.json b/test/integration/fixtures/blocks/core__cover__video.json
index 0e03ef9e6a5cef..4b81f7323ba6ed 100644
--- a/test/integration/fixtures/blocks/core__cover__video.json
+++ b/test/integration/fixtures/blocks/core__cover__video.json
@@ -28,6 +28,6 @@
"originalContent": "
\n\t\t\tGuten Berg!\n\t\t
"
}
],
- "originalContent": "
"
+ "originalContent": "
"
}
]
diff --git a/test/integration/fixtures/blocks/core__cover__video.parsed.json b/test/integration/fixtures/blocks/core__cover__video.parsed.json
index d5a173779aec00..0ac0886db52f1f 100644
--- a/test/integration/fixtures/blocks/core__cover__video.parsed.json
+++ b/test/integration/fixtures/blocks/core__cover__video.parsed.json
@@ -21,9 +21,9 @@
]
}
],
- "innerHTML": "\n
\n",
+ "innerHTML": "\n
\n",
"innerContent": [
- "\n
\n\t
\n\t
\n\t
\n\t\t",
+ "\n
\n\t
\n\t
\n\t
\n\t\t",
null,
"\n\t
\n
\n"
]
diff --git a/test/integration/fixtures/blocks/core__cover__video.serialized.html b/test/integration/fixtures/blocks/core__cover__video.serialized.html
index 7e3a6c16b14e82..0fb6cbf9e1266e 100644
--- a/test/integration/fixtures/blocks/core__cover__video.serialized.html
+++ b/test/integration/fixtures/blocks/core__cover__video.serialized.html
@@ -1,5 +1,5 @@
-