Skip to content

Commit 1c4c8c2

Browse files
saschanazsandersn
authored andcommitted
add CSS Box Alignment types (#687)
1 parent ba564df commit 1c4c8c2

3 files changed

Lines changed: 35 additions & 11 deletions

File tree

baselines/dom.generated.d.ts

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2595,9 +2595,9 @@ declare var CSSRuleList: {
25952595

25962596
/** An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. */
25972597
interface CSSStyleDeclaration {
2598-
alignContent: string | null;
2599-
alignItems: string | null;
2600-
alignSelf: string | null;
2598+
alignContent: string;
2599+
alignItems: string;
2600+
alignSelf: string;
26012601
alignmentBaseline: string | null;
26022602
animation: string;
26032603
animationDelay: string;
@@ -2718,7 +2718,7 @@ interface CSSStyleDeclaration {
27182718
fontVariantNumeric: string;
27192719
fontVariantPosition: string;
27202720
fontWeight: string;
2721-
gap: string | null;
2721+
gap: string;
27222722
glyphOrientationHorizontal: string | null;
27232723
glyphOrientationVertical: string | null;
27242724
grid: string | null;
@@ -2728,12 +2728,12 @@ interface CSSStyleDeclaration {
27282728
gridAutoRows: string | null;
27292729
gridColumn: string | null;
27302730
gridColumnEnd: string | null;
2731-
gridColumnGap: string | null;
2731+
gridColumnGap: string;
27322732
gridColumnStart: string | null;
2733-
gridGap: string | null;
2733+
gridGap: string;
27342734
gridRow: string | null;
27352735
gridRowEnd: string | null;
2736-
gridRowGap: string | null;
2736+
gridRowGap: string;
27372737
gridRowStart: string | null;
27382738
gridTemplate: string | null;
27392739
gridTemplateAreas: string | null;
@@ -2743,9 +2743,9 @@ interface CSSStyleDeclaration {
27432743
imageOrientation: string;
27442744
imageRendering: string;
27452745
imeMode: string | null;
2746-
justifyContent: string | null;
2747-
justifyItems: string | null;
2748-
justifySelf: string | null;
2746+
justifyContent: string;
2747+
justifyItems: string;
2748+
justifySelf: string;
27492749
kerning: string | null;
27502750
layoutGrid: string | null;
27512751
layoutGridChar: string | null;
@@ -2849,13 +2849,16 @@ interface CSSStyleDeclaration {
28492849
penAction: string | null;
28502850
perspective: string | null;
28512851
perspectiveOrigin: string | null;
2852+
placeContent: string;
2853+
placeItems: string;
2854+
placeSelf: string;
28522855
pointerEvents: string | null;
28532856
position: string | null;
28542857
quotes: string | null;
28552858
resize: string | null;
28562859
right: string | null;
28572860
rotate: string | null;
2858-
rowGap: string | null;
2861+
rowGap: string;
28592862
rubyAlign: string | null;
28602863
rubyOverhang: string | null;
28612864
rubyPosition: string | null;
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
partial interface CSSStyleDeclaration {
2+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString alignContent;
3+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString justifyContent;
4+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString placeContent;
5+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString justifySelf;
6+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString alignSelf;
7+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString placeSelf;
8+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString justifyItems;
9+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString alignItems;
10+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString placeItems;
11+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString rowGap;
12+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString columnGap;
13+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString gap;
14+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString gridRowGap;
15+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString gridColumnGap;
16+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString gridGap;
17+
};

inputfiles/idlSources.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
"url": "https://www.w3.org/TR/css-ui-3/",
1717
"title": "CSS Basic User Interface"
1818
},
19+
{
20+
"url": "https://www.w3.org/TR/css-align-3/",
21+
"title": "CSS Box Alignment"
22+
},
1923
{
2024
"url": "https://www.w3.org/TR/css-fonts-3/",
2125
"title": "CSS Fonts"

0 commit comments

Comments
 (0)