Skip to content

Commit 8899a16

Browse files
authored
Complete CSS property info. (#41)
* Add box-sizing + border-width. * Add list of available CSS properties, fully linkified.
1 parent f6a8f46 commit 8899a16

File tree

1 file changed

+77
-1
lines changed

1 file changed

+77
-1
lines changed

permission-element.bs

Lines changed: 77 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,12 @@ spec:css2; type:property; text:padding-bottom
3737
spec:css2; type:property; text:padding-top
3838
spec:css2; type:property; text:padding-left
3939
spec:css2; type:property; text:padding-right
40+
spec:css-borders-4; type:property; text:border-right
41+
spec:css-borders-4; type:property; text:border-left
42+
spec:css-borders-4; type:property; text:border-top
43+
spec:css-borders-4; type:property; text:border-bottom
4044

41-
# Non-exported definitions, which we should be free to use when -- some day --
45+
# Non-exported definitions, which we should be free to use when -- some day -- this is integrated into HTML.
4246
# this is integrated into the HTML spec.
4347
spec:html; type:dfn; text:missing value default
4448
spec:html; type:dfn; text:invalid value default
@@ -776,6 +780,7 @@ permission {
776780
whitespace: nowrap;
777781
user-select: none;
778782
appearance: auto;
783+
box-sizing: content-box !important;
779784
}
780785
</pre>
781786

@@ -801,6 +806,8 @@ permission {
801806
max-height: clamp(none, computed, 3em);
802807
min-width: clamp(none, computed, calc(fit-content));
803808

809+
border-width: clamp(none, computed, 1em);
810+
804811
margin: clamp(4px, computed, none);
805812
font-style: if(computed = "normal" or computed = "italic", computed, "normal");
806813
display: if (computed = "inline-block" or computed = "none", computed, "inline-block");
@@ -843,6 +850,75 @@ permission {
843850
}
844851
</pre>
845852

853+
The following CSS properties can be used normally:
854+
855+
* 'font-kerning'
856+
* 'font-optical-sizing'
857+
* 'font-stretch'
858+
* 'font-synthesis-weight'
859+
* 'font-synthesis-style'
860+
* 'font-synthesis-small-caps'
861+
* 'font-feature-settings'
862+
* 'forced-color-adjust'
863+
* 'text-rendering'
864+
* 'align-self'
865+
* 'anchor-name'
866+
* 'aspect-ratio'
867+
* 'border' and all
868+
[[css-backgrounds-3#border-shorthands|border shorthand properties]],
869+
'border-top', 'border-right', 'border-bottom', 'border-left'
870+
* 'clear'
871+
* 'color-scheme'
872+
* 'contain'
873+
* 'contain-intrinsic-width'
874+
* 'contain-intrinsic-height'
875+
* 'container-name'
876+
* 'container-type'
877+
* 'counter-reset', 'counter-increment', 'counter-set'
878+
* 'flex' and its longhands, 'flex-grow', 'flex-shrink', 'flex-basis'
879+
* 'float'
880+
* 'height'
881+
* 'isolation'
882+
* 'justify-self'
883+
* 'left'
884+
* 'order'
885+
* 'orphans'
886+
* 'outline' and mostly its [[css-ui-4#outline|longhands]],
887+
'outline-color' and 'outline-style'.
888+
<br>Note that 'outline-offset' is clamped by the rules above.
889+
* 'overflow-anchor'
890+
* 'overscroll-behavior' and its
891+
[[css-overscroll-1#overscroll-behavior-longhands-physical|longhands]],
892+
'overscroll-behavior-inline', 'overscroll-behavior-block',
893+
'overscroll-behavior-x', 'overscroll-behavior-y'
894+
* 'page'
895+
* 'position'
896+
* 'position-anchor'
897+
* 'content-visibility'
898+
* 'right'
899+
* 'scroll-margin' and its [[css-scroll-snap-1#longhands|longhands]],
900+
'scroll-margin-top', 'scroll-margin-right', 'scroll-margin'bottom',
901+
'scroll-margin-left'
902+
* 'scroll-padding' and its [[css-scroll-snap-1#longhands|longhands]],
903+
'scroll-padding-top', 'scroll-padding-right', 'scroll-padding-bottom',
904+
'scroll-padding-left', 'scroll-padding-inline-start',
905+
'scroll-padding-block-start', 'scroll-padding-block-start',
906+
'scroll-padding-inline-end', 'scroll-padding-block-end'
907+
* 'text-spacing-trim'
908+
* 'top'
909+
* 'visibility'
910+
* 'x'
911+
* 'y'
912+
* 'ruby-position'
913+
* 'user-select'
914+
* 'width'
915+
* 'will-change'
916+
* 'z-index'
917+
918+
Properties that are not listed above, or in the rules in this section,
919+
and aren't logically equivalent to one of the properties mentioned here,
920+
will be ignored.
921+
846922
## Falling Back ## {#fallback}
847923

848924
A [=user agent=] that does not support <{permission}> elements would

0 commit comments

Comments
 (0)