File tree Expand file tree Collapse file tree 3 files changed +42
-2
lines changed
Expand file tree Collapse file tree 3 files changed +42
-2
lines changed Original file line number Diff line number Diff line change 474474 "description": "Scale relative to the ideal viewport (size at width=device-width)."
475475 }
476476 ]
477+ },
478+ {
479+ "id": "Viewport",
480+ "type": "object",
481+ "description": "Viewport for capturing screenshot.",
482+ "experimental": true,
483+ "properties": [
484+ {
485+ "name": "x",
486+ "type": "number",
487+ "description": "X offset in CSS pixels."
488+ },
489+ {
490+ "name": "y",
491+ "type": "number",
492+ "description": "Y offset in CSS pixels"
493+ },
494+ {
495+ "name": "width",
496+ "type": "number",
497+ "description": "Rectangle width in CSS pixels"
498+ },
499+ {
500+ "name": "height",
501+ "type": "number",
502+ "description": "Rectangle height in CSS pixels"
503+ },
504+ {
505+ "name": "scale",
506+ "type": "number",
507+ "description": "Page scale factor."
508+ }
509+ ]
477510 }
478511 ],
479512 "commands": [
9711004 "optional": true,
9721005 "description": "Compression quality from range [0..100] (jpeg only)."
9731006 },
1007+ {
1008+ "name": "clip",
1009+ "$ref": "Viewport",
1010+ "optional": true,
1011+ "description": "Capture the screenshot of a given region only.",
1012+ "experimental": true
1013+ },
9741014 {
9751015 "name": "fromSurface",
9761016 "type": "boolean",
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ <h2 class="heading">latest (tip-of-tree)</h2>
88
99< h5 browser > Latest < a
1010 href ="https://chromium.googlesource.com/chromium/src/+log/master/third_party/WebKit/Source/core/inspector/browser_protocol.json "> browser_protocol.json</ a > version updated:</ h5 >
11- < code browser > Date: Tue Jul 11 12 :15:29 2017 -0700
11+ < code browser > Date: Wed Jul 12 07 :15:22 2017 -0700
1212</ code >
1313
1414< h5 js > Latest < a
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments