Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement CSS Values 3 extensions to attr() #22265
Open
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The CSS Values and Units Module Level 3 extends the
attr(…)function syntax with a fallback value and the parsed value type.The main advantage of this is that it allows for properties to be dynamically changed using data attributes without needing to use
style-src: 'unsafe-inline'and thestyleattribute.Stylo currently doesn’t support this:
servo/components/style/values/specified/mod.rs
Lines 705 to 707 in 2e0191b
See also bug 435426 and bug 1493962