Skip to content

Commit

Permalink
docs: update Browser Compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
weizhenye committed Aug 11, 2024
1 parent 15a9ef8 commit bc4e664
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ import ASS from '/path/to/assjs/dist/ass.min.js';
or a classic script:

```html
<script src="/path/to/assjs/dist/ass.global.min.js">
<script src="/path/to/assjs/dist/ass.global.min.js"></script>
<script>
console.log(window.ASS);
</script>
```

## Usage
Expand Down Expand Up @@ -127,9 +130,10 @@ ASS.js uses many Web APIs to render subtitles, some features will be disabled if
| - | - | - | - | - |
| `\[i]clip` | [clip-path](https://caniuse.com/css-clip-path) | 55 | 3.5 | 13.1 |
| Auto resize | [ResizeObserver](https://caniuse.com/resizeobserver) | 64 | 69 | 13.1 |
| Animations<br>(`\t`, `\move`, `\fade`, Effect) | [registerProperty()](https://caniuse.com/mdn-api_css_registerproperty_static) | 78 | 128 | 16.4 |
| Animations (`\t`) | [registerProperty()](https://caniuse.com/mdn-api_css_registerproperty_static) | 78 | 128 | 16.4 |
| `\q0` | [text-wrap: balance](https://caniuse.com/css-text-wrap-balance) | 114 | 121 | 17.5 |
| `\bord0` when BorderStyle=3 | [@container](https://caniuse.com/mdn-css_at-rules_container_style_queries_for_custom_properties) | 111 | - | 18.0 |
| BorderStyle=3 with `\bord0` | [@container](https://caniuse.com/mdn-css_at-rules_container_style_queries_for_custom_properties) | 111 | - | 18.0 |
| `\blur` with `\bord0` | [sign()](https://caniuse.com/mdn-css_types_sign) | - | 118 | 15.4 |

## TODO

Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,20 @@
},
"homepage": "https://ass.js.org/",
"devDependencies": {
"@microsoft/api-extractor": "^7.47.4",
"@microsoft/api-extractor": "^7.47.5",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.7",
"@rollup/plugin-terser": "^0.4.4",
"@vitest/browser": "^2.0.4",
"@vitest/coverage-istanbul": "^2.0.4",
"ass-compiler": "^0.1.12",
"@vitest/coverage-istanbul": "^2.0.5",
"ass-compiler": "^0.1.13",
"csso": "^5.0.5",
"eslint": "^8.57.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-unicorn": "^55.0.0",
"playwright": "^1.45.3",
"rollup": "^4.19.1",
"rollup": "^4.20.0",
"typescript": "^5.5.4",
"vitest": "^2.0.4"
}
Expand Down
1 change: 0 additions & 1 deletion src/renderer/position.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ export function getPosition(dialogue, store) {
][align.v]
: allocate(dialogue, store);
}
// TODO: use % for x and y
return {
x: x + [0, width / 2, width][align.h],
y: y + [height, height / 2, 0][align.v],
Expand Down

0 comments on commit bc4e664

Please sign in to comment.