Skip to content

Commit

Permalink
fix: [#1363] Add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
odanado committed Apr 4, 2024
1 parent d9574ed commit 9e0054e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/happy-dom/test/window/BrowserWindow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,8 @@ describe('BrowserWindow', () => {
--result4: var(--unknown, var(--unknown, var(--unknown, var(--unknown, white))));
--result5: var(--color1, var(--color2));
--result6: var(--unknown, blue);
--result6: var(--unknown, var(--color2));
--result7: var(--unknown, blue);
}
`;

Expand All @@ -618,6 +619,7 @@ describe('BrowserWindow', () => {

expect(computedStyle.getPropertyValue('--result5')).toBe('red');
expect(computedStyle.getPropertyValue('--result6')).toBe('blue');
expect(computedStyle.getPropertyValue('--result7')).toBe('blue');
});

it('Returns a CSSStyleDeclaration object with computed styles containing "rem" and "em" measurement values converted to pixels.', () => {
Expand Down

0 comments on commit 9e0054e

Please sign in to comment.