Releases: vivliostyle/vivliostyle.js
Releases · vivliostyle/vivliostyle.js
2016.4
See http://vivliostyle.com/en/documentation/supported-features/ for supported features.
Added
- Support printer marks (
marks
property) and bleed area (bleed
property) #98- Spec: CSS Paged Media Module Level 3 - Crop and Registration Marks: the 'marks' property, Bleed Area: the 'bleed' property
- Only effective when specified within an
@page
rule without page selectors.
- Support outline-offset #181
- Support font-feature-settings #151
- Support linear-gradient/radial-gradient #35
- Support substring matching attribute selectors
^=
,$=
and*=
#196 - Support
even
,odd
andan+b
arguments for:nth-child()
pseudo-class selector #87 #163 - Support
:nth-last-child()
,:nth-of-type()
,:nth-last-of-type()
,:last-child
,:first-of-type
,:last-of-type
,:only-child
and:only-of-type
pseudo-class selectors #86 #193 #194 - Support
:empty
pseudo-class selector #205 - Support UI states selectors (
:checked
,:enabled
and:disabled
) #206 #197- Spec: Selectors Level 3 - The UI element states pseudo-classes
- Note that the current implementation can use only initial states of those UI elements. Even if the actual state of the element is toggled by user interaction, the style does not change.
- Support
:not()
pseudo-class selector #195 - Support TeX and AsciiMath mathematics #108
- In a element with
data-math-typeset="true"
attribute, you can use TeX or AsciiMath mathematics. - TeX mathematics are indicated by delimiters
\(...\)
or$$...$$
. - AsciiMath mathematics are indicated by delimiters
...
.
- In a element with
Fixed
- Lengths in 'rem' specified within page context are now interpreted correctly #109
- Web fonts are now applied correctly even when specified within page context #58
- Fix incorrect pagination caused by absolutely positioned element #158
- Fix pagination problem with flex containers #174
- Truncate margins at unforced page/column breaks #83
- box-shadow / text-shadow is now supported #156
- Propagate and combine multiple break values at a single break point #129
- Fix problematic handling of prefixed properties #209 #210
- Fix
rem
calculation whenfont-size
is specified to thebody
element #217
2016.1
See http://vivliostyle.com/en/documentation/supported-features/ for supported features.
Added
- Support EPUB loading #60
loadEPUB
method ofViewer
class loads an unzipped EPUB directory.
- Support some EPUB features #62
- Support
page-progression-direction
attribute ofspine
element in OPF - Accept
-epub-
prefixedtext-emphasis-*
properties
- Support
- Support
:nth-child()
pseudo-class selector (only an integer argument can be used) #69 - Basic CSS Page Floats support #72
- Spec: CSS Page Floats
- Only basic float placement without stacking or collision avoidance is supported.
- Improve handling of @font-face rules #79
- Spec: CSS Fonts Module Level 3 - The @font-face rule
- Add support for
local()
as well asurl()
to use local fonts.
- Support JIS-B5 and JIS-B4 page sizes #75
- Accept flexbox properties #90
- Support
srcset
attribute forimg
andsource
elements #117
Changed
- Add default page margin #81
Fixed
- Fix zoom problem when viewport is specified by the document #61
- Fix incorrect layout of HTML which is well-formed as XML
- Fix viewport blinking while loading #77
- Fix media queries behavior #78 #80
- Fix calculation of
rem
unit values #82 - Improve MathJax performance #116
- Fix bug that rules above footnotes disappear #118
- Allow an EPUB directory URL not followed by a slash #120
- Change initial values of
orphans
andwidows
to 2 #30 - Allow page/column break inside tables #101
- Fix internal hyperlinks to elements with 'name' attributes #94
- Allow units spelled in upper case #36
- Fix handling of forced and avoid break values; update acceptable values for
break-*
properties #26 #103- Spec: CSS Fragmentation Module Level 3
- Note that the current implementation treats all values of
break-inside
other thanauto
as the same asavoid
. The fine-grained control (distinguishingavoid
,avoid-page
,avoid-column
andavoid-region
) will be a future task and tracked with a separate issue. - Note that though the spec requires to honor multiple
break-before
/break-after
values at a single break point, the current implementation choose one of them and discard the others. The fine-grained control of these break values will be a future task and tracked with a separate issue.
- Element names and attribute names in selectors are now treated in a case-insensitive manner #95
- Note that this behavior is incorrect for XML documents. This issue will be tracked at https://github.com/vivliostyle/vivliostyle.js/issues/106.
- Fix incorrect positioning of floats and clearance #135
- Fix attribute selector
~=
#137 - Fix initial value of
unicode-bidi
#137 - Fix support for
q
unit #137 - Avoid page break between ruby base and annotation #139
- Do not block entire process when stylesheets cannot be fetched or parsed #141
- Fix problem that pages with viewport specified have incorrect horizontal offset on screen #142
0.2.0 (beta)
Beta release. See Change Log for additional information.
Added
- [core] Support page background and document canvas background color
- Node: only simple background color is supported.
- [core, viewer] Layout is automatically updated when the window size is changed
- [core] Support page-based counters
- Spec: CSS Paged Media Module Level 3 - Page-based counters
- See the above pull request for a detailed description of its behavior and limitation.
- [core] Support page-margin boxes
- Spec: CSS Paged Media Module Level 3 - Page-Margin boxes
- Note: For now, 'quotes' property specified within the page/margin context is ignored. This issue will be tracked at https://github.com/vivliostyle/vivliostyle.js/issues/43.
- [core] Accept WOFF2 web fonts
Changed
- Viewer UI is separated to a new repository vivliostyle-js-viewer.
Fixed
- [core] Avoid incorrect margin collapse of the page area
- [core] Fix incorrect positioning of floats
- [viewer] Make keyboard shortcuts work on various browsers
- [core] Fix duplicating page when navigate to the last page of each spine
- [core] Fix several problems on web font loading
0.1.1 (alpha)
Minor update with several changes and bug fixes.
The first alpha version of the Chrome Extension (paginate arbitrary web content using Vivliostyle.js) is also provided.
Added
- [core] Support :root pseudo-class selector
- [core] Support CSS properties currently implemented by browsers
- See #18 for details.
Changed
- [core] Cascade page size specified in @page rules to page masters defined by @-epubx-page-master rules
- When @page rules and @-epubx-page-master rules are both specified, the page size specified by 'size' property in @page rules is applied to the selected page master. This behavior is not defined in the related specs. We added this behavior for a use case in which one wants to print content styled with Adaptive Layout on a paper sheet and wants to specify the sheet size by adding a (user) stylesheet containing @page rules with 'size' property.
Fixed
- [core] Fixed incorrect page layout when non-zero padding is specified in page context.
- [core] 'page-width', 'page-height' variables (used in -epubx-expr) are now correctly reflect the page size specified by @page rules
- [viewer] Fixed incorrect page size calculation when content with 'auto' page size is viewed in the spread view mode.
Alpha release
Initial alpha release. Following features are added while keeping the original Adaptive Layout features.
Added
- [core] Support @page rule
- Spec: CSS Paged Media Module Level 3
- Supported page selectors: :left, :right, :first, :recto, :verso
- Supported properties within the page context: size, width, height, margin, padding, border
- [viewer] Support spread view mode
- The spread view can be enabled by adding '&spread=true' to the end of the viewer URL.
- Note: Page size calculation is incorrect when content with 'auto' page size is viewed in the spread view mode. This problem will be fixed in the next release.
- [viewer] Added page navigation buttons