Skip to content

Commit 0d371a3

Browse files
committed
[css-anchor-position] Switch the OM to the @page model. w3c#10108
1 parent a2eaf45 commit 0d371a3

File tree

1 file changed

+92
-8
lines changed

1 file changed

+92
-8
lines changed

css-anchor-position-1/Overview.bs

Lines changed: 92 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2054,24 +2054,108 @@ The CSSPositionTryRule interface {#om-position-try}
20542054
The {{CSSPositionTryRule}} interface represents
20552055
the ''@position-try'' rule:
20562056

2057-
<pre class='idl' export>
2057+
<xmp class='idl' export>
20582058
[Exposed=Window]
20592059
interface CSSPositionTryRule : CSSRule {
20602060
readonly attribute CSSOMString name;
2061-
[SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;
2061+
[SameObject, PutForwards=cssText] readonly attribute CSSPositionTryDescriptors style;
20622062
};
2063-
</pre>
2063+
2064+
[Exposed=Window]
2065+
interface CSSPositionTryDescriptors : CSSStyleDeclaration {
2066+
attribute CSSOMString margin;
2067+
attribute CSSOMString marginTop;
2068+
attribute CSSOMString marginRight;
2069+
attribute CSSOMString marginBottom;
2070+
attribute CSSOMString marginLeft;
2071+
attribute CSSOMString marginBlock;
2072+
attribute CSSOMString marginBlockStart;
2073+
attribute CSSOMString marginBlockEnd;
2074+
attribute CSSOMString marginInline;
2075+
attribute CSSOMString marginInlineStart;
2076+
attribute CSSOMString marginInlineEnd;
2077+
attribute CSSOMString margin-top;
2078+
attribute CSSOMString margin-right;
2079+
attribute CSSOMString margin-bottom;
2080+
attribute CSSOMString margin-left;
2081+
attribute CSSOMString margin-block;
2082+
attribute CSSOMString margin-block-start;
2083+
attribute CSSOMString margin-block-end;
2084+
attribute CSSOMString margin-inline;
2085+
attribute CSSOMString margin-inline-start;
2086+
attribute CSSOMString margin-inline-end;
2087+
attribute CSSOMString inset;
2088+
attribute CSSOMString insetBlock;
2089+
attribute CSSOMString insetBlockStart;
2090+
attribute CSSOMString insetBlockEnd;
2091+
attribute CSSOMString insetInline;
2092+
attribute CSSOMString insetInlineStart;
2093+
attribute CSSOMString insetInlineEnd;
2094+
attribute CSSOMString top;
2095+
attribute CSSOMString left;
2096+
attribute CSSOMString right;
2097+
attribute CSSOMString bottom;
2098+
attribute CSSOMString inset-block;
2099+
attribute CSSOMString inset-block-start;
2100+
attribute CSSOMString inset-block-end;
2101+
attribute CSSOMString inset-inline;
2102+
attribute CSSOMString inset-inline-start;
2103+
attribute CSSOMString inset-inline-end;
2104+
attribute CSSOMString width;
2105+
attribute CSSOMString minWidth;
2106+
attribute CSSOMString maxWidth;
2107+
attribute CSSOMString height;
2108+
attribute CSSOMString minHeight;
2109+
attribute CSSOMString maxHeight;
2110+
attribute CSSOMString blockSize;
2111+
attribute CSSOMString minBlockSize;
2112+
attribute CSSOMString maxBlockSize;
2113+
attribute CSSOMString inlineSize;
2114+
attribute CSSOMString minInlineSize;
2115+
attribute CSSOMString maxInlineSize;
2116+
attribute CSSOMString min-width;
2117+
attribute CSSOMString max-width;
2118+
attribute CSSOMString min-height;
2119+
attribute CSSOMString max-height;
2120+
attribute CSSOMString block-size;
2121+
attribute CSSOMString min-block-size;
2122+
attribute CSSOMString max-block-size;
2123+
attribute CSSOMString inline-size;
2124+
attribute CSSOMString min-inline-size;
2125+
attribute CSSOMString max-inline-size;
2126+
attribute CSSOMString placeSelf;
2127+
attribute CSSOMString alignSelf;
2128+
attribute CSSOMString justifySelf;
2129+
attribute CSSOMString place-self;
2130+
attribute CSSOMString align-self;
2131+
attribute CSSOMString justify-self;
2132+
attribute CSSOMString positionAnchor;
2133+
attribute CSSOMString position-anchor;
2134+
attribute CSSOMString insetArea;
2135+
attribute CSSOMString inset-area;
2136+
};
2137+
</xmp>
20642138

20652139
Its <dfn attribute for=CSSPositionTryRule>name</dfn> attribute
20662140
represents the name declared in the rule's prelude.
20672141

20682142
Its <dfn attribute for=CSSPositionTryRule>style</dfn> attribute
2069-
represents the styles declared in the rule's body,
2143+
represents the properties declared in the rule's body,
20702144
in the specified order.
2071-
Only the [=accepted @position-try properties=] are valid in this rule.
2072-
2073-
Issue: match the concept of validity to whatever we do in similar situations.
2074-
2145+
On getting, it must return a {{CSSPositionTryDescriptors}} object
2146+
for the ''@position-try'' at-rule,
2147+
with the following properties:
2148+
2149+
: [=CSSStyleDeclaration/computed flag=]
2150+
:: Unset
2151+
: [=CSSStyleDeclaration/readonly flag=]
2152+
:: Unset
2153+
: [=CSSStyleDeclaration/declarations=]
2154+
:: The declared descriptors in the rule, in <l spec=cssom>[=specified order=]</l>.
2155+
: [=CSSStyleDeclaration/parent CSS rule=]
2156+
:: The context object
2157+
: [=CSSStyleDeclaration/owner node=]
2158+
:: Null
20752159

20762160
<h2 id=interleaving>
20772161
Appendix: Style & Layout Interleaving</h2>

0 commit comments

Comments
 (0)