Skip to content

Commit

Permalink
link to absolutely-positioned + minor grammatical changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gitspeaks committed Nov 20, 2024
1 parent fa31d84 commit 6a82cbf
Showing 1 changed file with 22 additions and 23 deletions.
45 changes: 22 additions & 23 deletions css2/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -8712,26 +8712,26 @@ available width), preferred width).</p>
</p>
<h4 id="abs-non-replaced-width">Absolutely positioned, non-replaced elements</h4>

<p>For the purposes of this section and the next, the term <span id="static-position"><span class="index">"static position"</span></span>
(of an element) refers, roughly,
to the position an element would have had in the normal flow. More
precisely:
<p>In this section and the next, the term <span id="static-position">
<span class="index">"static position"</span></span> (of an element)
refers roughly to where an [=absolutely positioned element=] would
appear in the normal flow if it was statically positioned.
More precisely:
</p>
<ul>
<li>The <dfn>static-position containing block</dfn> is the containing
block of a hypothetical box that would have been the first box of the
element if its specified 'position' value had been ''static''
[=absolutely positioned element=] if its specified 'position' value had been ''static''
and its specified 'float' had been ''float/none''. (Note that due to the rules
in <a href="#dis-pos-flo">section&nbsp;9.7</a> this
hypothetical calculation might require also assuming a different
computed value for 'display'.)
</li>
<li>The static position for 'left' is the distance from the left edge
of the containing block to the left margin edge of a hypothetical box
that would have been the first box of the element if its 'position' property had been ''static''
and 'float' had been ''float/none''. The
value is negative if the hypothetical
box is to the left of the containing block.
that would have been the first box of the [=absolutely positioned element=]
if its 'position' property had been ''static'' and 'float' had been ''float/none''.
The value is negative if the hypothetical box is to the left of the containing block.
</li>
<li>The static position for 'right' is the distance from the right
edge of the containing block to the right margin edge of the same
Expand All @@ -8749,8 +8749,8 @@ block of fixed positioned elements is the initial containing block
instead of the viewport, and all scrollable boxes should be assumed to
be scrolled to their origin.

<p>The constraint that determines the used values for these
elements is:</p>
<p>For [=absolutely positioned element=], the used values of the horizontal
dimensions must satisfy this constraint:</p>

<blockquote>
<p>'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width'
Expand Down Expand Up @@ -9272,15 +9272,14 @@ that the child box may be an <a href="#anonymous-block-level">anonymous block bo

<h4 id="abs-non-replaced-height">Absolutely positioned, non-replaced elements</h4>

<p>For the purposes of this section and the next, the term "static
position" (of an element) refers, roughly, to the position an element
would have had in the normal flow. More precisely, the static position
<p>In this section and the next, the term "static position" (of an element)
refers roughly to where an [=absolutely positioned element=] would appear in the
normal flow if it was statically positioned. More precisely, the static position
for 'top' is the distance from the top edge of the containing block to
the top margin edge of a hypothetical box that would have been the
first box of the element if its specified 'position' value had been ''static''
and its specified 'float' had been
''float/none'' and its specified 'clear'
had been ''clear/none''. (Note that due to the rules
the top margin edge of a hypothetical box that would have been the first box of
the absolutely positioned element if its specified 'position'
value had been ''static'' and its specified 'float' had been ''float/none''
and its specified 'clear' had been ''clear/none''. (Note that due to the rules
in <a href="#dis-pos-flo">section&nbsp;9.7</a> this might
require also assuming a different computed value for 'display'.)
The value is negative if the hypothetical box is above the containing
Expand All @@ -9294,8 +9293,8 @@ position.
block of fixed positioned elements is the initial containing block
instead of the viewport.

<p>For absolutely positioned elements, the used values of the vertical
dimensions must satisfy this constraint:</p>
<p>For [=absolutely positioned element|absolutely positioned elements=],
the used values of the vertical dimensions must satisfy this constraint:</p>

<blockquote>
<p>'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height'
Expand Down Expand Up @@ -9346,8 +9345,8 @@ values for 'margin-top' and 'margin-bottom' are set to 0 and solve for
<h4 id="abs-replaced-height">Absolutely positioned, replaced elements</h4>

<p>This situation is similar to the previous one, except that the
element has an <a href="#intrinsic">intrinsic</a> height. The
sequence of substitutions is now:
[=absolutely positioned element=] has an <a href="#intrinsic">intrinsic</a> height.
The sequence of substitutions is now:
</p>
<ol>

Expand Down

0 comments on commit 6a82cbf

Please sign in to comment.