diff --git a/apps/readest-lite/QA.md b/apps/readest-lite/QA.md index c149ad103..d6dfdf9af 100644 --- a/apps/readest-lite/QA.md +++ b/apps/readest-lite/QA.md @@ -219,10 +219,9 @@ while KOReader is open; close the owner's Lite only after 5 idle minutes and reo | Tables, collapsed borders | The outer border takes the cells' width when the table's own is wider (a 40x30 table where Chromium's is 44x34); a cell's box takes its whole border where Chromium's takes half (24x14 where Chromium's is 23x13, with 1 px borders); the table's padding applies, where Chromium ignores it | Blitz's border-collapse resolution | Open | | Steps after a tap | Readest's tapped element (or what replaced it there) keeps `:hover` | The harness clicks with a mouse that stays in CEF; Lite gets a finger | Harness: reader-links step 5's darker gray button passes the ink check | | Comic and fixed-layout pages | Boxes in hidden page frames: Readest gives a `display: none` frame's document no boxes and a frame with no `src` an empty `about:blank` document; Lite lays out the first and gives the second no document | Blitz | Open, nothing visible (format-cbz, every step) | -| Toasts | 271 px wide where Readest's is 432, and the close button lies outside the box, unseen | The toast is `width: max-content`; in Taffy's max-content size of a flex row, a scroll container item (the message, `overflow-y: auto`) counts its flex basis without its `min-width: 60vw` | Open (opds-catalog step 12) | | A textarea | No resize grip at its corner | Blitz draws none | Open, small | | Online Library's catalog list | Its scroll box (`overflow-y: auto; pb-4`) is 15 px taller: 31 px under its content where Readest has 16 | Not found yet (15 px is a classic scrollbar's width) | Open, below the fold (opds-catalog step 9) | -| Tables, an empty `
` | No box; Chromium gives it a zero-height box at its place | Lite's row group rect comes from its rows' grid tracks | Open, nothing visible (opds-catalog step 11) | +| Tables, an empty `` | No box; Chromium gives it a zero-height box at its place | Lite's row group rect comes from its rows' grid tracks | Open, nothing visible (opds-catalog steps 11-12) | | Forms | Enter in a field submits only a form with one text field, with no `submit` event; an empty `required` field doesn't stop a submit | Blitz's implicit submission; Lite has no constraint validation | Open | ## 7. Plan diff --git a/apps/readest-lite/crates/tauri-runtime-blitz/tests/flex_scroll_contribution.rs b/apps/readest-lite/crates/tauri-runtime-blitz/tests/flex_scroll_contribution.rs new file mode 100644 index 000000000..2cacd78b5 --- /dev/null +++ b/apps/readest-lite/crates/tauri-runtime-blitz/tests/flex_scroll_contribution.rs @@ -0,0 +1,48 @@ +//! A scroll container in a flex row contributes its size to the row's max-content width clamped +//! by its `min-width` and `max-width`, as any item does. readest-app's toast is a `width: +//! max-content` column holding such a row, its message `flex: 1; overflow-y: auto; min-width: +//! 60vw`: Taffy counted the message's flex basis unclamped, so the toast was 271 px wide where +//! Readest's is 432, and its close button lay outside it. Expected values are Chromium's for the +//! same page. + +use blitz_dom::{Document as _, DocumentConfig}; +use blitz_qjs_script::QjsDocument; +use blitz_traits::shell::{ColorScheme, Viewport}; + +fn row(id: u32, text: &str, extra: &str) -> String { + format!( + "