Skip to content

Commit f1b3ab9

Browse files
darrnshntabatkins
authored andcommitted
Add serialization for left/right/top/bottom (w3c#460)
1 parent 5d1b161 commit f1b3ab9

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

css-typed-om/Overview.bs

+31
Original file line numberDiff line numberDiff line change
@@ -2895,12 +2895,43 @@ depending on the property they came from:
28952895
8. Return the result of concatenating all the items in |values|,
28962896
separated by " " (U+0020 SPACE).
28972897

2898+
: 'bottom'
2899+
::
2900+
1. If the value is the ''auto'' keyword,
2901+
return "auto".
2902+
2. If the value is of type <<length>>,
2903+
return the result of serializing the <<length>> value.
2904+
3. Otherwise, return the result of serializing the <<percentage>> value.
2905+
28982906
: 'color'
28992907
::
29002908
1. If the value is the ''currentcolor'' keyword,
29012909
return "currentcolor".
29022910
2. Otherwise, return the result of serializing the <<color>> value.
29032911

2912+
: 'left'
2913+
::
2914+
1. If the value is the ''auto'' keyword,
2915+
return "auto".
2916+
2. If the value is of type <<length>>,
2917+
return the result of serializing the <<length>> value.
2918+
3. Otherwise, return the result of serializing the <<percentage>> value.
2919+
2920+
: 'right'
2921+
::
2922+
1. If the value is the ''auto'' keyword,
2923+
return "auto".
2924+
2. If the value is of type <<length>>,
2925+
return the result of serializing the <<length>> value.
2926+
3. Otherwise, return the result of serializing the <<percentage>> value.
2927+
2928+
: 'top'
2929+
::
2930+
1. If the value is the ''auto'' keyword,
2931+
return "auto".
2932+
2. If the value is of type <<length>>,
2933+
return the result of serializing the <<length>> value.
2934+
3. Otherwise, return the result of serializing the <<percentage>> value.
29042935

29052936

29062937
Security Considerations {#security-considerations}

0 commit comments

Comments
 (0)