Chromium Code Reviews| Index: third_party/WebKit/Source/core/frame/ScrollIntoViewOptions.idl |
| diff --git a/third_party/WebKit/Source/core/frame/ScrollIntoViewOptions.idl b/third_party/WebKit/Source/core/frame/ScrollIntoViewOptions.idl |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..49a2c8312bc98bec13626d6b66dc21d20e655bd6 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/core/frame/ScrollIntoViewOptions.idl |
| @@ -0,0 +1,6 @@ |
| +enum ScrollLogicalPosition { "start", "center", "end", "nearest" }; |
|
bokan
2017/02/02 22:51:50
Do these have to be strings?
sunyunjia
2017/02/10 23:25:20
Yeah, that's according to the specs: https://www.w
|
| + |
| +dictionary ScrollIntoViewOptions : ScrollOptions { |
| + ScrollLogicalPosition block = "center"; |
| + ScrollLogicalPosition inlinePosition = "center"; |
| +}; |