Skip to content

Usage of textNode is overloaded #175

Description

@shubhamg13

Original Specifications

https://www.w3.org/TR/largest-contentful-paint/#compute-a-new-largest-contentful-paint-candidate

  1. For each textNode of paintedTextNodes,
  1. If textNode is not exposed for paint timing, given document, continue.
  1. If textNode has alpha channel value <=0 or opacity value <=0:
  1. If textNode’s text-shadow value is none, textNode’s stroke-color value is transparent and textNode’s stroke-image value is none, continue.
  1. 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

  1. 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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions