@@ -123,7 +123,7 @@ Introduction {#intro}
123
123
=====================
124
124
125
125
CSS stylesheets are parsed into abstract UA-internal data structures,
126
- the <dfn>underlying values</dfn> of CSS,
126
+ the <dfn for=CSS export >underlying values</dfn> of CSS,
127
127
which various specification algorithms manipulate.
128
128
129
129
Underlying values can't be directly manipulated,
@@ -192,7 +192,7 @@ with property |property|, cssText |cssText|, and parseMultiple set to true,
192
192
and return the result.
193
193
194
194
<div algorithm="parse a CSSStyleValue">
195
- To <dfn>parse a CSSStyleValue</dfn> given a [=string=] |property|, a [=string=] |cssText|,
195
+ To <dfn export >parse a CSSStyleValue</dfn> given a [=string=] |property|, a [=string=] |cssText|,
196
196
and a |parseMultiple| flag, run these steps:
197
197
198
198
1. If |property| is not a [=custom property name string=] ,
@@ -630,7 +630,7 @@ probably in an appendix.
630
630
as defined in [[css-syntax-3#tokenization]] .
631
631
{{CSSStyleValue}} objects can also be matched against these grammars, however.
632
632
633
- A {{CSSStyleValue}} is said to <dfn for=CSSStyleValue>match a grammar</dfn>
633
+ A {{CSSStyleValue}} is said to <dfn for=CSSStyleValue export >match a grammar</dfn>
634
634
based on the following rules:
635
635
636
636
* A {{CSSKeywordValue}} matches an [=ident=] specified in a grammar
@@ -654,14 +654,14 @@ probably in an appendix.
654
654
this section will become more complex.
655
655
</div>
656
656
657
- A [=string=] is a <dfn>custom property name string</dfn>
657
+ A [=string=] is a <dfn export >custom property name string</dfn>
658
658
if it starts with two dashes (U+002D HYPHEN-MINUS), like <code> --foo</code> .
659
659
(This corresponds to the <<custom-property-name>> production,
660
660
but applies to [=strings=] ,
661
661
rather than [=identifiers=] ;
662
662
it can be used without invoking the CSS parser.)
663
663
664
- A [=string=] is a <dfn>valid CSS property</dfn>
664
+ A [=string=] is a <dfn export >valid CSS property</dfn>
665
665
if it is a [=custom property name string=] ,
666
666
or is a CSS property name recognized by the user agent.
667
667
@@ -734,7 +734,7 @@ partial interface ElementCSSInlineStyle {
734
734
};
735
735
</pre>
736
736
737
- <dfn>Declared StylePropertyMap</dfn> objects
737
+ <dfn export >Declared StylePropertyMap</dfn> objects
738
738
represent style property-value pairs embedded in a style rule or inline style,
739
739
and are accessed via the <dfn attribute for=CSSStyleRule>styleMap</dfn> attribute of {{CSSStyleRule}} objects,
740
740
or the <dfn attribute for="ElementCSSInlineStyle">attributeStyleMap</dfn> attribute
@@ -1084,7 +1084,7 @@ The following are the arithmetic operations you can perform on dimensions:
1084
1084
</div>
1085
1085
1086
1086
<div algorithm>
1087
- To <dfn noexport for=CSSMath> negate</dfn> a {{CSSNumericValue}} |this|:
1087
+ To <dfn export for=CSSMath local-lt=" negate">negate a {{CSSNumericValue}}</dfn> |this|:
1088
1088
1089
1089
1. If |this| is a {{CSSMathNegate}} object,
1090
1090
return |this|’s {{CSSMathNegate/value}} internal slot.
@@ -1164,7 +1164,7 @@ The following are the arithmetic operations you can perform on dimensions:
1164
1164
</div>
1165
1165
1166
1166
<div algorithm>
1167
- To <dfn noexport for=CSSMath> invert</dfn> a {{CSSNumericValue}} |this|:
1167
+ To <dfn export for=CSSMath local-lt=" invert">invert a {{CSSNumericValue}}</dfn> |this|:
1168
1168
1169
1169
1. If |this| is a {{CSSMathInvert}} object,
1170
1170
return |this|’s {{CSSMathInvert/value}} internal slot.
@@ -1439,15 +1439,15 @@ The following are the arithmetic operations you can perform on dimensions:
1439
1439
</div>
1440
1440
1441
1441
<div algorithm="sum value">
1442
- A <dfn>sum value</dfn>
1442
+ A <dfn export for="CSSNumericValue" >sum value</dfn>
1443
1443
is an abstract representation of a {{CSSNumericValue}}
1444
1444
as a sum of numbers with (possibly complex) units.
1445
1445
Not all {{CSSNumericValue}} s can be expressed as a [=sum value=] .
1446
1446
1447
1447
A [=sum value=] is a [=list=] .
1448
- Each entry in the list is a [=tuple=] of a <dfn for="sum value">value</dfn> ,
1448
+ Each entry in the list is a [=tuple=] of a <dfn export for="sum value">value</dfn> ,
1449
1449
which is a number,
1450
- and a <dfn for="sum value">unit map</dfn> ,
1450
+ and a <dfn export for="sum value">unit map</dfn> ,
1451
1451
which is a [=ordered map|map=] of units (strings) to powers (integers).
1452
1452
1453
1453
<div class=example>
@@ -1469,7 +1469,7 @@ The following are the arithmetic operations you can perform on dimensions:
1469
1469
* ''calc(1px * 2deg)'' becomes `«(2, «["deg" → 1, "px" → 1] »)»`
1470
1470
</div>
1471
1471
1472
- To <dfn lt="create a sum value|creating a sum value">create a sum value</dfn> from a {{CSSNumericValue}} |this|,
1472
+ To <dfn export lt="create a sum value|creating a sum value">create a sum value</dfn> from a {{CSSNumericValue}} |this|,
1473
1473
the steps differ based on |this|’s class:
1474
1474
1475
1475
<dl class=switch>
@@ -1614,7 +1614,7 @@ The following are the arithmetic operations you can perform on dimensions:
1614
1614
</dl>
1615
1615
1616
1616
<div algorithm>
1617
- To <dfn>create a type from a unit map</dfn> |unit map|:
1617
+ To <dfn export >create a type from a unit map</dfn> |unit map|:
1618
1618
1619
1619
1. Let |types| be an initially empty [=list=] .
1620
1620
@@ -1628,7 +1628,7 @@ The following are the arithmetic operations you can perform on dimensions:
1628
1628
</div>
1629
1629
1630
1630
<div algorithm>
1631
- The <dfn>product of two unit maps</dfn> |units1| and |units2|
1631
+ The <dfn export >product of two unit maps</dfn> |units1| and |units2|
1632
1632
is the result given by the following steps:
1633
1633
1634
1634
1. Let |result| be a copy of |units1|.
@@ -1800,7 +1800,7 @@ and to the CSS [=math functions=].
1800
1800
</div>
1801
1801
1802
1802
<div algorithm>
1803
- To <dfn>apply the percent hint</dfn> |hint| to a |type|,
1803
+ To <dfn export >apply the percent hint</dfn> |hint| to a |type|,
1804
1804
perform the following steps:
1805
1805
1806
1806
1. If |type| doesn't [=map/contain=] |hint|, set |type|[|hint|] to 0.
0 commit comments