The relevant syntax is
<position> = [
[ left | center | right ] || [ top | center | bottom ]
[ left | center | right | <length-percentage> ]
[ top | center | bottom | <length-percentage> ]?
[ [ left | right ] <length-percentage> ] &&
[ [ top | bottom ] <length-percentage> ]
A number of test cases currently fail:
e.g. "center left 1px" should not be accepted.
This also applies to <position> in gradients
Seems like some css/css-shapes tests are still expecting the 3-value syntax.
Created attachment 381985 [details]
*** Bug 200213 has been marked as a duplicate of this bug. ***
Created attachment 381988 [details]
Comment on attachment 381988 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=381988&action=review
> + if (values[i + 1] && !values[i + 1]->isValueID())
Relying on caller to ensure i + 1 is not out of bounds is not very nice. How about passing values as std::array or something?
*** Bug 148211 has been marked as a duplicate of this bug. ***