mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-24 04:02:19 +00:00
* Icons keep their glyph under a page-wide .ui-icon rule * Changelog fragment for #1917
22 lines
660 B
JavaScript
22 lines
660 B
JavaScript
import assert from 'node:assert/strict';
|
|
import { readFileSync } from 'node:fs';
|
|
import test from 'node:test';
|
|
|
|
const kit = readFileSync(new URL('./kit.css', import.meta.url), 'utf8').replace(
|
|
/\/\*[\s\S]*?\*\//g,
|
|
'',
|
|
);
|
|
|
|
test("an icon's glyph stays in its box under a page-wide jQuery UI .ui-icon rule", () => {
|
|
const rule = kit.match(/\.ui-icon\.ui-icon\s*\{([^}]*)\}/);
|
|
assert.ok(rule, 'a doubled class outranks a single-class .ui-icon rule');
|
|
for (const declaration of [
|
|
/text-indent:\s*0/,
|
|
/overflow:\s*visible/,
|
|
/background-image:\s*none/,
|
|
/width:\s*auto/,
|
|
/height:\s*auto/,
|
|
])
|
|
assert.match(rule[1], declaration);
|
|
});
|