Skip to content

Commit

Permalink
Merge pull request #65 from w3c/viewport
Browse files Browse the repository at this point in the history
Add link to viewport
  • Loading branch information
yoavweiss authored Mar 6, 2020
2 parents cb5e822 + 9270454 commit a3113c3
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 a3113c3

Please sign in to comment.