You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: css-content/Overview.bs
+13-6Lines changed: 13 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -986,9 +986,11 @@ Automatic counters and numbering: the 'counter-increment' and 'counter-reset' pr
986
986
<h2 id="bookmark-generation">
987
987
Bookmarks
988
988
</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'.
990
992
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>
992
994
993
995
<h3 id="bookmark-level">
994
996
bookmark-level
@@ -1008,7 +1010,7 @@ Computed value: specified value
1008
1010
</pre>
1009
1011
<dl dfn-type="value" dfn-for="bookmark-level">
1010
1012
<dt><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).
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
+
1025
1032
1026
1033
<h3 id="bookmark-label">
1027
1034
bookmark-label
@@ -1065,7 +1072,7 @@ The bookmark label will be “Loomings”.
1065
1072
<h3 id="bookmark-state">
1066
1073
bookmark-state
1067
1074
</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.
1069
1076
1070
1077
<pre class="propdef">
1071
1078
Name: bookmark-state
@@ -1079,9 +1086,9 @@ Computed value: specified value
1079
1086
</pre>
1080
1087
<dl dfn-type="value" dfn-for="bookmark-state">
1081
1088
<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.
1083
1090
<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.
1085
1092
</dl>
1086
1093
1087
1094
Issue: is the initial bookmark state, or the bookmark state updated by the UA as appropriate?
0 commit comments