html
html copied to clipboard
HTML Standard
Spec: https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#cropped-to-the-source-rectangle-with-formatting Currently, imageOrientation is applied by createImageBItmap after cropping and resizing. The problem with this is that "flipY" causes the source image's EXIF orientation metadata to be ignored. In...
The current spec states the following about nested browsing contexts with identical URLs (for example, foo.html containing an iframe which loads foo.html). https://html.spec.whatwg.org/#the-iframe-element > If there exists an ancestor browsing...
The [`document`](https://html.spec.whatwg.org/#dom-document-2) attribute returns the [associated Document](https://html.spec.whatwg.org/#concept-document-window) and the [`history`](https://html.spec.whatwg.org/#dom-history) attribute is defined in terms of that as well. For [`navigator`](https://html.spec.whatwg.org/#dom-navigator) and [`location`](https://html.spec.whatwg.org/#dom-location), there isn't anything to suggest that these...
When you have Refresh: 0 Refresh: hi should that be treated as `0,hi` or an error? Most browsers treat it as the former, but at least for Firefox that's inconsistent...
[location-object-navigate](https://html.spec.whatwg.org/multipage/history.html#location-object-navigate) doesn't currently specify that a task is queued to perform the navigation. However, it looks like some browsers do queue this: ``` document.body.appendChild(document.createElement('iframe'));window[window.length-1].location = 'javascript:console.log(2);';console.log(1); ``` In IE, this...
As mentioned in https://github.com/whatwg/html/issues/5744 and https://github.com/whatwg/html/issues/5748, the factors that affect a page's eligibility to be preserved in BFCache differs between browsers, but some are consistent (e.g. `Cache-control: no-store`). I think...
As part of removing `text/cache-manifest` in #6153 I created a small demo for a fictional `text/cache-2` MIME type and while Firefox does download that, neither Chrome nor Safari do so,...
https://boom-bath.glitch.me/meta-refresh.html In Firefox after three seconds this does a same-document navigation. In Chrome after three seconds this does a full-page reload. In the spec, a meta refresh is a "replace"...
https://html.spec.whatwg.org/multipage/browsing-the-web.html#traverse-the-history 4.2.1 and 4.4.2 refer to updating history entries that are 'contiguous' same-origin. However, it's possible to have two non-contiguous entries that share a document: 1. https://static-misc-2.glitch.me/history-adventure/ 2. `location.href =...
Some changes I want to make to the session history traversal spec (as part of https://github.com/whatwg/html/pull/6315) that may need their own discussion: In the current spec, each history entry has...