@accesslint/core 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color-contrast.d.ts","sourceRoot":"","sources":["../../../src/rules/color/color-contrast.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"color-contrast.d.ts","sourceRoot":"","sources":["../../../src/rules/color/color-contrast.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAiFrC,eAAO,MAAM,aAAa,EAAE,IAuE3B,CAAC"}
|
|
@@ -4,5 +4,12 @@ export declare function getLuminance(r: number, g: number, b: number): number;
|
|
|
4
4
|
export declare function getContrastRatio(l1: number, l2: number): number;
|
|
5
5
|
export declare function parseColor(color: string): [number, number, number] | null;
|
|
6
6
|
export declare function getEffectiveBackgroundColor(el: Element): [number, number, number] | null;
|
|
7
|
+
/**
|
|
8
|
+
* Detects whether text may be visually overlaid on a media element (<img>,
|
|
9
|
+
* <picture>, <video>, <svg>) via CSS positioning. Returns true when either
|
|
10
|
+
* the text or a sibling media element is positioned out of normal flow
|
|
11
|
+
* within a shared positioning context — the common hero/card overlay pattern.
|
|
12
|
+
*/
|
|
13
|
+
export declare function mayBeOverImage(el: Element): boolean;
|
|
7
14
|
export declare function isLargeText(el: Element): boolean;
|
|
8
15
|
//# sourceMappingURL=color.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../src/rules/utils/color.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../src/rules/utils/color.ts"],"names":[],"mappings":"AAIA,wBAAgB,gBAAgB,IAAI,IAAI,CAIvC;AAED,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,OAAO,GAAG,mBAAmB,CAMvE;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAMpE;AAED,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAI/D;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAQzE;AAED,wBAAgB,2BAA2B,CAAC,EAAE,EAAE,OAAO,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAOxF;AAkCD;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,OAAO,GAAG,OAAO,CAMnD;AAgCD,wBAAgB,WAAW,CAAC,EAAE,EAAE,OAAO,GAAG,OAAO,CAMhD"}
|