Skip to content

Commit

Permalink
Add link to viewport
Browse files Browse the repository at this point in the history
A request was made to add a link to the viewport.
Fixes #58
  • Loading branch information
npm1 authored Mar 6, 2020
1 parent cb5e822 commit 9270454
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion painttiming.bs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ urlPrefix: https://www.w3.org/TR/performance-timeline-2/; spec: PERFORMANCE-TIME
text: supportedEntryTypes; url: #supportedentrytypes-attribute
urlPrefix: https://www.w3.org/TR/hr-time-2/#idl-def-domhighrestimestamp; spec: HR-TIME-2;
type: typedef; text: DOMHighResTimeStamp
urlPrefix: https://www.w3.org/TR/CSS2/visuren.html; spec: CSS-2;
type: dfn; url: #viewport; text: viewport
</pre>

Introduction {#intro}
Expand Down Expand Up @@ -64,7 +66,7 @@ Formally, we consider the user agent to have "rendered" a document when it has p

<dfn export>First Contentful Paint</dfn> entry contains a {{DOMHighResTimeStamp}} reporting the time when the user agent first rendered any text, image (including background images), non-white canvas or SVG. This excludes any content of iframes, but includes text with pending webfonts. This is the first time users could start consuming page content.

Whenever a user agent preemptively paints content outside of the viewport, those paints MUST be considered for <a>First Paint</a> and <a>First Contentful Paint</a>.
Whenever a user agent preemptively paints content outside of the [=viewport=], those paints MUST be considered for <a>First Paint</a> and <a>First Contentful Paint</a>.

NOTE: a user agent has freedom to choose their own strategy for painting. Such strategy could even be to never paint content that is outside of the viewport. Therefore, different user agents can have different behaviors for <a>First Paint</a> and <a>First Contentful Paint</a> in edge cases where the only content occurs outside of the viewport.

Expand Down

0 comments on commit 9270454

Please sign in to comment.