Skip to content

Commit f6190cd

Browse files
saschanazsandersn
authored andcommitted
add CSS Text types (#694)
1 parent 43da36e commit f6190cd

4 files changed

Lines changed: 44 additions & 11 deletions

File tree

baselines/dom.generated.d.ts

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2740,6 +2740,7 @@ interface CSSStyleDeclaration {
27402740
gridTemplateColumns: string | null;
27412741
gridTemplateRows: string | null;
27422742
height: string | null;
2743+
hyphens: string;
27432744
imageOrientation: string;
27442745
imageRendering: string;
27452746
imeMode: string | null;
@@ -2754,9 +2755,9 @@ interface CSSStyleDeclaration {
27542755
layoutGridType: string | null;
27552756
left: string | null;
27562757
readonly length: number;
2757-
letterSpacing: string | null;
2758+
letterSpacing: string;
27582759
lightingColor: string;
2759-
lineBreak: string | null;
2760+
lineBreak: string;
27602761
lineHeight: string | null;
27612762
listStyle: string | null;
27622763
listStyleImage: string | null;
@@ -2835,6 +2836,7 @@ interface CSSStyleDeclaration {
28352836
outlineStyle: string;
28362837
outlineWidth: string;
28372838
overflow: string | null;
2839+
overflowWrap: string;
28382840
overflowX: string | null;
28392841
overflowY: string | null;
28402842
padding: string | null;
@@ -2874,9 +2876,10 @@ interface CSSStyleDeclaration {
28742876
strokeMiterlimit: string | null;
28752877
strokeOpacity: string | null;
28762878
strokeWidth: string | null;
2879+
tabSize: string;
28772880
tableLayout: string | null;
2878-
textAlign: string | null;
2879-
textAlignLast: string | null;
2881+
textAlign: string;
2882+
textAlignLast: string;
28802883
textAnchor: string | null;
28812884
textCombineUpright: string;
28822885
textDecoration: string;
@@ -2887,14 +2890,14 @@ interface CSSStyleDeclaration {
28872890
textEmphasisColor: string;
28882891
textEmphasisPosition: string;
28892892
textEmphasisStyle: string;
2890-
textIndent: string | null;
2891-
textJustify: string | null;
2893+
textIndent: string;
2894+
textJustify: string;
28922895
textKashida: string | null;
28932896
textKashidaSpace: string | null;
28942897
textOrientation: string;
28952898
textOverflow: string;
28962899
textShadow: string;
2897-
textTransform: string | null;
2900+
textTransform: string;
28982901
textUnderlinePosition: string;
28992902
top: string | null;
29002903
touchAction: string;
@@ -3065,13 +3068,13 @@ interface CSSStyleDeclaration {
30653068
webkitUserModify: string | null;
30663069
webkitUserSelect: string | null;
30673070
webkitWritingMode: string | null;
3068-
whiteSpace: string | null;
3071+
whiteSpace: string;
30693072
widows: string | null;
30703073
width: string | null;
30713074
willChange: string;
3072-
wordBreak: string | null;
3073-
wordSpacing: string | null;
3074-
wordWrap: string | null;
3075+
wordBreak: string;
3076+
wordSpacing: string;
3077+
wordWrap: string;
30753078
writingMode: string;
30763079
zIndex: string | null;
30773080
zoom: string | null;

inputfiles/idl/CSS Text.widl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
partial interface CSSStyleDeclaration {
2+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textTransform;
3+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString whiteSpace;
4+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString tabSize;
5+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString wordBreak;
6+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString lineBreak;
7+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString hyphens;
8+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString overflowWrap;
9+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString wordWrap;
10+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textAlign;
11+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textAlignAll;
12+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textAlignLast;
13+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textJustify;
14+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString wordSpacing;
15+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString letterSpacing;
16+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textIndent;
17+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString hangingPunctuation;
18+
};

inputfiles/idlSources.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636
"url": "https://drafts.csswg.org/cssom-view/",
3737
"title": "CSSOM View"
3838
},
39+
{
40+
"url": "https://www.w3.org/TR/css-text-3/",
41+
"title": "CSS Text"
42+
},
3943
{
4044
"url": "https://www.w3.org/TR/css-text-decor-3/",
4145
"title": "CSS Text Decoration"

inputfiles/removedTypes.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@
5858
}
5959
}
6060
},
61+
"CSSStyleDeclaration": {
62+
"properties": {
63+
"property": {
64+
"hangingPunctuation": null,
65+
"textAlignAll": null
66+
}
67+
}
68+
},
6169
"DeviceMotionEvent": {
6270
"methods": {
6371
"method": {

0 commit comments

Comments
 (0)