@@ -42,6 +42,7 @@ spec:css-values-4;
4242 text:cap
4343 type:dfn
4444 text:identifier
45+ spec:cssom-1; type:interface; text:CSS
4546spec:dom;
4647 type:interface; text:Document
4748 type:dfn; text:shadow tree
@@ -278,12 +279,13 @@ the computed value is one of the following:
278279 </pre>
279280
280281 and finally a document at <code> /index.html</code> :
281- <pre class='lang-html'>
282- <link href="/style/foo/foo.css" rel="stylesheet" type="text/css">
283- <link href="/style/bar/bar.css" rel="stylesheet" type="text/css">
284- <div style="background-image: var(--url-foo), var(--url-bar);">
285- </div>
286- </pre>
282+
283+ <xmp class='lang-html'>
284+ <link href="/style/foo/foo.css" rel="stylesheet" type="text/css">
285+ <link href="/style/bar/bar.css" rel="stylesheet" type="text/css">
286+ <div style="background-image: var(--url-foo), var(--url-bar);">
287+ </div>
288+ </xmp>
287289
288290 Here, the ''var(--url-foo)'' reference would produce a URL that resolves against
289291 <code> /style/foo</code> , and the ''var(--url-bar)'' reference would produce a URL that resolves
@@ -425,14 +427,14 @@ with a <<length>> or <<length-percentage>> syntax component:
425427<div class='example'>
426428 For example, given this registration:
427429
428- <pre class='lang-javascript'>
430+ <xmp class='lang-javascript'>
429431 CSS.registerProperty({
430432 name: "--my-font-size",
431- syntax: "< length>",
433+ syntax: "< length> ",
432434 initialValue: "0px",
433435 inherits: false
434436 });
435- </pre >
437+ </xmp >
436438
437439 the following will produce a dependency cycle:
438440
@@ -701,8 +703,8 @@ as arguments of the same names.
701703 execute these steps:
702704
703705 1. Let |property set|
704- be the value of the
705- <a>current global object's</a>
706+ be the value of [=this's=]
707+ [=relevant global object's=]
706708 <a>associated <code>Document</code></a> 's
707709 {{[[registeredPropertySet]]}} slot.
708710
@@ -825,14 +827,14 @@ the property becomes [=invalid at computed-value time=]
825827
826828 If we call:
827829
828- <pre class='lang-javascript'>
830+ <xmp class='lang-javascript'>
829831 CSS.registerProperty({
830832 name: "--my-color",
831- syntax: "< color>",
833+ syntax: "< color> ",
832834 initialValue: "black",
833835 inherits: false
834836 });
835- </pre >
837+ </xmp >
836838
837839 the parsing doesn't significantly change,
838840 regardless of whether the registration occurs before or after the stylesheet above.
@@ -1174,13 +1176,11 @@ Parsing The Syntax String {#parsing-syntax}
11741176CSSOM {#cssom}
11751177==============
11761178
1177- <div class=note>
1178- The value specified for a registered custom property is not
1179- interpreted until computed-value time. This means that only APIs that
1180- retrieve computed values are affected. Other APIs must ignore the
1181- {{[[registeredPropertySet]]}} slot of the associated {{Document}} , and
1182- treat all custom properties as unregistered.
1183- </div>
1179+ Note: The value specified for a registered custom property
1180+ is not interpreted until computed-value time.
1181+ This means that only APIs that retrieve computed values are affected.
1182+ Other APIs must ignore the {{[[registeredPropertySet]]}} slot of the associated {{Document}} ,
1183+ and treat all custom properties as unregistered.
11841184
11851185The <dfn interface>CSSPropertyRule</dfn> Interface {#the-css-property-rule-interface}
11861186-----------------------------------------------------------------------------
0 commit comments