Skip to content

Commit 9ff007e

Browse files
committed
[css-typed-om] Fix bikeshed errors
1 parent 32fccc1 commit 9ff007e

File tree

1 file changed

+27
-116
lines changed

1 file changed

+27
-116
lines changed

css-typed-om/Overview.bs

+27-116
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Former Editor: Naina Raisinghani, Google, nainar@google.com, w3cid 100915
1717
Repository: w3c/css-houdini-drafts
1818
Inline Github Issues: title
1919
Ignored Vars: type, unit
20-
Ignored Terms: Drawable, paint image definition, list-valued property, list-valued property iteration, parse a CSSStyleValue, values to iterate over, CSS, PseudoElement, style
20+
Ignored Terms: Drawable, paint image definition, list-valued property, list-valued property iteration, parse a CSSStyleValue, values to iterate over, CSS, PseudoElement, style, reify a url, reify an image, reify a position
2121
Markup Shorthands: markdown yes
2222
</pre>
2323

@@ -60,7 +60,18 @@ spec:css-align-3; type:property; text:column-gap
6060
spec:css-color-4;
6161
type:property; text:color;
6262
type:value; text:currentcolor;
63-
spec:css-position-3; type:value; for:left; text:auto;
63+
spec:css-overflow-3;
64+
type: property; text: text-overflow;
65+
spec:css-position-3;
66+
type:value; for:left; text:auto;
67+
type: property;
68+
text: inset-block-start;
69+
text: inset-block-end;
70+
text: inset-inline-start;
71+
text: inset-inline-end;
72+
text: inset;
73+
text: inset-block;
74+
text: inset-inline;
6475
spec:css-shapes-1; type: property;
6576
text: shape-margin
6677
text: shape-outside
@@ -90,6 +101,8 @@ spec:css-transforms-1;
90101
type:property;
91102
text:transform;
92103
text:transform-origin;
104+
spec:css-ui-4;
105+
type: property; text: pointer-events;
93106
spec:css-values-4;
94107
type:type; text:<position>
95108
type:value; text:in
@@ -333,7 +346,7 @@ interface StylePropertyMap : StylePropertyMapReadOnly {
333346

334347
<div algorithm="StylePropertyMap.[[declarations]]">
335348
A {{StylePropertyMapReadOnly}} object
336-
has a <dfn attribute for="StylePropertyMapReadonly, StylePropertyMap">\[[declarations]]</dfn> internal slot,
349+
has a <dfn attribute for="StylePropertyMapReadOnly, StylePropertyMap">\[[declarations]]</dfn> internal slot,
337350
which is a [=map=] reflecting the [=CSS declaration block=]'s [=CSSStyleDeclaration/declarations=].
338351

339352
Note: The [=CSSStyleDeclaration/declarations=] are not yet defined using [[infra]] terminology,
@@ -471,7 +484,7 @@ probably in an appendix.
471484
</div>
472485

473486
<div algorithm>
474-
The <dfn attribute for="StylePropertyMapReadonly, StylePropertyMap">size</dfn> attribute,
487+
The <dfn attribute for="StylePropertyMapReadOnly, StylePropertyMap">size</dfn> attribute,
475488
on getting from a {{StylePropertyMap}} |this|,
476489
must perform the following steps:
477490

@@ -634,17 +647,15 @@ probably in an appendix.
634647
<dfn for=CSSStyleValue export lt="match a grammar | match the grammar">match a grammar</dfn>
635648
based on the following rules:
636649

637-
* A {{CSSKeywordValue}} matches an [=ident=] specified in a grammar
650+
* A {{CSSKeywordValue}} matches an <<identifier>> specified in a grammar
638651
if its {{CSSKeywordValue/value}} internal slot
639-
matches the [=ident=].
652+
matches the identifier.
640653

641-
If case-folding rules are in effect normally for that [=ident=]
654+
If case-folding rules are in effect normally for that <<identifier>>
642655
(such as ''Auto'' matching the keyword ''auto'' specified in the grammar for 'width'),
643656
they apply to this comparison as well.
644657
* A {{CSSTransformValue}} matches <<transform-list>>.
645658
* A {{CSSNumericValue}} matches what its type [=CSSNumericValue/matches=].
646-
* A {{CSSURLImageValue}} matches <<url>>.
647-
* Any subclass of {{CSSImageValue}} matches <<image>>.
648659
* A {{CSSUnparsedValue}} matches any grammar.
649660
* A direct {{CSSStyleValue}} object (not a subclass)
650661
with a non-null {{CSSStyleValue/[[associatedProperty]]}} slot
@@ -2909,7 +2920,7 @@ interface CSSColorValue : CSSStyleValue {
29092920

29102921
<table class=data>
29112922
<thead>
2912-
<tr><th>|colorspace|<th>{{CSSColorValue}} subclass
2923+
<tr><th>{{CSSColorValue/colorSpace}}<th>{{CSSColorValue}} subclass
29132924
</thead>
29142925
<tr><td>"rgb"<td>{{CSSRGB}}
29152926
<tr><td>"hsl"<td>{{CSSHSL}}
@@ -3201,7 +3212,7 @@ The {{CSSColor}} class represents the CSS ''color()'' function.
32013212
must, when invoked,
32023213
perform the following steps:
32033214

3204-
1. Let |colorspace| be replaced by the result of [=rectifying a keywordish value=].
3215+
1. Let |colorSpace| be replaced by the result of [=rectifying a keywordish value=].
32053216
Let each item in |channels| be replaced by the result of [=rectifying a percentish value=] from the item.
32063217
Let |alpha| be replaced by the result of [=rectifying a percentish value=].
32073218

@@ -3210,11 +3221,11 @@ The {{CSSColor}} class represents the CSS ''color()'' function.
32103221

32113222
3. Return a new {{CSSColor}}
32123223
with its {{CSSColor/colorspace}}, {{CSSColor/channels}}, and {{CSSColor/alpha}} internal slots
3213-
set to |colorspace|, |channels|, and |alpha|.
3224+
set to |colorSpace|, |channels|, and |alpha|.
32143225
</div>
32153226

3216-
<div algorithm="CSSColor.colorspace">
3217-
The <dfn attribute for=CSSColor>colorspace</dfn> attribute of a {{CSSColor}} value
3227+
<div algorithm="CSSColor.colorSpace">
3228+
The <dfn attribute for=CSSColor>colorSpace</dfn> attribute of a {{CSSColor}} value
32183229
must, on setting to a new value |val|,
32193230
[=rectify a keywordish value=] from |val|
32203231
and set the corresponding internal slot to the result of that.
@@ -3279,7 +3290,7 @@ The {{CSSDeviceCMYK}} class represents the CSS ''device-cmyk()'' function.
32793290
return |num|.
32803291

32813292
2. If |num| is a {{double}},
3282-
return a [=new unit value=] from (|num|*100, "percent").
3293+
return a [=create a CSSUnitValue from a pair|new unit value=] from (|num|*100, "percent").
32833294
</div>
32843295

32853296

@@ -3463,11 +3474,6 @@ for both specified and computed values.
34633474
[=reify an image=] from the value
34643475
and return the result.
34653476

3466-
: <a>background-image-transform</a>
3467-
:: For both specified and computed values,
3468-
[=reify an identifier=] from the value
3469-
and return the result.
3470-
34713477
: <a>background-position</a>
34723478
:: For both specified and computed values,
34733479
[=reify a position=] from the value
@@ -3633,11 +3639,6 @@ for both specified and computed values.
36333639
reify as a {{CSSStyleValue}}
36343640
and return the result.
36353641

3636-
: <a>border-image-transform</a>
3637-
:: For both specified and computed values,
3638-
[=reify an identifier=] from the value
3639-
and return the result.
3640-
36413642
: <a>border-inline</a>
36423643
::
36433644

@@ -3976,19 +3977,6 @@ for both specified and computed values.
39763977
2. Otherwise, reify as a {{CSSStyleValue}}
39773978
and return the result.
39783979

3979-
: <a>font-max-size</a>
3980-
:: For both specified and computed values:
3981-
3982-
1. If the value is an <<absolute-size>>, <<relative-size>> or <css>infinity</css>,
3983-
[=reify an identifier=] from the value
3984-
and return the result.
3985-
3986-
2. Otherwise, [=reify a numeric value=] from the value
3987-
and return the result.
3988-
3989-
: <a>font-min-size</a>
3990-
:: Same as 'font-size'
3991-
39923980
: <a>font-optical-sizing</a>
39933981
:: For both specified and computed values,
39943982
[=reify an identifier=] from the value
@@ -4004,11 +3992,6 @@ for both specified and computed values.
40043992
2. Otherwise, reify as a {{CSSStyleValue}}
40053993
and return the result.
40063994

4007-
: <a>font-presentation</a>
4008-
:: For both specified and computed values,
4009-
[=reify an identifier=] from the value
4010-
and return the result.
4011-
40123995
: <a>font-size</a>
40133996
:: For both specified and computed values:
40143997

@@ -4438,21 +4421,12 @@ for both specified and computed values.
44384421
: <a>offset</a>
44394422
::
44404423

4441-
: <a>offset-after</a>
4442-
::
4443-
44444424
: <a>offset-anchor</a>
44454425
::
44464426

4447-
: <a>offset-before</a>
4448-
::
4449-
44504427
: <a>offset-distance</a>
44514428
::
44524429

4453-
: <a>offset-end</a>
4454-
::
4455-
44564430
: <a>offset-path</a>
44574431
::
44584432

@@ -4462,9 +4436,6 @@ for both specified and computed values.
44624436
: <a>offset-rotate</a>
44634437
::
44644438

4465-
: <a>offset-start</a>
4466-
::
4467-
44684439
: <a>opacity</a>
44694440
:: For both specified and computed values,
44704441
[=reify a numeric value=] from the value
@@ -4754,33 +4725,9 @@ for both specified and computed values.
47544725
: <a>scroll-snap-type</a>
47554726
::
47564727

4757-
: <a>scrollbar-3dlight-color</a>
4758-
::
4759-
4760-
: <a>scrollbar-arrow-color</a>
4761-
::
4762-
4763-
: <a>scrollbar-base-color</a>
4764-
::
4765-
4766-
: <a>scrollbar-darkshadow-color</a>
4767-
::
4768-
4769-
: <a>scrollbar-face-color</a>
4770-
::
4771-
47724728
: <a>scrollbar-gutter</a>
47734729
::
47744730

4775-
: <a>scrollbar-highlight-color</a>
4776-
::
4777-
4778-
: <a>scrollbar-shadow-color</a>
4779-
::
4780-
4781-
: <a>scrollbar-track-color</a>
4782-
::
4783-
47844731
: <a>shape-inside</a>
47854732
::
47864733

@@ -4796,15 +4743,6 @@ for both specified and computed values.
47964743
: <a>shape-subtract</a>
47974744
::
47984745

4799-
: <a>size</a>
4800-
::
4801-
4802-
: <a>solid-color</a>
4803-
::
4804-
4805-
: <a>solid-opacity</a>
4806-
::
4807-
48084746
: <a>speak</a>
48094747
::
48104748

@@ -4915,7 +4853,7 @@ for both specified and computed values.
49154853
: <a>text-decoration-stroke</a>
49164854
::
49174855

4918-
: <a>text-decoration-width</a>
4856+
: <a>text-decoration-thickness</a>
49194857
::
49204858

49214859
: <a>text-emphasis-skip</a>
@@ -5427,26 +5365,6 @@ while CSS <<transform-function>> values become {{CSSTransformComponent}}s.
54275365
</div>
54285366

54295367

5430-
<<url>> (and subtype) Values {#reify-url}
5431-
--------------------------------------------------------------
5432-
5433-
Resource references are reified by determining whether the reference is invalid
5434-
(in which case {{CSSResourceValue/state}} is set to ''error'') or
5435-
requires network data (in which case {{CSSResourceValue/state}}
5436-
is set to ''loading''). If data is not required and the reference is valid then
5437-
{{CSSResourceValue/state}} is set to ''loaded''.
5438-
5439-
If {{CSSResourceValue/state}} is set to ''loading'' then the image
5440-
reference is reevaluated once the pending data becomes available, according to the
5441-
same rules referenced above.
5442-
5443-
Reification can not fail for {{CSSResourceValue}} objects.
5444-
5445-
<div class='example'>
5446-
The string 'url(''bike.png'')' is converted into a {{CSSURLImageValue}} with {{CSSResourceValue/state}} set to ''unloaded'' and the {{CSSURLImageValue/url}} set to ''https://drafts.css-houdini.org/css-typed-om/bike.png''.
5447-
</div>
5448-
5449-
54505368

54515369

54525370
<!--
@@ -5868,13 +5786,6 @@ length3.toString(); // "42px";
58685786
of |this|’s {{CSSMatrixComponent/matrix}} internal slot.
58695787
</div>
58705788

5871-
5872-
{{CSSURLImageValue}} Serialization {#urlimagevalue-serialization}
5873-
-----------------------------------------------------------
5874-
5875-
{{CSSURLImageValue}} objects are serialized to the string given by
5876-
'url("' + {{CSSURLImageValue/url}} + '")'.
5877-
58785789
Serialization from CSSOM Values {#cssom-serialization}
58795790
------------------------------------------------------
58805791

0 commit comments

Comments
 (0)