-
Notifications
You must be signed in to change notification settings - Fork 642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cssom] Adjacent space when serializing '/' #4282
Comments
Yikes, what a mess... I think if possible we should try to use spaces everywhere. Tough given everyone agrees on "no spaces for specified fonts" we may want to special-case that one out. WDYT? |
All of the cases are equivalent in parsing; so long as you don't have a For readability's sake, I do agree with always doing spaces. We can special-case 'font' if necessary, but I'd rather try for consistency first and special-case only if there are bugs. |
Sure, I'm happy to make the change in Gecko if Blink is willing to do that too. |
I would like gCS results to round-trip as specified values. Changing Blink and WPTs for font shorthand to include spaces: https://chromium-review.googlesource.com/c/chromium/src/+/1800894 |
Each '/' is a CSS value should have a space before and after. w3c/csswg-drafts#4282 Omit 'normal' values from computed font serialization. Change-Id: Iebbfe80ae0c7c3ebe0101b432c0d95a7d265154f
Each '/' is a CSS value should have a space before and after. w3c/csswg-drafts#4282 Omit 'normal' values from computed font serialization. Change-Id: Iebbfe80ae0c7c3ebe0101b432c0d95a7d265154f
Each '/' is a CSS value should have a space before and after. w3c/csswg-drafts#4282 Omit 'normal' values from computed font serialization. Change-Id: Iebbfe80ae0c7c3ebe0101b432c0d95a7d265154f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1800894 Commit-Queue: Emil A Eklund <eae@chromium.org> Auto-Submit: Eric Willigers <ericwilligers@chromium.org> Reviewed-by: Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#696522}
Each '/' is a CSS value should have a space before and after. w3c/csswg-drafts#4282 Omit 'normal' values from computed font serialization. Change-Id: Iebbfe80ae0c7c3ebe0101b432c0d95a7d265154f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1800894 Commit-Queue: Emil A Eklund <eae@chromium.org> Auto-Submit: Eric Willigers <ericwilligers@chromium.org> Reviewed-by: Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#696522}
I have a patch to Gecko to update to this once WPT gets upstreamed: https://hg.mozilla.org/try/rev/1988d5f527709c4583d4b5315c50c65337fc6101 Note that another place where this character exists (in media queries for now) is |
Each '/' is a CSS value should have a space before and after. w3c/csswg-drafts#4282 Omit 'normal' values from computed font serialization. Change-Id: Iebbfe80ae0c7c3ebe0101b432c0d95a7d265154f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1800894 Commit-Queue: Emil A Eklund <eae@chromium.org> Auto-Submit: Eric Willigers <ericwilligers@chromium.org> Reviewed-by: Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#696522}
…s around '/', a=testonly Automatic update from web-platform-tests CSS: Serialize font shorthand with spaces around '/' Each '/' is a CSS value should have a space before and after. w3c/csswg-drafts#4282 Omit 'normal' values from computed font serialization. Change-Id: Iebbfe80ae0c7c3ebe0101b432c0d95a7d265154f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1800894 Commit-Queue: Emil A Eklund <eae@chromium.org> Auto-Submit: Eric Willigers <ericwilligers@chromium.org> Reviewed-by: Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#696522} -- wpt-commits: 5488ba49034a78c2fdfe7ca0d898ed3adb238f6b wpt-pr: 19025
…s around '/', a=testonly Automatic update from web-platform-tests CSS: Serialize font shorthand with spaces around '/' Each '/' is a CSS value should have a space before and after. w3c/csswg-drafts#4282 Omit 'normal' values from computed font serialization. Change-Id: Iebbfe80ae0c7c3ebe0101b432c0d95a7d265154f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1800894 Commit-Queue: Emil A Eklund <eae@chromium.org> Auto-Submit: Eric Willigers <ericwilligers@chromium.org> Reviewed-by: Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#696522} -- wpt-commits: 5488ba49034a78c2fdfe7ca0d898ed3adb238f6b wpt-pr: 19025
Landing that in https://bugzilla.mozilla.org/show_bug.cgi?id=1582627. |
Closing as we have consensus. |
…s around '/', a=testonly Automatic update from web-platform-tests CSS: Serialize font shorthand with spaces around '/' Each '/' is a CSS value should have a space before and after. w3c/csswg-drafts#4282 Omit 'normal' values from computed font serialization. Change-Id: Iebbfe80ae0c7c3ebe0101b432c0d95a7d265154f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1800894 Commit-Queue: Emil A Eklund <eaechromium.org> Auto-Submit: Eric Willigers <ericwilligerschromium.org> Reviewed-by: Emil A Eklund <eaechromium.org> Cr-Commit-Position: refs/heads/master{#696522} -- wpt-commits: 5488ba49034a78c2fdfe7ca0d898ed3adb238f6b wpt-pr: 19025 UltraBlame original commit: 4997dd1d31994f9f407e4a2f3035489311305ff4
…s around '/', a=testonly Automatic update from web-platform-tests CSS: Serialize font shorthand with spaces around '/' Each '/' is a CSS value should have a space before and after. w3c/csswg-drafts#4282 Omit 'normal' values from computed font serialization. Change-Id: Iebbfe80ae0c7c3ebe0101b432c0d95a7d265154f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1800894 Commit-Queue: Emil A Eklund <eaechromium.org> Auto-Submit: Eric Willigers <ericwilligerschromium.org> Reviewed-by: Emil A Eklund <eaechromium.org> Cr-Commit-Position: refs/heads/master{#696522} -- wpt-commits: 5488ba49034a78c2fdfe7ca0d898ed3adb238f6b wpt-pr: 19025 UltraBlame original commit: 4997dd1d31994f9f407e4a2f3035489311305ff4
…s around '/', a=testonly Automatic update from web-platform-tests CSS: Serialize font shorthand with spaces around '/' Each '/' is a CSS value should have a space before and after. w3c/csswg-drafts#4282 Omit 'normal' values from computed font serialization. Change-Id: Iebbfe80ae0c7c3ebe0101b432c0d95a7d265154f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1800894 Commit-Queue: Emil A Eklund <eaechromium.org> Auto-Submit: Eric Willigers <ericwilligerschromium.org> Reviewed-by: Emil A Eklund <eaechromium.org> Cr-Commit-Position: refs/heads/master{#696522} -- wpt-commits: 5488ba49034a78c2fdfe7ca0d898ed3adb238f6b wpt-pr: 19025 UltraBlame original commit: 4997dd1d31994f9f407e4a2f3035489311305ff4
Per the discussion in w3c/csswg-drafts#4282 they should serialize with spaces around the slash. Fixed: 1138849 Change-Id: I4a1b2f740db885fb85cf2b27ede3ce530b44b3e6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2474698 Commit-Queue: Emilio Cobos Álvarez <emilio@chromium.org> Auto-Submit: Emilio Cobos Álvarez <emilio@chromium.org> Reviewed-by: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#817882}
Per the discussion in w3c/csswg-drafts#4282 they should serialize with spaces around the slash. Fixed: 1138849 Change-Id: I4a1b2f740db885fb85cf2b27ede3ce530b44b3e6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2474698 Commit-Queue: Emilio Cobos Álvarez <emilio@chromium.org> Auto-Submit: Emilio Cobos Álvarez <emilio@chromium.org> Reviewed-by: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#817882} GitOrigin-RevId: 9a5cddde0a5d24b7a33041a5b0b29eca8eb96974
Each browser has variation in whether or not they include whitespace when serializing a '/' in shorthands (example):
Blink:
No spaces for specified font.
Spaces for resolved border-radius, font, grid, grid-template.
Edge 18:
No spaces for specified font.
Spaces for specified border-radius.
Firefox:
No spaces for specified font.
Spaces for specified border-radius, grid, grid-template, mask.
Safari:
No spaces for specified or resolved font.
Spaces for resolved border-radius, grid, grid-template.
Relevant spec: https://drafts.csswg.org/cssom/#serializing-css-values
The text was updated successfully, but these errors were encountered: