mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision 8ae1ddbc812733c3a73b103eafad56fb43a2f4b5
This commit is contained in:
parent
d44e9aced2
commit
0e5e5db397
109 changed files with 2053 additions and 708 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue