Bug 189142 - object-position should not accept 3 values
Summary: object-position should not accept 3 values
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari 11
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: FromImplementor, InRadar
Depends on:
Blocks:
 
Reported: 2018-08-29 20:14 PDT by Eric Willigers
Modified: 2018-09-04 13:49 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Willigers 2018-08-29 20:14:52 PDT
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
Comment 1 Radar WebKit Bug Importer 2018-09-04 13:49:19 PDT
<rdar://problem/44110851>