Skip to content

Commit

Permalink
Merge pull request #3839 from dequelabs/release-2022-12-23
Browse files Browse the repository at this point in the history
chore(release): v4.6.2
  • Loading branch information
dylanb committed Jan 2, 2023
2 parents 3600bcb + 82819eb commit 9355e0d
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 11 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [4.6.2](https://github.com/dequelabs/axe-core/compare/v4.6.1...v4.6.2) (2022-12-23)

### Bug Fixes

- **color-contrast:** fix color-contrast check when running in an extension ([#3838](https://github.com/dequelabs/axe-core/issues/3838)) ([31a3e01](https://github.com/dequelabs/axe-core/commit/31a3e01e3df2ff4ab9ae4eebe93c644ce706a200))

### [4.6.1](https://github.com/dequelabs/axe-core/compare/v4.6.0...v4.6.1) (2022-12-14)

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "axe-core",
"version": "4.6.1",
"version": "4.6.2",
"contributors": [
{
"name": "David Sturley",
Expand Down
2 changes: 1 addition & 1 deletion doc/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ The `experimental`, `ACT` and `section508` tags are only added to some rules. Ea
| `wcag2aaa` | WCAG 2.0 Level AAA |
| `wcag21a` | WCAG 2.1 Level A |
| `wcag21aa` | WCAG 2.1 Level AA |
| `wcag21aaa` | WCAG 2.1 Level AAA |
| `wcag22aa` | WCAG 2.2 Level AA |
| `best-practice` | Common accessibility best practices |
| `wcag***` | WCAG success criterion e.g. wcag111 maps to SC 1.1.1 |
| `ACT` | W3C approved Accessibility Conformance Testing rules |
Expand Down
11 changes: 5 additions & 6 deletions lib/commons/color/get-background-color.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,25 +141,24 @@ function fullyEncompasses(node, rects) {
rects = Array.isArray(rects) ? rects : [rects];

const nodeRect = node.getBoundingClientRect();
let { right, bottom } = nodeRect;
const style = window.getComputedStyle(node);
const overflow = style.getPropertyValue('overflow');

if (
['scroll', 'auto'].includes(overflow) ||
node instanceof window.HTMLHtmlElement
) {
nodeRect.width = node.scrollWidth;
nodeRect.height = node.scrollHeight;
nodeRect.right = nodeRect.left + nodeRect.width;
nodeRect.bottom = nodeRect.top + nodeRect.height;
right = nodeRect.left + node.scrollWidth;
bottom = nodeRect.top + node.scrollHeight;
}

return rects.every(rect => {
return (
rect.top >= nodeRect.top &&
rect.bottom <= nodeRect.bottom &&
rect.bottom <= bottom &&
rect.left >= nodeRect.left &&
rect.right <= nodeRect.right
rect.right <= right
);
});
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "axe-core",
"description": "Accessibility engine for automated Web UI testing",
"version": "4.6.1",
"version": "4.6.2",
"license": "MPL-2.0",
"engines": {
"node": ">=4"
Expand Down
4 changes: 4 additions & 0 deletions sri-history.json
Original file line number Diff line number Diff line change
Expand Up @@ -330,5 +330,9 @@
"4.6.1": {
"axe.js": "sha256-5YoRtLPmXJjZaeVXOVTTPf6DtevHdYBfD4oxaCBDCXw=",
"axe.min.js": "sha256-8CV1yJR7ZBS/j8HkUf1OwOEib+WUH+QovSg8xOh9MVI="
},
"4.6.2": {
"axe.js": "sha256-s0nxznqMAZruIUcLdAZH24jit50KGy70xAjZn76l2qM=",
"axe.min.js": "sha256-EelQqyCeeroeVZcV89KAYgp8M/ZuqvmHQ+r67BBL5eA="
}
}

0 comments on commit 9355e0d

Please sign in to comment.