Hard code autofill preview font for select and date/time inputs [chromium/src : main]

0 views
Skip to first unread message

David Baron (Gerrit)

unread,
Jun 11, 2026, 9:40:47 AMJun 11
to David Baron, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, kinuko...@chromium.org, jmedle...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org
Attention needed from Joey Arhar

David Baron added 4 comments

File third_party/blink/renderer/core/html/resources/html.css
Line 653, Patchset 3 (Latest): input:-internal-autofill-previewed::-webkit-datetime-edit-text-fields-wrapper {
David Baron . unresolved
```suggestion
input:-internal-autofill-previewed::-webkit-datetime-edit-fields-wrapper {
```
(and same below)
Line 654, Patchset 3 (Latest): font: monospace !important;
font-family: monospace !important;
David Baron . unresolved

`font: monospace` isn't valid syntax because the `font` shorthand requires both size and family. I suspect you want a fixed font size here although I'm not sure. So you probably want either `medium monospace` (fixed) or `1em monospace` (inherits the size). Or maybe actually you want what the old code was doing which was `font: -webkit-small-control` and then `font-family: monospace` which leaves all the aspects of `-webkit-small-control` except for the family, and then changes the family. (This might also suggest going back to 2 rules rather than 3, though maybe with a better comment.)

Although I'm also a little surprised by wanting `monospace` rather than a system font though I guess it's the existing style for textarea.

Line 674, Patchset 3 (Latest): /* Prevent that overflow affects the scrollable area. Without this,
David Baron . unresolved
```suggestion
/* Prevent overflow from affecting the scrollable area. Without this,
```
Line 687, Patchset 3 (Latest): }
input::-internal-input-suggested,
textarea::-internal-input-suggested {
David Baron . unresolved

No need to split these into separate rules, I think...
```suggestion
```

Open in Gerrit

Related details

Attention is currently required from:
  • Joey Arhar
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I089ffe93048038f42ac4e2c18bb88668cb050b41
Gerrit-Change-Number: 7885624
Gerrit-PatchSet: 3
Gerrit-Owner: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: David Baron <dba...@chromium.org>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Attention: Joey Arhar <jar...@chromium.org>
Gerrit-Comment-Date: Thu, 11 Jun 2026 13:40:33 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Joey Arhar (Gerrit)

unread,
Jun 18, 2026, 1:25:26 PM (10 days ago) Jun 18
to David Baron, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, kinuko...@chromium.org, jmedle...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org
Attention needed from David Baron

Joey Arhar added 4 comments

File third_party/blink/renderer/core/html/resources/html.css
Line 653, Patchset 3 (Latest): input:-internal-autofill-previewed::-webkit-datetime-edit-text-fields-wrapper {
David Baron . resolved
```suggestion
input:-internal-autofill-previewed::-webkit-datetime-edit-fields-wrapper {
```
(and same below)
Joey Arhar

Done

Line 654, Patchset 3 (Latest): font: monospace !important;
font-family: monospace !important;
David Baron . unresolved

`font: monospace` isn't valid syntax because the `font` shorthand requires both size and family. I suspect you want a fixed font size here although I'm not sure. So you probably want either `medium monospace` (fixed) or `1em monospace` (inherits the size). Or maybe actually you want what the old code was doing which was `font: -webkit-small-control` and then `font-family: monospace` which leaves all the aspects of `-webkit-small-control` except for the family, and then changes the family. (This might also suggest going back to 2 rules rather than 3, though maybe with a better comment.)

Although I'm also a little surprised by wanting `monospace` rather than a system font though I guess it's the existing style for textarea.

Joey Arhar

Whoops, yeah this shouldn't be set twice in a row like this, that was clearly a mistake.

Considering the vulnerability has to do with loading a custom font that the author specifies, I'm not sure that setting a specific font size helps at all. Do you think we should be?

And yes I chose monospace because thats the default for these elements. I'm leaning just doing font-family:monospace!important here and nothing else, but do you feel strongly that we should also be doing font:-webkit-small-control!important?

Line 674, Patchset 3 (Latest): /* Prevent that overflow affects the scrollable area. Without this,
David Baron . resolved
```suggestion
/* Prevent overflow from affecting the scrollable area. Without this,
```
Joey Arhar

Done

Line 687, Patchset 3 (Latest): }
input::-internal-input-suggested,
textarea::-internal-input-suggested {
David Baron . resolved

No need to split these into separate rules, I think...
```suggestion
```

Joey Arhar

Done

Open in Gerrit

Related details

Attention is currently required from:
  • David Baron
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I089ffe93048038f42ac4e2c18bb88668cb050b41
Gerrit-Change-Number: 7885624
Gerrit-PatchSet: 3
Gerrit-Owner: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: David Baron <dba...@chromium.org>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Attention: David Baron <dba...@chromium.org>
Gerrit-Comment-Date: Thu, 18 Jun 2026 17:25:09 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: David Baron <dba...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

David Baron (Gerrit)

unread,
Jun 22, 2026, 3:14:21 PM (6 days ago) Jun 22
to David Baron, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, kinuko...@chromium.org, jmedle...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org
Attention needed from Joey Arhar

David Baron added 1 comment

File third_party/blink/renderer/core/html/resources/html.css
Line 654, Patchset 3: font: monospace !important;
font-family: monospace !important;
David Baron . unresolved

`font: monospace` isn't valid syntax because the `font` shorthand requires both size and family. I suspect you want a fixed font size here although I'm not sure. So you probably want either `medium monospace` (fixed) or `1em monospace` (inherits the size). Or maybe actually you want what the old code was doing which was `font: -webkit-small-control` and then `font-family: monospace` which leaves all the aspects of `-webkit-small-control` except for the family, and then changes the family. (This might also suggest going back to 2 rules rather than 3, though maybe with a better comment.)

Although I'm also a little surprised by wanting `monospace` rather than a system font though I guess it's the existing style for textarea.

Joey Arhar

Whoops, yeah this shouldn't be set twice in a row like this, that was clearly a mistake.

Considering the vulnerability has to do with loading a custom font that the author specifies, I'm not sure that setting a specific font size helps at all. Do you think we should be?

And yes I chose monospace because thats the default for these elements. I'm leaning just doing font-family:monospace!important here and nothing else, but do you feel strongly that we should also be doing font:-webkit-small-control!important?

David Baron

So I think the old code did explicitly set the size for both input and textarea. I'd be inclined to keep that aspect of it since I don't think you need to *remove* it to fix the security bug and there may well be a reason for it.

So maybe it makes sense to:
* continue to have 3 rules
* replace the `select:-internal-autofill-previewed` selector in the first rule with `textarea::-internal-input-suggested`
* add a `select:-internal-autofill-previewed` selector to the second rule
* the above pair of changes mean that all three rules will now apply to `textarea::-internal-input-suggested`
* just do `font-family: monospace !important` in the second rule

This would mean the code continues to set the size for the input and textarea previews (as it has done), continues to set the same font family that it was for both of them (which has been different for input versus textarea), and then starts setting font family (but not size) for all the other pieces you're adding (select and the input date parts).

Open in Gerrit

Related details

Attention is currently required from:
  • Joey Arhar
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I089ffe93048038f42ac4e2c18bb88668cb050b41
Gerrit-Change-Number: 7885624
Gerrit-PatchSet: 4
Gerrit-Owner: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: David Baron <dba...@chromium.org>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Attention: Joey Arhar <jar...@chromium.org>
Gerrit-Comment-Date: Mon, 22 Jun 2026 19:14:10 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Joey Arhar <jar...@chromium.org>
Comment-In-Reply-To: David Baron <dba...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Joey Arhar (Gerrit)

unread,
Jun 22, 2026, 4:44:42 PM (6 days ago) Jun 22
to David Baron, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, kinuko...@chromium.org, jmedle...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org
Attention needed from David Baron

Joey Arhar added 1 comment

File third_party/blink/renderer/core/html/resources/html.css
Line 654, Patchset 3: font: monospace !important;
font-family: monospace !important;
David Baron . resolved

`font: monospace` isn't valid syntax because the `font` shorthand requires both size and family. I suspect you want a fixed font size here although I'm not sure. So you probably want either `medium monospace` (fixed) or `1em monospace` (inherits the size). Or maybe actually you want what the old code was doing which was `font: -webkit-small-control` and then `font-family: monospace` which leaves all the aspects of `-webkit-small-control` except for the family, and then changes the family. (This might also suggest going back to 2 rules rather than 3, though maybe with a better comment.)

Although I'm also a little surprised by wanting `monospace` rather than a system font though I guess it's the existing style for textarea.

Joey Arhar

Whoops, yeah this shouldn't be set twice in a row like this, that was clearly a mistake.

Considering the vulnerability has to do with loading a custom font that the author specifies, I'm not sure that setting a specific font size helps at all. Do you think we should be?

And yes I chose monospace because thats the default for these elements. I'm leaning just doing font-family:monospace!important here and nothing else, but do you feel strongly that we should also be doing font:-webkit-small-control!important?

David Baron

So I think the old code did explicitly set the size for both input and textarea. I'd be inclined to keep that aspect of it since I don't think you need to *remove* it to fix the security bug and there may well be a reason for it.

So maybe it makes sense to:
* continue to have 3 rules
* replace the `select:-internal-autofill-previewed` selector in the first rule with `textarea::-internal-input-suggested`
* add a `select:-internal-autofill-previewed` selector to the second rule
* the above pair of changes mean that all three rules will now apply to `textarea::-internal-input-suggested`
* just do `font-family: monospace !important` in the second rule

This would mean the code continues to set the size for the input and textarea previews (as it has done), continues to set the same font family that it was for both of them (which has been different for input versus textarea), and then starts setting font family (but not size) for all the other pieces you're adding (select and the input date parts).

Joey Arhar

Done

Open in Gerrit

Related details

Attention is currently required from:
  • David Baron
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I089ffe93048038f42ac4e2c18bb88668cb050b41
    Gerrit-Change-Number: 7885624
    Gerrit-PatchSet: 5
    Gerrit-Owner: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: David Baron <dba...@chromium.org>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-Attention: David Baron <dba...@chromium.org>
    Gerrit-Comment-Date: Mon, 22 Jun 2026 20:44:28 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    David Baron (Gerrit)

    unread,
    Jun 22, 2026, 5:07:18 PM (6 days ago) Jun 22
    to David Baron, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, kinuko...@chromium.org, jmedle...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org
    Attention needed from Joey Arhar

    David Baron voted Code-Review+1

    Code-Review+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Joey Arhar
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I089ffe93048038f42ac4e2c18bb88668cb050b41
      Gerrit-Change-Number: 7885624
      Gerrit-PatchSet: 5
      Gerrit-Owner: Joey Arhar <jar...@chromium.org>
      Gerrit-Reviewer: David Baron <dba...@chromium.org>
      Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
      Gerrit-Attention: Joey Arhar <jar...@chromium.org>
      Gerrit-Comment-Date: Mon, 22 Jun 2026 21:07:07 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Joey Arhar (Gerrit)

      unread,
      Jun 22, 2026, 5:12:41 PM (6 days ago) Jun 22
      to David Baron, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, kinuko...@chromium.org, jmedle...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org

      Joey Arhar voted

      Code-Review+1
      Commit-Queue+2
      Open in Gerrit

      Related details

      Attention set is empty
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement satisfiedCode-Owners
        • requirement satisfiedCode-Review
        • requirement satisfiedReview-Enforcement
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I089ffe93048038f42ac4e2c18bb88668cb050b41
        Gerrit-Change-Number: 7885624
        Gerrit-PatchSet: 5
        Gerrit-Owner: Joey Arhar <jar...@chromium.org>
        Gerrit-Reviewer: David Baron <dba...@chromium.org>
        Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
        Gerrit-Comment-Date: Mon, 22 Jun 2026 21:12:23 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Joey Arhar (Gerrit)

        unread,
        Jun 23, 2026, 12:56:02 PM (5 days ago) Jun 23
        to David Baron, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, kinuko...@chromium.org, jmedle...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org
        Attention needed from David Baron

        Joey Arhar voted and added 1 comment

        Votes added by Joey Arhar

        Code-Review+1

        1 comment

        File third_party/blink/renderer/core/html/resources/html.css
        Line 654, Patchset 3: font: monospace !important;
        font-family: monospace !important;
        David Baron . unresolved

        `font: monospace` isn't valid syntax because the `font` shorthand requires both size and family. I suspect you want a fixed font size here although I'm not sure. So you probably want either `medium monospace` (fixed) or `1em monospace` (inherits the size). Or maybe actually you want what the old code was doing which was `font: -webkit-small-control` and then `font-family: monospace` which leaves all the aspects of `-webkit-small-control` except for the family, and then changes the family. (This might also suggest going back to 2 rules rather than 3, though maybe with a better comment.)

        Although I'm also a little surprised by wanting `monospace` rather than a system font though I guess it's the existing style for textarea.

        Joey Arhar

        Whoops, yeah this shouldn't be set twice in a row like this, that was clearly a mistake.

        Considering the vulnerability has to do with loading a custom font that the author specifies, I'm not sure that setting a specific font size helps at all. Do you think we should be?

        And yes I chose monospace because thats the default for these elements. I'm leaning just doing font-family:monospace!important here and nothing else, but do you feel strongly that we should also be doing font:-webkit-small-control!important?

        David Baron

        So I think the old code did explicitly set the size for both input and textarea. I'd be inclined to keep that aspect of it since I don't think you need to *remove* it to fix the security bug and there may well be a reason for it.

        So maybe it makes sense to:
        * continue to have 3 rules
        * replace the `select:-internal-autofill-previewed` selector in the first rule with `textarea::-internal-input-suggested`
        * add a `select:-internal-autofill-previewed` selector to the second rule
        * the above pair of changes mean that all three rules will now apply to `textarea::-internal-input-suggested`
        * just do `font-family: monospace !important` in the second rule

        This would mean the code continues to set the size for the input and textarea previews (as it has done), continues to set the same font family that it was for both of them (which has been different for input versus textarea), and then starts setting font family (but not size) for all the other pieces you're adding (select and the input date parts).

        Joey Arhar

        Done

        Joey Arhar

        Marked as unresolved.It looks like applying font-family:monospace!important to select:-internal-autofill-previewed regresses menulist-field-sizing-autofill.html, which makes sense since select elements don't have monospace by default.

        If you still think that we should be hard coding a font-family for select elements, then maybe I should make it be the same as whatever -webkit-small-control is, right?

        Based on what I read in LayoutThemeFontProvider::DefaultGUIFont it looks like -webkit-small-control always has Arial, so i set it to that. Based on https://chromium-review.git.corp.google.com/c/chromium/src/+/7930489 I'm not sure that its always Arial though... I guess I might find out after CQ+1

        Open in Gerrit

        Related details

        Attention is currently required from:
        • David Baron
        Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement satisfiedCode-Owners
          • requirement satisfiedCode-Review
          • requirement is not satisfiedNo-Unresolved-Comments
          • requirement satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I089ffe93048038f42ac4e2c18bb88668cb050b41
          Gerrit-Change-Number: 7885624
          Gerrit-PatchSet: 5
          Gerrit-Owner: Joey Arhar <jar...@chromium.org>
          Gerrit-Reviewer: David Baron <dba...@chromium.org>
          Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
          Gerrit-Attention: David Baron <dba...@chromium.org>
          Gerrit-Comment-Date: Tue, 23 Jun 2026 16:55:47 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          David Baron (Gerrit)

          unread,
          Jun 24, 2026, 9:53:48 AM (4 days ago) Jun 24
          to David Baron, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, kinuko...@chromium.org, jmedle...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org
          Attention needed from Joey Arhar

          David Baron voted and added 2 comments

          Votes added by David Baron

          Code-Review+1

          2 comments

          File third_party/blink/renderer/core/html/resources/html.css
          Line 643, Patchset 6 (Latest): font-family: Arial !important;
          David Baron . unresolved

          Could you add a comment saying this matches `LayoutThemeFontProvider::DefaultGUIFont()` which is the `font-family` that `font: -webkit-small-control` produces?

          Line 654, Patchset 3: font: monospace !important;
          font-family: monospace !important;
          David Baron . resolved

          `font: monospace` isn't valid syntax because the `font` shorthand requires both size and family. I suspect you want a fixed font size here although I'm not sure. So you probably want either `medium monospace` (fixed) or `1em monospace` (inherits the size). Or maybe actually you want what the old code was doing which was `font: -webkit-small-control` and then `font-family: monospace` which leaves all the aspects of `-webkit-small-control` except for the family, and then changes the family. (This might also suggest going back to 2 rules rather than 3, though maybe with a better comment.)

          Although I'm also a little surprised by wanting `monospace` rather than a system font though I guess it's the existing style for textarea.

          Joey Arhar

          Whoops, yeah this shouldn't be set twice in a row like this, that was clearly a mistake.

          Considering the vulnerability has to do with loading a custom font that the author specifies, I'm not sure that setting a specific font size helps at all. Do you think we should be?

          And yes I chose monospace because thats the default for these elements. I'm leaning just doing font-family:monospace!important here and nothing else, but do you feel strongly that we should also be doing font:-webkit-small-control!important?

          David Baron

          So I think the old code did explicitly set the size for both input and textarea. I'd be inclined to keep that aspect of it since I don't think you need to *remove* it to fix the security bug and there may well be a reason for it.

          So maybe it makes sense to:
          * continue to have 3 rules
          * replace the `select:-internal-autofill-previewed` selector in the first rule with `textarea::-internal-input-suggested`
          * add a `select:-internal-autofill-previewed` selector to the second rule
          * the above pair of changes mean that all three rules will now apply to `textarea::-internal-input-suggested`
          * just do `font-family: monospace !important` in the second rule

          This would mean the code continues to set the size for the input and textarea previews (as it has done), continues to set the same font family that it was for both of them (which has been different for input versus textarea), and then starts setting font family (but not size) for all the other pieces you're adding (select and the input date parts).

          Joey Arhar

          Done

          Joey Arhar

          Marked as unresolved.It looks like applying font-family:monospace!important to select:-internal-autofill-previewed regresses menulist-field-sizing-autofill.html, which makes sense since select elements don't have monospace by default.

          If you still think that we should be hard coding a font-family for select elements, then maybe I should make it be the same as whatever -webkit-small-control is, right?

          Based on what I read in LayoutThemeFontProvider::DefaultGUIFont it looks like -webkit-small-control always has Arial, so i set it to that. Based on https://chromium-review.git.corp.google.com/c/chromium/src/+/7930489 I'm not sure that its always Arial though... I guess I might find out after CQ+1

          David Baron

          From the code it looks like this is always true.

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Joey Arhar
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement satisfiedCode-Owners
          • requirement satisfiedCode-Review
          • requirement is not satisfiedNo-Unresolved-Comments
          • requirement satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I089ffe93048038f42ac4e2c18bb88668cb050b41
          Gerrit-Change-Number: 7885624
          Gerrit-PatchSet: 6
          Gerrit-Owner: Joey Arhar <jar...@chromium.org>
          Gerrit-Reviewer: David Baron <dba...@chromium.org>
          Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
          Gerrit-Attention: Joey Arhar <jar...@chromium.org>
          Gerrit-Comment-Date: Wed, 24 Jun 2026 13:53:39 +0000
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Joey Arhar (Gerrit)

          unread,
          Jun 24, 2026, 12:18:54 PM (4 days ago) Jun 24
          to David Baron, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, kinuko...@chromium.org, jmedle...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org
          Attention needed from David Baron

          Joey Arhar voted and added 1 comment

          Votes added by Joey Arhar

          Code-Review+1

          1 comment

          File third_party/blink/renderer/core/html/resources/html.css
          Line 643, Patchset 6 (Latest): font-family: Arial !important;
          David Baron . unresolved

          Could you add a comment saying this matches `LayoutThemeFontProvider::DefaultGUIFont()` which is the `font-family` that `font: -webkit-small-control` produces?

          Joey Arhar

          Ok so apparently we can't use Arial for this because it can leak the text via @font-face: https://chromium-review.git.corp.google.com/c/chromium/src/+/7930489/comment/85a58c0f_100803c8/

          I'm changing this to sans-serif in order to match that other change. What do you think of this?

          I'm also going to have to rebase this change on theirs soon, which will probably require rewriting some of this stuff.

          Open in Gerrit

          Related details

          Attention is currently required from:
          • David Baron
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement satisfiedCode-Owners
          • requirement satisfiedCode-Review
          • requirement is not satisfiedNo-Unresolved-Comments
          • requirement satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I089ffe93048038f42ac4e2c18bb88668cb050b41
          Gerrit-Change-Number: 7885624
          Gerrit-PatchSet: 6
          Gerrit-Owner: Joey Arhar <jar...@chromium.org>
          Gerrit-Reviewer: David Baron <dba...@chromium.org>
          Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
          Gerrit-Attention: David Baron <dba...@chromium.org>
          Gerrit-Comment-Date: Wed, 24 Jun 2026 16:18:32 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: Yes
          Comment-In-Reply-To: David Baron <dba...@chromium.org>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          David Baron (Gerrit)

          unread,
          Jun 24, 2026, 1:04:21 PM (4 days ago) Jun 24
          to David Baron, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, kinuko...@chromium.org, jmedle...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org
          Attention needed from Joey Arhar

          David Baron voted and added 1 comment

          Votes added by David Baron

          Code-Review+1

          1 comment

          File third_party/blink/renderer/core/html/resources/html.css
          Line 643, Patchset 6: font-family: Arial !important;
          David Baron . unresolved

          Could you add a comment saying this matches `LayoutThemeFontProvider::DefaultGUIFont()` which is the `font-family` that `font: -webkit-small-control` produces?

          Joey Arhar

          Ok so apparently we can't use Arial for this because it can leak the text via @font-face: https://chromium-review.git.corp.google.com/c/chromium/src/+/7930489/comment/85a58c0f_100803c8/

          I'm changing this to sans-serif in order to match that other change. What do you think of this?

          I'm also going to have to rebase this change on theirs soon, which will probably require rewriting some of this stuff.

          David Baron

          Hmmm. I wonder if at this point it's going to be more straightforward to expose an internal CSS syntax for setting a `CSSPendingSystemFontValue` as the value of any of the longhands of the `font` shorthand. (Probably functional, taking as an argument which system font.)

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Joey Arhar
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement satisfiedCode-Owners
          • requirement satisfiedCode-Review
          • requirement is not satisfiedNo-Unresolved-Comments
          • requirement satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I089ffe93048038f42ac4e2c18bb88668cb050b41
          Gerrit-Change-Number: 7885624
          Gerrit-PatchSet: 7
          Gerrit-Owner: Joey Arhar <jar...@chromium.org>
          Gerrit-Reviewer: David Baron <dba...@chromium.org>
          Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
          Gerrit-Attention: Joey Arhar <jar...@chromium.org>
          Gerrit-Comment-Date: Wed, 24 Jun 2026 17:04:07 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Joey Arhar (Gerrit)

          unread,
          Jun 24, 2026, 1:26:24 PM (4 days ago) Jun 24
          to David Baron, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, kinuko...@chromium.org, jmedle...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org
          Attention needed from David Baron

          Joey Arhar voted and added 1 comment

          Votes added by Joey Arhar

          Code-Review+1

          1 comment

          File third_party/blink/renderer/core/html/resources/html.css
          Line 643, Patchset 6: font-family: Arial !important;
          David Baron . unresolved

          Could you add a comment saying this matches `LayoutThemeFontProvider::DefaultGUIFont()` which is the `font-family` that `font: -webkit-small-control` produces?

          Joey Arhar

          Ok so apparently we can't use Arial for this because it can leak the text via @font-face: https://chromium-review.git.corp.google.com/c/chromium/src/+/7930489/comment/85a58c0f_100803c8/

          I'm changing this to sans-serif in order to match that other change. What do you think of this?

          I'm also going to have to rebase this change on theirs soon, which will probably require rewriting some of this stuff.

          David Baron

          Hmmm. I wonder if at this point it's going to be more straightforward to expose an internal CSS syntax for setting a `CSSPendingSystemFontValue` as the value of any of the longhands of the `font` shorthand. (Probably functional, taking as an argument which system font.)

          Joey Arhar

          So it would look like this?
          ```
          font: -internal-pending-system-font(-webkit-small-control) !important;
          ```
          Wouldn't we still need to set the font-family explicitly too?

          Open in Gerrit

          Related details

          Attention is currently required from:
          • David Baron
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement satisfiedCode-Owners
          • requirement satisfiedCode-Review
          • requirement is not satisfiedNo-Unresolved-Comments
          • requirement satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I089ffe93048038f42ac4e2c18bb88668cb050b41
          Gerrit-Change-Number: 7885624
          Gerrit-PatchSet: 7
          Gerrit-Owner: Joey Arhar <jar...@chromium.org>
          Gerrit-Reviewer: David Baron <dba...@chromium.org>
          Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
          Gerrit-Attention: David Baron <dba...@chromium.org>
          Gerrit-Comment-Date: Wed, 24 Jun 2026 17:26:10 +0000
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          David Baron (Gerrit)

          unread,
          Jun 24, 2026, 1:34:30 PM (4 days ago) Jun 24
          to David Baron, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, kinuko...@chromium.org, jmedle...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org
          Attention needed from Joey Arhar

          David Baron added 1 comment

          File third_party/blink/renderer/core/html/resources/html.css
          Line 643, Patchset 6: font-family: Arial !important;
          David Baron . unresolved

          Could you add a comment saying this matches `LayoutThemeFontProvider::DefaultGUIFont()` which is the `font-family` that `font: -webkit-small-control` produces?

          Joey Arhar

          Ok so apparently we can't use Arial for this because it can leak the text via @font-face: https://chromium-review.git.corp.google.com/c/chromium/src/+/7930489/comment/85a58c0f_100803c8/

          I'm changing this to sans-serif in order to match that other change. What do you think of this?

          I'm also going to have to rebase this change on theirs soon, which will probably require rewriting some of this stuff.

          David Baron

          Hmmm. I wonder if at this point it's going to be more straightforward to expose an internal CSS syntax for setting a `CSSPendingSystemFontValue` as the value of any of the longhands of the `font` shorthand. (Probably functional, taking as an argument which system font.)

          Joey Arhar

          So it would look like this?
          ```
          font: -internal-pending-system-font(-webkit-small-control) !important;
          ```
          Wouldn't we still need to set the font-family explicitly too?

          David Baron

          I was thinking of the ability to do `font-family: -internal-system-font(-webkit-small-control) ! important` so that it's just setting the family but also (I assume, based on the discussion above) bypassing `@font-face`.

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Joey Arhar
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement satisfiedCode-Owners
          • requirement satisfiedCode-Review
          • requirement is not satisfiedNo-Unresolved-Comments
          • requirement satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I089ffe93048038f42ac4e2c18bb88668cb050b41
          Gerrit-Change-Number: 7885624
          Gerrit-PatchSet: 7
          Gerrit-Owner: Joey Arhar <jar...@chromium.org>
          Gerrit-Reviewer: David Baron <dba...@chromium.org>
          Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
          Gerrit-Attention: Joey Arhar <jar...@chromium.org>
          Gerrit-Comment-Date: Wed, 24 Jun 2026 17:34:15 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy
          Reply all
          Reply to author
          Forward
          0 new messages