https://drafts.csswg.org/css-images-3/#the-object-position 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: https://wpt.fyi/results/css/css-images/parsing/object-position-invalid.html e.g. "center left 1px" should not be accepted. This also applies to <position> in gradients
<rdar://problem/44110851>
Seems like some css/css-shapes tests are still expecting the 3-value syntax.
Created attachment 381985 [details] Patch
*** Bug 200213 has been marked as a duplicate of this bug. ***
Created attachment 381988 [details] Patch
Comment on attachment 381988 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=381988&action=review > Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp:926 > + 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?
https://trac.webkit.org/r251668
*** Bug 148211 has been marked as a duplicate of this bug. ***