Comments (1)
We discussed this internally today and decided to abandon this in favour of the pageconceal
idea on #9702. The summary is as follows:
-
The use-cases on #9702 will still remain since fundamentally
navigate
is at the beginning of the navigation lifecycle andpageconceal
will be at the end (right before commit). Both the opt-in and customization can depend on information known at commit time. -
A pro of letting authors provide the opt-in via
navigate
, instead ofpageconceal
, is performance. The API contract forpageconceal
will be as follows:-
If there is a ViewTransition, it blocks the new Document from painting (
pagereveal
must fire afterpageconceal
). Sopageconceal
delays the navigation from committing. -
If there is no ViewTransition, then committing the new Document can be done in parallel with hiding/unloading of the old Document.
This means knowing whether there is a VT opt-in in
navigate
avoids makingpageconceal
blocking. But having the opt-in onnavigate
makes another planned extension for the CSS opt-in complicated:@view-transition { navigation: auto; to: urlpattern(...); }
We'd like the
to
value here to apply to the final URL (after all redirects). If the author's CSS has an opt-in for a to value and script does an opt-out innavigate
, which one wins? And if the author does an opt-in vianavigate
but the CSS has an opt-out, does that still apply?We considered making
to
here correspond to the initial URL (instead of final URL), authors could handle the final URL scenarios in script. But it came up that same-origin redirects is a common enough use-case (for example with form submission or redirecting to the login screen) that keeping them declarative is nicer. -
Closing this issue to continue the discussion on #9702. Please re-open if I incorrectly assumed anything.
from html.
Related Issues (20)
- Define interaction with `field-sizing` CSS property and inline writing suggestions
- Storage event should probably fire on Document that didn't call localStorage getter
- Worklet agents and the event loop HOT 1
- Using multiple h1 tag in a page HOT 1
- Dark mode styling for "yes" table attributes is not ledgible HOT 1
- ImageBitmapRenderingContext: clarify behaviour with `premultiplyAlpha: "none"` createImageBitmap option and canvas HOT 2
- Improve DX of element reference attributes by allowing relative references instead of only ids HOT 6
- Render-blocking: the definition of "created by its node document's parser" is a little bit vague HOT 5
- UI Element Attribute
- align="justify" should align to start, not to left HOT 4
- "Align descendants" believes used margins are altered in overconstrained cases, but that's no longer the case HOT 2
- Clarification on Element reflected IDL attribute steps HOT 9
- Different parsing behavior for "</script>" and "</div>" strings HOT 1
- Nested comment tags. HOT 8
- It's not clear how constraint validation works for FACE if the 'validation anchor' is null HOT 2
- Upcoming WHATNOT meeting on 3/7/2024 HOT 4
- Add a way to automatically get script license and unminified code (if available)
- Clarify context of ยง4.12.2 the `<noscript>` element HOT 1
- Clarification for nested `kbd` elements
- textarea: attribute for content type
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from html.