Bug 240652 - "text-indent" does not work on "optgroup" element
Summary: "text-indent" does not work on "optgroup" element
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: Safari 15
Hardware: All All
: P2 Critical
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-05-19 08:08 PDT by Chijin
Modified: 2023-05-15 00:59 PDT (History)
5 users (show)

See Also:


Attachments
webkit screenshot (91.56 KB, image/png)
2022-05-19 08:08 PDT, Chijin
no flags Details
firefox screenshot (204.42 KB, image/png)
2022-05-19 08:08 PDT, Chijin
no flags Details
chrome screenshot (204.42 KB, image/png)
2022-05-19 08:08 PDT, Chijin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chijin 2022-05-19 08:08:25 PDT
Created attachment 459588 [details]
webkit screenshot

reprodiciable example: https://codepen.io/chijinz/pen/KKQmbqV

code:
```
<html>
<head>
<style>
</style>
<script>
function jsfuzzer() {
document.getElementById("htmlvar00005").style["text-indent"] = "200px"
}
</script>
</head>
<body onload=jsfuzzer()>
<select id="htmlvar00004" multiple="multiple">
        <optgroup id="htmlvar00005" label="option1"></optgroup>
        <optgroup label="option2"></optgroup>
</select>
</body>
</html>

```

version: all webkit products (including Safari)

description:

The optgroup element does not change when setting the "text-indent". It does not follow the semantics of text-indent.

Chrome and FireFox work fine with it.
Comment 1 Chijin 2022-05-19 08:08:39 PDT
Created attachment 459589 [details]
firefox screenshot
Comment 2 Chijin 2022-05-19 08:08:50 PDT
Created attachment 459590 [details]
chrome screenshot
Comment 3 Radar WebKit Bug Importer 2022-05-26 08:09:13 PDT
<rdar://problem/93970684>