Skip to content
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

Support the @supports CSS at-rule #762

Merged
merged 2 commits into from
Sep 3, 2021
Merged

Conversation

MurakamiShinyu
Copy link
Member

Spec: CSS Conditional Rules Module Level 3 https://www.w3.org/TR/css-conditional-3/

Tests: https://github.com/web-platform-tests/wpt/tree/master/css/css-conditional

Now it passes all non-javascript tests in https://github.com/web-platform-tests/wpt/tree/master/css/css-conditional
except "at-supports-040.html" that is for the Level 4 selector(...) not supported yet
and "css-supports-042.xht" that is an edge case that Chromium also fails.

resolves #730

This code was added in the commit
f1da32b
on Nov 5, 2015.

https://github.com/vivliostyle/vivliostyle.js/blob/f1da32b54843bb3d9ef2d50ab282f73b36df15b7/src/adapt/expr.js#L1333-L1338

It seems that the `this.value.dependOuter(other, context, dependencyCache)` has error (`this.value` is never set) and is never evaluated, so this override method should not have been added.
Spec: CSS Conditional Rules Module Level 3 https://www.w3.org/TR/css-conditional-3/

Tests: https://github.com/web-platform-tests/wpt/tree/master/css/css-conditional

Now it passes all non-javascript tests in the https://github.com/web-platform-tests/wpt/tree/master/css/css-conditional
except "at-supports-040.html" that is for the Level 4 `selector(...)` not supported yet
and "css-supports-042.xht" that is an edge case that Chromium also fails.

resolves #730
@vercel
Copy link

vercel bot commented Sep 3, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/vivliostyle/vivliostyle/5jcbKvakjaYRoQn2KW6NWtbrG2bU
✅ Preview: https://vivliostyle-git-support-supports-vivliostyle.vercel.app

@MurakamiShinyu MurakamiShinyu merged commit 6be255d into master Sep 3, 2021
@MurakamiShinyu MurakamiShinyu deleted the support-supports branch September 3, 2021 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support the @supports CSS at-rule
1 participant