Cannot style ::selection for a flex container
authorryanhaddad@apple.com <ryanhaddad@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 May 2020 16:41:19 +0000 (16:41 +0000)
committerryanhaddad@apple.com <ryanhaddad@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 May 2020 16:41:19 +0000 (16:41 +0000)
https://bugs.webkit.org/show_bug.cgi?id=209822

Unreviewed test gardening.

Add baselines for macOS and iOS.

* platform/ios/editing/selection/selection-display-block-sibling-expected.txt: Added.
* platform/ios/editing/selection/selection-display-flex-expected.txt: Added.
* platform/mac/editing/selection/selection-display-block-sibling-expected.txt: Added.
* platform/mac/editing/selection/selection-display-flex-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@262059 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/platform/ios/editing/selection/selection-display-block-sibling-expected.txt [new file with mode: 0644]
LayoutTests/platform/ios/editing/selection/selection-display-flex-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/editing/selection/selection-display-block-sibling-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/editing/selection/selection-display-flex-expected.txt [new file with mode: 0644]

index 8ea54c3..b748de0 100644 (file)
@@ -1,3 +1,17 @@
+2020-05-22  Ryan Haddad  <ryanhaddad@apple.com>
+
+        Cannot style ::selection for a flex container
+        https://bugs.webkit.org/show_bug.cgi?id=209822
+
+        Unreviewed test gardening.
+
+        Add baselines for macOS and iOS.
+
+        * platform/ios/editing/selection/selection-display-block-sibling-expected.txt: Added.
+        * platform/ios/editing/selection/selection-display-flex-expected.txt: Added.
+        * platform/mac/editing/selection/selection-display-block-sibling-expected.txt: Added.
+        * platform/mac/editing/selection/selection-display-flex-expected.txt: Added.
+
 2020-05-22  Chris Dumez  <cdumez@apple.com>
 
         Regression(r254859) DOM storage event gets fired at the frame that caused the storage modification
diff --git a/LayoutTests/platform/ios/editing/selection/selection-display-block-sibling-expected.txt b/LayoutTests/platform/ios/editing/selection/selection-display-block-sibling-expected.txt
new file mode 100644 (file)
index 0000000..9210bf2
--- /dev/null
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x56
+  RenderBlock {HTML} at (0,0) size 800x56
+    RenderBody {BODY} at (8,8) size 784x40
+      RenderBlock {DIV} at (0,0) size 784x40
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 684x19
+            text run at (0,0) width 684: "Test for https://bugs.webkit.org/show_bug.cgi?id=209822 -- should have green background when selected."
+        RenderBlock {DIV} at (0,20) size 784x20
+          RenderText {#text} at (0,0) size 482x19
+            text run at (0,0) width 78: "Sibling div. "
+            text run at (77,0) width 405: "Should have default selection background color when selected."
+selection start: position 5 of child 0 {#text} of child 1 {DIV} of body
+selection end:   position 84 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/ios/editing/selection/selection-display-flex-expected.txt b/LayoutTests/platform/ios/editing/selection/selection-display-flex-expected.txt
new file mode 100644 (file)
index 0000000..becd6d6
--- /dev/null
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x36
+  RenderBlock {HTML} at (0,0) size 800x36
+    RenderBody {BODY} at (8,8) size 784x20
+      RenderFlexibleBox {DIV} at (0,0) size 784x20
+        RenderBlock (anonymous) at (0,0) size 680x20
+          RenderText {#text} at (0,0) size 680x19
+            text run at (0,0) width 680: "Test for https://bugs.webkit.org/show_bug.cgi?id=209822 -- should have green background when selected"
+selection start: position 4 of child 0 {#text} of child 1 {DIV} of body
+selection end:   position 105 of child 0 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/selection/selection-display-block-sibling-expected.txt b/LayoutTests/platform/mac/editing/selection/selection-display-block-sibling-expected.txt
new file mode 100644 (file)
index 0000000..0ae8a5a
--- /dev/null
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x52
+  RenderBlock {HTML} at (0,0) size 800x52
+    RenderBody {BODY} at (8,8) size 784x36
+      RenderBlock {DIV} at (0,0) size 784x36
+        RenderBlock (anonymous) at (0,0) size 784x18
+          RenderText {#text} at (0,0) size 684x18
+            text run at (0,0) width 684: "Test for https://bugs.webkit.org/show_bug.cgi?id=209822 -- should have green background when selected."
+        RenderBlock {DIV} at (0,18) size 784x18
+          RenderText {#text} at (0,0) size 482x18
+            text run at (0,0) width 78: "Sibling div. "
+            text run at (77,0) width 405: "Should have default selection background color when selected."
+selection start: position 5 of child 0 {#text} of child 1 {DIV} of body
+selection end:   position 84 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/selection/selection-display-flex-expected.txt b/LayoutTests/platform/mac/editing/selection/selection-display-flex-expected.txt
new file mode 100644 (file)
index 0000000..6f9c85b
--- /dev/null
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x34
+  RenderBlock {HTML} at (0,0) size 800x34
+    RenderBody {BODY} at (8,8) size 784x18
+      RenderFlexibleBox {DIV} at (0,0) size 784x18
+        RenderBlock (anonymous) at (0,0) size 680x18
+          RenderText {#text} at (0,0) size 680x18
+            text run at (0,0) width 680: "Test for https://bugs.webkit.org/show_bug.cgi?id=209822 -- should have green background when selected"
+selection start: position 4 of child 0 {#text} of child 1 {DIV} of body
+selection end:   position 105 of child 0 {#text} of child 1 {DIV} of body