Version 0.3.3
Highlights
DOM
The matches()
, querySelector()
and querySelectorAll()
methods were added.
See
- https://dom.spec.whatwg.org/#dom-element-matches
- https://dom.spec.whatwg.org/#dom-parentnode-queryselector
- https://dom.spec.whatwg.org/#dom-parentnode-queryselectorall
Transcoder
-
When transcoding an SVG image embedded in an HTML document that has several embedded SVGs, the
KEY_SVG_SELECTOR
transcoding hint can now be used to select which one we want. Otherwise the firstsvg
element in the document will be rendered. -
SVG files embedded in HTML documents that do not use namespaces at all (no namespace in the
html
nor thesvg
elements) are now supported. Note that if thehtml
element explicitly defines a namespace but thesvg
doesn't, the transcoding fails (this is also the behaviour on web browsers).
Detail of changes
- dom: implement
matches()
,querySelector()
andquerySelectorAll()
. - transcoder: add the
KEY_SVG_SELECTOR
transcoding hint. - transcoder: use
SVGConstants.SVG_SVG_TAG
inCSSTranscodingHelper
. - transcoder: support namespaceless svg elements inside plain HTML.
- transcoder: add a two-argument method to
CSSTranscodingHelper
, deprecate 3-args version. - Tests: add a test for the selector argument of
CSSTranscodingHelper
. - Tests: restore namespace settings to defaultFontFamily test.
- Upgrade to css4j 4.1.