alfa icon indicating copy to clipboard operation
alfa copied to clipboard

Support styles set through presentational attributes

Open kasperisager opened this issue 5 years ago • 2 comments

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".

kasperisager avatar Jun 26 '20 07:06 kasperisager

Needs more refinement. We should look into how Servo deals with this.

kasperisager avatar Feb 09 '21 08:02 kasperisager

https://github.com/Siteimprove/alfa/blob/b4971a837d9424fd234be55c3d7f529e64caa0ba/packages/alfa-dom/src/style/rule/style.ts#L14

Jym77 avatar Sep 13 '21 12:09 Jym77