Skip to content

[css-fonts-4] font-variation-settings and font-feature-settings what should be returned for getComputedValue #1959

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

Closed
gregwhitworth opened this issue Nov 8, 2017 · 9 comments
Assignees
Labels
Closed Accepted by CSSWG Resolution Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. css-fonts-3 css-fonts-4 Current Work

Comments

@gregwhitworth
Copy link
Contributor

Here is a testcase that we've seen interop issues with: http://jsbin.com/zenosupeke/edit?html,css,output

  • Chrome: returns as authored
  • Edge: returns as authored
  • Safari: returns without dupes

The specification doesn't state what should be returned, it would be good if we could get agreement on what should be returned.

@litherum
Copy link
Contributor

litherum commented Nov 8, 2017

WebKit's internal implementation of these settings is a map, which automatically removes duplicates. Purposely adding in duplicates just for the purpose of getComputedStyle() seems like a waste of memory.

Other browsers will have to handle duplication anyway both for animation as well as for the text engine (because an instantiated font can only be drawn at a single position in the variation space). Therefore, they should just hold this de-duped data structure as their internal implementation.

@dbaron
Copy link
Member

dbaron commented Nov 8, 2017

just discussed in CSS WG meeting

@litherum
Copy link
Contributor

litherum commented Nov 8, 2017

RESOLVED: For both font-variation-settings and font-feature-settings, the computed value is a map (and thus specified dupes are removed)

@gregwhitworth
Copy link
Contributor Author

Added a test for feature settings, same results as above. @litherum I think that this should be added to the spec since 3/4 browsers do the opposite of what we resolved on.

@svgeesus svgeesus changed the title [css-fonts-4] font-variation-settings what should be returned for getComputedValue [css-fonts-4] font-variation-settings and font-feature-settings what should be returned for getComputedValue Dec 6, 2017
@svgeesus
Copy link
Contributor

svgeesus commented Dec 6, 2017

@gregwhitworth could you refactor that jsbin into a couple of WPT tests? One for font-variation-settings with rel=Help set to css fonts 4, and one for font-feature-settings with rel=help set to css fonts 3. I will review them.

@gregwhitworth
Copy link
Contributor Author

@svgeesus sure thing - assigned to myself

@svgeesus
Copy link
Contributor

@gregwhitworth please ping me when you have tests ready to review. Alternately, if you want me to take a crack at converting them, let me know.

@gregwhitworth
Copy link
Contributor Author

@svgeesus ok done - it is linked to this thread

@litherum
Copy link
Contributor

litherum commented Mar 6, 2018

6e58841

@litherum litherum closed this as completed Mar 6, 2018
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Jun 19, 2020
Make interpolation type always run CSSValues through the converter for
this property.

Update remaining WPT teststo use order-invariant comparison (as most
tests for this property already use).

spec https://drafts.csswg.org/css-fonts-4/#font-variation-settings-def

If the same axis name appears more than once, the value associated with
the last appearance supersedes any previous value for that axis. This
deduplication is observable by accessing the computed value of this
property.

resolution w3c/csswg-drafts#1959
RESOLVED: For both font-variation-settings and font-feature-settings,
the computed value is a map (and thus specified dupes are removed)

Bug: 1005355
Change-Id: I2f6f0f76fdcd69cfece283625cf42f517686dc8a
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Jun 19, 2020
Make interpolation type always run CSSValues through the converter for
this property.

Update remaining WPT teststo use order-invariant comparison (as most
tests for this property already use).

spec https://drafts.csswg.org/css-fonts-4/#font-variation-settings-def

If the same axis name appears more than once, the value associated with
the last appearance supersedes any previous value for that axis. This
deduplication is observable by accessing the computed value of this
property.

resolution w3c/csswg-drafts#1959
RESOLVED: For both font-variation-settings and font-feature-settings,
the computed value is a map (and thus specified dupes are removed)

Bug: 1005355
Change-Id: I2f6f0f76fdcd69cfece283625cf42f517686dc8a
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Jun 23, 2020
Make interpolation type always run CSSValues through the converter for
this property.

Update remaining WPT tests to use order-invariant comparison (as most
tests for this property already use).

spec https://drafts.csswg.org/css-fonts-4/#font-variation-settings-def

If the same axis name appears more than once, the value associated with
the last appearance supersedes any previous value for that axis. This
deduplication is observable by accessing the computed value of this
property.

resolution w3c/csswg-drafts#1959
RESOLVED: For both font-variation-settings and font-feature-settings,
the computed value is a map (and thus specified dupes are removed)

Bug: 1005355
Change-Id: I2f6f0f76fdcd69cfece283625cf42f517686dc8a
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Jun 25, 2020
Make interpolation type always run CSSValues through the converter for
this property.

Update remaining WPT tests to use order-invariant comparison (as most
tests for this property already use).

spec https://drafts.csswg.org/css-fonts-4/#font-variation-settings-def

If the same axis name appears more than once, the value associated with
the last appearance supersedes any previous value for that axis. This
deduplication is observable by accessing the computed value of this
property.

resolution w3c/csswg-drafts#1959
RESOLVED: For both font-variation-settings and font-feature-settings,
the computed value is a map (and thus specified dupes are removed)

Bug: 1005355
Change-Id: I2f6f0f76fdcd69cfece283625cf42f517686dc8a
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Jun 25, 2020
Make interpolation type always run CSSValues through the converter for
this property.

Update remaining WPT tests to use order-invariant comparison (as most
tests for this property already use).

spec https://drafts.csswg.org/css-fonts-4/#font-variation-settings-def

If the same axis name appears more than once, the value associated with
the last appearance supersedes any previous value for that axis. This
deduplication is observable by accessing the computed value of this
property.

resolution w3c/csswg-drafts#1959
RESOLVED: For both font-variation-settings and font-feature-settings,
the computed value is a map (and thus specified dupes are removed)

Bug: 1005355
Change-Id: I2f6f0f76fdcd69cfece283625cf42f517686dc8a
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Jun 25, 2020
Make interpolation type always run CSSValues through the converter for
this property.

Update remaining WPT tests to use order-invariant comparison (as most
tests for this property already use).

spec https://drafts.csswg.org/css-fonts-4/#font-variation-settings-def

If the same axis name appears more than once, the value associated with
the last appearance supersedes any previous value for that axis. This
deduplication is observable by accessing the computed value of this
property.

resolution w3c/csswg-drafts#1959
RESOLVED: For both font-variation-settings and font-feature-settings,
the computed value is a map (and thus specified dupes are removed)

Bug: 1005355
Change-Id: I2f6f0f76fdcd69cfece283625cf42f517686dc8a
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Jun 26, 2020
Make interpolation type always run CSSValues through the converter for
this property.

Update remaining WPT tests to use order-invariant comparison (as most
tests for this property already use).

spec https://drafts.csswg.org/css-fonts-4/#font-variation-settings-def

If the same axis name appears more than once, the value associated with
the last appearance supersedes any previous value for that axis. This
deduplication is observable by accessing the computed value of this
property.

resolution w3c/csswg-drafts#1959
RESOLVED: For both font-variation-settings and font-feature-settings,
the computed value is a map (and thus specified dupes are removed)

Bug: 1005355
Change-Id: I2f6f0f76fdcd69cfece283625cf42f517686dc8a
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Jul 7, 2020
Make interpolation type always run CSSValues through the converter for
this property.

Update remaining WPT tests to use order-invariant comparison (as most
tests for this property already use).

spec https://drafts.csswg.org/css-fonts-4/#font-variation-settings-def

If the same axis name appears more than once, the value associated with
the last appearance supersedes any previous value for that axis. This
deduplication is observable by accessing the computed value of this
property.

resolution w3c/csswg-drafts#1959
RESOLVED: For both font-variation-settings and font-feature-settings,
the computed value is a map (and thus specified dupes are removed)

Bug: 1005355
Change-Id: I2f6f0f76fdcd69cfece283625cf42f517686dc8a
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Jul 8, 2020
Make interpolation type always run CSSValues through the converter for
this property.

Update remaining WPT tests to use order-invariant comparison (as most
tests for this property already use).

spec https://drafts.csswg.org/css-fonts-4/#font-variation-settings-def

If the same axis name appears more than once, the value associated with
the last appearance supersedes any previous value for that axis. This
deduplication is observable by accessing the computed value of this
property.

resolution w3c/csswg-drafts#1959
RESOLVED: For both font-variation-settings and font-feature-settings,
the computed value is a map (and thus specified dupes are removed)

Bug: 1005355
Change-Id: I2f6f0f76fdcd69cfece283625cf42f517686dc8a
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Jul 9, 2020
Make interpolation type always run CSSValues through the converter for
this property.

Update remaining WPT tests to use order-invariant comparison (as most
tests for this property already use).

spec https://drafts.csswg.org/css-fonts-4/#font-variation-settings-def

If the same axis name appears more than once, the value associated with
the last appearance supersedes any previous value for that axis. This
deduplication is observable by accessing the computed value of this
property.

resolution w3c/csswg-drafts#1959
RESOLVED: For both font-variation-settings and font-feature-settings,
the computed value is a map (and thus specified dupes are removed)

Bug: 1005355
Change-Id: I2f6f0f76fdcd69cfece283625cf42f517686dc8a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2253248
Commit-Queue: George Steel <gtsteel@chromium.org>
Reviewed-by: Dominik Röttsches <drott@chromium.org>
Cr-Commit-Position: refs/heads/master@{#786564}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Jul 9, 2020
Make interpolation type always run CSSValues through the converter for
this property.

Update remaining WPT tests to use order-invariant comparison (as most
tests for this property already use).

spec https://drafts.csswg.org/css-fonts-4/#font-variation-settings-def

If the same axis name appears more than once, the value associated with
the last appearance supersedes any previous value for that axis. This
deduplication is observable by accessing the computed value of this
property.

resolution w3c/csswg-drafts#1959
RESOLVED: For both font-variation-settings and font-feature-settings,
the computed value is a map (and thus specified dupes are removed)

Bug: 1005355
Change-Id: I2f6f0f76fdcd69cfece283625cf42f517686dc8a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2253248
Commit-Queue: George Steel <gtsteel@chromium.org>
Reviewed-by: Dominik Röttsches <drott@chromium.org>
Cr-Commit-Position: refs/heads/master@{#786564}
blueboxd pushed a commit to blueboxd/chromium-legacy that referenced this issue Jul 9, 2020
Make interpolation type always run CSSValues through the converter for
this property.

Update remaining WPT tests to use order-invariant comparison (as most
tests for this property already use).


spec https://drafts.csswg.org/css-fonts-4/#font-variation-settings-def

If the same axis name appears more than once, the value associated with
the last appearance supersedes any previous value for that axis. This
deduplication is observable by accessing the computed value of this
property.

resolution w3c/csswg-drafts#1959
RESOLVED: For both font-variation-settings and font-feature-settings,
the computed value is a map (and thus specified dupes are removed)

Bug: 1005355
Change-Id: I2f6f0f76fdcd69cfece283625cf42f517686dc8a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2253248
Commit-Queue: George Steel <gtsteel@chromium.org>
Reviewed-by: Dominik Röttsches <drott@chromium.org>
Cr-Commit-Position: refs/heads/master@{#786564}
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this issue Jul 10, 2020
…ings when computing style., a=testonly

Automatic update from web-platform-tests
Deduplicate and sort font-variation-settings when computing style.

Make interpolation type always run CSSValues through the converter for
this property.

Update remaining WPT tests to use order-invariant comparison (as most
tests for this property already use).

spec https://drafts.csswg.org/css-fonts-4/#font-variation-settings-def

If the same axis name appears more than once, the value associated with
the last appearance supersedes any previous value for that axis. This
deduplication is observable by accessing the computed value of this
property.

resolution w3c/csswg-drafts#1959
RESOLVED: For both font-variation-settings and font-feature-settings,
the computed value is a map (and thus specified dupes are removed)

Bug: 1005355
Change-Id: I2f6f0f76fdcd69cfece283625cf42f517686dc8a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2253248
Commit-Queue: George Steel <gtsteel@chromium.org>
Reviewed-by: Dominik Röttsches <drott@chromium.org>
Cr-Commit-Position: refs/heads/master@{#786564}

--

wpt-commits: 80883e4b131fc9d75959417deadcceba1bce1b59
wpt-pr: 24246
xeonchen pushed a commit to xeonchen/gecko that referenced this issue Jul 10, 2020
…ings when computing style., a=testonly

Automatic update from web-platform-tests
Deduplicate and sort font-variation-settings when computing style.

Make interpolation type always run CSSValues through the converter for
this property.

Update remaining WPT tests to use order-invariant comparison (as most
tests for this property already use).

spec https://drafts.csswg.org/css-fonts-4/#font-variation-settings-def

If the same axis name appears more than once, the value associated with
the last appearance supersedes any previous value for that axis. This
deduplication is observable by accessing the computed value of this
property.

resolution w3c/csswg-drafts#1959
RESOLVED: For both font-variation-settings and font-feature-settings,
the computed value is a map (and thus specified dupes are removed)

Bug: 1005355
Change-Id: I2f6f0f76fdcd69cfece283625cf42f517686dc8a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2253248
Commit-Queue: George Steel <gtsteel@chromium.org>
Reviewed-by: Dominik Röttsches <drott@chromium.org>
Cr-Commit-Position: refs/heads/master@{#786564}

--

wpt-commits: 80883e4b131fc9d75959417deadcceba1bce1b59
wpt-pr: 24246
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed Accepted by CSSWG Resolution Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. css-fonts-3 css-fonts-4 Current Work
Projects
None yet
Development

No branches or pull requests

4 participants