On Wed, Nov 29, 2023 at 4:34 PM Yoav Weiss <[email protected]> wrote:

> I wonder if we should hold off on adding @import support until such a
> solution emerges.


On second thought, since we didn't delay `layer`, there's no real reason to
delay shipping here.
But I strongly urge you to nudge this along :)


> In any case, similar to layer
> <https://groups.google.com/a/chromium.org/g/blink-dev/c/ZCN2tBZ2cUY/m/BQAcIIjFCAAJ?utm_medium=email&utm_source=footer>
>  support,
> you probably want to add tests that make sure that the preload scanner is
> properly preloading such inlined rules, and want to make sure that
> developer facing advice clarifies the huge cost of using this in external
> styles.
>
> On Wednesday, November 22, 2023 at 2:33:22 PM UTC+1 Daniil Sakhapov wrote:
>
>> Yes, thanks, I saw this discussion and will keep my eye on it. So, once
>> the solution for back comp is found there, I'll work on it.
>>
>> On Wednesday, November 22, 2023 at 12:40:27 PM UTC+1 Noam Rosenthal wrote:
>>
>>> One open issue that I didn't see mentioned and is worth noting, is a
>>> missing equivalent in <link> elements (similar to <link media=...>. This
>>> creates an inconsistency where you can have conditional imports in CSS but
>>> not directly from HTML. This is mentioned in
>>> https://github.com/whatwg/html/issues/7540. Not saying it should block
>>> shipping, but rather that it should be considered an open issue.
>>>
>>> On Wed, Nov 22, 2023 at 5:47 AM Yoav Weiss <[email protected]>
>>> wrote:
>>>
>>>> LGTM1
>>>>
>>>> While I'm not excited about @import in general and think no one should
>>>> use it, this restricts it in potentially useful ways.
>>>>
>>>> On Wednesday, November 15, 2023 at 3:28:48 PM UTC+1 Daniil Sakhapov
>>>> wrote:
>>>>
>>>>> Contact [email protected]
>>>>>
>>>>> Specificationhttps://www.w3.org/TR/css-cascade-5/#conditional-import
>>>>>
>>>>> Summary
>>>>>
>>>>> It allows to import stylesheets and layers conditioned on supports().
>>>>> If the support() doesn't match, the import will not be fetched.
>>>>>
>>>>>
>>>>> Example: @import "mystyle.css" supports(display: flex);
>>>>>
>>>>> Blink componentBlink>CSS
>>>>> <https://bugs.chromium.org/p/chromium/issues/list?q=component:Blink%3ECSS>
>>>>>
>>>>> TAG reviewNone
>>>>>
>>>>> TAG review statusNot applicable
>>>>>
>>>>> Risks
>>>>>
>>>>>
>>>>> Interoperability and Compatibility
>>>>>
>>>>> None
>>>>>
>>>>>
>>>>> *Gecko*: Shipped/Shipping
>>>>>
>>>>> *WebKit*: No signal (
>>>>> https://github.com/WebKit/standards-positions/issues/279)
>>>>>
>>>>> *Web developers*: No signals
>>>>>
>>>>> *Other signals*:
>>>>>
>>>>> WebView application risks
>>>>>
>>>>> Does this intent deprecate or change behavior of existing APIs, such
>>>>> that it has potentially high risk for Android WebView-based applications?
>>>>>
>>>>> None
>>>>>
>>>>> Will this feature be supported on all six Blink platforms (Windows,
>>>>> Mac, Linux, Chrome OS, Android, and Android WebView)?Yes
>>>>>
>>>>> Is this feature fully tested by web-platform-tests
>>>>> <https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md>
>>>>> ?Yes
>>>>>
>>>>> https://wpt.fyi/results/css/css-cascade/import-conditions.html
>>>>> https://wpt.fyi/css/cssom/cssimportrule.html
>>>>>
>>>>>
>>>>> Flag name on chrome://flagsCSSSupportsForImportRules
>>>>>
>>>>> Requires code in //chrome?False
>>>>>
>>>>> Estimated milestones
>>>>> DevTrial on desktop 121
>>>>> DevTrial on Android 121
>>>>>
>>>>> Anticipated spec changes
>>>>>
>>>>> 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).
>>>>> None
>>>>>
>>>>> Link to entry on the Chrome Platform Status
>>>>> https://chromestatus.com/feature/5899007704694784
>>>>>
>>>>> This intent message was generated by Chrome Platform Status
>>>>> <https://chromestatus.com/>.
>>>>>
>>>> --
>>>> 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 [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/a/chromium.org/d/msgid/blink-dev/13305766-65c8-427c-85a4-fc457c855bf0n%40chromium.org
>>>> <https://groups.google.com/a/chromium.org/d/msgid/blink-dev/13305766-65c8-427c-85a4-fc457c855bf0n%40chromium.org?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAL5BFfWeRMY60Cy9O41RL22xC-A_BNFYtOQkc3CyY5qnUkZAsQ%40mail.gmail.com.

Reply via email to