-
Notifications
You must be signed in to change notification settings - Fork 84
Browsers and Compatibility
Tobias Ortmayr edited this page Feb 10, 2020
·
2 revisions
This page lists all measures we have to take to maintain compatibility to a large set of browsers. It always is a good idea to update to the latest version if possible.
Our reference browser. Used during development and therefore well tested. Pretty fast.
Works, but performance is well behind Chrome.
Well tested, but performance is a bit behind Chrome. Workarounds in Code:
-
FocusFixDecorator
in order to react to key events, the SVG element needs to have atabindex
Workarounds in Code
- use
Element#parentNode
instead ofElement#parentElement
to traverse DOM (the latter returnsnull
for SVG elements) - use
Element#childNodes
instead ofElement#children
to traverse DOM (the latter returnsnull
for SVG elements) - doesn't support CSS property
dominant-baseline
ontext
elements (link). We therefore need to apply a layout to center text vertically, e.g. for the icon in the class diagram example. -
Polyfills:
-
dom4
to addclassList
toSVGElements
We have to support this as it is the only current browser back-end that works in SWT's browser widget on windows.
Compilation:
-
es5
target intsconfig.json
Workarounds in Code:
- all from MS Edge
- use
window.pageXOffset
instead ofwindow.scrollX
to recieve the top-scroll x value (the latter is not supported) - use
window.pageYOffset
instead ofwindow.scrollY
to recieve the top-scroll y value (the latter is not supported)
Polyfills:
-
core-js
to shim ES6 features - all from MS Edge
Eclipse's Internal Web browser uses Microsoft IE on Windows. Bug:
- If the language in the internet options of IE is German, SVG export will produce numbers with comma as decimal delimiter instead of a dot. These SVGs are broken. See this bug.
No issues yet