Implement the size presentational hint for <hr> elements (#37211)

This presentational hint either sets the width values of all borders,
removes the bottom border or sets the height of the element, depending
on the context.

This change also implements the corresponding idl attribute (and the
`noshade` attribute, which does nothing in html5)

Testing: Adds new web platform tests

---------

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
Simon Wülker 2025-06-03 13:22:44 +02:00 committed by GitHub
parent b4035cc88e
commit 8937542fe3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 204 additions and 251 deletions

View file

@ -12,14 +12,9 @@ interface HTMLHRElement : HTMLElement {
// https://html.spec.whatwg.org/multipage/#HTMLHRElement-partial
partial interface HTMLHRElement {
[CEReactions]
attribute DOMString align;
[CEReactions]
attribute DOMString color;
// [CEReactions]
// attribute boolean noShade;
// [CEReactions]
// attribute DOMString size;
[CEReactions]
attribute DOMString width;
[CEReactions] attribute DOMString align;
[CEReactions] attribute DOMString color;
[CEReactions] attribute boolean noShade;
[CEReactions] attribute DOMString size;
[CEReactions] attribute DOMString width;
};