<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Downread Test — CSS Styles (RSS 2.0)</title>
    <link>https://test-rss.downread.com/styles.rss.xml</link>
    <atom:link href="https://test-rss.downread.com/styles.rss.xml" rel="self" type="application/rss+xml" />
    <description>Inline CSS in post content: harmless author styling that should survive, and disruptive styling that must be neutralised.</description>
    <language>en-us</language>
    <lastBuildDate>Fri, 21 Aug 2026 12:00:00 +0000</lastBuildDate>

    <item>
      <title>Styles 12 — Harmless rules in a &lt;style&gt; element (support check)</title>
      <link>https://test-rss.downread.com/styles/style-element</link>
      <guid isPermaLink="false">downread-test-styles-style-element</guid>
      <pubDate>Fri, 21 Aug 2026 12:00:00 +0000</pubDate>
      <description><![CDATA[A <style> block with harmless class, id, element, pseudo-element and @media rules, next to inline-style equivalents.]]></description>
      <content:encoded><![CDATA[<style>
.dr-style-test-green { color: #1e8e3e; font-weight: bold; }
.dr-style-test-box { border: 2px solid #3b6cf0; background-color: #eef3ff; padding: 10px; border-radius: 6px; }
#dr-style-test-id { color: #c0392b; text-decoration: underline; }
.dr-style-test-list li { color: #8e44ad; }
.dr-style-test-list li:nth-child(2) { color: #d35400; }
.dr-style-test-before::before { content: "[BEFORE] "; color: #1e8e3e; }
.dr-style-test-hover:hover { background-color: #ffe066; }
@media (max-width: 600px) { .dr-style-test-narrow { color: #1e8e3e; } }
p { letter-spacing: 0.3em; }
</style>
<p><em>Expected:</em> this post tells us whether a <code>&lt;style&gt;</code> element is kept (sanitised) or dropped. All rules above are harmless. For each line, the inline-styled twin shows what the class-styled line looks like when the rule applies.</p>
<p class="dr-style-test-green">1. Class rule: green and bold if &lt;style&gt; works.</p>
<p style="color: #1e8e3e; font-weight: bold;">1. Inline twin: always green and bold.</p>
<div class="dr-style-test-box">2. Class rule: blue bordered, light blue box if &lt;style&gt; works.</div>
<div style="border: 2px solid #3b6cf0; background-color: #eef3ff; padding: 10px; border-radius: 6px; margin-top: 8px;">2. Inline twin: always a blue bordered box.</div>
<p id="dr-style-test-id">3. Id rule: red and underlined if &lt;style&gt; works and ids survive (or are rewritten consistently with the rule).</p>
<ul class="dr-style-test-list"><li>4. Descendant rule: purple if &lt;style&gt; works.</li><li>4. :nth-child rule: orange if &lt;style&gt; works.</li></ul>
<p class="dr-style-test-before">5. Pseudo-element: prefixed with a green "[BEFORE]" if ::before rules work.</p>
<p class="dr-style-test-hover">6. Hover rule: turns yellow on mouse-over if :hover rules work.</p>
<p class="dr-style-test-narrow">7. @media rule: green on narrow screens (≤ 600px) if @media works, normal colour on wide screens.</p>
<p>8. Scoping: the stylesheet also contains a bare <code>p { letter-spacing: 0.3em; }</code>. If <em>this</em> post's paragraphs are widely spaced, element rules apply; if paragraphs <em>outside</em> this post (other posts, app UI) are spaced too, the stylesheet was not scoped to the post and leaks.</p>]]></content:encoded>
    </item>

    <item>
      <title>Styles 01 — Text colour and font styling (should survive)</title>
      <link>https://test-rss.downread.com/styles/text</link>
      <guid isPermaLink="false">downread-test-styles-text</guid>
      <pubDate>Thu, 20 Aug 2026 12:00:00 +0000</pubDate>
      <description><![CDATA[Simple, harmless inline styling: colour, weight, style, decoration, size.]]></description>
      <content:encoded><![CDATA[<p><em>Expected:</em> every effect below renders. Nothing here can hurt the layout.</p>
<p style="color: #c0392b;">A paragraph in red (<code>color: #c0392b</code>).</p>
<p style="color: rgb(30, 120, 200);">A paragraph in blue via <code>rgb()</code>.</p>
<p>Inline spans: <span style="color: green;">green</span>, <span style="font-weight: bold;">bold</span>, <span style="font-style: italic;">italic</span>, <span style="text-decoration: underline;">underlined</span>, <span style="text-decoration: line-through;">struck through</span>, <span style="background-color: #ffe066;">highlighted</span>.</p>
<p style="font-size: 0.8em;">Smaller text (<code>font-size: 0.8em</code>).</p>
<p style="font-size: 1.6em;">Larger text (<code>font-size: 1.6em</code>).</p>
<p style="font-size: 14px;">Absolute 14px text — should not fight the reader's font-size setting too badly.</p>
<p style="letter-spacing: 2px; text-transform: uppercase;">Letter spaced and uppercased.</p>
<p style="text-align: center;">Centered text.</p>
<p style="text-align: right;">Right aligned text.</p>
<p style="line-height: 2;">A paragraph with double line height. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
<p style="font-variant: small-caps;">Small caps text.</p>
<p style="white-space: pre;">Preformatted    whitespace    kept.</p>]]></content:encoded>
    </item>

    <item>
      <title>Styles 02 — Boxes, borders and spacing (should survive)</title>
      <link>https://test-rss.downread.com/styles/boxes</link>
      <guid isPermaLink="false">downread-test-styles-boxes</guid>
      <pubDate>Thu, 20 Aug 2026 11:00:00 +0000</pubDate>
      <description><![CDATA[Borders, padding, margins, radius, background colours on divs.]]></description>
      <content:encoded><![CDATA[<p><em>Expected:</em> boxes render as described and stay inside the content column.</p>
<div style="border: 1px solid #888; padding: 12px; border-radius: 6px;">A bordered, padded, rounded box.</div>
<div style="background-color: #f0f4ff; padding: 16px; margin: 16px 0; border-left: 4px solid #3b6cf0;">A callout box: light background, left accent border.</div>
<div style="border: 2px dashed #c0392b; padding: 8px; margin-top: 12px;">Dashed warning box.</div>
<blockquote style="border-left: 3px solid #999; padding-left: 12px; color: #555; font-style: italic;">A styled pull quote.</blockquote>
<p style="padding: 20px; background-color: #eee; box-sizing: border-box;">A padded paragraph with <code>box-sizing: border-box</code>.</p>
<p style="margin-left: 40px;">Indented by margin-left: 40px.</p>
<p style="text-indent: 3em;">Indented first line via text-indent.</p>
<div style="width: 50%; background-color: #ddeedd; padding: 8px;">A half-width box (<code>width: 50%</code>) — legitimate and should stay half width.</div>
<img src="https://data.downread.com/images/test-image-1.png" alt="Downread test image" style="max-width: 100%; border: 1px solid #999; border-radius: 8px;" />]]></content:encoded>
    </item>

    <item>
      <title>Styles 03 — Styled lists and tables (should survive)</title>
      <link>https://test-rss.downread.com/styles/lists-tables</link>
      <guid isPermaLink="false">downread-test-styles-lists-tables</guid>
      <pubDate>Thu, 20 Aug 2026 10:00:00 +0000</pubDate>
      <description><![CDATA[list-style, border-collapse, cell backgrounds and legacy table attributes.]]></description>
      <content:encoded><![CDATA[<p><em>Expected:</em> list markers and table styling render; the legacy table below is capped to the content width.</p>
<ul style="list-style-type: square;"><li>Square bullet</li><li>Second item</li></ul>
<ol style="list-style-type: upper-roman;"><li>Roman one</li><li>Roman two</li></ol>
<ul style="list-style-position: inside; color: #555;"><li>Markers inside, grey text</li></ul>
<table style="border-collapse: collapse; width: 100%;">
<thead><tr style="background-color: #eef;"><th style="border: 1px solid #99a; padding: 6px; text-align: left;">Property</th><th style="border: 1px solid #99a; padding: 6px;">Value</th></tr></thead>
<tbody>
<tr><td style="border: 1px solid #99a; padding: 6px;">color</td><td style="border: 1px solid #99a; padding: 6px; color: #c0392b;">#c0392b</td></tr>
<tr style="background-color: #fafafa;"><td style="border: 1px solid #99a; padding: 6px;">font-weight</td><td style="border: 1px solid #99a; padding: 6px; font-weight: bold;">bold</td></tr>
</tbody></table>
<p>Legacy newsletter-style table (attributes, not CSS):</p>
<table width="90%" border="1" cellpadding="6" cellspacing="0" bgcolor="#f7f7f7">
<tr><td width="50%" align="center" valign="top" bgcolor="#eeeeee">Left cell</td><td align="right">Right cell</td></tr>
</table>]]></content:encoded>
    </item>

    <item>
      <title>Styles 04 — Oversized widths (must be contained)</title>
      <link>https://test-rss.downread.com/styles/oversize</link>
      <guid isPermaLink="false">downread-test-styles-oversize</guid>
      <pubDate>Thu, 20 Aug 2026 09:00:00 +0000</pubDate>
      <description><![CDATA[width: 200%, huge pixel widths, oversized max-width and legacy width attributes.]]></description>
      <content:encoded><![CDATA[<p><em>Expected:</em> nothing below may widen the post, cause horizontal page scrolling, or overlap the app chrome.</p>
<div style="width: 200%; background-color: #ffdddd; padding: 8px;">width: 200% — twice the column.</div>
<div style="width: 1600px; background-color: #ffeedd; padding: 8px;">width: 1600px — fixed and far wider than a phone.</div>
<div style="width: 100vw; background-color: #ffffdd; padding: 8px;">width: 100vw — full viewport width, ignores the reading column.</div>
<div style="max-width: 2000px; width: 300%; background-color: #ddffdd; padding: 8px;">max-width: 2000px + width: 300%.</div>
<div style="min-width: 1200px; background-color: #ddffff; padding: 8px;">min-width: 1200px.</div>
<p style="width: 150%; background-color: #eeddff;">A paragraph at width: 150%.</p>
<table width="3000" border="1"><tr><td>A table with width="3000"</td><td>second cell</td></tr></table>
<table style="width: 250%; border: 1px solid #888;"><tr><td>A table styled width: 250%</td></tr></table>
<img src="https://data.downread.com/images/test-image-1.png" alt="Oversized image" width="4000" height="3000" />
<img src="https://data.downread.com/images/test-image-1.png" alt="Image styled too wide" style="width: 200%;" />]]></content:encoded>
    </item>

    <item>
      <title>Styles 05 — Layout escapes: position, float, transform (must be neutralised)</title>
      <link>https://test-rss.downread.com/styles/layout-escape</link>
      <guid isPermaLink="false">downread-test-styles-layout-escape</guid>
      <pubDate>Thu, 20 Aug 2026 08:00:00 +0000</pubDate>
      <description><![CDATA[position: fixed overlays, z-index, transform, float, display: flex/grid, opacity.]]></description>
      <content:encoded><![CDATA[<p><em>Expected:</em> none of these properties survive sanitisation — no overlay covers the UI, no element escapes the post body.</p>
<div style="position: fixed; top: 0; left: 0; width: 100%; height: 60px; background-color: #ff0000; color: #fff; z-index: 99999;">FIXED OVERLAY — if you can see this pinned to the top of the window, position: fixed leaked through.</div>
<div style="position: absolute; top: 200px; left: 0; background-color: #000; color: #fff; padding: 20px;">Absolutely positioned box.</div>
<div style="position: sticky; top: 0; background-color: #ffcc00; padding: 8px;">Sticky bar.</div>
<div style="transform: scale(3) rotate(15deg); background-color: #cfc; padding: 8px;">transform: scale(3) rotate(15deg)</div>
<div style="float: right; width: 60%; background-color: #fcf; padding: 8px;">float: right</div>
<div style="display: flex; gap: 20px;"><div style="flex: 1; background-color: #eee; padding: 8px;">flex child A</div><div style="flex: 1; background-color: #ddd; padding: 8px;">flex child B</div></div>
<div style="display: grid; grid-template-columns: 1fr 1fr 1fr;"><div>grid A</div><div>grid B</div><div>grid C</div></div>
<div style="opacity: 0.05;">Nearly invisible text (opacity: 0.05) — should render at normal opacity.</div>
<div style="filter: blur(4px); mix-blend-mode: difference;">Blurred / blended text.</div>
<div style="pointer-events: none; user-select: none;">Text that tries to block selection and clicks — selecting and clicking must still work.</div>
<div style="animation: spin 1s infinite; transition: all 2s;">Animated element.</div>]]></content:encoded>
    </item>

    <item>
      <title>Styles 06 — Colours that fight the theme (dark mode check)</title>
      <link>https://test-rss.downread.com/styles/theme-clash</link>
      <guid isPermaLink="false">downread-test-styles-theme-clash</guid>
      <pubDate>Thu, 20 Aug 2026 07:00:00 +0000</pubDate>
      <description><![CDATA[Hardcoded light-mode colours, white-on-white and black-on-black text.]]></description>
      <content:encoded><![CDATA[<p><em>Expected:</em> read this post in both light and dark theme. Nothing should become unreadable; check whether hardcoded colours need a background of their own.</p>
<p style="color: #ffffff;">White text with no background — invisible on a light theme.</p>
<p style="color: #000000;">Black text with no background — invisible on a dark theme.</p>
<p style="background-color: #ffffff;">A block that hardcodes a white background but not a text colour.</p>
<p style="background-color: #111111;">A block that hardcodes a near-black background but not a text colour.</p>
<div style="background-color: #ffffff; color: #222222; padding: 12px;">Fully specified light card (white background, dark text) — always readable, but light in dark mode.</div>
<div style="background: #202020; color: #f0f0f0; padding: 12px;">Fully specified dark card.</div>
<p style="color: transparent;">Transparent text — should not vanish.</p>
<p style="color: #eeeeee; background-color: #f8f8f8;">Very low contrast: #eee on #f8f8f8.</p>
<a href="https://downread.com/" style="color: #ffff00;">A link forced to yellow.</a>]]></content:encoded>
    </item>

    <item>
      <title>Styles 07 — Extreme font sizes and spacing (must stay readable)</title>
      <link>https://test-rss.downread.com/styles/extreme-metrics</link>
      <guid isPermaLink="false">downread-test-styles-extreme-metrics</guid>
      <pubDate>Thu, 20 Aug 2026 06:00:00 +0000</pubDate>
      <description><![CDATA[Huge fonts, enormous padding, negative margins, absurd letter-spacing.]]></description>
      <content:encoded><![CDATA[<p><em>Expected:</em> the post stays usable; text may look silly but must not push content off-screen or leave the column.</p>
<p style="font-size: 12em;">HUGE</p>
<p style="font-size: 300px;">300px</p>
<p style="font-size: 2px;">Tiny 2px text.</p>
<p style="letter-spacing: 3em;">Wide letter spacing.</p>
<p style="word-spacing: 8em;">Very wide word spacing here.</p>
<p style="line-height: 12;">Enormous line height across a couple of lines of text so the gap is obvious in the flow.</p>
<div style="padding: 200px; background-color: #eef;">200px padding on every side.</div>
<div style="margin-left: -500px; background-color: #fee;">margin-left: -500px — tries to escape the column to the left.</div>
<div style="margin-right: -500px; background-color: #efe;">margin-right: -500px — tries to escape to the right.</div>
<div style="margin: -100px 0 0 0; background-color: #ffe;">Negative top margin, overlapping the previous block.</div>
<div style="height: 2000px; background-color: #f6f6f6;">A 2000px tall empty block.</div>
<p style="text-indent: 50em;">Absurd text indent.</p>]]></content:encoded>
    </item>

    <item>
      <title>Styles 08 — CSS that tries to fetch or execute (must be stripped)</title>
      <link>https://test-rss.downread.com/styles/css-fetch</link>
      <guid isPermaLink="false">downread-test-styles-css-fetch</guid>
      <pubDate>Thu, 20 Aug 2026 05:00:00 +0000</pubDate>
      <description><![CDATA[url() beacons, localhost fetches, CSS escapes, expression(), style/link tags.]]></description>
      <content:encoded><![CDATA[<p><em>Expected:</em> no network request leaves the reader for any of these. Watch the network tab — there must be zero requests to tracker.example.com or 127.0.0.1, and no CSS rule from the style/link tags may apply.</p>
<div style="background: url(https://tracker.example.com/beacon.gif);">background: url() tracking beacon.</div>
<div style="background-image: url('https://tracker.example.com/pixel.png');">background-image: url()</div>
<div style="background: #eee url(http://127.0.0.1:8080/probe.png) no-repeat;">A shorthand background pointing at localhost.</div>
<div style="background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciLz4=);">background: url(data:...)</div>
<ul style="list-style: url(https://tracker.example.com/bullet.png);"><li>list-style: url() bullet.</li></ul>
<div style="background: \75 rl(https://tracker.example.com/escaped.gif);">CSS-escaped url() — <code>\75 rl(</code>.</div>
<div style="background: url\28 https://tracker.example.com/escaped2.gif\29 ;">CSS-escaped parens — <code>url\28 ... \29</code>.</div>
<div style="width: expression(alert('css'));">IE expression().</div>
<div style="behavior: url(#default#userdata);">behavior: url()</div>
<div style="background: image-set('https://tracker.example.com/1x.png' 1x);">image-set()</div>
<style>body { background: #f00 !important; } .post-content p { color: #0f0 !important; }</style>
<link rel="stylesheet" href="https://tracker.example.com/inject.css" />
<p>Text after the style and link tags — these two tags must be dropped entirely, and this paragraph must keep its normal colour.</p>]]></content:encoded>
    </item>

    <item>
      <title>Styles 09 — Overflow and unbreakable content (must not scroll the page)</title>
      <link>https://test-rss.downread.com/styles/overflow</link>
      <guid isPermaLink="false">downread-test-styles-overflow</guid>
      <pubDate>Thu, 20 Aug 2026 04:00:00 +0000</pubDate>
      <description><![CDATA[Very long words and URLs, wide pre blocks, white-space: nowrap.]]></description>
      <content:encoded><![CDATA[<p><em>Expected:</em> long content wraps or scrolls inside its own block; the page itself never scrolls sideways.</p>
<p>Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa — one unbreakable word.</p>
<p><a href="https://example.com/a/very/long/path/that/keeps/going/and/going?with=query&amp;and=more&amp;parameters=that&amp;never=seem&amp;to=end&amp;at=all">https://example.com/a/very/long/path/that/keeps/going/and/going?with=query&amp;and=more&amp;parameters=that&amp;never=seem&amp;to=end&amp;at=all</a></p>
<p style="white-space: nowrap;">A very long line that explicitly refuses to wrap because it sets white-space: nowrap, and it keeps going well past the width of any phone screen.</p>
<p style="white-space: pre;">preformatted line that is extremely long and should not be allowed to widen the article body beyond the reading column at any viewport size</p>
<pre><code>const configuration = { alpha: 1, beta: 2, gamma: 3, delta: 4, epsilon: 5, zeta: 6, eta: 7, theta: 8, iota: 9, kappa: 10, lambda: 11 };</code></pre>
<pre>a_very_long_unbroken_token_in_a_pre_block_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</pre>
<table style="border-collapse: collapse;"><tr><td style="border: 1px solid #999; padding: 4px;">Column one with a fair amount of text</td><td style="border: 1px solid #999; padding: 4px;">Column two with a fair amount of text</td><td style="border: 1px solid #999; padding: 4px;">Column three with a fair amount of text</td><td style="border: 1px solid #999; padding: 4px;">Column four with a fair amount of text</td><td style="border: 1px solid #999; padding: 4px;">Column five with a fair amount of text</td></tr></table>]]></content:encoded>
    </item>

    <item>
      <title>Styles 10 — Hidden content (newsletter preview-text patterns)</title>
      <link>https://test-rss.downread.com/styles/hidden</link>
      <guid isPermaLink="false">downread-test-styles-hidden</guid>
      <pubDate>Thu, 20 Aug 2026 03:00:00 +0000</pubDate>
      <description><![CDATA[display: none, max-height: 0, font-size: 0 and colour-matched hiding.]]></description>
      <content:encoded><![CDATA[<p><em>Expected:</em> the HIDDEN markers below stay invisible in the body, and none of them should end up in the post summary or list preview.</p>
<div style="display: none;">HIDDEN-A: display none.</div>
<div style="max-height: 0; overflow: hidden;">HIDDEN-B: max-height zero.</div>
<div style="font-size: 0;">HIDDEN-C: zero font size.</div>
<div style="color: #ffffff; background-color: #ffffff;">HIDDEN-D: white on white.</div>
<div style="visibility: hidden;">HIDDEN-E: visibility hidden.</div>
<div style="display: none; max-height: 0; overflow: hidden; font-size: 1px; line-height: 1px; color: transparent;">HIDDEN-F: the full email preheader cocktail.</div>
<p>Visible body text starts here — this is what the reader should actually see first.</p>
<details><summary style="font-weight: bold; color: #3b6cf0;">A collapsed section (styled summary)</summary><p style="padding: 8px; background-color: #f4f4f4;">Content revealed on expand.</p></details>]]></content:encoded>
    </item>

    <item>
      <title>Styles 11 — Full page takeover attempt (worst case)</title>
      <link>https://test-rss.downread.com/styles/takeover</link>
      <guid isPermaLink="false">downread-test-styles-takeover</guid>
      <pubDate>Thu, 20 Aug 2026 02:00:00 +0000</pubDate>
      <description><![CDATA[Everything disruptive at once: full-bleed overlay, id clobbering, giant z-index.]]></description>
      <content:encoded><![CDATA[<p><em>Expected:</em> the app remains fully usable — navigation reachable, no element covering the UI, ids namespaced so nothing clobbers the app's own elements.</p>
<div id="root" style="position: fixed; inset: 0; width: 100vw; height: 100vh; background-color: #000080; color: #fff; z-index: 2147483647; padding: 40px; font-size: 4em;">TAKEOVER — full-screen navy overlay with id="root" and the maximum z-index. If you see this covering the app, the style and id handling failed.</div>
<div id="app" style="width: 400%; margin-left: -150%; background-color: #800000; color: #fff; padding: 40px;">A full-bleed banner using width: 400% and a large negative margin, with id="app".</div>
<div style="height: 100vh; width: 100vw; background-color: #ffcc00;">A viewport-sized yellow block.</div>
<table width="5000" bgcolor="#ff00ff" border="10" cellpadding="40"><tr><td style="font-size: 6em; color: #ffffff;">Legacy attribute takeover</td></tr></table>
<p style="position: fixed; bottom: 0; left: 0; width: 100%; background-color: #ff0000; color: #fff; padding: 12px;">A fixed footer bar.</p>
<p>Normal closing paragraph — this should be the last thing in the post, in the normal reading column.</p>]]></content:encoded>
    </item>

  </channel>
</rss>
