diff options
author | Benjamin Otte <otte@redhat.com> | 2016-02-05 19:01:48 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-02-05 19:31:47 +0100 |
commit | 0c126012083e55532e1da961edc4fad3303186f3 (patch) | |
tree | 9f9d6f8420fac82b6aa22931f820df38781ec0aa /testsuite | |
parent | 982da040b234f8c2da349a45111972d04c98f4a8 (diff) | |
download | gtk+-0c126012083e55532e1da961edc4fad3303186f3.tar.gz |
cssimageradial: Only allow at "<position>" after other props
Don't allow syntax like
at top left circle
but follow the spec about requiring the at <position> right before the
comma.
This is porbably because
circle at 10px 10px
could be interpreted as
circle 10px at 10px
with the now disallowed syntax, too.
Test included.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/css/parser/Makefile.am | 3 | ||||
-rw-r--r-- | testsuite/css/parser/radial-positions.css | 9 | ||||
-rw-r--r-- | testsuite/css/parser/radial-positions.errors | 3 | ||||
-rw-r--r-- | testsuite/css/parser/radial-positions.ref.css | 0 |
4 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/css/parser/Makefile.am b/testsuite/css/parser/Makefile.am index 6c5a6d9cf3..a90b869798 100644 --- a/testsuite/css/parser/Makefile.am +++ b/testsuite/css/parser/Makefile.am @@ -410,6 +410,9 @@ test_data = \ radial-background-position-error.css \ radial-background-position-error.errors \ radial-background-position-error.ref.css \ + radial-positions.css \ + radial-positions.errors \ + radial-positions.ref.css \ selector.css \ selector.ref.css \ shadow.css \ diff --git a/testsuite/css/parser/radial-positions.css b/testsuite/css/parser/radial-positions.css new file mode 100644 index 0000000000..4a4adc855f --- /dev/null +++ b/testsuite/css/parser/radial-positions.css @@ -0,0 +1,9 @@ +a { + background-image: radial-gradient(at left circle, red, blue); +} +b { + background-image: radial-gradient(10px at left circle, red, blue); +} +c { + background-image: radial-gradient(at 10px 10px circle, red, blue); +} diff --git a/testsuite/css/parser/radial-positions.errors b/testsuite/css/parser/radial-positions.errors new file mode 100644 index 0000000000..92c2e07edf --- /dev/null +++ b/testsuite/css/parser/radial-positions.errors @@ -0,0 +1,3 @@ +radial-positions.css:2: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +radial-positions.css:5: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +radial-positions.css:8: error: GTK_CSS_PROVIDER_ERROR_SYNTAX diff --git a/testsuite/css/parser/radial-positions.ref.css b/testsuite/css/parser/radial-positions.ref.css new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/testsuite/css/parser/radial-positions.ref.css |