diff --git a/layout/style/res/forms.css b/layout/style/res/forms.css index 7fdcfa915f78..66b2ee814eda 100644 --- a/layout/style/res/forms.css +++ b/layout/style/res/forms.css @@ -329,6 +329,9 @@ option { display: block; float: none !important; position: static !important; + /* This makes sure that it is a containing block for positioned descendants. */ + will-change: transform !important; + min-block-size: 1em; padding-block: 2px; /* diff --git a/testing/web-platform/tests/html/rendering/non-replaced-elements/form-controls/select-fixedpos-crash.html b/testing/web-platform/tests/html/rendering/non-replaced-elements/form-controls/select-fixedpos-crash.html new file mode 100644 index 000000000000..47046f6c2533 --- /dev/null +++ b/testing/web-platform/tests/html/rendering/non-replaced-elements/form-controls/select-fixedpos-crash.html @@ -0,0 +1,22 @@ + + + + + + + + +