Skip to content

Commit 18f4173

Browse files
committed
[css-values] A few missed calc()-serialization fork edits.
1 parent 2f6ec1f commit 18f4173

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

css-values-3/Overview.bs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1607,22 +1607,6 @@ Computed Value</h4>
16071607
(e.g. <a href="https://www.w3.org/TR/CSS21/visudet.html#the-height-property">the <css>height</css> property</a>),
16081608
they apply whenever a ''calc()'' expression contains percentages.
16091609

1610-
<div class=note>
1611-
Note: The serialization rules do not preserve the structure of the computation,
1612-
so implementations can simplify the expressions
1613-
further than what is required here
1614-
when storing the values internally;
1615-
in particular, all ''calc()'' expressions can be reduced
1616-
to a sum of a <<number>>, a <<percentage>>, and some <<dimension>>s,
1617-
eliminating all multiplication or division,
1618-
and combining terms with identical units.
1619-
1620-
At this time, all units can be absolutized
1621-
to a single unit per type at computed-value time,
1622-
so at that point the ''calc()'' expression can be reduced
1623-
to just a <<number>>, a <<percentage>>, and a single absolute <<dimension>> of the appropriate type.
1624-
</div>
1625-
16261610
<div class='example'>
16271611
For example, 'background-position' has special behavior for percentage values, different from lengths:
16281612

css-values/Overview.bs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,6 +1693,8 @@ Range Checking</h4>
16931693
<h4 id='calc-serialize'>
16941694
Serialization</h4>
16951695

1696+
Issue: This section is still <a href="https://lists.w3.org/Archives/Member/w3c-css-wg/2016AprJun/0239.html">under discussion</a>.
1697+
16961698
To serialize a ''calc()'' value:
16971699

16981700
1. Simplify the expression by:

0 commit comments

Comments
 (0)