diff --git a/src/pattern.js b/src/pattern.js index 8d69d3a92..b9715d867 100644 --- a/src/pattern.js +++ b/src/pattern.js @@ -38,6 +38,7 @@ var Pattern = (function PatternClosure() { // Both radial and axial shadings are handled by RadialAxial shading. return new Shadings.RadialAxial(dict, matrix, xref, res); default: + TODO('Unsupported shading type: ' + type); return new Shadings.Dummy(); } }; @@ -174,7 +175,12 @@ Shadings.Dummy = (function DummyClosure() { } Dummy.fromIR = function Dummy_fromIR() { - return 'hotpink'; + return { + type: 'Pattern', + getPattern: function Dummy_fromIR_getPattern() { + return 'hotpink'; + } + }; }; Dummy.prototype = { diff --git a/web/viewer.css b/web/viewer.css index c47dbf8fb..70d659c3d 100644 --- a/web/viewer.css +++ b/web/viewer.css @@ -578,7 +578,7 @@ html[dir='rtl'] .dropdownToolbarButton { margin:0; padding:0; border:none; - background: transparent; + background: rgba(0,0,0,0); /* Opera does not support 'transparent'