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 474
474
"description": "Scale relative to the ideal viewport (size at width=device-width)."
475
475
}
476
476
]
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
+ ]
477
510
}
478
511
],
479
512
"commands": [
971
1004
"optional": true,
972
1005
"description": "Compression quality from range [0..100] (jpeg only)."
973
1006
},
1007
+ {
1008
+ "name": "clip",
1009
+ "$ref": "Viewport",
1010
+ "optional": true,
1011
+ "description": "Capture the screenshot of a given region only.",
1012
+ "experimental": true
1013
+ },
974
1014
{
975
1015
"name": "fromSurface",
976
1016
"type": "boolean",
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ <h2 class="heading">latest (tip-of-tree)</h2>
8
8
9
9
< h5 browser > Latest < a
10
10
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
12
12
</ code >
13
13
14
14
< 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