@swiftbrowser/web 0.6.5 → 0.6.7

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/styles.css +27 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swiftbrowser/web",
3
- "version": "0.6.5",
3
+ "version": "0.6.7",
4
4
  "type": "module",
5
5
  "description": "SwiftBrowser web renderer and dev server: applies render ops from a Swift/Wasm app to the DOM inside an iPhone frame.",
6
6
  "repository": {
package/src/styles.css CHANGED
@@ -2390,6 +2390,33 @@ svg[data-sb-symbol="progress.indicator"] > line:nth-child(8) { animation-delay:
2390
2390
  border-radius: 24px;
2391
2391
  }
2392
2392
 
2393
+ /* While a sheet slides in or out, the glass in it does not blur. What is
2394
+ painted over a backdrop filter is composited on its own, and WebKit on
2395
+ iOS does not draw such a layer while the card it is in runs an
2396
+ accelerated slide that starts mostly offscreen: a bar button's text was
2397
+ missing until the sheet had slid in, and vanished the moment a swipe let
2398
+ go of it (the capsule under it and the title beside it, painted with the
2399
+ card, kept sliding). Without the blur the text paints with the card. The
2400
+ capsules keep their translucent fill, over the card's own background for
2401
+ the 0.4 s. */
2402
+ .sb-sheet--in :is(.sb-bar-glass, .sb-navbar-back, .sb-navbar-more, .sb-button[data-sb-style="glass"]),
2403
+ .sb-sheet--out :is(.sb-bar-glass, .sb-navbar-back, .sb-navbar-more, .sb-button[data-sb-style="glass"]) {
2404
+ backdrop-filter: none;
2405
+ -webkit-backdrop-filter: none;
2406
+ }
2407
+
2408
+ /* For the same reason, while a sheet slides in or out, what scrolls in it
2409
+ does not. A list or scroll view taller than the card is a scroller, which
2410
+ WebKit on iOS composites on its own, and the bar runs over its top: the
2411
+ bar button's text, painted over it, is then composited on its own too,
2412
+ and was missing until a sheet of a long form had slid in (a short one,
2413
+ which does not scroll, was fine). `hidden` keeps the scroll offset, and
2414
+ the scroll bars are not drawn (`scrollbar-width: none`), so nothing moves. */
2415
+ .sb-sheet--in :is(.sb-list, .sb-scrollview),
2416
+ .sb-sheet--out :is(.sb-list, .sb-scrollview) {
2417
+ overflow: hidden;
2418
+ }
2419
+
2393
2420
  /* iOS 26 press feedback on Liquid Glass (src/press.ts): while a pointer is
2394
2421
  down on a bar button or a glass button, the glass under it (a bar
2395
2422
  capsule, the back and More circles, the sidebar toggle, a `.glass`