Add fallback styles for <meter> element [chromium/src : main]

1 view
Skip to first unread message

Traian Captan (Gerrit)

unread,
Jul 26, 2024, 4:50:17 PM (15 hours ago) Jul 26
to Traian Captan, Mason Freed, Anders Hartvoll Ruud, (Julie)Jeongeun Kim, Kevin Babbitt, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, mac-r...@chromium.org, nektar...@chromium.org, francisjp...@google.com, hirokisa...@chromium.org, abigailbk...@google.com, yuzo+...@chromium.org, dtseng...@chromium.org, josiah...@chromium.org, kyungjunle...@google.com, jmedle...@chromium.org, kinuko...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org
Attention needed from Mason Freed

New activity on the change

Open in Gerrit

Related details

Attention is currently required from:
  • Mason Freed
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
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: Ibba8e454a251da692b2f473292183401c436cfe7
Gerrit-Change-Number: 5737793
Gerrit-PatchSet: 4
Gerrit-Owner: Traian Captan <tca...@chromium.org>
Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
Gerrit-Reviewer: Traian Captan <tca...@chromium.org>
Gerrit-CC: (Julie)Jeongeun Kim <je_jul...@chromium.org>
Gerrit-CC: Akihiro Ota <akihi...@chromium.org>
Gerrit-CC: Anders Hartvoll Ruud <and...@chromium.org>
Gerrit-CC: Joey Arhar <jar...@chromium.org>
Gerrit-CC: Kevin Babbitt <kbab...@microsoft.com>
Gerrit-Attention: Mason Freed <mas...@chromium.org>
Gerrit-Comment-Date: Fri, 26 Jul 2024 20:50:06 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Mason Freed (Gerrit)

unread,
Jul 26, 2024, 5:34:11 PM (15 hours ago) Jul 26
to Traian Captan, Anders Hartvoll Ruud, (Julie)Jeongeun Kim, Kevin Babbitt, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, mac-r...@chromium.org, nektar...@chromium.org, francisjp...@google.com, hirokisa...@chromium.org, abigailbk...@google.com, yuzo+...@chromium.org, dtseng...@chromium.org, josiah...@chromium.org, kyungjunle...@google.com, jmedle...@chromium.org, kinuko...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org
Attention needed from Traian Captan

Mason Freed added 7 comments

Commit Message
Line 21, Patchset 4 (Latest):
Mason Freed . unresolved

I think it'd be worth referring to tkent's CL and bug that changed this behavior in the first place:

https://chromium.googlesource.com/chromium/src/+/5bfffca95444ba872b0a7faeaf956e92ab18639f

crbug.com/40427403

That work happened before the blink intent process, so we just shipped it. But the intent was that meters with `appearance:none` are stylable. We should add a few tests (akin to `meter-appearance-basic-*.html` but with `appearance:none` on all elements) that ensure it stays stylable. (I'm also not sure what changed between 2016 and now that allows it to now be stylable? If you know, it'd be good to include that here also.)

And then as I mentioned, I think this'll require an intent to ship. Given that there's interop (with this change) it might be deemed "ok" to do without a spec. Let's see.

File third_party/blink/renderer/core/html/resources/html.css
Line 1063, Patchset 4 (Latest):meter {
appearance: auto;
box-sizing: border-box;
display: inline-block;
block-size: 1em;
Mason Freed . unresolved

It'd be nice to indent these @supports blocks.

Line 1081, Patchset 4 (Latest):
meter::-webkit-meter-inner-element:-internal-shadow-host-has-appearance {
display: grid;
grid-template-rows: 1fr [line1] 2fr [line2] 1fr;
position: relative;
}

meter::-internal-fallback:-internal-shadow-host-has-appearance {
display: none;
}
Mason Freed . unresolved

Would you mind renaming this pseudo to `internal-shadow-host-has-non-auto-appearance`? We're doing other work on appearance, and I think that should help reduce confusion.

File third_party/blink/web_tests/fast/html/meter-user-modify-expected.txt
Line 7, Patchset 4 (Latest):The inner element of meter should not be deleteable.
Mason Freed . unresolved

Perhaps this test should actually be fixed?

File third_party/blink/web_tests/platform/linux/fast/forms/color-scheme/meter/meter-appearance-basic-expected.png
File-level comment, Patchset 4 (Latest):
Mason Freed . unresolved

Seems like this test also needs to be repaired? It says "meter disappears"...

File third_party/blink/web_tests/platform/linux/fast/forms/color-scheme/meter/meter-appearance-basic-vertical-expected.png
File-level comment, Patchset 4 (Latest):
Mason Freed . unresolved

ditto here and below

File third_party/blink/web_tests/platform/linux/virtual/vertical-form-controls-direction-disabled-slider-vertical-disabled/fast/forms/color-scheme/meter/meter-appearance-basic-vertical-expected.png
File-level comment, Patchset 4 (Latest):
Mason Freed . unresolved

Does the gradient rotate on webkit/firefox? Note that it is still a vertical gradient, even when the meter is vertical. Seems (if it matches other browsers?) like it should be horizontal. If the other browsers just keep the vertical gradient, then this is ok.

Open in Gerrit

Related details

Attention is currently required from:
  • Traian Captan
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: Ibba8e454a251da692b2f473292183401c436cfe7
    Gerrit-Change-Number: 5737793
    Gerrit-PatchSet: 4
    Gerrit-Owner: Traian Captan <tca...@chromium.org>
    Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
    Gerrit-Reviewer: Traian Captan <tca...@chromium.org>
    Gerrit-CC: (Julie)Jeongeun Kim <je_jul...@chromium.org>
    Gerrit-CC: Akihiro Ota <akihi...@chromium.org>
    Gerrit-CC: Anders Hartvoll Ruud <and...@chromium.org>
    Gerrit-CC: Joey Arhar <jar...@chromium.org>
    Gerrit-CC: Kevin Babbitt <kbab...@microsoft.com>
    Gerrit-Attention: Traian Captan <tca...@chromium.org>
    Gerrit-Comment-Date: Fri, 26 Jul 2024 21:33:58 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Traian Captan (Gerrit)

    unread,
    Jul 26, 2024, 7:44:58 PM (12 hours ago) Jul 26
    to Traian Captan, Alexis Menard, Mason Freed, Anders Hartvoll Ruud, (Julie)Jeongeun Kim, Kevin Babbitt, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, devtools-re...@chromium.org, mac-r...@chromium.org, nektar...@chromium.org, francisjp...@google.com, hirokisa...@chromium.org, abigailbk...@google.com, yuzo+...@chromium.org, dtseng...@chromium.org, josiah...@chromium.org, kyungjunle...@google.com, jmedle...@chromium.org, kinuko...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org
    Attention needed from Mason Freed

    Traian Captan added 6 comments

    File third_party/blink/renderer/core/html/resources/html.css

    appearance: auto;
    box-sizing: border-box;
    display: inline-block;
    block-size: 1em;
    Mason Freed . resolved

    It'd be nice to indent these @supports blocks.

    Traian Captan

    Done


    meter::-webkit-meter-inner-element:-internal-shadow-host-has-appearance {
    display: grid;
    grid-template-rows: 1fr [line1] 2fr [line2] 1fr;
    position: relative;
    }

    meter::-internal-fallback:-internal-shadow-host-has-appearance {
    display: none;
    }
    Mason Freed . resolved

    Would you mind renaming this pseudo to `internal-shadow-host-has-non-auto-appearance`? We're doing other work on appearance, and I think that should help reduce confusion.

    Traian Captan

    Done.

    File third_party/blink/web_tests/fast/html/meter-user-modify-expected.txt
    Line 7, Patchset 4:The inner element of meter should not be deleteable.
    Mason Freed . unresolved

    Perhaps this test should actually be fixed?

    Traian Captan

    The "In meter" text was the content of the `-internal-fallback` shadow element, which we don't display anymore.
    Did you want to remove this part of the test?

    File third_party/blink/web_tests/platform/linux/fast/forms/color-scheme/meter/meter-appearance-basic-expected.png
    File-level comment, Patchset 4:
    Mason Freed . resolved

    Seems like this test also needs to be repaired? It says "meter disappears"...

    Traian Captan

    Done

    File third_party/blink/web_tests/platform/linux/fast/forms/color-scheme/meter/meter-appearance-basic-vertical-expected.png
    File-level comment, Patchset 4:
    Mason Freed . resolved

    ditto here and below

    Traian Captan

    Done

    File third_party/blink/web_tests/platform/linux/virtual/vertical-form-controls-direction-disabled-slider-vertical-disabled/fast/forms/color-scheme/meter/meter-appearance-basic-vertical-expected.png
    File-level comment, Patchset 4:
    Mason Freed . resolved

    Does the gradient rotate on webkit/firefox? Note that it is still a vertical gradient, even when the meter is vertical. Seems (if it matches other browsers?) like it should be horizontal. If the other browsers just keep the vertical gradient, then this is ok.

    Traian Captan

    The gradient does not rotate on either Safari or Firefox.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Mason Freed
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: Ibba8e454a251da692b2f473292183401c436cfe7
    Gerrit-Change-Number: 5737793
    Gerrit-PatchSet: 5
    Gerrit-Owner: Traian Captan <tca...@chromium.org>
    Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
    Gerrit-Reviewer: Traian Captan <tca...@chromium.org>
    Gerrit-CC: (Julie)Jeongeun Kim <je_jul...@chromium.org>
    Gerrit-CC: Akihiro Ota <akihi...@chromium.org>
    Gerrit-CC: Alexis Menard <alexis...@intel.com>
    Gerrit-CC: Anders Hartvoll Ruud <and...@chromium.org>
    Gerrit-CC: Joey Arhar <jar...@chromium.org>
    Gerrit-CC: Kevin Babbitt <kbab...@microsoft.com>
    Gerrit-Attention: Mason Freed <mas...@chromium.org>
    Gerrit-Comment-Date: Fri, 26 Jul 2024 23:44:47 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Mason Freed <mas...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Mason Freed (Gerrit)

    unread,
    Jul 26, 2024, 8:14:17 PM (12 hours ago) Jul 26
    to Traian Captan, Alexis Menard, Anders Hartvoll Ruud, (Julie)Jeongeun Kim, Kevin Babbitt, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, devtools-re...@chromium.org, mac-r...@chromium.org, nektar...@chromium.org, francisjp...@google.com, hirokisa...@chromium.org, abigailbk...@google.com, yuzo+...@chromium.org, dtseng...@chromium.org, josiah...@chromium.org, kyungjunle...@google.com, jmedle...@chromium.org, kinuko...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org
    Attention needed from Traian Captan

    Mason Freed voted and added 4 comments

    Votes added by Mason Freed

    Code-Review+1

    4 comments

    Patchset-level comments
    File-level comment, Patchset 5 (Latest):
    Mason Freed . resolved

    I'm guessing the baselines need a bit of work, but code-wise this LGTM. Just needs an I2S before you can ship it. But this CL can land since the runtime feature is "test".

    File third_party/blink/web_tests/fast/html/meter-user-modify-expected.txt
    Line 7, Patchset 4:The inner element of meter should not be deleteable.
    Mason Freed . unresolved

    Perhaps this test should actually be fixed?

    Traian Captan

    The "In meter" text was the content of the `-internal-fallback` shadow element, which we don't display anymore.
    Did you want to remove this part of the test?

    Mason Freed

    Yeah, probably. Maybe just change the text to say "meter content doesn't get rendered" or something like that?

    File third_party/blink/web_tests/platform/linux/fast/forms/color-scheme/meter/meter-appearance-basic-expected.png
    File-level comment, Patchset 5 (Latest):
    Mason Freed . unresolved

    Looks like maybe some of the baselines didn't get updated, or aren't necessary? E.g. this image still says "meter still disappears".

    File third_party/blink/web_tests/platform/linux/virtual/vertical-form-controls-direction-disabled-slider-vertical-disabled/fast/forms/color-scheme/meter/meter-appearance-basic-vertical-expected.png
    Mason Freed . resolved

    Does the gradient rotate on webkit/firefox? Note that it is still a vertical gradient, even when the meter is vertical. Seems (if it matches other browsers?) like it should be horizontal. If the other browsers just keep the vertical gradient, then this is ok.

    Traian Captan

    The gradient does not rotate on either Safari or Firefox.

    Mason Freed

    Ok, awesome, thanks for checking.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Traian Captan
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: Ibba8e454a251da692b2f473292183401c436cfe7
    Gerrit-Change-Number: 5737793
    Gerrit-PatchSet: 5
    Gerrit-Owner: Traian Captan <tca...@chromium.org>
    Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
    Gerrit-Reviewer: Traian Captan <tca...@chromium.org>
    Gerrit-CC: (Julie)Jeongeun Kim <je_jul...@chromium.org>
    Gerrit-CC: Akihiro Ota <akihi...@chromium.org>
    Gerrit-CC: Alexis Menard <alexis...@intel.com>
    Gerrit-CC: Anders Hartvoll Ruud <and...@chromium.org>
    Gerrit-CC: Joey Arhar <jar...@chromium.org>
    Gerrit-CC: Kevin Babbitt <kbab...@microsoft.com>
    Gerrit-Attention: Traian Captan <tca...@chromium.org>
    Gerrit-Comment-Date: Sat, 27 Jul 2024 00:14:04 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Traian Captan <tca...@chromium.org>
    Comment-In-Reply-To: Mason Freed <mas...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Traian Captan (Gerrit)

    unread,
    Jul 26, 2024, 8:24:31 PM (12 hours ago) Jul 26
    to Traian Captan, Mason Freed, Alexis Menard, Anders Hartvoll Ruud, (Julie)Jeongeun Kim, Kevin Babbitt, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, devtools-re...@chromium.org, mac-r...@chromium.org, nektar...@chromium.org, francisjp...@google.com, hirokisa...@chromium.org, abigailbk...@google.com, yuzo+...@chromium.org, dtseng...@chromium.org, josiah...@chromium.org, kyungjunle...@google.com, jmedle...@chromium.org, kinuko...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org
    Attention needed from Mason Freed

    Traian Captan added 1 comment

    File third_party/blink/web_tests/platform/linux/fast/forms/color-scheme/meter/meter-appearance-basic-expected.png
    Mason Freed . unresolved

    Looks like maybe some of the baselines didn't get updated, or aren't necessary? E.g. this image still says "meter still disappears".

    Traian Captan

    Yep. All the platform baselines need updating.
    I had to upload the patch first to update the baseline images across all platforms. Then I have to pull them down locally and add them to the CL.
    I'll mark the CL as WIP until it's ready to review again.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Mason Freed
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: Ibba8e454a251da692b2f473292183401c436cfe7
    Gerrit-Change-Number: 5737793
    Gerrit-PatchSet: 5
    Gerrit-Owner: Traian Captan <tca...@chromium.org>
    Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
    Gerrit-Reviewer: Traian Captan <tca...@chromium.org>
    Gerrit-CC: (Julie)Jeongeun Kim <je_jul...@chromium.org>
    Gerrit-CC: Akihiro Ota <akihi...@chromium.org>
    Gerrit-CC: Alexis Menard <alexis...@intel.com>
    Gerrit-CC: Anders Hartvoll Ruud <and...@chromium.org>
    Gerrit-CC: Joey Arhar <jar...@chromium.org>
    Gerrit-CC: Kevin Babbitt <kbab...@microsoft.com>
    Gerrit-Attention: Mason Freed <mas...@chromium.org>
    Gerrit-Comment-Date: Sat, 27 Jul 2024 00:24:15 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages