Fix for non-empty a[name] tags in openJdk based javadocs.
openJdk based android javadoc contains <a name=... tags
that are non-empty. Currently they are being hidden,
causing badly formatted pages for some java.* classes
(missing text and random whitespace blocks).
This change makes the existing a[name] hiding rule
apply only to empty tags.
Test: make docs
Bug: 31700998
Change-Id: Ifa75bbabe308d7aed0cce6165c1113e5a382a121
(cherry picked from commit a7edd92c45
)
This commit is contained in:
parent
b0553ca65b
commit
4bce2866fb
4 changed files with 10 additions and 11 deletions
|
@ -4217,7 +4217,7 @@ EndColorStr='#ececec');
|
|||
}
|
||||
|
||||
/* offset the <a name=""> tags to account for sticky nav */
|
||||
body.reference a[name] {
|
||||
body.reference a[name]:empty {
|
||||
visibility: hidden;
|
||||
display: block;
|
||||
position: relative;
|
||||
|
|
|
@ -3209,7 +3209,7 @@ table.jd-tagtable th {
|
|||
}
|
||||
|
||||
/* offset the <a name=""> tags to account for sticky nav */
|
||||
body.reference a[name] {
|
||||
body.reference a[name]:empty {
|
||||
visibility: hidden;
|
||||
display: block;
|
||||
position: relative;
|
||||
|
|
|
@ -3822,8 +3822,8 @@ td.gsc-search-button {
|
|||
display: none;
|
||||
}
|
||||
|
||||
/* offset the <a name=""> tags to account for sticky nav */
|
||||
body.reference a[name] {
|
||||
/* offset the empty <a name=""> tags to account for sticky nav */
|
||||
body.reference a[name]:empty {
|
||||
visibility: hidden;
|
||||
display: block;
|
||||
position: relative;
|
||||
|
|
|
@ -3822,15 +3822,14 @@ td.gsc-search-button {
|
|||
display: none;
|
||||
}
|
||||
|
||||
/* offset the <a name=""> tags to account for sticky nav */
|
||||
body.reference a[name] {
|
||||
/* offset the empty <a name=""> tags to account for sticky nav */
|
||||
body.reference a[name]:empty {
|
||||
visibility: hidden;
|
||||
display: block;
|
||||
position: relative;
|
||||
top: -56px;
|
||||
}
|
||||
|
||||
|
||||
/* Quicknav */
|
||||
.btn-quicknav {
|
||||
width:20px;
|
||||
|
|
Loading…
Reference in a new issue