Bug 189304 - <legend align> should not map to text-align
Summary: <legend align> should not map to text-align
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: WPTImpact
Depends on:
Blocks: 188643
  Show dependency treegraph
 
Reported: 2018-09-05 06:38 PDT by Simon Pieters (:zcorpan)
Modified: 2023-01-13 04:20 PST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Comment 2 Ahmad Saleem 2023-01-13 04:20:07 PST
(In reply to Ahmad Saleem from comment #1)
> Safari Technology Preview 154 is still failing:
> 
> Live Test Link -
> http://wpt.live/html/rendering/non-replaced-elements/the-fieldset-and-legend-
> elements/legend-align-text-align.html
> 
> Live Test Link -
> http://wpt.live/html/rendering/non-replaced-elements/the-fieldset-and-legend-
> elements/legend-align.html
> 
> ______
> 
> https://wpt.fyi/results/html/rendering/non-replaced-elements/the-fieldset-
> and-legend-
> elements?label=master&label=experimental&aligned&view=subtest&q=legend-align.
> html
> 
> https://wpt.fyi/results/html/rendering/non-replaced-elements/the-fieldset-
> and-legend-
> elements?label=master&label=experimental&aligned&view=subtest&q=legend-align-
> text-align

Does by adding these UA Stylesheet rules, which we are missing, will fix these:

https://html.spec.whatwg.org/multipage/rendering.html#the-fieldset-and-legend-elements

```

legend[align=left i] {
  justify-self: left;
}

legend[align=center i] {
  justify-self: center;
}

legend[align=right i] {
  justify-self: right;
}

```

https://github.com/WebKit/WebKit/blob/main/Source/WebCore/css/html.css#L380