Skip to content

contentful text doesn't need to check opacity #129

Description

@shubhamg13

References

Reference 1

An element target is contentful when one or more of the following apply:

target has a text node child, representing non-empty text, and the node’s used opacity is greater than zero.

Reference 2

An element el is paintable when all of the following apply:

.
el and all of its ancestors' used opacity is greater than zero.

Reference 3

To know whether Document document should report first contentful paint, perform the following steps:

.
If document contains at least one element that is both paintable and contentful, then return true.

Inference

  1. opacity of text is already covered while checking paintable (from reference 2)
  2. contentful is only valid in conjunction with paintable (from reference 3)

Proposed change:

  1. Drop opacity for text (from reference 1) to make it consistent with others

Activity

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

Metadata

Metadata

Assignees

No one assigned

    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