Bug 1523562 [wpt PR 13377] - Update interfaces/css-layout-api.idl, a=testonly

Automatic update from web-platform-tests
Update interfaces/css-layout-api.idl (#13377)

Source: https://github.com/tidoust/reffy-reports/blob/4c0f638/whatwg/idl/css-layout-api.idl
Build: https://travis-ci.org/tidoust/reffy-reports/builds/444277190
--

wpt-commits: 2c648ed9e292dadc539e7481efe07cca7fc7a924
wpt-pr: 13377
This commit is contained in:
autofoolip 2019-02-01 11:39:36 +00:00 коммит произвёл James Graham
Родитель ad55b8eae9
Коммит 84012a8632
1 изменённых файлов: 17 добавлений и 31 удалений

Просмотреть файл

@ -20,22 +20,22 @@ dictionary LayoutOptions {
[Exposed=LayoutWorklet]
enum ChildDisplayType {
"block",
"block", // default - "blockifies" the child boxes.
"normal",
};
[Exposed=LayoutWorklet]
enum LayoutSizingMode {
"block-like",
"manual",
"block-like", // default - Sizing behaves like block containers.
"manual", // Sizing is specified by the web developer.
};
[Exposed=LayoutWorklet]
interface LayoutChild {
readonly attribute StylePropertyMapReadOnly styleMap;
IntrinsicSizesRequest intrinsicSizes();
LayoutFragmentRequest layoutNextFragment(LayoutConstraints constraints, ChildBreakToken breakToken);
Promise<IntrinsicSizes> intrinsicSizes();
Promise<LayoutFragment> layoutNextFragment(LayoutConstraintsOptions constraints, ChildBreakToken breakToken);
};
[Exposed=LayoutWorklet]
@ -57,7 +57,7 @@ interface IntrinsicSizes {
readonly attribute double maxContentSize;
};
[Constructor(optional LayoutConstraintsOptions options),Exposed=LayoutWorklet]
[Exposed=LayoutWorklet]
interface LayoutConstraints {
readonly attribute double availableInlineSize;
readonly attribute double availableBlockSize;
@ -74,9 +74,11 @@ interface LayoutConstraints {
readonly attribute any data;
};
enum BlockFragmentationType { "none", "page", "column", "region" };
dictionary LayoutConstraintsOptions {
double availableInlineSize = 0;
double availableBlockSize = 0;
double availableInlineSize;
double availableBlockSize;
double fixedInlineSize;
double fixedBlockSize;
@ -90,8 +92,6 @@ dictionary LayoutConstraintsOptions {
any data;
};
enum BlockFragmentationType { "none", "page", "column", "region" };
[Exposed=LayoutWorklet]
interface ChildBreakToken {
readonly attribute BreakType breakType;
@ -112,7 +112,7 @@ dictionary BreakTokenOptions {
enum BreakType { "none", "line", "column", "page", "region" };
[Exposed=LayoutWorklet]
interface LayoutEdgeSizes {
interface LayoutEdges {
readonly attribute double inlineStart;
readonly attribute double inlineEnd;
@ -124,26 +124,6 @@ interface LayoutEdgeSizes {
readonly attribute double block;
};
[Exposed=LayoutWorklet]
interface LayoutEdges {
readonly attribute LayoutEdgeSizes border;
readonly attribute LayoutEdgeSizes scrollbar;
readonly attribute LayoutEdgeSizes padding;
readonly attribute LayoutEdgeSizes all;
};
[Exposed=LayoutWorklet]
interface IntrinsicSizesRequest {
};
[Exposed=LayoutWorklet]
interface LayoutFragmentRequest {
};
typedef (IntrinsicSizesRequest or LayoutFragmentRequest)
LayoutFragmentRequestOrIntrinsicSizesRequest;
// This is the final return value from the author defined layout() method.
dictionary FragmentResultOptions {
double inlineSize = 0;
@ -154,6 +134,12 @@ dictionary FragmentResultOptions {
BreakTokenOptions breakToken = null;
};
[Constructor(FragmentResultOptions)]
interface FragmentResult {
readonly attribute double inlineSize;
readonly attribute double blockSize;
};
dictionary IntrinsicSizesResultOptions {
double maxContentSize;
double minContentSize;