Skip to content

Commit 91c511b

Browse files
committed
[css-content] improve bookmark definitions, see #204
1 parent 0ac66d4 commit 91c511b

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

css-content/Overview.bs

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -986,9 +986,11 @@ Automatic counters and numbering: the 'counter-increment' and 'counter-reset' pr
986986
<h2 id="bookmark-generation">
987987
Bookmarks
988988
</h2>
989-
Some document formats, most notably PDF, allow the use of <dfn>bookmarks</dfn> as an aid to navigation. Bookmarks provide a hierarchy of links to document elements, as well as text to label the links. A bookmark has three properties: 'bookmark-level', 'bookmark-label', and 'bookmark-state'.
989+
Some document formats, most notably PDF, allow the use of <dfn>bookmarks</dfn> as an aid to navigation.
990+
Bookmarks provide a list of links to document elements, as well as text to label the links and a level value.
991+
A bookmark has three properties: 'bookmark-level', 'bookmark-label', and 'bookmark-state'.
990992

991-
A bookmark references that element in the document. When a user activates a bookmark, the user agent must bring that reference point to the user's attention, exactly as if navigating to that element by fragment URL. <span class="note">This will also trigger matching the '':target'' pseudo-class.</span>
993+
When a user activates a bookmark, the user agent must bring that reference point to the user's attention, exactly as if navigating to that element by fragment URL. <span class="note">This will also trigger matching the '':target'' pseudo-class.</span>
992994

993995
<h3 id="bookmark-level">
994996
bookmark-level
@@ -1008,7 +1010,7 @@ Computed value: specified value
10081010
</pre>
10091011
<dl dfn-type="value" dfn-for="bookmark-level">
10101012
<dt>&lt;integer>
1011-
<dd>defines the level of the bookmark, with the highest level being 1 (negative and zero values are invalid).
1013+
<dd>defines the level of the bookmark, with the top level being 1 (negative and zero values are invalid).
10121014
<dt>none
10131015
<dd>no bookmark is generated.
10141016
</dl>
@@ -1022,6 +1024,11 @@ section section section h1 { bookmark-level: 3; }
10221024

10231025
</div>
10241026

1027+
Note: Bookmarks do not need to create a strict hierarchy of levels.
1028+
1029+
1030+
Issue: Should a bookmark be created for elements with <code>display: none</code>?
1031+
10251032

10261033
<h3 id="bookmark-label">
10271034
bookmark-label
@@ -1065,7 +1072,7 @@ The bookmark label will be “Loomings”.
10651072
<h3 id="bookmark-state">
10661073
bookmark-state
10671074
</h3>
1068-
Bookmarks typically toggle open and closed, with the open state displaying the next level of bookmarks.
1075+
The 'bookmark-state' may be open or closed. The user must be able to toggle the bookmark state.
10691076

10701077
<pre class="propdef">
10711078
Name: bookmark-state
@@ -1079,9 +1086,9 @@ Computed value: specified value
10791086
</pre>
10801087
<dl dfn-type="value" dfn-for="bookmark-state">
10811088
<dt>open
1082-
<dd>The bookmarks of the nearest descendants of an element with a bookmark-state of open will be displayed.
1089+
<dd>Subsequent bookmarks with 'bookmark-level' greater than the given bookmark are displayed, until reaching another bookmark of the same level or lower. If one of subsequent bookmark is closed, apply the same test to determine if its subsequent bookmarks should be displayed.
10831090
<dt>closed
1084-
<dd>any bookmarks of descendant elements are not initially displayed.
1091+
<dd>Subsequent bookmarks of bookmark-level greater than the given bookmark are not displayed, until reaching another bookmark of the same level or lower.
10851092
</dl>
10861093

10871094
Issue: is the initial bookmark state, or the bookmark state updated by the UA as appropriate?

0 commit comments

Comments
 (0)