1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Take fill-alpha into account with default icons for FileAttachment annotations (issue 16800)

This commit is contained in:
Jonas Jenwald 2023-08-08 11:16:50 +02:00
parent 15c21d7758
commit e2819d0c67
5 changed files with 38 additions and 7 deletions

View file

@ -33,11 +33,16 @@
:is(.linkAnnotation, .buttonWidgetAnnotation.pushButton):not(.hasBorder)
> a,
.annotationLayer .popupTriggerArea::after,
.annotationLayer .fileAttachmentAnnotation .popupTriggerArea {
.annotationLayer
.fileAttachmentAnnotation:not(.hasFillAlpha)
.popupTriggerArea {
opacity: 0.2;
background: rgba(255, 255, 0, 1);
box-shadow: 0 2px 10px rgba(255, 255, 0, 1);
}
.annotationLayer .fileAttachmentAnnotation.hasFillAlpha {
outline: 2px solid yellow;
}
.annotationLayer .hasClipPath::after {
box-shadow: none;

View file

@ -0,0 +1 @@
https://github.com/mozilla/pdf.js/files/12287878/TS354.Week.2.slides.pdf

View file

@ -6270,6 +6270,16 @@
"type": "eq",
"annotations": true
},
{ "id": "issue16800",
"file": "pdfs/issue16800.pdf",
"md5": "771bc170a55f923d7903af28ccca196c",
"link": true,
"rounds": 1,
"firstPage": 2,
"lastPage": 2,
"type": "eq",
"annotations": true
},
{ "id": "issue14117",
"file": "pdfs/issue14117.pdf",
"md5": "9b1c33ad2f59f4e723c258e863149abf",