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-gcpm/Overview.bs
+2-96Lines changed: 2 additions & 96 deletions
Original file line number
Diff line number
Diff line change
@@ -1006,105 +1006,11 @@ a::after { content: ", in the chapter entitled " target-text(attr(href url)) }
1006
1006
</div>
1007
1007
1008
1008
<h2 id="bookmarks">
1009
-
Bookmarks
1009
+
Bookmarks (moved)
1010
1010
</h2>
1011
-
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'.
1012
1011
1013
-
A bookmark references a point in the document, which we define to the be the intersection of the before edge and the start edge of the first box or box fragment generated by the element. When a user activates a bookmark, the user agent must bring that reference point to the user's attention, by moving to that page, scrolling (as defined in CSSOM View), or some other mechanism.
1012
+
Issue: Now described in [[CSS3-CONTENT]]
1014
1013
1015
-
<h3 id="bookmark-level">
1016
-
bookmark-level
1017
-
</h3>
1018
-
1019
-
The 'bookmark-level' property determines if a bookmark is created, and at what level. If this property is absent, or has value <code>none</code>, no bookmark should be generated, regardless of the values of 'bookmark-label' or 'bookmark-state'.
1020
-
1021
-
<pre class="propdef">
1022
-
Name: <dfn>bookmark-level</dfn>
1023
-
Value: none | <integer>
1024
-
Initial: none
1025
-
Applies to: all elements
1026
-
Inherited: no
1027
-
Percentages: N/A
1028
-
Media: visual
1029
-
Computed value: specified value
1030
-
</pre>
1031
-
<dl dfn-type="value" dfn-for="bookmark-level">
1032
-
<dt><integer></dt>
1033
-
<dd>defines the level of the bookmark, with the highest level being 1 (negative and zero values are invalid). </dd>
1034
-
<dt>none</dt>
1035
-
<dd>no bookmark is generated.</dd>
1036
-
</dl>
1037
-
1038
-
<div class="example">
1039
-
<pre>
1040
-
section h1 { bookmark-level: 1; }
1041
-
section section h1 { bookmark-level: 2; }
1042
-
section section section h1 { bookmark-level: 3; }
1043
-
</pre>
1044
-
1045
-
</div>
1046
-
1047
-
1048
-
<h3 id="bookmark-label">
1049
-
bookmark-label
1050
-
</h3>
1051
-
<pre class="propdef">
1052
-
Name: <dfn>bookmark-label</dfn>
1053
-
Value: <content-list>
1054
-
Initial: content(text)
1055
-
Applies to: all elements
1056
-
Inherited: no
1057
-
Percentages: N/A
1058
-
Media: visual
1059
-
Computed value: specified value
1060
-
</pre>
1061
-
<dl dfn-type="value" dfn-for="bookmark-label">
1062
-
<dt><content-list></dt>
1063
-
<dd><a href="#content-list"><content-list></a> is defined above, in the section on the 'string-set' property. The value of <a href="#content-list"><content-list></a> becomes the text content of the bookmark label.</dd>
1064
-
<!--
1065
-
<dt>none</dt>
1066
-
<dd>no bookmark is generated.</dd>
1067
-
-->
1068
-
</dl>
1069
-
1070
-
<div class="example">
1071
-
HTML:
1072
-
1073
-
<pre>
1074
-
<h1>Loomings</h1>
1075
-
</pre>
1076
-
CSS:
1077
-
1078
-
<pre>
1079
-
h1 {
1080
-
bookmark-label: content(text);
1081
-
bookmark-level: 1;
1082
-
}
1083
-
</pre>
1084
-
The bookmark label will be “Loomings”.
1085
-
</div>
1086
-
1087
-
<h3 id="bookmark-state">
1088
-
bookmark-state
1089
-
</h3>
1090
-
Bookmarks typically toggle open and closed, with the open state displaying the next level of bookmarks.
1091
-
1092
-
<pre class="propdef">
1093
-
Name: <dfn>bookmark-state</dfn>
1094
-
Value: open | closed
1095
-
Initial: open
1096
-
Applies to: block-level elements
1097
-
Inherited: no
1098
-
Percentages: N/A
1099
-
Media: visual
1100
-
Computed value: specified value
1101
-
</pre>
1102
-
<dl dfn-type="value" dfn-for="bookmark-state">
1103
-
<dt>open</dt>
1104
-
<dd>The bookmarks of the nearest descendants of an element with a bookmark-state of open will be displayed.</dd>
1105
-
<dt>closed</dt>
1106
-
<dd>any bookmarks of descendant elements are not initially displayed.</dd>
1107
-
</dl>
1108
1014
1109
1015
<h2 class="no-num" id="former-wd-sections">Appendix A: Where Are They Now?</h2>
0 commit comments