WICG / canvas-formatted-text

Other
80 stars 17 forks source link

what are the defaults for styles not explicitly specified in the data model? #49

Open ijprest opened 2 years ago

ijprest commented 2 years ago

The explainer documents don't explicitly state this anywhere, and probably should.

I suspect we want the default "font" properties (size, face, etc.) to come from the canvas' 2d context, or at least as much as possible.

What are the defaults for other CSS properties? Do we inherit values from the <canvas> tag? From the body/document? Other?

Thinking aloud: Taking values from any existing element might (?) pose invalidation issues.