Skip to content

Commit 5cc9ddd

Browse files
committed
[cssom] Cleanup some serialization bits.
Do not hardcode hz as the canonical unit for <frequency>, nor mm as the canonical unit for <length>. That doesn't reflect reality in any way. Sprinkle some issues about preserving units in specified values, which UAs do and probably CSSOM should spec, since there's no way to serialize relative stuff as px when values are not computed, plus UAs don't preserve units after computation. Fixes w3c#1554
1 parent 39494c2 commit 5cc9ddd

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

cssom-1/Overview.bs

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2517,7 +2517,10 @@ depends on the component, as follows:
25172517
<a lt="ASCII lowercase">converted to ASCII lowercase</a>.
25182518

25192519
<dt>&lt;angle>
2520-
<dd>The &lt;number> component serialized as per &lt;number> followed by the unit in canonical form as defined in its respective specification.
2520+
<dd>
2521+
The &lt;number> component serialized as per &lt;number> followed by the unit in canonical form as defined in its respective specification.
2522+
2523+
Issue: Probably should distinguish between specified and computed / resolved values.
25212524

25222525
<dt>&lt;color>
25232526
<dd>
@@ -2599,8 +2602,10 @@ depends on the component, as follows:
25992602

26002603

26012604
<dt>&lt;frequency>
2602-
<dd>The frequency in hertz serialized as per &lt;number> followed by
2603-
the literal string "<code>hz</code>".
2605+
<dd>
2606+
The &lt;number> component serialized as per &lt;number> followed by the unit in its canonical form as defined in its respective specification.
2607+
2608+
Issue: Probably should distinguish between specified and computed / resolved values.
26042609

26052610
<dt>&lt;identifier>
26062611
<dd>The identifier
@@ -2613,19 +2618,9 @@ depends on the component, as follows:
26132618

26142619
<dt>&lt;length>
26152620
<dd>
2616-
A length of zero is represented by the literal string
2617-
"<code>0px</code>".
2618-
2619-
Absolute lengths: the number of millimeters serialized as per
2620-
&lt;number> followed by the literal string "<code>mm</code>".
2621-
2622-
Issue: Rumor has it absolute lengths will become relative
2623-
lengths. Centimeters would be compatible with &lt;resolution>...
2624-
2625-
Relative lengths: the &lt;number> component serialized as per
2626-
&lt;number> followed by the unit in its canonical form as defined in its
2627-
respective specification.
2621+
The &lt;number> component serialized as per &lt;number> followed by the unit in its canonical form as defined in its respective specification.
26282622

2623+
Issue: Probably should distinguish between specified and computed / resolved values.
26292624

26302625
<dt>&lt;number>
26312626
<dd>

0 commit comments

Comments
 (0)