Skip to content

Commit 3696b7d

Browse files
author
Simon Pieters
committed
[cssom] Editorial: markup tweak
1 parent a676651 commit 3696b7d

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

cssom/Overview.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2239,8 +2239,8 @@ <h4 id="the-cssstyledeclaration-interface"><span class="secno">6.5.1 </span>The
22392239
the string "<code title="">important</code>".</p>
22402240
<li><p>Return the empty string.
22412241
</ol>
2242-
<p class="example">E.g. for <code title="">background-color:lime !IMPORTANT</code> the return
2243-
value would be "<code title="">important</code>".</p>
2242+
<div class="example"><p>E.g. for <code title="">background-color:lime !IMPORTANT</code> the return
2243+
value would be "<code title="">important</code>".</div>
22442244

22452245
<p>The <dfn id="dom-cssstyledeclaration-setproperty" title="dom-CSSStyleDeclaration-setProperty"><code>setProperty(<var>property</var>, <var>value</var>,
22462246
<var>priority</var>)</code></dfn> method must run these steps:</p>
@@ -2308,7 +2308,7 @@ <h4 id="the-cssstyledeclaration-interface"><span class="secno">6.5.1 </span>The
23082308
algorithm for <var>camel-cased attribute</var>, as second argument the given value, and no third argument. Any
23092309
exceptions thrown must be re-thrown.</p>
23102310

2311-
<p class="example">For example, for the 'font-size' property there would be a <code title="">fontSize</code> IDL attribute.
2311+
<div class="example"><p>For example, for the 'font-size' property there would be a <code title="">fontSize</code> IDL attribute.</div>
23122312

23132313
<!-- [GA] Remove spec text for so called "dashed-attribute" until consensus obtains on whether to include in spec.
23142314
@@ -2427,11 +2427,11 @@ <h4 id="serializing-css-values"><span class="secno">6.6.2 </span>Serializing CSS
24272427
properties), omit them. If this would remove all the values, then
24282428
include the first allowed value.</p>
24292429

2430-
<p class="example">E.g. <code title="">margin: 20px 20px</code> becomes
2431-
<code title="">margin: 20px</code>.</p>
2430+
<div class="example"><p>E.g. <code title="">margin: 20px 20px</code> becomes
2431+
<code title="">margin: 20px</code>.</div>
24322432

2433-
<p class="example">E.g. the value <code title="">0</code> for the
2434-
'border' property.</p>
2433+
<div class="example"><p>E.g. the value <code title="">0</code> for the
2434+
'border' property.</div>
24352435
</li>
24362436

24372437
<li><p>If the value of a shorthand property is requested and it cannot be

cssom/Overview.src.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2162,8 +2162,8 @@ <h4>The <code title>CSSStyleDeclaration</code> Interface</h4>
21622162
the string "<code title>important</code>".</p>
21632163
<li><p>Return the empty string.
21642164
</ol>
2165-
<p class='example'>E.g. for <code title>background-color:lime !IMPORTANT</code> the return
2166-
value would be "<code title>important</code>".</p>
2165+
<div class='example'><p>E.g. for <code title>background-color:lime !IMPORTANT</code> the return
2166+
value would be "<code title>important</code>".</div>
21672167

21682168
<p>The <dfn title=dom-CSSStyleDeclaration-setProperty><code>setProperty(<var>property</var>, <var>value</var>,
21692169
<var>priority</var>)</code></dfn> method must run these steps:</p>
@@ -2231,7 +2231,7 @@ <h4>The <code title>CSSStyleDeclaration</code> Interface</h4>
22312231
algorithm for <var>camel-cased attribute</var>, as second argument the given value, and no third argument. Any
22322232
exceptions thrown must be re-thrown.</p>
22332233

2234-
<p class=example>For example, for the 'font-size' property there would be a <code title>fontSize</code> IDL attribute.
2234+
<div class=example><p>For example, for the 'font-size' property there would be a <code title>fontSize</code> IDL attribute.</div>
22352235

22362236
<!-- [GA] Remove spec text for so called "dashed-attribute" until consensus obtains on whether to include in spec.
22372237
@@ -2350,11 +2350,11 @@ <h4>Serializing CSS Values</h4>
23502350
properties), omit them. If this would remove all the values, then
23512351
include the first allowed value.</p>
23522352

2353-
<p class="example">E.g. <code title>margin: 20px 20px</code> becomes
2354-
<code title>margin: 20px</code>.</p>
2353+
<div class="example"><p>E.g. <code title>margin: 20px 20px</code> becomes
2354+
<code title>margin: 20px</code>.</div>
23552355

2356-
<p class="example">E.g. the value <code title>0</code> for the
2357-
'border' property.</p>
2356+
<div class="example"><p>E.g. the value <code title>0</code> for the
2357+
'border' property.</div>
23582358
</li>
23592359

23602360
<li><p>If the value of a shorthand property is requested and it cannot be

0 commit comments

Comments
 (0)