From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- .../css-placeholder/css-background-ref.html | 9 ++++++ .../reftests/css-placeholder/css-background.html | 23 ++++++++++++++ .../css-placeholder/css-restrictions-ref.html | 9 ++++++ .../reftests/css-placeholder/css-restrictions.html | 23 ++++++++++++++ .../css-placeholder/css-simple-styling-ref.html | 19 ++++++++++++ .../css-placeholder/css-simple-styling.html | 35 ++++++++++++++++++++++ .../css-placeholder/ignore-pseudo-class-ref.html | 7 +++++ .../css-placeholder/ignore-pseudo-class.html | 15 ++++++++++ .../css-placeholder/input/css-display.html | 14 +++++++++ .../css-placeholder/input/css-opacity.html | 14 +++++++++ .../css-placeholder/input/css-text-align.html | 14 +++++++++ .../reftests/css-placeholder/input/input-ref.html | 7 +++++ .../css-placeholder/input/placeholder-add.html | 16 ++++++++++ .../css-placeholder/input/placeholder-blur.html | 30 +++++++++++++++++++ .../input/placeholder-button-ref.html | 9 ++++++ .../input/placeholder-empty-string-ref.html | 7 +++++ .../input/placeholder-empty-string.html | 7 +++++ .../input/placeholder-focus-ref.html | 22 ++++++++++++++ .../css-placeholder/input/placeholder-focus.html | 22 ++++++++++++++ .../css-placeholder/input/placeholder-removal.html | 16 ++++++++++ .../input/placeholder-simple-ref.html | 8 +++++ .../css-placeholder/input/placeholder-simple.html | 8 +++++ .../input/placeholder-type-change-1.html | 16 ++++++++++ .../input/placeholder-type-change-2.html | 16 ++++++++++ .../input/placeholder-value-ref.html | 7 +++++ .../input/placeholder-value-reset.html | 19 ++++++++++++ .../input/placeholder-value-set.html | 16 ++++++++++ .../input/placeholder-value-unset.html | 16 ++++++++++ .../css-placeholder/input/placeholder-value.html | 8 +++++ .../input/placeholdershown-date-ref.html | 4 +++ .../input/placeholdershown-date.html | 4 +++ .../input/placeholdershown-ref.html | 8 +++++ .../css-placeholder/input/placeholdershown.html | 8 +++++ layout/reftests/css-placeholder/input/reftest.list | 29 ++++++++++++++++++ .../reftests/css-placeholder/input/style-shown.css | 21 +++++++++++++ layout/reftests/css-placeholder/input/style.css | 6 ++++ layout/reftests/css-placeholder/reftest.list | 7 +++++ .../css-placeholder/textarea/css-display.html | 14 +++++++++ .../css-placeholder/textarea/css-opacity.html | 14 +++++++++ .../css-placeholder/textarea/css-resize-ref.html | 13 ++++++++ .../css-placeholder/textarea/css-resize.html | 20 +++++++++++++ .../css-placeholder/textarea/placeholder-add.html | 16 ++++++++++ .../css-placeholder/textarea/placeholder-blur.html | 30 +++++++++++++++++++ .../textarea/placeholder-empty-string-ref.html | 7 +++++ .../textarea/placeholder-empty-string.html | 7 +++++ .../textarea/placeholder-focus-ref.html | 22 ++++++++++++++ .../textarea/placeholder-focus.html | 22 ++++++++++++++ .../textarea/placeholder-removal.html | 16 ++++++++++ .../textarea/placeholder-simple-ref.html | 8 +++++ .../textarea/placeholder-simple.html | 8 +++++ .../textarea/placeholder-value-ref.html | 7 +++++ .../textarea/placeholder-value-reset.html | 19 ++++++++++++ .../textarea/placeholder-value-set.html | 16 ++++++++++ .../textarea/placeholder-value-unset.html | 16 ++++++++++ .../textarea/placeholder-value.html | 8 +++++ .../textarea/placeholdershown-ref.html | 7 +++++ .../css-placeholder/textarea/placeholdershown.html | 7 +++++ .../reftests/css-placeholder/textarea/reftest.list | 26 ++++++++++++++++ .../css-placeholder/textarea/style-shown.css | 22 ++++++++++++++ layout/reftests/css-placeholder/textarea/style.css | 6 ++++ .../css-placeholder/textarea/textarea-ref.html | 7 +++++ 61 files changed, 857 insertions(+) create mode 100644 layout/reftests/css-placeholder/css-background-ref.html create mode 100644 layout/reftests/css-placeholder/css-background.html create mode 100644 layout/reftests/css-placeholder/css-restrictions-ref.html create mode 100644 layout/reftests/css-placeholder/css-restrictions.html create mode 100644 layout/reftests/css-placeholder/css-simple-styling-ref.html create mode 100644 layout/reftests/css-placeholder/css-simple-styling.html create mode 100644 layout/reftests/css-placeholder/ignore-pseudo-class-ref.html create mode 100644 layout/reftests/css-placeholder/ignore-pseudo-class.html create mode 100644 layout/reftests/css-placeholder/input/css-display.html create mode 100644 layout/reftests/css-placeholder/input/css-opacity.html create mode 100644 layout/reftests/css-placeholder/input/css-text-align.html create mode 100644 layout/reftests/css-placeholder/input/input-ref.html create mode 100644 layout/reftests/css-placeholder/input/placeholder-add.html create mode 100644 layout/reftests/css-placeholder/input/placeholder-blur.html create mode 100644 layout/reftests/css-placeholder/input/placeholder-button-ref.html create mode 100644 layout/reftests/css-placeholder/input/placeholder-empty-string-ref.html create mode 100644 layout/reftests/css-placeholder/input/placeholder-empty-string.html create mode 100644 layout/reftests/css-placeholder/input/placeholder-focus-ref.html create mode 100644 layout/reftests/css-placeholder/input/placeholder-focus.html create mode 100644 layout/reftests/css-placeholder/input/placeholder-removal.html create mode 100644 layout/reftests/css-placeholder/input/placeholder-simple-ref.html create mode 100644 layout/reftests/css-placeholder/input/placeholder-simple.html create mode 100644 layout/reftests/css-placeholder/input/placeholder-type-change-1.html create mode 100644 layout/reftests/css-placeholder/input/placeholder-type-change-2.html create mode 100644 layout/reftests/css-placeholder/input/placeholder-value-ref.html create mode 100644 layout/reftests/css-placeholder/input/placeholder-value-reset.html create mode 100644 layout/reftests/css-placeholder/input/placeholder-value-set.html create mode 100644 layout/reftests/css-placeholder/input/placeholder-value-unset.html create mode 100644 layout/reftests/css-placeholder/input/placeholder-value.html create mode 100644 layout/reftests/css-placeholder/input/placeholdershown-date-ref.html create mode 100644 layout/reftests/css-placeholder/input/placeholdershown-date.html create mode 100644 layout/reftests/css-placeholder/input/placeholdershown-ref.html create mode 100644 layout/reftests/css-placeholder/input/placeholdershown.html create mode 100644 layout/reftests/css-placeholder/input/reftest.list create mode 100644 layout/reftests/css-placeholder/input/style-shown.css create mode 100644 layout/reftests/css-placeholder/input/style.css create mode 100644 layout/reftests/css-placeholder/reftest.list create mode 100644 layout/reftests/css-placeholder/textarea/css-display.html create mode 100644 layout/reftests/css-placeholder/textarea/css-opacity.html create mode 100644 layout/reftests/css-placeholder/textarea/css-resize-ref.html create mode 100644 layout/reftests/css-placeholder/textarea/css-resize.html create mode 100644 layout/reftests/css-placeholder/textarea/placeholder-add.html create mode 100644 layout/reftests/css-placeholder/textarea/placeholder-blur.html create mode 100644 layout/reftests/css-placeholder/textarea/placeholder-empty-string-ref.html create mode 100644 layout/reftests/css-placeholder/textarea/placeholder-empty-string.html create mode 100644 layout/reftests/css-placeholder/textarea/placeholder-focus-ref.html create mode 100644 layout/reftests/css-placeholder/textarea/placeholder-focus.html create mode 100644 layout/reftests/css-placeholder/textarea/placeholder-removal.html create mode 100644 layout/reftests/css-placeholder/textarea/placeholder-simple-ref.html create mode 100644 layout/reftests/css-placeholder/textarea/placeholder-simple.html create mode 100644 layout/reftests/css-placeholder/textarea/placeholder-value-ref.html create mode 100644 layout/reftests/css-placeholder/textarea/placeholder-value-reset.html create mode 100644 layout/reftests/css-placeholder/textarea/placeholder-value-set.html create mode 100644 layout/reftests/css-placeholder/textarea/placeholder-value-unset.html create mode 100644 layout/reftests/css-placeholder/textarea/placeholder-value.html create mode 100644 layout/reftests/css-placeholder/textarea/placeholdershown-ref.html create mode 100644 layout/reftests/css-placeholder/textarea/placeholdershown.html create mode 100644 layout/reftests/css-placeholder/textarea/reftest.list create mode 100644 layout/reftests/css-placeholder/textarea/style-shown.css create mode 100644 layout/reftests/css-placeholder/textarea/style.css create mode 100644 layout/reftests/css-placeholder/textarea/textarea-ref.html (limited to 'layout/reftests/css-placeholder') diff --git a/layout/reftests/css-placeholder/css-background-ref.html b/layout/reftests/css-placeholder/css-background-ref.html new file mode 100644 index 0000000000..b75db15b6f --- /dev/null +++ b/layout/reftests/css-placeholder/css-background-ref.html @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/layout/reftests/css-placeholder/css-background.html b/layout/reftests/css-placeholder/css-background.html new file mode 100644 index 0000000000..94ab1a5b00 --- /dev/null +++ b/layout/reftests/css-placeholder/css-background.html @@ -0,0 +1,23 @@ + + + + + + + + + + + diff --git a/layout/reftests/css-placeholder/css-restrictions-ref.html b/layout/reftests/css-placeholder/css-restrictions-ref.html new file mode 100644 index 0000000000..a09df21e12 --- /dev/null +++ b/layout/reftests/css-placeholder/css-restrictions-ref.html @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/layout/reftests/css-placeholder/css-restrictions.html b/layout/reftests/css-placeholder/css-restrictions.html new file mode 100644 index 0000000000..96bfac9952 --- /dev/null +++ b/layout/reftests/css-placeholder/css-restrictions.html @@ -0,0 +1,23 @@ + + + + + + + + + + + diff --git a/layout/reftests/css-placeholder/css-simple-styling-ref.html b/layout/reftests/css-placeholder/css-simple-styling-ref.html new file mode 100644 index 0000000000..eeaca440c9 --- /dev/null +++ b/layout/reftests/css-placeholder/css-simple-styling-ref.html @@ -0,0 +1,19 @@ + + + + + + + + + + diff --git a/layout/reftests/css-placeholder/css-simple-styling.html b/layout/reftests/css-placeholder/css-simple-styling.html new file mode 100644 index 0000000000..bfecc19c8d --- /dev/null +++ b/layout/reftests/css-placeholder/css-simple-styling.html @@ -0,0 +1,35 @@ + + + + + + + + + + + diff --git a/layout/reftests/css-placeholder/ignore-pseudo-class-ref.html b/layout/reftests/css-placeholder/ignore-pseudo-class-ref.html new file mode 100644 index 0000000000..9085635b60 --- /dev/null +++ b/layout/reftests/css-placeholder/ignore-pseudo-class-ref.html @@ -0,0 +1,7 @@ + + + + + + + diff --git a/layout/reftests/css-placeholder/ignore-pseudo-class.html b/layout/reftests/css-placeholder/ignore-pseudo-class.html new file mode 100644 index 0000000000..bd314c5b8f --- /dev/null +++ b/layout/reftests/css-placeholder/ignore-pseudo-class.html @@ -0,0 +1,15 @@ + + + + + + + + diff --git a/layout/reftests/css-placeholder/input/css-display.html b/layout/reftests/css-placeholder/input/css-display.html new file mode 100644 index 0000000000..a97734b15b --- /dev/null +++ b/layout/reftests/css-placeholder/input/css-display.html @@ -0,0 +1,14 @@ + + + + + + + + + diff --git a/layout/reftests/css-placeholder/input/css-opacity.html b/layout/reftests/css-placeholder/input/css-opacity.html new file mode 100644 index 0000000000..dd6e21ee13 --- /dev/null +++ b/layout/reftests/css-placeholder/input/css-opacity.html @@ -0,0 +1,14 @@ + + + + + + + + + diff --git a/layout/reftests/css-placeholder/input/css-text-align.html b/layout/reftests/css-placeholder/input/css-text-align.html new file mode 100644 index 0000000000..d71af94d52 --- /dev/null +++ b/layout/reftests/css-placeholder/input/css-text-align.html @@ -0,0 +1,14 @@ + + + + + + + + + diff --git a/layout/reftests/css-placeholder/input/input-ref.html b/layout/reftests/css-placeholder/input/input-ref.html new file mode 100644 index 0000000000..8589b2b289 --- /dev/null +++ b/layout/reftests/css-placeholder/input/input-ref.html @@ -0,0 +1,7 @@ + + + + + + + diff --git a/layout/reftests/css-placeholder/input/placeholder-add.html b/layout/reftests/css-placeholder/input/placeholder-add.html new file mode 100644 index 0000000000..6ec33026d1 --- /dev/null +++ b/layout/reftests/css-placeholder/input/placeholder-add.html @@ -0,0 +1,16 @@ + + + + + + + + + diff --git a/layout/reftests/css-placeholder/input/placeholder-blur.html b/layout/reftests/css-placeholder/input/placeholder-blur.html new file mode 100644 index 0000000000..9c9f3c62b5 --- /dev/null +++ b/layout/reftests/css-placeholder/input/placeholder-blur.html @@ -0,0 +1,30 @@ + + + + + + + + + diff --git a/layout/reftests/css-placeholder/input/placeholder-button-ref.html b/layout/reftests/css-placeholder/input/placeholder-button-ref.html new file mode 100644 index 0000000000..8f584f6e3f --- /dev/null +++ b/layout/reftests/css-placeholder/input/placeholder-button-ref.html @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/layout/reftests/css-placeholder/input/placeholder-empty-string-ref.html b/layout/reftests/css-placeholder/input/placeholder-empty-string-ref.html new file mode 100644 index 0000000000..ad0de3cfba --- /dev/null +++ b/layout/reftests/css-placeholder/input/placeholder-empty-string-ref.html @@ -0,0 +1,7 @@ + + + + + + + diff --git a/layout/reftests/css-placeholder/input/placeholder-empty-string.html b/layout/reftests/css-placeholder/input/placeholder-empty-string.html new file mode 100644 index 0000000000..8d9dfb5b41 --- /dev/null +++ b/layout/reftests/css-placeholder/input/placeholder-empty-string.html @@ -0,0 +1,7 @@ + + + + + + + diff --git a/layout/reftests/css-placeholder/input/placeholder-focus-ref.html b/layout/reftests/css-placeholder/input/placeholder-focus-ref.html new file mode 100644 index 0000000000..d2e2af35a2 --- /dev/null +++ b/layout/reftests/css-placeholder/input/placeholder-focus-ref.html @@ -0,0 +1,22 @@ + + + + + + + + + diff --git a/layout/reftests/css-placeholder/input/placeholder-focus.html b/layout/reftests/css-placeholder/input/placeholder-focus.html new file mode 100644 index 0000000000..285bf4f60c --- /dev/null +++ b/layout/reftests/css-placeholder/input/placeholder-focus.html @@ -0,0 +1,22 @@ + + + + + + + + + diff --git a/layout/reftests/css-placeholder/input/placeholder-removal.html b/layout/reftests/css-placeholder/input/placeholder-removal.html new file mode 100644 index 0000000000..88b6829148 --- /dev/null +++ b/layout/reftests/css-placeholder/input/placeholder-removal.html @@ -0,0 +1,16 @@ + + + + + + + + + diff --git a/layout/reftests/css-placeholder/input/placeholder-simple-ref.html b/layout/reftests/css-placeholder/input/placeholder-simple-ref.html new file mode 100644 index 0000000000..02c604b7db --- /dev/null +++ b/layout/reftests/css-placeholder/input/placeholder-simple-ref.html @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/layout/reftests/css-placeholder/input/placeholder-simple.html b/layout/reftests/css-placeholder/input/placeholder-simple.html new file mode 100644 index 0000000000..c7958ed1f8 --- /dev/null +++ b/layout/reftests/css-placeholder/input/placeholder-simple.html @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/layout/reftests/css-placeholder/input/placeholder-type-change-1.html b/layout/reftests/css-placeholder/input/placeholder-type-change-1.html new file mode 100644 index 0000000000..2eb0ea4d3e --- /dev/null +++ b/layout/reftests/css-placeholder/input/placeholder-type-change-1.html @@ -0,0 +1,16 @@ + + + + + + + + + diff --git a/layout/reftests/css-placeholder/input/placeholder-type-change-2.html b/layout/reftests/css-placeholder/input/placeholder-type-change-2.html new file mode 100644 index 0000000000..7a1feb06e6 --- /dev/null +++ b/layout/reftests/css-placeholder/input/placeholder-type-change-2.html @@ -0,0 +1,16 @@ + + + + + + + + + diff --git a/layout/reftests/css-placeholder/input/placeholder-value-ref.html b/layout/reftests/css-placeholder/input/placeholder-value-ref.html new file mode 100644 index 0000000000..79209802a4 --- /dev/null +++ b/layout/reftests/css-placeholder/input/placeholder-value-ref.html @@ -0,0 +1,7 @@ + + + + + + + diff --git a/layout/reftests/css-placeholder/input/placeholder-value-reset.html b/layout/reftests/css-placeholder/input/placeholder-value-reset.html new file mode 100644 index 0000000000..3e0b672ce0 --- /dev/null +++ b/layout/reftests/css-placeholder/input/placeholder-value-reset.html @@ -0,0 +1,19 @@ + + + + + +
+ + +
+ + diff --git a/layout/reftests/css-placeholder/input/placeholder-value-set.html b/layout/reftests/css-placeholder/input/placeholder-value-set.html new file mode 100644 index 0000000000..c2b1a0c015 --- /dev/null +++ b/layout/reftests/css-placeholder/input/placeholder-value-set.html @@ -0,0 +1,16 @@ + + + + + + + + + diff --git a/layout/reftests/css-placeholder/input/placeholder-value-unset.html b/layout/reftests/css-placeholder/input/placeholder-value-unset.html new file mode 100644 index 0000000000..c985d56675 --- /dev/null +++ b/layout/reftests/css-placeholder/input/placeholder-value-unset.html @@ -0,0 +1,16 @@ + + + + + + + + + diff --git a/layout/reftests/css-placeholder/input/placeholder-value.html b/layout/reftests/css-placeholder/input/placeholder-value.html new file mode 100644 index 0000000000..80694027cb --- /dev/null +++ b/layout/reftests/css-placeholder/input/placeholder-value.html @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/layout/reftests/css-placeholder/input/placeholdershown-date-ref.html b/layout/reftests/css-placeholder/input/placeholdershown-date-ref.html new file mode 100644 index 0000000000..4fee8b159d --- /dev/null +++ b/layout/reftests/css-placeholder/input/placeholdershown-date-ref.html @@ -0,0 +1,4 @@ + + + + diff --git a/layout/reftests/css-placeholder/input/placeholdershown-date.html b/layout/reftests/css-placeholder/input/placeholdershown-date.html new file mode 100644 index 0000000000..2406ece4b6 --- /dev/null +++ b/layout/reftests/css-placeholder/input/placeholdershown-date.html @@ -0,0 +1,4 @@ + + + + diff --git a/layout/reftests/css-placeholder/input/placeholdershown-ref.html b/layout/reftests/css-placeholder/input/placeholdershown-ref.html new file mode 100644 index 0000000000..0036552fb6 --- /dev/null +++ b/layout/reftests/css-placeholder/input/placeholdershown-ref.html @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/layout/reftests/css-placeholder/input/placeholdershown.html b/layout/reftests/css-placeholder/input/placeholdershown.html new file mode 100644 index 0000000000..90f64beae6 --- /dev/null +++ b/layout/reftests/css-placeholder/input/placeholdershown.html @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/layout/reftests/css-placeholder/input/reftest.list b/layout/reftests/css-placeholder/input/reftest.list new file mode 100644 index 0000000000..b2caafa433 --- /dev/null +++ b/layout/reftests/css-placeholder/input/reftest.list @@ -0,0 +1,29 @@ +# Tests using placeholder-focus-ref.html as a reference are disabled because +# we can't change the caret colour nor disable it and we can't change the +# text colour without changing the caret which means that the tested page has +# a black caret with a grey text and the reference has a grey caret with grey +# text. The only thing that is doable is to make the caret grey in the tested +# page but that would make the test moot because a failure wouldn't be seen. +# A real way to fix this would be to be able to style the caret or to implement +# ::value (bug 648643), depending of the ::value behaviour (it could change the +# caret colour and the text colour or just the text colour). + +== placeholder-simple.html placeholder-simple-ref.html +# needs-focus == placeholder-focus.html placeholder-focus-ref.html +needs-focus == placeholder-blur.html placeholder-simple-ref.html +== placeholder-value.html placeholder-value-ref.html +== placeholder-empty-string.html placeholder-empty-string-ref.html +== placeholder-add.html placeholder-simple-ref.html +== placeholder-removal.html input-ref.html +== placeholder-value-set.html placeholder-value-ref.html +== placeholder-value-unset.html placeholder-simple-ref.html +== placeholder-value-reset.html placeholder-simple-ref.html +== placeholder-type-change-1.html placeholder-simple-ref.html +== placeholder-type-change-2.html placeholder-button-ref.html +== placeholdershown.html placeholdershown-ref.html +fails-if(Android) == placeholdershown-date.html placeholdershown-date-ref.html # bug 1431431 +== css-display.html placeholder-simple-ref.html +# We can't check except by verifying that the output is different. +# Same reasons as focus issues explained above. +!= css-opacity.html placeholder-simple-ref.html +!= css-text-align.html placeholder-simple-ref.html diff --git a/layout/reftests/css-placeholder/input/style-shown.css b/layout/reftests/css-placeholder/input/style-shown.css new file mode 100644 index 0000000000..a73b0c5fd0 --- /dev/null +++ b/layout/reftests/css-placeholder/input/style-shown.css @@ -0,0 +1,21 @@ +input::placeholder { + color: green; + opacity: 1.0; +} + +input:placeholder-shown { + appearance: none; + color: FieldText; + background-color: red; +} + +input:placeholder-shown.shown, +input.shown-ref { + appearance: none; + color: green; + background-color: #c7c7c7; + font-style: italic; + border: 2px solid green; + height: 200px; + width: 200px; +} diff --git a/layout/reftests/css-placeholder/input/style.css b/layout/reftests/css-placeholder/input/style.css new file mode 100644 index 0000000000..8963a6e177 --- /dev/null +++ b/layout/reftests/css-placeholder/input/style.css @@ -0,0 +1,6 @@ +[placeholder="bar"]::-moz-placeholder, +[placeholder="foo"]::placeholder, +input.ref { + color: green; + opacity: 1.0; +} diff --git a/layout/reftests/css-placeholder/reftest.list b/layout/reftests/css-placeholder/reftest.list new file mode 100644 index 0000000000..cfe6f46300 --- /dev/null +++ b/layout/reftests/css-placeholder/reftest.list @@ -0,0 +1,7 @@ +include input/reftest.list +include textarea/reftest.list + +fuzzy(0-1,0-4) == css-restrictions.html css-restrictions-ref.html +== css-simple-styling.html css-simple-styling-ref.html # gtkWidget, Bug 1600749 +!= css-background.html css-background-ref.html +fuzzy(0-1,0-180) == ignore-pseudo-class.html ignore-pseudo-class-ref.html diff --git a/layout/reftests/css-placeholder/textarea/css-display.html b/layout/reftests/css-placeholder/textarea/css-display.html new file mode 100644 index 0000000000..717bfab7cd --- /dev/null +++ b/layout/reftests/css-placeholder/textarea/css-display.html @@ -0,0 +1,14 @@ + + + + + + + + + diff --git a/layout/reftests/css-placeholder/textarea/css-opacity.html b/layout/reftests/css-placeholder/textarea/css-opacity.html new file mode 100644 index 0000000000..832f504eca --- /dev/null +++ b/layout/reftests/css-placeholder/textarea/css-opacity.html @@ -0,0 +1,14 @@ + + + + + + + + + diff --git a/layout/reftests/css-placeholder/textarea/css-resize-ref.html b/layout/reftests/css-placeholder/textarea/css-resize-ref.html new file mode 100644 index 0000000000..c6e2e5b09e --- /dev/null +++ b/layout/reftests/css-placeholder/textarea/css-resize-ref.html @@ -0,0 +1,13 @@ + + + + + + + + + diff --git a/layout/reftests/css-placeholder/textarea/css-resize.html b/layout/reftests/css-placeholder/textarea/css-resize.html new file mode 100644 index 0000000000..81ea278b56 --- /dev/null +++ b/layout/reftests/css-placeholder/textarea/css-resize.html @@ -0,0 +1,20 @@ + + + + + + + + + + diff --git a/layout/reftests/css-placeholder/textarea/placeholder-add.html b/layout/reftests/css-placeholder/textarea/placeholder-add.html new file mode 100644 index 0000000000..9807f3d702 --- /dev/null +++ b/layout/reftests/css-placeholder/textarea/placeholder-add.html @@ -0,0 +1,16 @@ + + + + + + + + + diff --git a/layout/reftests/css-placeholder/textarea/placeholder-blur.html b/layout/reftests/css-placeholder/textarea/placeholder-blur.html new file mode 100644 index 0000000000..a1b7ebace4 --- /dev/null +++ b/layout/reftests/css-placeholder/textarea/placeholder-blur.html @@ -0,0 +1,30 @@ + + + + + + + + + diff --git a/layout/reftests/css-placeholder/textarea/placeholder-empty-string-ref.html b/layout/reftests/css-placeholder/textarea/placeholder-empty-string-ref.html new file mode 100644 index 0000000000..09928f0ad2 --- /dev/null +++ b/layout/reftests/css-placeholder/textarea/placeholder-empty-string-ref.html @@ -0,0 +1,7 @@ + + + + + + + diff --git a/layout/reftests/css-placeholder/textarea/placeholder-empty-string.html b/layout/reftests/css-placeholder/textarea/placeholder-empty-string.html new file mode 100644 index 0000000000..87f27256cd --- /dev/null +++ b/layout/reftests/css-placeholder/textarea/placeholder-empty-string.html @@ -0,0 +1,7 @@ + + + + + + + diff --git a/layout/reftests/css-placeholder/textarea/placeholder-focus-ref.html b/layout/reftests/css-placeholder/textarea/placeholder-focus-ref.html new file mode 100644 index 0000000000..69318b626f --- /dev/null +++ b/layout/reftests/css-placeholder/textarea/placeholder-focus-ref.html @@ -0,0 +1,22 @@ + + + + + + + + + diff --git a/layout/reftests/css-placeholder/textarea/placeholder-focus.html b/layout/reftests/css-placeholder/textarea/placeholder-focus.html new file mode 100644 index 0000000000..a8c97293da --- /dev/null +++ b/layout/reftests/css-placeholder/textarea/placeholder-focus.html @@ -0,0 +1,22 @@ + + + + + + + + + diff --git a/layout/reftests/css-placeholder/textarea/placeholder-removal.html b/layout/reftests/css-placeholder/textarea/placeholder-removal.html new file mode 100644 index 0000000000..727b216a99 --- /dev/null +++ b/layout/reftests/css-placeholder/textarea/placeholder-removal.html @@ -0,0 +1,16 @@ + + + + + + + + + diff --git a/layout/reftests/css-placeholder/textarea/placeholder-simple-ref.html b/layout/reftests/css-placeholder/textarea/placeholder-simple-ref.html new file mode 100644 index 0000000000..c012cc4116 --- /dev/null +++ b/layout/reftests/css-placeholder/textarea/placeholder-simple-ref.html @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/layout/reftests/css-placeholder/textarea/placeholder-simple.html b/layout/reftests/css-placeholder/textarea/placeholder-simple.html new file mode 100644 index 0000000000..5a9d3eb6f0 --- /dev/null +++ b/layout/reftests/css-placeholder/textarea/placeholder-simple.html @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/layout/reftests/css-placeholder/textarea/placeholder-value-ref.html b/layout/reftests/css-placeholder/textarea/placeholder-value-ref.html new file mode 100644 index 0000000000..f8023e1c98 --- /dev/null +++ b/layout/reftests/css-placeholder/textarea/placeholder-value-ref.html @@ -0,0 +1,7 @@ + + + + + + + diff --git a/layout/reftests/css-placeholder/textarea/placeholder-value-reset.html b/layout/reftests/css-placeholder/textarea/placeholder-value-reset.html new file mode 100644 index 0000000000..92fc7d79bd --- /dev/null +++ b/layout/reftests/css-placeholder/textarea/placeholder-value-reset.html @@ -0,0 +1,19 @@ + + + + + +
+ + +
+ + diff --git a/layout/reftests/css-placeholder/textarea/placeholder-value-set.html b/layout/reftests/css-placeholder/textarea/placeholder-value-set.html new file mode 100644 index 0000000000..30c3c26a4a --- /dev/null +++ b/layout/reftests/css-placeholder/textarea/placeholder-value-set.html @@ -0,0 +1,16 @@ + + + + + + + + + diff --git a/layout/reftests/css-placeholder/textarea/placeholder-value-unset.html b/layout/reftests/css-placeholder/textarea/placeholder-value-unset.html new file mode 100644 index 0000000000..aacea6a203 --- /dev/null +++ b/layout/reftests/css-placeholder/textarea/placeholder-value-unset.html @@ -0,0 +1,16 @@ + + + + + + + + + diff --git a/layout/reftests/css-placeholder/textarea/placeholder-value.html b/layout/reftests/css-placeholder/textarea/placeholder-value.html new file mode 100644 index 0000000000..a17bfa8f30 --- /dev/null +++ b/layout/reftests/css-placeholder/textarea/placeholder-value.html @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/layout/reftests/css-placeholder/textarea/placeholdershown-ref.html b/layout/reftests/css-placeholder/textarea/placeholdershown-ref.html new file mode 100644 index 0000000000..caa109411c --- /dev/null +++ b/layout/reftests/css-placeholder/textarea/placeholdershown-ref.html @@ -0,0 +1,7 @@ + + + + + + + diff --git a/layout/reftests/css-placeholder/textarea/placeholdershown.html b/layout/reftests/css-placeholder/textarea/placeholdershown.html new file mode 100644 index 0000000000..781ca2165d --- /dev/null +++ b/layout/reftests/css-placeholder/textarea/placeholdershown.html @@ -0,0 +1,7 @@ + + + + + + + diff --git a/layout/reftests/css-placeholder/textarea/reftest.list b/layout/reftests/css-placeholder/textarea/reftest.list new file mode 100644 index 0000000000..a24dddf1fe --- /dev/null +++ b/layout/reftests/css-placeholder/textarea/reftest.list @@ -0,0 +1,26 @@ +# Tests using placeholder-focus-ref.html as a reference are disabled because +# we can't change the caret colour nor disable it and we can't change the +# text colour without changing the caret which means that the tested page has +# a black caret with a grey text and the reference has a grey caret with grey +# text. The only thing that is doable is to make the caret grey in the tested +# page but that would make the test moot because a failure wouldn't be seen. +# A real way to fix this would be to be able to style the caret or to implement +# ::value (bug 648643), depending of the ::value behaviour (it could change the +# caret colour and the text colour or just the text colour). + +== placeholder-simple.html placeholder-simple-ref.html +# needs-focus == placeholder-focus.html placeholder-focus-ref.html +needs-focus == placeholder-blur.html placeholder-simple-ref.html +== placeholder-value.html placeholder-value-ref.html +== placeholder-empty-string.html placeholder-empty-string-ref.html +== placeholder-add.html placeholder-simple-ref.html +== placeholder-removal.html textarea-ref.html +== placeholder-value-set.html placeholder-value-ref.html +== placeholder-value-unset.html placeholder-simple-ref.html +== placeholder-value-reset.html placeholder-simple-ref.html +== placeholdershown.html placeholdershown-ref.html +== css-resize.html css-resize-ref.html +== css-display.html placeholder-simple-ref.html +# We can't check except by verifying that the output is different. +# Same reasons as focus issues explained above. +!= css-opacity.html placeholder-simple-ref.html diff --git a/layout/reftests/css-placeholder/textarea/style-shown.css b/layout/reftests/css-placeholder/textarea/style-shown.css new file mode 100644 index 0000000000..e7b33cef63 --- /dev/null +++ b/layout/reftests/css-placeholder/textarea/style-shown.css @@ -0,0 +1,22 @@ +textarea::placeholder { + color: green; + opacity: 1.0; +} + +textarea:placeholder-shown { + appearance: none; + color: FieldText; + background-color: red; +} + +textarea:placeholder-shown.shown, +textarea.shown-ref { + appearance: none; + color: green; + background-color: #c7c7c7; + font-style: italic; + border: 2px solid green; + height: 200px; + width: 200px; +} + diff --git a/layout/reftests/css-placeholder/textarea/style.css b/layout/reftests/css-placeholder/textarea/style.css new file mode 100644 index 0000000000..6d7893318d --- /dev/null +++ b/layout/reftests/css-placeholder/textarea/style.css @@ -0,0 +1,6 @@ +textarea::-moz-placeholder, +textarea::placeholder, +textarea.ref { + color: green; + opacity: 1.0; +} diff --git a/layout/reftests/css-placeholder/textarea/textarea-ref.html b/layout/reftests/css-placeholder/textarea/textarea-ref.html new file mode 100644 index 0000000000..79f410593b --- /dev/null +++ b/layout/reftests/css-placeholder/textarea/textarea-ref.html @@ -0,0 +1,7 @@ + + + + + + + -- cgit v1.2.3