-
Notifications
You must be signed in to change notification settings - Fork 660
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
[css-syntax] Urange and its problems #3588
Comments
The current state of the spec is that I require UAs to retain the representation of the tokens, and then just concatenate the representations and reparse using a bespoke algorithm to produce a unicode-range. I don't think anyone actually does this, but at least I have tests that will establish this now... web-platform-tests/wpt#15195 |
And merged web-platform-tests/wpt@62bfaeb |
@SimonSapin @emilio Firefox fails almost all of these tests, because in every single case (including the invalid ones!) it just returns exactly what the author wrote into |
An earlier thread: Tab Atkins said:
Zack Weinburg said:
Tab Atkins said:
L. David Baron said:
|
This contextualizes the current state of the spec. I tried hard to remove the representation requirement anyway, but dbaron at least was okay with it originally. |
I don't have that much context on unicode-range. @SimonSapin is a better person to ask, though I could investigate if he doesn't have the time :) |
I can reproduce this in your test case, but I don’t understand it when looking at code. When profiling though I see calls Now the parsing does take a shortcut by taking a single slice of the original input rather than concatenating the representation of each token after removing comment tokens. This would make an observable difference for cases like |
@tabatkins To sum up I think Firefox has a serialization bug around the getters of the fields of |
You just made me curious and I took a look. You're just getting and setting JS properties.
You can use That being said, I don't know what should make https://drafts.csswg.org/css-fonts-4/#dom-cssfontfacerule-style doesn't say anything. https://drafts.csswg.org/cssom-1/#cssstyledeclaration says:
https://drafts.csswg.org/cssom-1/#supported-css-property doesn't say anything about descriptors. And indeed Blink at least returns true for So that part looks a spec issue to me, if you agree I'll file it. @tabatkins maybe you could update the tests to use getPropertyValue / setProperty? I can fix https://bugzilla.mozilla.org/show_bug.cgi?id=443978 (lol, quite an old bug) and file that spec issue about descriptors in |
Ahaha, nice. Changed the test to use the method versions instead. |
Now that Firefox is being properly tested, and thus passing a lot of the tests, I'm happier about this. The WG resolved on the current spec text, and I'm happy enough with that, so I'm closing this bug as "fixed". |
I filed #3647 about CSSStyleDeclaration woes. I'll try to find some time to fix the FF bug to allow modification of font-face rules. |
…-supported, a=testonly Automatic update from web-platform-tests Use gPV/sP, as that's slightly more well-supported Requested by @emilio in <w3c/csswg-drafts#3588 (comment)> -- Merge pull request #15286 from web-platform-tests/tabatkins-patch-1 Use gPV/sP, as that's slightly more well-supported -- wpt-commits: f912ea28e7a5451f51d38d62cd0aee489618e4cb, ead8f8b00d0b68237109f3c93d0ccae076a34f98 wpt-pr: 15286
…-supported, a=testonly Automatic update from web-platform-tests Use gPV/sP, as that's slightly more well-supported Requested by @emilio in <w3c/csswg-drafts#3588 (comment)> -- Merge pull request #15286 from web-platform-tests/tabatkins-patch-1 Use gPV/sP, as that's slightly more well-supported -- wpt-commits: f912ea28e7a5451f51d38d62cd0aee489618e4cb, ead8f8b00d0b68237109f3c93d0ccae076a34f98 wpt-pr: 15286
…-supported, a=testonly Automatic update from web-platform-tests Use gPV/sP, as that's slightly more well-supported Requested by @emilio in <w3c/csswg-drafts#3588 (comment)> -- Merge pull request #15286 from web-platform-tests/tabatkins-patch-1 Use gPV/sP, as that's slightly more well-supported -- wpt-commits: f912ea28e7a5451f51d38d62cd0aee489618e4cb, ead8f8b00d0b68237109f3c93d0ccae076a34f98 wpt-pr: 15286
…-supported, a=testonly Automatic update from web-platform-tests Use gPV/sP, as that's slightly more well-supported Requested by @emilio in <w3c/csswg-drafts#3588 (comment)> -- Merge pull request #15286 from web-platform-tests/tabatkins-patch-1 Use gPV/sP, as that's slightly more well-supported -- wpt-commits: f912ea28e7a5451f51d38d62cd0aee489618e4cb, ead8f8b00d0b68237109f3c93d0ccae076a34f98 wpt-pr: 15286
…-supported, a=testonly Automatic update from web-platform-tests Use gPV/sP, as that's slightly more well-supported Requested by emilio in <w3c/csswg-drafts#3588 (comment)> -- Merge pull request #15286 from web-platform-tests/tabatkins-patch-1 Use gPV/sP, as that's slightly more well-supported -- wpt-commits: f912ea28e7a5451f51d38d62cd0aee489618e4cb, ead8f8b00d0b68237109f3c93d0ccae076a34f98 wpt-pr: 15286 UltraBlame original commit: 0cc2cbc16dda0f8e5e6538edb4cea4cf2087927f
…-supported, a=testonly Automatic update from web-platform-tests Use gPV/sP, as that's slightly more well-supported Requested by emilio in <w3c/csswg-drafts#3588 (comment)> -- Merge pull request #15286 from web-platform-tests/tabatkins-patch-1 Use gPV/sP, as that's slightly more well-supported -- wpt-commits: f912ea28e7a5451f51d38d62cd0aee489618e4cb, ead8f8b00d0b68237109f3c93d0ccae076a34f98 wpt-pr: 15286 UltraBlame original commit: 0cc2cbc16dda0f8e5e6538edb4cea4cf2087927f
…-supported, a=testonly Automatic update from web-platform-tests Use gPV/sP, as that's slightly more well-supported Requested by emilio in <w3c/csswg-drafts#3588 (comment)> -- Merge pull request #15286 from web-platform-tests/tabatkins-patch-1 Use gPV/sP, as that's slightly more well-supported -- wpt-commits: f912ea28e7a5451f51d38d62cd0aee489618e4cb, ead8f8b00d0b68237109f3c93d0ccae076a34f98 wpt-pr: 15286 UltraBlame original commit: b3874f50c9fb17379335c08ce79eaf35d6a4a3ff
…-supported, a=testonly Automatic update from web-platform-tests Use gPV/sP, as that's slightly more well-supported Requested by emilio in <w3c/csswg-drafts#3588 (comment)> -- Merge pull request #15286 from web-platform-tests/tabatkins-patch-1 Use gPV/sP, as that's slightly more well-supported -- wpt-commits: f912ea28e7a5451f51d38d62cd0aee489618e4cb, ead8f8b00d0b68237109f3c93d0ccae076a34f98 wpt-pr: 15286 UltraBlame original commit: 0cc2cbc16dda0f8e5e6538edb4cea4cf2087927f
…-supported, a=testonly Automatic update from web-platform-tests Use gPV/sP, as that's slightly more well-supported Requested by emilio in <w3c/csswg-drafts#3588 (comment)> -- Merge pull request #15286 from web-platform-tests/tabatkins-patch-1 Use gPV/sP, as that's slightly more well-supported -- wpt-commits: f912ea28e7a5451f51d38d62cd0aee489618e4cb, ead8f8b00d0b68237109f3c93d0ccae076a34f98 wpt-pr: 15286 UltraBlame original commit: b3874f50c9fb17379335c08ce79eaf35d6a4a3ff
…-supported, a=testonly Automatic update from web-platform-tests Use gPV/sP, as that's slightly more well-supported Requested by emilio in <w3c/csswg-drafts#3588 (comment)> -- Merge pull request #15286 from web-platform-tests/tabatkins-patch-1 Use gPV/sP, as that's slightly more well-supported -- wpt-commits: f912ea28e7a5451f51d38d62cd0aee489618e4cb, ead8f8b00d0b68237109f3c93d0ccae076a34f98 wpt-pr: 15286 UltraBlame original commit: b3874f50c9fb17379335c08ce79eaf35d6a4a3ff
(migrated from the mailing list, for easier tracking here)
Tab Atkins said:
fantasai said:
Tab Atkins said:
Florian Rivoal said:
Florian Rivoal said:
Simon Sapin said:
Tab Atkins said:
The text was updated successfully, but these errors were encountered: