[media-types] Review request for updated registration of text/css

Chris Lilley <chris@w3.org> Fri, 27 February 2026 16:21 UTC

Return-Path: <chris@w3.org>
X-Original-To: media-types@mail2.ietf.org
Delivered-To: media-types@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 323E7BFBE649 for <media-types@mail2.ietf.org>; Fri, 27 Feb 2026 08:21:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -4.399
X-Spam-Level:
X-Spam-Status: No, score=-4.399 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=w3.org
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Hxf2Bc1yv7uE for <media-types@mail2.ietf.org>; Fri, 27 Feb 2026 08:21:32 -0800 (PST)
Received: from anthe.w3.org (anthe.w3.org [IPv6:2600:1f18:7d7a:2700:318c:b74a:bdca:4a0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id AF41BBFBE60D for <media-types@ietf.org>; Fri, 27 Feb 2026 08:21:30 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=w3.org; s=s1; h=Subject:From:To:MIME-Version:Date:Message-ID:Content-Type:Cc:Reply-To :In-Reply-To:References; bh=zuTQrHwSaqVI3so2R2Neud0HsNpWP+1DqbCQVsrQGtM=; t=1772209290; x=1773073290; b=BGWxrJTIi2+m3tAuqjvrJ8gXeWK0eqdkGuHfd4L0hBkZ2xr EVJClKTymE+WoIk8+kISlokV35Nre1J8PhaiusaDqq2efuvMluFnJvrOh8Nkuo3ExKy6fApBHeiZ/ WAC49/9P0k3aWhxmCbeowfFx7PaovppjiMZFqHyOSGTRIuvt/qbKk+E5q3zT6QtYeZRm8jgTTxpDQ iqu4ncKTzg4c9ZBTQR7LUsZKGWqxzAzizfYlrFxQLkLks453DFZ+QJRRXo671ONXwtiPMvzZzjfwh gzuoxOITgXSWOw1t02Fzs6+VI4NBpdjLdlHrWH4Bim1ArPxEL8AAZV/4xMHoHdQg==;
Received: from ip-10-0-0-242.ec2.internal ([10.0.0.242] helo=spica.w3.internal) by anthe.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from <chris@w3.org>) id 1vw0ai-001ygx-1O for media-types@ietf.org; Fri, 27 Feb 2026 16:21:24 +0000
Received: from localhost ([::1] helo=spica.w3.internal) by spica.w3.internal with esmtp (Exim 4.96) (envelope-from <chris@w3.org>) id 1vw0ai-007BPd-1D for media-types@ietf.org; Fri, 27 Feb 2026 16:21:24 +0000
Received: from [IPV6:2601:189:8400:3b70:f993:97a6:855a:60ef] ([2601:189:8400:3b70:f993:97a6:855a:60ef]) by spica.w3.internal with ESMTPSA id RXbeD4TEoWkoIBoANTRr8w (envelope-from <chris@w3.org>) for <media-types@ietf.org>; Fri, 27 Feb 2026 16:21:24 +0000
Content-Type: multipart/alternative; boundary="------------VyPGnu0sp7pTtFUylG0UEuMw"
Message-ID: <87ceee56-f7f8-468b-921e-2fbd648e266f@w3.org>
Date: Fri, 27 Feb 2026 11:21:22 -0500
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird Beta
To: media-types@ietf.org
Content-Language: en-US
From: Chris Lilley <chris@w3.org>
Message-ID-Hash: A2HJWV4XGBHQY7KJUGBYWBDLLNOOPF5V
X-Message-ID-Hash: A2HJWV4XGBHQY7KJUGBYWBDLLNOOPF5V
X-MailFrom: chris@w3.org
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-media-types.ietf.org-0; header-match-media-types.ietf.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [media-types] Review request for updated registration of text/css
List-Id: "IANA mailing list for reviewing Media Type (MIME Type, Content Type) registration requests." <media-types.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/media-types/8mNJz6XmcKy_RV9xFMiJjluJAyo>
List-Archive: <https://mailarchive.ietf.org/arch/browse/media-types>
List-Help: <mailto:media-types-request@ietf.org?subject=help>
List-Owner: <mailto:media-types-owner@ietf.org>
List-Post: <mailto:media-types@ietf.org>
List-Subscribe: <mailto:media-types-join@ietf.org>
List-Unsubscribe: <mailto:media-types-leave@ietf.org>

Hello,

In accordance with RFC6838 section 5.5 Change Procedure, this is a 
request to update the text/css Internet Media Type.

CSS stylesheets have used text/css  since 1995, and it was registered by 
RFC2318 in March 1998. It is in widespread use.

There are several reasons to update the registration:

1. RFC2318 references the CSS Level 1 specification [1], which dates to 
1996. CSS 2 was released in 1998 [2]. CSS has become a modular 
specification, comprising over 100 modules; the collected state of CSS 
is now published annually, with the most recent publication being this 
year [3]. The canonical definition of CSS [4] is also updated annually 
to point to the latest specification. Therefore, the registration should 
point to the definition in current use, not one from thirty years ago.

2. The definition of the charset parameter in RFC2318 does not follow 
current practice, and is also incompatible with RFC6657. CSS does have 
charset information inside the corresponding payload, but this is 
optional and not widely used. The CSS Syntax level 3 specification [5] 
describes how to determine the encoding in the absence of both a charset 
parameter and an internal label, and this is the method used in practice 
by web browsers. UTF-8 is recommended for new CSS content.

3. RFC6838 states that handling of fragment identifiers (if any) should 
be described, else "N/A" should be added to indicate that there are 
none. RFC2318 is silent on this.

Therefore, starting from CSS 2026, an appendix [6] gives the 
registration template for text/css, addressing all these points. It is 
also included inline in this message. Feedback on this registration 
template is requested and, once all feedback is addressed, W3C wishes to 
update the official text/css registration and obsolete RFC2318

Note: RFC2318 has an empty "Author/Change controller:" section (!) but 
the authors are H.Lie, B. Bos and myself; I am also the W3C staff 
contact for the CSS Working Group, which defines CSS. The updated 
registration gives the CSS Working Group as  author and W3C as change 
controller. Thus in terms of RFC6838 section 5.5 I "pass responsibility" 
as owner to W3C and the W3C CSS Working Group.

[1] https://www.w3.org/TR/CSS1/
[2] https://www.w3.org/TR/1998/REC-CSS2-19980512/
[3] https://www.w3.org/TR/css-2026/
[4] https://www.w3.org/TR/css
[5] https://www.w3.org/TR/css-syntax-3/
[6] https://www.w3.org/TR/css-2026/#media-type

Type name: text

Subtype name: css

Required parameters: none

Optional parameters: charset (but see below)

Encoding considerations:

   For use with transports that are not 8-bit clean, quoted-
   printable encoding is recommended since the majority of
   characters will be CSS syntax and thus correspond to the
   US-ASCII-compatible subrange of UTF-8.

Security considerations:

   CSS is a modular specification and thus, the individual
   Security Considerations section of each CSS module in use
   should be consulted.

Interoperability considerations:

   CSS has proven to be widely interoperable across computer
   platforms, across Web browsers of different makes, and for import
   and export in multiple authoring tools.

Published specification:

   https://www.w3.org/TR/css

Applications that use this media type:

   CSS is device-, platform- and vendor-neutral and is supported by
   a wide range of Web user agents and authoring tools for
   formatting HTML documents.

Fragment identifier considerations:

   N/A

Additional information:

   Deprecated alias names for this type: N/A
   Magic number(s): N/A
   File extension(s): .css

Person & email address to contact for further information:

   The W3C CSS Working Group<www-style@w3.org>

Intended usage:

   COMMON

Restrictions on usage:

   N/A

Author: The W3C CSS Working Group

Change controller: W3C

Fallback encoding:

   For Web compatibility, to determine the character encoding,
   user agents follow the CSS Syntax Level 3 specification,
   "To determine the fallback encoding of a stylesheet"
   https://www.w3.org/TR/css-syntax-3/#determine-the-fallback-encoding

   Stylesheet authors should author their stylesheets in UTF-8, and
   ensure that either an HTTP header (or equivalent method) declares
   the encoding of the stylesheet to be UTF-8, or that the referring
   document declares its encoding to be UTF-8.


-- 
Chris Lilley
@svgeesus@mastodon.scot
W3C Distinguished Expert, Color, Graphics & Fonts
W3C Technical Programming Team, Core Web Design