In https://github.com/w3c/csswg-drafts/issues/11645#issuecomment-2701601350 it was resolved to replace `string` attr() type with `raw-string`, see: https://drafts.csswg.org/css-values-5/#attr-notation. Change attr() syntax, so that `attr(data-foo string)` will now become `attr(data-foo raw-string)`.
Feature was launched recently in M133 and not supported in other browsers yet, so shouldn't be a high risk.
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
None
This is minor syntax change, doesn't require additional support from DevTools
Shipping on desktop | 136 |
Shipping on Android | 136 |
Shipping on WebView | 136 |
Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).
NoneOn 3/11/25 5:48 AM, 'Munira Tursunova' via blink-dev wrote:
Contact emails
moo...@google.com, and...@chromium.org
Explainer
None
Specification
https://drafts.csswg.org/css-values-5/#attr-notation
Summary
In https://github.com/w3c/csswg-drafts/issues/11645#issuecomment-2701601350 it was resolved to replace `string` attr() type with `raw-string`, see: https://drafts.csswg.org/css-values-5/#attr-notation. Change attr() syntax, so that `attr(data-foo string)` will now become `attr(data-foo raw-string)`.
Blink component
Blink>CSS
TAG review
None
TAG review status
Pending
Risks
Interoperability and Compatibility
Feature was launched recently in M133 and not supported in other browsers yet, so shouldn't be a high risk.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAAO7W_AkzsbO_zudgyt%3DYy6dBp2OKYcgSZZ2UHnUou0--o8Phg%40mail.gmail.com.
On Thursday, March 13, 2025 at 7:09:03 PM UTC+1 Mike Taylor wrote:
On 3/11/25 5:48 AM, 'Munira Tursunova' via blink-dev wrote:
Contact emails moo...@google.com, and...@chromium.org
Explainer None
Specification https://drafts.csswg.org/css-values-5/#attr-notation
SummaryIn https://github.com/w3c/csswg-drafts/issues/11645#issuecomment-2701601350 it was resolved to replace `string` attr() type with `raw-string`, see: https://drafts.csswg.org/css-values-5/#attr-notation. Change attr() syntax, so that `attr(data-foo string)` will now become `attr(data-foo raw-string)`.
Blink component Blink>CSS
TAG review None
TAG review status Pending
Risks
Interoperability and CompatibilityFeature was launched recently in M133 and not supported in other browsers yet, so shouldn't be a high risk.
Do we have any sense of current usage? And do we have a plan to communicate the change to developers?
That sounds promising, but do we have any UseCounter data?Usage of `attr(data-x string)` seems pretty much inexistent because:
- This is Chrome-first and so far I’ve only seen a limited set of demos (that do not even use string).- When a type is omitted - i.e. when using `attr(data-x)` – it behaves like `attr(data-x raw-string)`. The short for is what authors have been using so far.
Thanks for that.
As for communication I have prepared a PR to update MDN: https://github.com/mdn/content/pull/38580 which is awaiting review. The blog post + demos on developer.chrome.com (See https://developer.chrome.com/blog/advanced-attr) do not mention `attr(data-x string)` as the post points to MDN for docs. I can add an update banner to the post.
On 3/11/25 5:48 AM, 'Munira Tursunova' via blink-dev wrote:
Contact emails moo...@google.com, and...@chromium.org
Explainer None
Specification https://drafts.csswg.org/css-values-5/#attr-notation
SummaryIn https://github.com/w3c/csswg-drafts/issues/11645#issuecomment-2701601350 it was resolved to replace `string` attr() type with `raw-string`, see: https://drafts.csswg.org/css-values-5/#attr-notation. Change attr() syntax, so that `attr(data-foo string)` will now become `attr(data-foo raw-string)`.
Blink component Blink>CSS
TAG review None
TAG review status Pending
Risks
Interoperability and CompatibilityFeature was launched recently in M133 and not supported in other browsers yet, so shouldn't be a high risk.
Do we have any sense of current usage? And do we have a plan to communicate the change to developers?
That sounds promising, but do we have any UseCounter data?
Thank you for looking into that. Do you have any sense of the
relative impact of the breakage for each site, i.e., does some
text look funny (low) vs the page is unusable due to broken layout
or missing content (high)?
Is there someone on your team that might be able to attempt
outreach to get these sites to update?
Do you have any sense of the relative impact of the breakage for each site, i.e., does some text look funny (low) vs the page is unusable due to broken layout or missing content (high)?
Is there someone on your team that might be able to attempt outreach to get these sites to update?
Why would we change this? We backed the original intent with the usual conditions: once the concrete is poured, it's done. I'm not inclined to approve.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
LGTM3 - thanks!