Closed Bug 2085277 Opened 1 month ago Closed 8 days ago

[wpt-sync] Sync PR 63974 - Respect legacy line-clamp shorthand representability

Categories

(Core :: DOM: CSS Object Model, task, P4)

task

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 63974 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/63974
Details from upstream follow.

Domenic Denicola <d@domenic.me> wrote:

Respect legacy line-clamp shorthand representability

The legacy shorthand always sets block-ellipsis to ellipsis. Independently initial longhands instead have block-ellipsis: no-ellipsis, so they cannot be serialized through -webkit-line-clamp when it is implemented as a shorthand. Assert the empty result for that case while retaining checks for implementations exposing it as a longhand. Conversely, -webkit-line-clamp: none cannot be rewritten as line-clamp: none because the latter resets block-ellipsis to no-ellipsis.

https://drafts.csswg.org/css-overflow-4/#propdef--webkit-line-clamp

Component: web-platform-tests → DOM: CSS Object Model
Product: Testing → Core

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 301 tests

Status Summary

Firefox

OK : 2[GitHub] 269[Gecko-linux2404-64-debug] 270[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 19[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 31[GitHub] 4365[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 4376[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 4377[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL : 100[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 101[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview]
PRECONDITION_FAILED: 2

Chrome

OK : 2
PASS : 30
FAIL : 2

Safari

OK : 2
PASS : 28
FAIL : 4

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /css/cssom/CSSFontFeatureValuesRule.html [wpt.fyi]
    • CSSFontFeatureValuesRule is correctly parsed and accessible via CSSOM.: FAIL
    • CSSFontFeatureValuesRule family is settable and readable.: FAIL
    • CSSFontFeatureValuesMap entries are settable to single values.: FAIL
    • CSSFontFeatureValuesMap entries are settable to sequences of numbers.: FAIL
    • New rules can be added.: FAIL
    • Deleting single entries is possible.: FAIL
    • Clearing all entries is possible.: FAIL
    • Multiple rules for the same family are kept separate in CSSOM.: FAIL
  • /css/cssom/CSSKeyframeRule-keyText.html [wpt.fyi]
    • setter throws SyntaxError for invalid selector: FAIL
    • setter throws SyntaxError for empty string: FAIL
  • /css/cssom/MediaList-parsing.html [wpt.fyi]
    • appendMedium with invalid input appends "not all": FAIL
  • /css/cssom/adoptedstylesheets-observablearray.html [wpt.fyi]
    • adoptedStyleSheets defineProperty should reject accessors that become non-callable during descriptor conversion: FAIL
  • /css/cssom/base-uri.html [wpt.fyi]: OK [Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt], SKIP [Gecko-linux2404-64-debug]
  • /css/cssom/caretPositionFromPoint-audioVideo.html [wpt.fyi]
    • document.caretPositionFromPoint() should return a CaretPosition over audio elements: FAIL
    • document.caretPositionFromPoint() should return a CaretPosition over video elements: FAIL
  • /css/cssom/flex-serialization.html [wpt.fyi]
    • Single value flex with non-CSS-wide value should serialize correctly.: FAIL
  • /css/cssom/font-family-serialization-001.html [wpt.fyi]
    • Serialization of <generic-family>: FAIL
    • Serialization of quoted "<generic-family>": FAIL
  • /css/cssom/font-variant-shorthand-serialization.html [wpt.fyi]
    • font: menu serialization: FAIL
  • /css/cssom/getComputedStyle-detached-subtree.html [wpt.fyi]
    • getComputedStyle returns no style for element in non-rendered iframe (display: none): FAIL
  • /css/cssom/getComputedStyle-inset-inline-containing-block-vertical.html [wpt.fyi]
    • Resolved bottom measures the inline containing block's physical height: FAIL [Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview], PASS [Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
  • /css/cssom/getComputedStyle-insets-relpos-inline.html [wpt.fyi]
    • OOF with left fixed right auto in relpos inline container with mixed directions: FAIL
    • OOF with left auto right fixed in relpos inline container with mixed directions: FAIL
  • /css/cssom/getComputedStyle-pseudo-checkmark.html [wpt.fyi]
    • Resolution of width is correct for pseudo-element (due to double-colon): FAIL
  • /css/cssom/getComputedStyle-pseudo-picker-icon.html [wpt.fyi]
    • Resolution of width is correct for pseudo-element (due to double-colon): FAIL
  • /css/cssom/getComputedStyle-pseudo.html [wpt.fyi]
    • Item-based blockification of nonexistent pseudo-elements: FAIL
    • display: contents on pseudo-elements: FAIL
    • Dynamically change to display: contents on pseudo-elements: FAIL
    • Unknown pseudo-element with a known identifier: grammar-error: PRECONDITION_FAILED
    • Unknown pseudo-element with a known identifier: spelling-error: PRECONDITION_FAILED
  • /css/cssom/historical.html [wpt.fyi]
    • Historical Document member: selectedStyleSheetSet: FAIL
    • Historical Document member: lastStyleSheetSet: FAIL
    • Historical Document member: preferredStyleSheetSet: FAIL
    • Historical Document member: styleSheetSets: FAIL
    • Historical Document member: enableStyleSheetsForSet: FAIL
  • /css/cssom/idlharness.html [wpt.fyi]
    • CSSRule interface: constant MARGIN_RULE on interface object: FAIL
    • CSSRule interface: constant MARGIN_RULE on interface prototype object: FAIL
    • CSSRule interface: sheet.cssRules[4] must inherit property "MARGIN_RULE" with the proper type: FAIL
    • CSSRule interface: sheet.cssRules[0] must inherit property "MARGIN_RULE" with the proper type: FAIL
    • CSSPageDescriptors interface: attribute marks: FAIL
    • CSSPageDescriptors interface: attribute bleed: FAIL
    • CSSPageDescriptors interface: sheet.cssRules[2].style must inherit property "marks" with the proper type: FAIL
    • CSSPageDescriptors interface: sheet.cssRules[2].style must inherit property "bleed" with the proper type: FAIL
    • CSSRule interface: sheet.cssRules[2] must inherit property "MARGIN_RULE" with the proper type: FAIL
    • CSSMarginRule interface: existence and properties of interface object: FAIL
    • CSSMarginRule interface object length: FAIL
    • CSSMarginRule interface object name: FAIL
    • CSSMarginRule interface: existence and properties of interface prototype object: FAIL
    • CSSMarginRule interface: existence and properties of interface prototype object's "constructor" property: FAIL
    • CSSMarginRule interface: existence and properties of interface prototype object's @@unscopables property: FAIL
    • CSSMarginRule interface: attribute name: FAIL
    • CSSMarginRule interface: attribute style: FAIL
    • CSSMarginRule must be primary interface of sheet.cssRules[2].cssRules[0]: FAIL
    • Stringification of sheet.cssRules[2].cssRules[0]: FAIL
    • CSSMarginRule interface: sheet.cssRules[2].cssRules[0] must inherit property "name" with the proper type: FAIL
    • CSSMarginRule interface: sheet.cssRules[2].cssRules[0] must inherit property "style" with the proper type: FAIL
    • CSSRule interface: sheet.cssRules[2].cssRules[0] must inherit property "cssText" with the proper type: FAIL
    • CSSRule interface: sheet.cssRules[2].cssRules[0] must inherit property "parentRule" with the proper type: FAIL
    • CSSRule interface: sheet.cssRules[2].cssRules[0] must inherit property "parentStyleSheet" with the proper type: FAIL
    • CSSRule interface: sheet.cssRules[2].cssRules[0] must inherit property "type" with the proper type: FAIL
    • CSSRule interface: sheet.cssRules[2].cssRules[0] must inherit property "STYLE_RULE" with the proper type: FAIL
    • CSSRule interface: sheet.cssRules[2].cssRules[0] must inherit property "CHARSET_RULE" with the proper type: FAIL
    • CSSRule interface: sheet.cssRules[2].cssRules[0] must inherit property "IMPORT_RULE" with the proper type: FAIL
    • CSSRule interface: sheet.cssRules[2].cssRules[0] must inherit property "MEDIA_RULE" with the proper type: FAIL
    • CSSRule interface: sheet.cssRules[2].cssRules[0] must inherit property "FONT_FACE_RULE" with the proper type: FAIL
    • CSSRule interface: sheet.cssRules[2].cssRules[0] must inherit property "PAGE_RULE" with the proper type: FAIL
    • CSSRule interface: sheet.cssRules[2].cssRules[0] must inherit property "MARGIN_RULE" with the proper type: FAIL
    • CSSRule interface: sheet.cssRules[2].cssRules[0] must inherit property "NAMESPACE_RULE" with the proper type: FAIL
    • CSSRule interface: sheet.cssRules[1] must inherit property "MARGIN_RULE" with the proper type: FAIL
    • CSSStyleProperties must be primary interface of sheet.cssRules[2].cssRules[0].style: FAIL
    • Stringification of sheet.cssRules[2].cssRules[0].style: FAIL
    • CSSStyleProperties interface: sheet.cssRules[2].cssRules[0].style must inherit property "cssFloat" with the proper type: FAIL
    • CSSStyleDeclaration interface: sheet.cssRules[2].cssRules[0].style must inherit property "cssText" with the proper type: FAIL
    • CSSStyleDeclaration interface: sheet.cssRules[2].cssRules[0].style must inherit property "length" with the proper type: FAIL
    • CSSStyleDeclaration interface: sheet.cssRules[2].cssRules[0].style must inherit property "item(unsigned long)" with the proper type: FAIL
    • CSSStyleDeclaration interface: calling item(unsigned long) on sheet.cssRules[2].cssRules[0].style with too few arguments must throw TypeError: FAIL
    • CSSStyleDeclaration interface: sheet.cssRules[2].cssRules[0].style must inherit property "getPropertyValue(CSSOMString)" with the proper type: FAIL
    • CSSStyleDeclaration interface: calling getPropertyValue(CSSOMString) on sheet.cssRules[2].cssRules[0].style with too few arguments must throw TypeError: FAIL
    • CSSStyleDeclaration interface: sheet.cssRules[2].cssRules[0].style must inherit property "getPropertyPriority(CSSOMString)" with the proper type: FAIL
    • CSSStyleDeclaration interface: calling getPropertyPriority(CSSOMString) on sheet.cssRules[2].cssRules[0].style with too few arguments must throw TypeError: FAIL
    • CSSStyleDeclaration interface: sheet.cssRules[2].cssRules[0].style must inherit property "setProperty(CSSOMString, CSSOMString, optional CSSOMString)" with the proper type: FAIL
    • CSSStyleDeclaration interface: calling setProperty(CSSOMString, CSSOMString, optional CSSOMString) on sheet.cssRules[2].cssRules[0].style with too few arguments must throw TypeError: FAIL
    • CSSStyleDeclaration interface: sheet.cssRules[2].cssRules[0].style must inherit property "removeProperty(CSSOMString)" with the proper type: FAIL
    • CSSStyleDeclaration interface: calling removeProperty(CSSOMString) on sheet.cssRules[2].cssRules[0].style with too few arguments must throw TypeError: FAIL
    • CSSStyleDeclaration interface: sheet.cssRules[2].cssRules[0].style must inherit property "parentRule" with the proper type: FAIL
  • /css/cssom/link-element-stylesheet-title.html [wpt.fyi]
    • Executing setAttribute('title', '') results in the title being set to null: FAIL
  • /css/cssom/medialist-appendmedium-parse-single-and-dedup.html [wpt.fyi]
    • appendMedium with a comma-separated list is a no-op: FAIL
    • appendMedium with a comma-separated list leaves an existing list unchanged: FAIL
  • /css/cssom/property-accessors.html [wpt.fyi]
    • -apple-color-filter: FAIL
    • -apple-pay-button-style: FAIL
    • -epub-writing-mode: FAIL
    • -webkit-flex: FAIL
    • gap: FAIL
    • grid-gap: FAIL
    • overscroll-behavior: FAIL
    • src: FAIL
    • unicode-range: FAIL
  • /css/cssom/serialize-values.html [wpt.fyi]
    • orphans: 101: FAIL
    • orphans: inherit: FAIL
    • outline-color: invert: FAIL
    • widows: 101: FAIL
    • widows: inherit: FAIL
  • /css/cssom/shorthand-values.html [wpt.fyi]
    • The serialization of outline-width: 2px; outline-style: dotted; outline-color: blue; should be canonical.: FAIL [Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt], PASS [GitHub] (Chrome: PASS, Safari: FAIL)
  • /css/cssom/stylesheet-same-origin.sub.html [wpt.fyi]
    • Origin-clean check in loading error CSSOM Stylesheets: FAIL

Tests Disabled in Gecko Infrastructure

  • /css/cssom/base-uri.html [wpt.fyi]: OK [Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt], SKIP [Gecko-linux2404-64-debug]
Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/5ceff5d17792 https://hg.mozilla.org/integration/autoland/rev/041add9bb44c [wpt PR 63974] - Respect legacy line-clamp shorthand representability, a=testonly
Status: NEW → RESOLVED
Closed: 8 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.