| Summary: | [css-contain-intrinsic-size] Apply the value of css contain-intrinsic-size to <select> | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | cathiechen <cathiechen> | ||||
| Component: | CSS | Assignee: | cathiechen <cathiechen> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Bug Depends on: | 246944 | ||||||
| Bug Blocks: | 236707 | ||||||
| Attachments: |
|
||||||
|
Description
cathiechen
2022-10-11 07:28:35 PDT
The case 1 fails because `border: solid;` changes `part` from `MenulistPart` to `MenulistButtonPart` in `RenderTheme::adjustStyle`.
Then it goes different path:
```
case MenulistPart:
return adjustMenuListStyle(style, element);
case MenulistButtonPart:
return adjustMenuListButtonStyle(style, element);
```
After style adjust, the appearance is different.
It seems WebKit is using `RenderStyle::borderAndBackgroundEqual` to decide which appearance. I'm not sure if we should touch this part.
Created attachment 463194 [details] WIP-patch This patch is based on https://github.com/WebKit/WebKit/pull/1799. We can merge this easily, but the patch on 1799 is very large now, So I make this a separating patch. Pull request: https://github.com/WebKit/WebKit/pull/5868 Committed 257704@main (b7276669eb69): <https://commits.webkit.org/257704@main> Reviewed commits have been landed. Closing PR #5868 and removing active labels. |