Original Specifications
https://www.w3.org/TR/largest-contentful-paint/#compute-a-new-largest-contentful-paint-candidate
- For each textNode of paintedTextNodes,
- If textNode is not exposed for paint timing, given document, continue.
- If textNode has alpha channel value <=0 or opacity value <=0:
- If textNode’s text-shadow value is none, textNode’s stroke-color value is transparent and textNode’s stroke-image value is none, continue.
- Let intersectionRect be the union of the border boxes of all Text nodes in textNode’s set of owned text nodes, intersected with the visual viewport.
List of References
From: https://www.w3.org/TR/paint-timing/#sec-recording-paint-timing
Each Element has a set of owned text nodes, which is an ordered set of Text nodes, initially empty. (b)
Each Document has a set of elements with rendered text, which is an ordered set of Elements, initially empty. (a)
From: https://www.w3.org/TR/paint-timing/#mark-paint-timing
- Append element to paintedTextNodes. (c)
From: https://www.w3.org/TR/css-color-4/#the-color-property
Applies to:: all elements and text (d)
This property specifies the primary foreground color of the element. This is used as the fill color of its text content
From: https://www.w3.org/TR/css-text-decor-3/#text-shadow-property
This property accepts a comma-separated list of shadow effects to be applied to the text of the element. (e)
From: https://www.w3.org/TR/fill-stroke-3/#text-decor
For handling fills and strokes on text decorations, two sets of fill and stroke properties are defined (f)
Original Specifications
https://www.w3.org/TR/largest-contentful-paint/#compute-a-new-largest-contentful-paint-candidate
List of References
From: https://www.w3.org/TR/paint-timing/#sec-recording-paint-timing
From: https://www.w3.org/TR/paint-timing/#mark-paint-timing
From: https://www.w3.org/TR/css-color-4/#the-color-property
From: https://www.w3.org/TR/css-text-decor-3/#text-shadow-property
From: https://www.w3.org/TR/fill-stroke-3/#text-decor