Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Clarify invisible text #29
The Paint Timing API says that a paint occurs when the browser has rendered pixels to the screen. Invisible text and whitespaces technically do not cause pixels to be rendered in the screen, but the text can still be highlighted or searched and this would probably cause pixels to be rendered in the screen. It's also not super clear to me how easy it is for browsers to keep track of all invisible text and differentiate it with visible text. The spec should probably clarify whether this kind of text triggers a First Paint and/or a First Contentful Paint. Also, explicit tests should be added to test the behavior when only this kind of text is rendered in a frame.