alfa
alfa copied to clipboard
Support styles set through presentational attributes
Several HTML attributes exist whose values map to CSS presentational hints, such as <body bgcolor="blue">. The @siteimprove/alfa-style package, however, does not currently support these.
The relevant attributes can be found here: https://html.spec.whatwg.org/multipage/rendering.html. Look for the phrase "the user agent is expected to treat the attribute as a presentational hint".
Needs more refinement. We should look into how Servo deals with this.
https://github.com/Siteimprove/alfa/blob/b4971a837d9424fd234be55c3d7f529e64caa0ba/packages/alfa-dom/src/style/rule/style.ts#L14