@webability/core 1.15.0 → 1.17.0
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.
- package/dist/dom.cjs +22 -22
- package/dist/dom.d.cts +1 -1
- package/dist/dom.d.ts +1 -1
- package/dist/dom.js +22 -22
- package/dist/engine.cjs +32 -32
- package/dist/engine.d.cts +86 -4
- package/dist/engine.d.ts +86 -4
- package/dist/engine.js +32 -32
- package/dist/index.cjs +39 -39
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +39 -39
- package/dist/playwright.cjs +31 -31
- package/dist/playwright.d.cts +1 -1
- package/dist/playwright.d.ts +1 -1
- package/dist/playwright.js +31 -31
- package/dist/{types-gjAJ8j0I.d.cts → types-Bk-B2Y9X.d.cts} +9 -2
- package/dist/{types-gjAJ8j0I.d.ts → types-Bk-B2Y9X.d.ts} +9 -2
- package/package.json +1 -1
|
@@ -10,10 +10,15 @@
|
|
|
10
10
|
* - every pixel fails the threshold -> the text fails wherever it sits: VIOLATION
|
|
11
11
|
* - any pixel passes -> the background is not uniformly bad: DROP
|
|
12
12
|
* (a mixed gradient is not a confident failure, and never a pass we claim)
|
|
13
|
+
* - gradient text (background-clip:text) has no backdrop to compare, so the
|
|
14
|
+
* painted glyph pixels are measured and the text fails on its 2nd percentile
|
|
15
|
+
* glyph pixel (the worst gradient stop), not on every pixel
|
|
16
|
+
* - a transform alone does not blend, so transformed boxes (swiper slides,
|
|
17
|
+
* translate3d) are measured; opacity < 1, mix-blend-mode and filter do
|
|
13
18
|
*
|
|
14
19
|
* Anything we cannot measure reliably (semi-transparent text, text over
|
|
15
|
-
* <video>/<canvas>/<iframe>,
|
|
16
|
-
*
|
|
20
|
+
* <video>/<canvas>/<iframe>, clipped boxes, no screenshot support) is
|
|
21
|
+
* dropped, never judged.
|
|
17
22
|
*/
|
|
18
23
|
|
|
19
24
|
interface PixelVerdict {
|
|
@@ -29,6 +34,8 @@ interface PixelVerdict {
|
|
|
29
34
|
bestBg?: string;
|
|
30
35
|
threshold: number;
|
|
31
36
|
fg: string;
|
|
37
|
+
/** True for background-clip:text gradients: `fg` is the worst painted glyph colour, `worstBg` the backdrop behind it. */
|
|
38
|
+
gradientText?: boolean;
|
|
32
39
|
}
|
|
33
40
|
|
|
34
41
|
/**
|
|
@@ -10,10 +10,15 @@
|
|
|
10
10
|
* - every pixel fails the threshold -> the text fails wherever it sits: VIOLATION
|
|
11
11
|
* - any pixel passes -> the background is not uniformly bad: DROP
|
|
12
12
|
* (a mixed gradient is not a confident failure, and never a pass we claim)
|
|
13
|
+
* - gradient text (background-clip:text) has no backdrop to compare, so the
|
|
14
|
+
* painted glyph pixels are measured and the text fails on its 2nd percentile
|
|
15
|
+
* glyph pixel (the worst gradient stop), not on every pixel
|
|
16
|
+
* - a transform alone does not blend, so transformed boxes (swiper slides,
|
|
17
|
+
* translate3d) are measured; opacity < 1, mix-blend-mode and filter do
|
|
13
18
|
*
|
|
14
19
|
* Anything we cannot measure reliably (semi-transparent text, text over
|
|
15
|
-
* <video>/<canvas>/<iframe>,
|
|
16
|
-
*
|
|
20
|
+
* <video>/<canvas>/<iframe>, clipped boxes, no screenshot support) is
|
|
21
|
+
* dropped, never judged.
|
|
17
22
|
*/
|
|
18
23
|
|
|
19
24
|
interface PixelVerdict {
|
|
@@ -29,6 +34,8 @@ interface PixelVerdict {
|
|
|
29
34
|
bestBg?: string;
|
|
30
35
|
threshold: number;
|
|
31
36
|
fg: string;
|
|
37
|
+
/** True for background-clip:text gradients: `fg` is the worst painted glyph colour, `worstBg` the backdrop behind it. */
|
|
38
|
+
gradientText?: boolean;
|
|
32
39
|
}
|
|
33
40
|
|
|
34
41
|
/**
|